@nebula.js/sn-table 6.33.0 → 6.34.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-specifications/properties.json +1 -1
- package/core/esm/index.js +9 -9
- package/dist/sn-table.js +14 -14
- package/dist/sn-table.systemjs.js +11 -11
- package/package.json +4 -4
- package/sn-table-ext/dist/sn-table.js +14 -14
- package/sn-table-ext/sn-table.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.
|
|
2
|
+
* @nebula.js/sn-table v6.34.0
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -14,7 +14,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,c,u,d,p=e.le
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
function na(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Fi(e),r}function oa(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function ia(e){return e}ra.propTypes={defaultTheme:ea.object,styles:ea.oneOfType([ea.array,ea.string,ea.object,ea.func])};var aa=Object.freeze({__proto__:null,GlobalStyles:ra,StyledEngineProvider:ta,ThemeContext:Pi,css:ji,default:na,internal_mutateStyles:oa,internal_processStyles:function(e,t){return oa(e,t)},internal_serializeStyles:ia,keyframes:Vi});function sa(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function la(e){if(x.isValidElement(e)||!sa(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=la(e[r])}),t}function ca(e,t,r={clone:!0}){const n=r.clone?Hr({},e):e;return sa(e)&&sa(t)&&Object.keys(t).forEach(o=>{x.isValidElement(t[o])?n[o]=t[o]:sa(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&sa(e[o])?n[o]=ca(e[o],t[o],r):r.clone?n[o]=sa(t[o])?la(t[o]):t[o]:n[o]=t[o]}),n}var ua=Object.freeze({__proto__:null,default:ca,isPlainObject:sa});const da=["values","unit","step"];function pa(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Br(e,da),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>Hr({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Hr({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const fa={borderRadius:4};function ha(e,t){return t?ca(e,t,{clone:!1}):e}const ma={xs:0,sm:600,md:900,lg:1200,xl:1536},ga={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ma[e]}px)`};function ba(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ga;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||ga;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||ma).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function va(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function ya(e){if("string"!=typeof e)throw new Error(zr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var xa=Object.freeze({__proto__:null,default:ya});function Sa(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function wa(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Sa(e,r)||n,t&&(o=t(o,n,e)),o}function Ca(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Sa(e.theme,n)||{};return ba(e,i,e=>{let n=wa(a,o,e);return e===n&&"string"==typeof e&&(n=wa(a,o,`${t}${"default"===e?"":ya(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes={},i.filterProps=[t],i}const Ea={m:"margin",p:"padding"},Ra={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Aa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ia=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!Aa[e])return[e];e=Aa[e]}const[t,r]=e.split(""),n=Ea[t],o=Ra[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),ka=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ma(e,t,r,n){var o;const i=null!=(o=Sa(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Da(e){return Ma(e,"spacing",8)}function Ta(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Oa(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=Ta(t,r),e),{})}(Ia(r),n);return ba(e,e[r],o)}function qa(e,t){const r=Da(e.theme);return Object.keys(e).map(n=>Oa(e,t,n,r)).reduce(ha,{})}function La(e){return qa(e,ka)}function Na(e){return qa(e,Pa)}function ja(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?ha(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function _a(e){return"number"!=typeof e?e:`${e}px solid`}function za(e,t){return Ca({prop:e,themeKey:"borders",transform:t})}La.propTypes={},La.filterProps=ka,Na.propTypes={},Na.filterProps=Pa;const Fa=za("border",_a),$a=za("borderTop",_a),Ha=za("borderRight",_a),Ba=za("borderBottom",_a),Va=za("borderLeft",_a),Wa=za("borderColor"),Ua=za("borderTopColor"),Ga=za("borderRightColor"),Ka=za("borderBottomColor"),Ya=za("borderLeftColor"),Xa=za("outline",_a),Ja=za("outlineColor"),Za=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ma(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ta(t,e)});return ba(e,e.borderRadius,r)}return null};Za.propTypes={},Za.filterProps=["borderRadius"],ja(Fa,$a,Ha,Ba,Va,Wa,Ua,Ga,Ka,Ya,Za,Xa,Ja);const Qa=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ma(e.theme,"spacing",8),r=e=>({gap:Ta(t,e)});return ba(e,e.gap,r)}return null};Qa.propTypes={},Qa.filterProps=["gap"];const es=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ma(e.theme,"spacing",8),r=e=>({columnGap:Ta(t,e)});return ba(e,e.columnGap,r)}return null};es.propTypes={},es.filterProps=["columnGap"];const ts=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ma(e.theme,"spacing",8),r=e=>({rowGap:Ta(t,e)});return ba(e,e.rowGap,r)}return null};ts.propTypes={},ts.filterProps=["rowGap"];function rs(e,t){return"grey"===t?t:e}ja(Qa,es,ts,Ca({prop:"gridColumn"}),Ca({prop:"gridRow"}),Ca({prop:"gridAutoFlow"}),Ca({prop:"gridAutoColumns"}),Ca({prop:"gridAutoRows"}),Ca({prop:"gridTemplateColumns"}),Ca({prop:"gridTemplateRows"}),Ca({prop:"gridTemplateAreas"}),Ca({prop:"gridArea"}));function ns(e){return e<=1&&0!==e?100*e+"%":e}ja(Ca({prop:"color",themeKey:"palette",transform:rs}),Ca({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rs}),Ca({prop:"backgroundColor",themeKey:"palette",transform:rs}));const os=Ca({prop:"width",transform:ns}),is=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||ma[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ns(t)}};return ba(e,e.maxWidth,t)}return null};is.filterProps=["maxWidth"];const as=Ca({prop:"minWidth",transform:ns}),ss=Ca({prop:"height",transform:ns}),ls=Ca({prop:"maxHeight",transform:ns}),cs=Ca({prop:"minHeight",transform:ns});Ca({prop:"size",cssProperty:"width",transform:ns}),Ca({prop:"size",cssProperty:"height",transform:ns});ja(os,is,as,ss,ls,cs,Ca({prop:"boxSizing"}));const us={border:{themeKey:"borders",transform:_a},borderTop:{themeKey:"borders",transform:_a},borderRight:{themeKey:"borders",transform:_a},borderBottom:{themeKey:"borders",transform:_a},borderLeft:{themeKey:"borders",transform:_a},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_a},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Za},color:{themeKey:"palette",transform:rs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rs},backgroundColor:{themeKey:"palette",transform:rs},p:{style:Na},pt:{style:Na},pr:{style:Na},pb:{style:Na},pl:{style:Na},px:{style:Na},py:{style:Na},padding:{style:Na},paddingTop:{style:Na},paddingRight:{style:Na},paddingBottom:{style:Na},paddingLeft:{style:Na},paddingX:{style:Na},paddingY:{style:Na},paddingInline:{style:Na},paddingInlineStart:{style:Na},paddingInlineEnd:{style:Na},paddingBlock:{style:Na},paddingBlockStart:{style:Na},paddingBlockEnd:{style:Na},m:{style:La},mt:{style:La},mr:{style:La},mb:{style:La},ml:{style:La},mx:{style:La},my:{style:La},margin:{style:La},marginTop:{style:La},marginRight:{style:La},marginBottom:{style:La},marginLeft:{style:La},marginX:{style:La},marginY:{style:La},marginInline:{style:La},marginInlineStart:{style:La},marginInlineEnd:{style:La},marginBlock:{style:La},marginBlockStart:{style:La},marginBlockEnd:{style:La},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Qa},rowGap:{style:ts},columnGap:{style:es},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ns},maxWidth:{style:is},minWidth:{transform:ns},height:{transform:ns},maxHeight:{transform:ns},minHeight:{transform:ns},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ds(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=Sa(r,s)||{};if(c)return c(o);return ba(o,t,t=>{let r=wa(u,l,t);return t===r&&"string"==typeof t&&(r=wa(u,l,`${e}${"default"===t?"":ya(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:us;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{});return r||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(n).forEach(r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])c=ha(c,e(r,o,i,s));else{const e=ba({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?c=ha(c,e):c[r]=t({sx:o,theme:i,nested:!0})}else c=ha(c,e(r,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":va(l,c)}:va(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const ps=ds();function fs(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}ps.filterProps=["sx"];const hs=["breakpoints","palette","spacing","shape"];function ms(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Br(e,hs),s=pa(r),l=function(e=8){if(e.mui)return e;const t=Da({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}(o);let c=ca({breakpoints:s,direction:"ltr",components:{},palette:Hr({mode:"light"},n),spacing:l,shape:Hr({},fa,i)},a);return c.applyStyles=fs,c=t.reduce((e,t)=>ca(e,t),c),c.unstable_sxConfig=Hr({},us,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ps({sx:e,theme:this})},c}var gs=Object.freeze({__proto__:null,default:ms,private_createBreakpoints:pa,unstable_applyStyles:fs});function bs(e=null){const t=x.useContext(Pi);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const vs=ms();function ys(e=vs){return bs(e)}function xs(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ss({styles:e,themeId:t,defaultTheme:r={}}){const n=ys(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>xs("function"==typeof e?e(o):e)):xs(i)),or.jsx(ra,{styles:i})}const ws=["sx"];function Cs(e){const{sx:t}=e,r=Br(e,ws),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:us;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return sa(r)?Hr({},n,r):n}:Hr({},n,t),Hr({},o,{sx:i})}var Es=Object.freeze({__proto__:null,default:ps,extendSxProp:Cs,unstable_createStyleFunctionSx:ds,unstable_defaultSxConfig:us});const Rs=e=>e,As=(()=>{let e=Rs;return{configure(t){e=t},generate:t=>e(t),reset(){e=Rs}}})();function Is(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Is(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ks(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Is(e))&&(n&&(n+=" "),n+=t);return n}const Ps=["className","component"];const Ms={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ds(e,t,r="Mui"){const n=Ms[t];return n?`${r}-${n}`:`${As.generate(e)}-${t}`}function Ts(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=Ds(e,t,r)}),n}var Os,qs,Ls={exports:{}},Ns={};function js(){if(Os)return Ns;Os=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case r:case o:case n:case l:case c:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case u:case i:return f;default:return h}}case t:return h}}}return Ns.ContextConsumer=i,Ns.ContextProvider=a,Ns.Element=e,Ns.ForwardRef=s,Ns.Fragment=r,Ns.Lazy=d,Ns.Memo=u,Ns.Portal=t,Ns.Profiler=o,Ns.StrictMode=n,Ns.Suspense=l,Ns.SuspenseList=c,Ns.isContextConsumer=function(e){return h(e)===i},Ns.isContextProvider=function(e){return h(e)===a},Ns.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ns.isForwardRef=function(e){return h(e)===s},Ns.isFragment=function(e){return h(e)===r},Ns.isLazy=function(e){return h(e)===d},Ns.isMemo=function(e){return h(e)===u},Ns.isPortal=function(e){return h(e)===t},Ns.isProfiler=function(e){return h(e)===o},Ns.isStrictMode=function(e){return h(e)===n},Ns.isSuspense=function(e){return h(e)===l},Ns.isSuspenseList=function(e){return h(e)===c},Ns.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===n||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},Ns.typeOf=h,Ns}function _s(){return qs||(qs=1,Ls.exports=js()),Ls.exports}var zs=_s();const Fs=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function $s(e){const t=`${e}`.match(Fs);return t&&t[1]||""}function Hs(e,t=""){return e.displayName||e.name||$s(e)||t}function Bs(e,t,r){const n=Hs(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Vs=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Hs(e,"Component");if("object"==typeof e)switch(e.$$typeof){case zs.ForwardRef:return Bs(e,e.render,"ForwardRef");case zs.Memo:return Bs(e,e.type,"memo");default:return}}},getFunctionName:$s});function Ws(e,t){const r=Hr({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Hr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=Hr({},i),Object.keys(o).forEach(e=>{r[n][e]=Ws(o[e],i[e])})):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])}),r}const Us="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function Gs(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Ks=Object.freeze({__proto__:null,default:Gs});function Ys(e){if(e.type)return e;if("#"===e.charAt(0))return Ys(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(zr(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(zr(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}function Xs(e,t){return e=Ys(e),t=function(e,t=0,r=1){return Gs(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Js(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function Zs(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n}function Qs(e){return e&&e.ownerDocument||document}function el(e){return Qs(e).defaultView||window}function tl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let rl=0;const nl=x["useId".toString()];function ol(e){if(void 0!==nl){return nl()}return function(e){const[t,r]=x.useState(e),n=t;return x.useEffect(()=>{null==t&&(rl+=1,r(`mui-${rl}`))},[t]),n}(e)}function il({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=x.useRef(void 0!==e),[i,a]=x.useState(t);return[o?e:i,x.useCallback(e=>{o||a(e)},[])]}function al(e){const t=x.useRef(e);return Us(()=>{t.current=e}),x.useRef((...e)=>(0,t.current)(...e)).current}function sl(...e){return x.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{tl(e,t)})},e)}const ll={};const cl=[];class ul{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ul}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function dl(){const e=function(e,t){const r=x.useRef(ll);return r.current===ll&&(r.current=e(t)),r}(ul.create).current;return function(e){x.useEffect(e,cl)}(e.disposeEffect),e}let pl=!0,fl=!1;const hl=new ul,ml={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function gl(e){e.metaKey||e.altKey||e.ctrlKey||(pl=!0)}function bl(){pl=!1}function vl(){"hidden"===this.visibilityState&&fl&&(pl=!0)}function yl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return pl||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!ml[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function xl(){const e=x.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",gl,!0),t.addEventListener("mousedown",bl,!0),t.addEventListener("pointerdown",bl,!0),t.addEventListener("touchstart",bl,!0),t.addEventListener("visibilitychange",vl,!0))},[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!yl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(fl=!0,hl.start(100,()=>{fl=!1}),t.current=!1,!0)},ref:e}}function Sl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function wl(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}function Cl(e){return"string"==typeof e}function El(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function Rl(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}const Al=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Il(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Br(e,Al),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=ks(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Hr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Hr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=El(Hr({},o,n)),s=Rl(n),l=Rl(o),c=t(a),u=ks(null==c?void 0:c.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=Hr({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=Hr({},c,r,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(Hr({},a,{externalSlotProps:s})),u=function(e,t,r){return void 0===e||Cl(e)?t:Hr({},t,{ownerState:Hr({},t.ownerState,r)})}(r,Hr({},l,{ref:sl(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}function kl(e){var t;return parseInt(x.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Pl=x.createContext(null);function Ml(){return x.useContext(Pl)}var Dl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Tl(e){const{children:t,theme:r}=e,n=Ml(),o=x.useMemo(()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Hr({},e,t)}(n,r);return null!=e&&(e[Dl]=null!==n),e},[r,n]);return or.jsx(Pl.Provider,{value:o,children:t})}const Ol=["value"],ql=x.createContext();function Ll(e){let{value:t}=e,r=Br(e,Ol);return or.jsx(ql.Provider,Hr({value:null==t||t},r))}const Nl=x.createContext(void 0);function jl({value:e,children:t}){return or.jsx(Nl.Provider,{value:e,children:t})}function _l({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ws(o.defaultProps,n):o.styleOverrides||o.variants?n:Ws(o,n)}({props:e,name:t,theme:{components:x.useContext(Nl)}})}const zl={};function Fl(e,t,r,n=!1){return x.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Hr({},t,{[e]:i}):i;return n?()=>a:a}return Hr({},t,e?{[e]:r}:r)},[e,t,r,n])}function $l(e){const{children:t,theme:r,themeId:n}=e,o=bs(zl),i=Ml()||zl,a=Fl(n,o,r),s=Fl(n,i,r,!0),l="rtl"===a.direction,c=function(e){const t=bs(),r=ol()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Us(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}},[o,r]),o?or.jsx(Ss,{styles:o}):null}(a);return or.jsx(Tl,{theme:s,children:or.jsx(Pi.Provider,{value:a,children:or.jsx(Ll,{value:l,children:or.jsxs(jl,{value:null==a?void 0:a.components,children:[c,t]})})})})}function Hl(e,t){return Hr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Bl,Vl={},Wl={exports:{}};function Ul(){return Bl||(Bl=1,(e=Wl).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),Wl.exports;var e}var Gl,Kl=Qt(Fr),Yl=Qt(Ks);function Xl(){if(Gl)return Vl;Gl=1;var e=Ul();Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.alpha=u,Vl.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},Vl.colorChannel=void 0,Vl.darken=d,Vl.decomposeColor=i,Vl.emphasize=f,Vl.getContrastRatio=function(e,t){const r=c(e),n=c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Vl.getLuminance=c,Vl.hexToRgb=o,Vl.hslToRgb=l,Vl.lighten=p,Vl.private_safeAlpha=function(e,t,r){try{return u(e,t)}catch(t){return e}},Vl.private_safeColorChannel=void 0,Vl.private_safeDarken=function(e,t,r){try{return d(e,t)}catch(t){return e}},Vl.private_safeEmphasize=function(e,t,r){try{return f(e,t)}catch(t){return e}},Vl.private_safeLighten=function(e,t,r){try{return p(e,t)}catch(t){return e}},Vl.recomposeColor=s,Vl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(Kl),r=e(Yl);function n(e,t=0,n=1){return(0,r.default)(e,t,n)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const r=e.indexOf("("),n=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,t.default)(9,e));let a,s=e.substring(r+1,e.length-1);if("color"===n){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:n,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};Vl.colorChannel=a;function s(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function l(e){e=i(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),l=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=i(e),t=n(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s(e)}function f(e,t=.15){return c(e)>.5?d(e,t):p(e,t)}return Vl.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},Vl}var Jl=Xl();const Zl=["mode","contrastThreshold","tonalOffset"],Ql={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ir.white,default:ir.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ec={text:{primary:ir.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ir.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function tc(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Jl.lighten(e.main,o):"dark"===t&&(e.dark=Jl.darken(e.main,i)))}function rc(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Br(e,Zl),i=e.primary||function(e="light"){return"dark"===e?{main:vr,light:br,dark:yr}:{main:xr,light:yr,dark:Sr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:pr,light:dr,dark:hr}:{main:mr,light:fr,dark:gr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:lr,light:ar,dark:cr}:{main:cr,light:sr,dark:ur}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Cr,light:wr,dark:Rr}:{main:Rr,light:Er,dark:Ar}}(t),c=e.success||function(e="light"){return"dark"===e?{main:kr,light:Ir,dark:Mr}:{main:Dr,light:Pr,dark:Tr}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:qr,light:Or,dark:Nr}:{main:"#ed6c02",light:Lr,dark:jr}}(t);function d(e){return Jl.getContrastRatio(e,ec.text.primary)>=r?ec.text.primary:Ql.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Hr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(zr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(zr(12,t?` (${t})`:"",JSON.stringify(e.main)));return tc(e,"light",o,n),tc(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ec,light:Ql};return ca(Hr({common:Hr({},ir),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:_r,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const nc=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const oc={textTransform:"uppercase"},ic='"Roboto", "Helvetica", "Arial", sans-serif';function ac(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=ic,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,p=Br(r,nc),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,r,o,i)=>{return Hr({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===ic?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,oc),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,oc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ca(Hr({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function sc(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const lc=["none",sc(0,2,1,-1,0,1,1,0,0,1,3,0),sc(0,3,1,-2,0,2,2,0,0,1,5,0),sc(0,3,3,-2,0,3,4,0,0,1,8,0),sc(0,2,4,-1,0,4,5,0,0,1,10,0),sc(0,3,5,-1,0,5,8,0,0,1,14,0),sc(0,3,5,-1,0,6,10,0,0,1,18,0),sc(0,4,5,-2,0,7,10,1,0,2,16,1),sc(0,5,5,-3,0,8,10,1,0,3,14,2),sc(0,5,6,-3,0,9,12,1,0,3,16,2),sc(0,6,6,-3,0,10,14,1,0,4,18,3),sc(0,6,7,-4,0,11,15,1,0,4,20,3),sc(0,7,8,-4,0,12,17,2,0,5,22,4),sc(0,7,8,-4,0,13,19,2,0,5,24,4),sc(0,7,9,-4,0,14,21,2,0,5,26,4),sc(0,8,9,-5,0,15,22,2,0,6,28,5),sc(0,8,10,-5,0,16,24,2,0,6,30,5),sc(0,8,11,-5,0,17,26,2,0,6,32,5),sc(0,9,11,-5,0,18,28,2,0,7,34,6),sc(0,9,12,-6,0,19,29,2,0,7,36,6),sc(0,10,13,-6,0,20,31,3,0,8,38,7),sc(0,10,13,-6,0,21,33,3,0,8,40,7),sc(0,10,14,-6,0,22,35,3,0,8,42,7),sc(0,11,14,-7,0,23,36,3,0,9,44,8),sc(0,11,15,-7,0,24,38,3,0,9,46,8)],cc=["duration","easing","delay"],uc={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)"},dc={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pc(e){return`${Math.round(e)}ms`}function fc(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function hc(e){const t=Hr({},uc,e.easing),r=Hr({},dc,e.duration);return Hr({getAutoHeightDuration:fc,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Br(n,cc),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:pc(o)} ${i} ${"string"==typeof a?a:pc(a)}`).join(",")}},e,{easing:t,duration:r})}const mc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},gc=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function bc(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Br(e,gc);if(e.vars&&void 0===e.generateCssVars)throw new Error(zr(18));const s=rc(n),l=ms(e);let c=ca(l,{mixins:Hl(l.breakpoints,r),palette:s,shadows:lc.slice(),typography:ac(s,i),transitions:hc(o),zIndex:Hr({},mc)});return c=ca(c,a),c=t.reduce((e,t)=>ca(e,t),c),c.unstable_sxConfig=Hr({},us,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ps({sx:e,theme:this})},c}const vc=bc();function yc(){const e=ys(vc);return e[$r]||e}var xc,Sc={},wc={exports:{}};var Cc,Ec={exports:{}};var Rc,Ac=Qt(aa),Ic=Qt(ua),kc=Qt(xa),Pc=Qt(Vs),Mc=Qt(gs),Dc=Qt(Es);function Tc(){if(Rc)return Sc;Rc=1;var e=Ul();Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.default=function(e={}){const{themeId:t,defaultTheme:a=h,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,d=e=>(0,s.default)((0,r.default)({},e,{theme:g((0,r.default)({},e,{defaultTheme:a,themeId:t}))}));return d.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:f,slot:h,skipVariantsResolver:y,skipSx:x,overridesResolver:S=b(m(h))}=s,w=(0,n.default)(s,u),C=f&&f.startsWith("Mui")||h?"components":"custom",E=void 0!==y?y:h&&"Root"!==h&&"root"!==h||!1,R=x||!1;let A=p;"Root"===h||"root"===h?A=l:h?A=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);const I=(0,o.default)(e,(0,r.default)({shouldForwardProp:A,label:void 0},w)),k=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?n=>{const o=g({theme:n.theme,defaultTheme:a,themeId:t});return v(e,(0,r.default)({},n,{theme:o}),o.modularCssLayers?C:void 0)}:e,P=(n,...o)=>{let i=k(n);const s=o?o.map(k):[];f&&S&&s.push(e=>{const n=g((0,r.default)({},e,{defaultTheme:a,themeId:t}));if(!n.components||!n.components[f]||!n.components[f].styleOverrides)return null;const o=n.components[f].styleOverrides,i={};return Object.entries(o).forEach(([t,o])=>{i[t]=v(o,(0,r.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),S(e,i)}),f&&!E&&s.push(e=>{var n;const o=g((0,r.default)({},e,{defaultTheme:a,themeId:t}));return v({variants:null==o||null==(n=o.components)||null==(n=n[f])?void 0:n.variants},(0,r.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),R||s.push(d);const l=s.length-o.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");i=[...n,...e],i.raw=[...n.raw,...e]}const c=I(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return I.withConfig&&(P.withConfig=I.withConfig),P}},Sc.shouldForwardProp=p,Sc.systemDefaultTheme=void 0;var t,r=e((xc||(xc=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wc)),wc.exports)),n=e((Cc||(Cc=1,(t=Ec).exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},t.exports.__esModule=!0,t.exports.default=t.exports),Ec.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Ac),i=Ic;e(kc),e(Pc);var a=e(Mc),s=e(Dc);const l=["ownerState"],c=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function f(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const h=Sc.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function b(e){return e?(t,r)=>r[e]:null}function v(e,t,i){let{ownerState:a}=t,s=(0,n.default)(t,l);const u="function"==typeof e?e((0,r.default)({ownerState:a},s)):e;if(Array.isArray(u))return u.flatMap(e=>v(e,(0,r.default)({ownerState:a},s),i));if(u&&"object"==typeof u&&Array.isArray(u.variants)){const{variants:e=[]}=u;let t=(0,n.default)(u,c);return e.forEach(e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,r.default)({ownerState:a},s,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&s[t]!==e.props[t]&&(n=!1)}),n){Array.isArray(t)||(t=[t]);const n="function"==typeof e.style?e.style((0,r.default)({ownerState:a},s,a)):e.style;t.push(i?f((0,o.internal_serializeStyles)(n),i):n)}}),t}return i?f((0,o.internal_serializeStyles)(u),i):u}return Sc}function Oc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const qc=e=>Oc(e)&&"classes"!==e,Lc=Zt(Tc())({themeId:$r,defaultTheme:vc,rootShouldForwardProp:qc}),Nc=["theme"];function jc(e){let{theme:t}=e,r=Br(e,Nc);const n=t[$r];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Hr({},n,{vars:null}):t&&!t.vars&&(o=Hr({},t,{vars:null}))),or.jsx($l,Hr({},r,{themeId:n?$r:void 0,theme:o}))}const _c=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function zc(e){return _l(e)}function Fc(e){return Ds("MuiSvgIcon",e)}Ts("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $c=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Hc=Lc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${ya(r.color)}`],t[`fontSize${ya(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),Bc=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=r,p=Br(r,$c),f=x.isValidElement(n)&&"svg"===n.type,h=Hr({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return wl({root:["root","inherit"!==t&&`color${ya(t)}`,`fontSize${ya(r)}`]},Fc,n)})(h);return or.jsxs(Hc,Hr({as:a,className:ks(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,u?or.jsx("title",{children:u}):null]}))});function Vc(e,t){function r(r,n){return or.jsx(Bc,Hr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Bc.muiName,x.memo(x.forwardRef(r))}function Wc(e,t){return Wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wc(e,t)}function Uc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wc(e,t)}Bc.muiName="SvgIcon";var Gc=!1,Kc=S.createContext(null),Yc="unmounted",Xc="exited",Jc="entering",Zc="entered",Qc="exiting",eu=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Xc,n.appearStatus=Jc):o=Zc:o=t.unmountOnExit||t.mountOnEnter?Yc:Xc,n.state={status:o},n.nextCallback=null,n}Uc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Yc?{status:Xc}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Jc&&r!==Zc&&(t=Jc):r!==Jc&&r!==Zc||(t=Qc)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Jc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:B.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xc&&this.setState({status:Yc})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[B.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Gc?this.safeSetState({status:Zc},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Jc},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Zc},function(){t.props.onEntered(i,a)})})}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:B.findDOMNode(this);t&&!Gc?(this.props.onExit(n),this.safeSetState({status:Qc},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:Xc},function(){e.props.onExited(n)})})})):this.safeSetState({status:Xc},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:B.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Yc)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=Br(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Kc.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function tu(){}function ru(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nu(e,t){var r=Object.create(null);return e&&R.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&C(e)?t(e):e}(e)}),r}function ou(e,t,r){return null!=r[t]?r[t]:e.props[t]}function iu(e,t,r){var n=nu(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];s[o[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(C(a)){var s=i in t,l=i in n,c=t[i],u=C(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&C(c)&&(o[i]=E(a,{onExited:r.bind(null,a),in:c.props.in,exit:ou(a,"exit",e),enter:ou(a,"enter",e)})):o[i]=E(a,{in:!1}):o[i]=E(a,{onExited:r.bind(null,a),in:!0,exit:ou(a,"exit",e),enter:ou(a,"enter",e)})}}),o}eu.contextType=Kc,eu.propTypes={},eu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tu,onEntering:tu,onEntered:tu,onExit:tu,onExiting:tu,onExited:tu},eu.UNMOUNTED=Yc,eu.EXITED=Xc,eu.ENTERING=Jc,eu.ENTERED=Zc,eu.EXITING=Qc;var au=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},su=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(ru(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Uc(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,nu(r.children,function(e){return E(e,{onExited:n.bind(null,e),in:!0,appear:ou(e,"appear",r),enter:ou(e,"enter",r),exit:ou(e,"exit",r)})})):iu(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=nu(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=Hr({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Br(e,["component","childFactory"]),o=this.state.contextValue,i=au(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(Kc.Provider,{value:o},i):S.createElement(Kc.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);su.propTypes={},su.defaultProps={component:"div",childFactory:function(e){return e}};const lu=e=>e.scrollTop;function cu(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function uu(e){return Ds("MuiPaper",e)}Ts("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const du=["className","component","elevation","square","variant"],pu=Lc("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return Hr({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Hr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Jl.alpha("#fff",_c(t.elevation))}, ${Jl.alpha("#fff",_c(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),fu=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Br(r,du),c=Hr({},r,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return wl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},uu,o)})(c);return or.jsx(pu,Hr({as:o,ownerState:c,className:ks(u.root,n),ref:t},l))});const hu=Ts("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),mu=["center","classes","className"];let gu,bu,vu,yu,xu=e=>e;const Su=Vi(gu||(gu=xu`
|
|
17
|
+
function na(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Fi(e),r}function oa(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function ia(e){return e}ra.propTypes={defaultTheme:ea.object,styles:ea.oneOfType([ea.array,ea.string,ea.object,ea.func])};var aa=Object.freeze({__proto__:null,GlobalStyles:ra,StyledEngineProvider:ta,ThemeContext:Pi,css:ji,default:na,internal_mutateStyles:oa,internal_processStyles:function(e,t){return oa(e,t)},internal_serializeStyles:ia,keyframes:Vi});function sa(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function la(e){if(x.isValidElement(e)||!sa(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=la(e[r])}),t}function ca(e,t,r={clone:!0}){const n=r.clone?Hr({},e):e;return sa(e)&&sa(t)&&Object.keys(t).forEach(o=>{x.isValidElement(t[o])?n[o]=t[o]:sa(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&sa(e[o])?n[o]=ca(e[o],t[o],r):r.clone?n[o]=sa(t[o])?la(t[o]):t[o]:n[o]=t[o]}),n}var ua=Object.freeze({__proto__:null,default:ca,isPlainObject:sa});const da=["values","unit","step"];function pa(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Br(e,da),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>Hr({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Hr({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const fa={borderRadius:4};function ha(e,t){return t?ca(e,t,{clone:!1}):e}const ma={xs:0,sm:600,md:900,lg:1200,xl:1536},ga={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ma[e]}px)`};function ba(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ga;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||ga;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||ma).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function va(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function ya(e){if("string"!=typeof e)throw new Error(zr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var xa=Object.freeze({__proto__:null,default:ya});function Sa(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function wa(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Sa(e,r)||n,t&&(o=t(o,n,e)),o}function Ca(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Sa(e.theme,n)||{};return ba(e,i,e=>{let n=wa(a,o,e);return e===n&&"string"==typeof e&&(n=wa(a,o,`${t}${"default"===e?"":ya(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes={},i.filterProps=[t],i}const Ea={m:"margin",p:"padding"},Ra={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Aa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ia=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!Aa[e])return[e];e=Aa[e]}const[t,r]=e.split(""),n=Ea[t],o=Ra[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),ka=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ma(e,t,r,n){var o;const i=null!=(o=Sa(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Da(e){return Ma(e,"spacing",8)}function Ta(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Oa(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=Ta(t,r),e),{})}(Ia(r),n);return ba(e,e[r],o)}function qa(e,t){const r=Da(e.theme);return Object.keys(e).map(n=>Oa(e,t,n,r)).reduce(ha,{})}function La(e){return qa(e,ka)}function Na(e){return qa(e,Pa)}function ja(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?ha(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function _a(e){return"number"!=typeof e?e:`${e}px solid`}function za(e,t){return Ca({prop:e,themeKey:"borders",transform:t})}La.propTypes={},La.filterProps=ka,Na.propTypes={},Na.filterProps=Pa;const Fa=za("border",_a),$a=za("borderTop",_a),Ha=za("borderRight",_a),Ba=za("borderBottom",_a),Va=za("borderLeft",_a),Wa=za("borderColor"),Ua=za("borderTopColor"),Ga=za("borderRightColor"),Ka=za("borderBottomColor"),Ya=za("borderLeftColor"),Xa=za("outline",_a),Ja=za("outlineColor"),Za=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ma(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ta(t,e)});return ba(e,e.borderRadius,r)}return null};Za.propTypes={},Za.filterProps=["borderRadius"],ja(Fa,$a,Ha,Ba,Va,Wa,Ua,Ga,Ka,Ya,Za,Xa,Ja);const Qa=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ma(e.theme,"spacing",8),r=e=>({gap:Ta(t,e)});return ba(e,e.gap,r)}return null};Qa.propTypes={},Qa.filterProps=["gap"];const es=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ma(e.theme,"spacing",8),r=e=>({columnGap:Ta(t,e)});return ba(e,e.columnGap,r)}return null};es.propTypes={},es.filterProps=["columnGap"];const ts=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ma(e.theme,"spacing",8),r=e=>({rowGap:Ta(t,e)});return ba(e,e.rowGap,r)}return null};ts.propTypes={},ts.filterProps=["rowGap"];function rs(e,t){return"grey"===t?t:e}ja(Qa,es,ts,Ca({prop:"gridColumn"}),Ca({prop:"gridRow"}),Ca({prop:"gridAutoFlow"}),Ca({prop:"gridAutoColumns"}),Ca({prop:"gridAutoRows"}),Ca({prop:"gridTemplateColumns"}),Ca({prop:"gridTemplateRows"}),Ca({prop:"gridTemplateAreas"}),Ca({prop:"gridArea"}));function ns(e){return e<=1&&0!==e?100*e+"%":e}ja(Ca({prop:"color",themeKey:"palette",transform:rs}),Ca({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rs}),Ca({prop:"backgroundColor",themeKey:"palette",transform:rs}));const os=Ca({prop:"width",transform:ns}),is=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||ma[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ns(t)}};return ba(e,e.maxWidth,t)}return null};is.filterProps=["maxWidth"];const as=Ca({prop:"minWidth",transform:ns}),ss=Ca({prop:"height",transform:ns}),ls=Ca({prop:"maxHeight",transform:ns}),cs=Ca({prop:"minHeight",transform:ns});Ca({prop:"size",cssProperty:"width",transform:ns}),Ca({prop:"size",cssProperty:"height",transform:ns});ja(os,is,as,ss,ls,cs,Ca({prop:"boxSizing"}));const us={border:{themeKey:"borders",transform:_a},borderTop:{themeKey:"borders",transform:_a},borderRight:{themeKey:"borders",transform:_a},borderBottom:{themeKey:"borders",transform:_a},borderLeft:{themeKey:"borders",transform:_a},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_a},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Za},color:{themeKey:"palette",transform:rs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rs},backgroundColor:{themeKey:"palette",transform:rs},p:{style:Na},pt:{style:Na},pr:{style:Na},pb:{style:Na},pl:{style:Na},px:{style:Na},py:{style:Na},padding:{style:Na},paddingTop:{style:Na},paddingRight:{style:Na},paddingBottom:{style:Na},paddingLeft:{style:Na},paddingX:{style:Na},paddingY:{style:Na},paddingInline:{style:Na},paddingInlineStart:{style:Na},paddingInlineEnd:{style:Na},paddingBlock:{style:Na},paddingBlockStart:{style:Na},paddingBlockEnd:{style:Na},m:{style:La},mt:{style:La},mr:{style:La},mb:{style:La},ml:{style:La},mx:{style:La},my:{style:La},margin:{style:La},marginTop:{style:La},marginRight:{style:La},marginBottom:{style:La},marginLeft:{style:La},marginX:{style:La},marginY:{style:La},marginInline:{style:La},marginInlineStart:{style:La},marginInlineEnd:{style:La},marginBlock:{style:La},marginBlockStart:{style:La},marginBlockEnd:{style:La},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Qa},rowGap:{style:ts},columnGap:{style:es},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ns},maxWidth:{style:is},minWidth:{transform:ns},height:{transform:ns},maxHeight:{transform:ns},minHeight:{transform:ns},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ds(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=Sa(r,s)||{};if(c)return c(o);return ba(o,t,t=>{let r=wa(u,l,t);return t===r&&"string"==typeof t&&(r=wa(u,l,`${e}${"default"===t?"":ya(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:us;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{});return r||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(n).forEach(r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])c=ha(c,e(r,o,i,s));else{const e=ba({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?c=ha(c,e):c[r]=t({sx:o,theme:i,nested:!0})}else c=ha(c,e(r,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":va(l,c)}:va(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const ps=ds();function fs(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}ps.filterProps=["sx"];const hs=["breakpoints","palette","spacing","shape"];function ms(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Br(e,hs),s=pa(r),l=function(e=8){if(e.mui)return e;const t=Da({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}(o);let c=ca({breakpoints:s,direction:"ltr",components:{},palette:Hr({mode:"light"},n),spacing:l,shape:Hr({},fa,i)},a);return c.applyStyles=fs,c=t.reduce((e,t)=>ca(e,t),c),c.unstable_sxConfig=Hr({},us,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ps({sx:e,theme:this})},c}var gs=Object.freeze({__proto__:null,default:ms,private_createBreakpoints:pa,unstable_applyStyles:fs});function bs(e=null){const t=x.useContext(Pi);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const vs=ms();function ys(e=vs){return bs(e)}function xs(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ss({styles:e,themeId:t,defaultTheme:r={}}){const n=ys(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>xs("function"==typeof e?e(o):e)):xs(i)),or.jsx(ra,{styles:i})}const ws=["sx"];function Cs(e){const{sx:t}=e,r=Br(e,ws),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:us;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return sa(r)?Hr({},n,r):n}:Hr({},n,t),Hr({},o,{sx:i})}var Es=Object.freeze({__proto__:null,default:ps,extendSxProp:Cs,unstable_createStyleFunctionSx:ds,unstable_defaultSxConfig:us});const Rs=e=>e,As=(()=>{let e=Rs;return{configure(t){e=t},generate:t=>e(t),reset(){e=Rs}}})();function Is(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Is(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ks(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Is(e))&&(n&&(n+=" "),n+=t);return n}const Ps=["className","component"];const Ms={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ds(e,t,r="Mui"){const n=Ms[t];return n?`${r}-${n}`:`${As.generate(e)}-${t}`}function Ts(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=Ds(e,t,r)}),n}var Os,qs,Ls={exports:{}},Ns={};function js(){if(Os)return Ns;Os=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case r:case o:case n:case l:case c:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case u:case i:return f;default:return h}}case t:return h}}}return Ns.ContextConsumer=i,Ns.ContextProvider=a,Ns.Element=e,Ns.ForwardRef=s,Ns.Fragment=r,Ns.Lazy=d,Ns.Memo=u,Ns.Portal=t,Ns.Profiler=o,Ns.StrictMode=n,Ns.Suspense=l,Ns.SuspenseList=c,Ns.isContextConsumer=function(e){return h(e)===i},Ns.isContextProvider=function(e){return h(e)===a},Ns.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ns.isForwardRef=function(e){return h(e)===s},Ns.isFragment=function(e){return h(e)===r},Ns.isLazy=function(e){return h(e)===d},Ns.isMemo=function(e){return h(e)===u},Ns.isPortal=function(e){return h(e)===t},Ns.isProfiler=function(e){return h(e)===o},Ns.isStrictMode=function(e){return h(e)===n},Ns.isSuspense=function(e){return h(e)===l},Ns.isSuspenseList=function(e){return h(e)===c},Ns.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===n||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},Ns.typeOf=h,Ns}function _s(){return qs||(qs=1,Ls.exports=js()),Ls.exports}var zs=_s();const Fs=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function $s(e){const t=`${e}`.match(Fs);return t&&t[1]||""}function Hs(e,t=""){return e.displayName||e.name||$s(e)||t}function Bs(e,t,r){const n=Hs(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Vs=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Hs(e,"Component");if("object"==typeof e)switch(e.$$typeof){case zs.ForwardRef:return Bs(e,e.render,"ForwardRef");case zs.Memo:return Bs(e,e.type,"memo");default:return}}},getFunctionName:$s});function Ws(e,t){const r=Hr({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Hr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=Hr({},i),Object.keys(o).forEach(e=>{r[n][e]=Ws(o[e],i[e])})):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])}),r}const Us="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function Gs(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Ks=Object.freeze({__proto__:null,default:Gs});function Ys(e){if(e.type)return e;if("#"===e.charAt(0))return Ys(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(zr(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(zr(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}function Xs(e,t){return e=Ys(e),t=function(e,t=0,r=1){return Gs(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Js(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function Zs(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n}function Qs(e){return e&&e.ownerDocument||document}function el(e){return Qs(e).defaultView||window}function tl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let rl=0;const nl=x["useId".toString()];function ol(e){if(void 0!==nl){return nl()}return function(e){const[t,r]=x.useState(e),n=t;return x.useEffect(()=>{null==t&&(rl+=1,r(`mui-${rl}`))},[t]),n}(e)}function il({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=x.useRef(void 0!==e),[i,a]=x.useState(t);return[o?e:i,x.useCallback(e=>{o||a(e)},[])]}function al(e){const t=x.useRef(e);return Us(()=>{t.current=e}),x.useRef((...e)=>(0,t.current)(...e)).current}function sl(...e){return x.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{tl(e,t)})},e)}const ll={};const cl=[];class ul{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ul}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function dl(){const e=function(e,t){const r=x.useRef(ll);return r.current===ll&&(r.current=e(t)),r}(ul.create).current;return function(e){x.useEffect(e,cl)}(e.disposeEffect),e}let pl=!0,fl=!1;const hl=new ul,ml={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function gl(e){e.metaKey||e.altKey||e.ctrlKey||(pl=!0)}function bl(){pl=!1}function vl(){"hidden"===this.visibilityState&&fl&&(pl=!0)}function yl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return pl||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!ml[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function xl(){const e=x.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",gl,!0),t.addEventListener("mousedown",bl,!0),t.addEventListener("pointerdown",bl,!0),t.addEventListener("touchstart",bl,!0),t.addEventListener("visibilitychange",vl,!0))},[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!yl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(fl=!0,hl.start(100,()=>{fl=!1}),t.current=!1,!0)},ref:e}}function Sl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function wl(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}function Cl(e){return"string"==typeof e}function El(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function Rl(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}const Al=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Il(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Br(e,Al),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=ks(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Hr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Hr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=El(Hr({},o,n)),s=Rl(n),l=Rl(o),c=t(a),u=ks(null==c?void 0:c.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=Hr({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=Hr({},c,r,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(Hr({},a,{externalSlotProps:s})),u=function(e,t,r){return void 0===e||Cl(e)?t:Hr({},t,{ownerState:Hr({},t.ownerState,r)})}(r,Hr({},l,{ref:sl(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}function kl(e){var t;return parseInt(x.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Pl=x.createContext(null);function Ml(){return x.useContext(Pl)}var Dl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Tl(e){const{children:t,theme:r}=e,n=Ml(),o=x.useMemo(()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Hr({},e,t)}(n,r);return null!=e&&(e[Dl]=null!==n),e},[r,n]);return or.jsx(Pl.Provider,{value:o,children:t})}const Ol=["value"],ql=x.createContext();function Ll(e){let{value:t}=e,r=Br(e,Ol);return or.jsx(ql.Provider,Hr({value:null==t||t},r))}const Nl=x.createContext(void 0);function jl({value:e,children:t}){return or.jsx(Nl.Provider,{value:e,children:t})}function _l({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ws(o.defaultProps,n):o.styleOverrides||o.variants?n:Ws(o,n)}({props:e,name:t,theme:{components:x.useContext(Nl)}})}const zl={};function Fl(e,t,r,n=!1){return x.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Hr({},t,{[e]:i}):i;return n?()=>a:a}return Hr({},t,e?{[e]:r}:r)},[e,t,r,n])}function $l(e){const{children:t,theme:r,themeId:n}=e,o=bs(zl),i=Ml()||zl,a=Fl(n,o,r),s=Fl(n,i,r,!0),l="rtl"===a.direction,c=function(e){const t=bs(),r=ol()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Us(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}},[o,r]),o?or.jsx(Ss,{styles:o}):null}(a);return or.jsx(Tl,{theme:s,children:or.jsx(Pi.Provider,{value:a,children:or.jsx(Ll,{value:l,children:or.jsxs(jl,{value:null==a?void 0:a.components,children:[c,t]})})})})}function Hl(e){return Hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hl(e)}function Bl(e){var t=function(e,t){if("object"!=Hl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Hl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Hl(t)?t:t+""}function Vl(e,t){return Hr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Wl,Ul={},Gl={exports:{}};function Kl(){return Wl||(Wl=1,(e=Gl).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),Gl.exports;var e}var Yl,Xl=Qt(Fr),Jl=Qt(Ks);function Zl(){if(Yl)return Ul;Yl=1;var e=Kl();Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.alpha=u,Ul.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},Ul.colorChannel=void 0,Ul.darken=d,Ul.decomposeColor=i,Ul.emphasize=f,Ul.getContrastRatio=function(e,t){const r=c(e),n=c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Ul.getLuminance=c,Ul.hexToRgb=o,Ul.hslToRgb=l,Ul.lighten=p,Ul.private_safeAlpha=function(e,t,r){try{return u(e,t)}catch(t){return e}},Ul.private_safeColorChannel=void 0,Ul.private_safeDarken=function(e,t,r){try{return d(e,t)}catch(t){return e}},Ul.private_safeEmphasize=function(e,t,r){try{return f(e,t)}catch(t){return e}},Ul.private_safeLighten=function(e,t,r){try{return p(e,t)}catch(t){return e}},Ul.recomposeColor=s,Ul.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(Xl),r=e(Jl);function n(e,t=0,n=1){return(0,r.default)(e,t,n)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const r=e.indexOf("("),n=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,t.default)(9,e));let a,s=e.substring(r+1,e.length-1);if("color"===n){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:n,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};Ul.colorChannel=a;function s(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function l(e){e=i(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),l=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=i(e),t=n(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s(e)}function f(e,t=.15){return c(e)>.5?d(e,t):p(e,t)}return Ul.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},Ul}var Ql=Zl();const ec=["mode","contrastThreshold","tonalOffset"],tc={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ir.white,default:ir.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},rc={text:{primary:ir.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ir.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function nc(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Ql.lighten(e.main,o):"dark"===t&&(e.dark=Ql.darken(e.main,i)))}function oc(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Br(e,ec),i=e.primary||function(e="light"){return"dark"===e?{main:vr,light:br,dark:yr}:{main:xr,light:yr,dark:Sr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:pr,light:dr,dark:hr}:{main:mr,light:fr,dark:gr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:lr,light:ar,dark:cr}:{main:cr,light:sr,dark:ur}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Cr,light:wr,dark:Rr}:{main:Rr,light:Er,dark:Ar}}(t),c=e.success||function(e="light"){return"dark"===e?{main:kr,light:Ir,dark:Mr}:{main:Dr,light:Pr,dark:Tr}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:qr,light:Or,dark:Nr}:{main:"#ed6c02",light:Lr,dark:jr}}(t);function d(e){return Ql.getContrastRatio(e,rc.text.primary)>=r?rc.text.primary:tc.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Hr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(zr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(zr(12,t?` (${t})`:"",JSON.stringify(e.main)));return nc(e,"light",o,n),nc(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:rc,light:tc};return ca(Hr({common:Hr({},ir),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:_r,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const ic=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ac={textTransform:"uppercase"},sc='"Roboto", "Helvetica", "Arial", sans-serif';function lc(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=sc,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,p=Br(r,ic),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,r,o,i)=>{return Hr({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===sc?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,ac),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ac),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ca(Hr({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function cc(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const uc=["none",cc(0,2,1,-1,0,1,1,0,0,1,3,0),cc(0,3,1,-2,0,2,2,0,0,1,5,0),cc(0,3,3,-2,0,3,4,0,0,1,8,0),cc(0,2,4,-1,0,4,5,0,0,1,10,0),cc(0,3,5,-1,0,5,8,0,0,1,14,0),cc(0,3,5,-1,0,6,10,0,0,1,18,0),cc(0,4,5,-2,0,7,10,1,0,2,16,1),cc(0,5,5,-3,0,8,10,1,0,3,14,2),cc(0,5,6,-3,0,9,12,1,0,3,16,2),cc(0,6,6,-3,0,10,14,1,0,4,18,3),cc(0,6,7,-4,0,11,15,1,0,4,20,3),cc(0,7,8,-4,0,12,17,2,0,5,22,4),cc(0,7,8,-4,0,13,19,2,0,5,24,4),cc(0,7,9,-4,0,14,21,2,0,5,26,4),cc(0,8,9,-5,0,15,22,2,0,6,28,5),cc(0,8,10,-5,0,16,24,2,0,6,30,5),cc(0,8,11,-5,0,17,26,2,0,6,32,5),cc(0,9,11,-5,0,18,28,2,0,7,34,6),cc(0,9,12,-6,0,19,29,2,0,7,36,6),cc(0,10,13,-6,0,20,31,3,0,8,38,7),cc(0,10,13,-6,0,21,33,3,0,8,40,7),cc(0,10,14,-6,0,22,35,3,0,8,42,7),cc(0,11,14,-7,0,23,36,3,0,9,44,8),cc(0,11,15,-7,0,24,38,3,0,9,46,8)],dc=["duration","easing","delay"],pc={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)"},fc={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hc(e){return`${Math.round(e)}ms`}function mc(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function gc(e){const t=Hr({},pc,e.easing),r=Hr({},fc,e.duration);return Hr({getAutoHeightDuration:mc,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Br(n,dc),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:hc(o)} ${i} ${"string"==typeof a?a:hc(a)}`).join(",")}},e,{easing:t,duration:r})}const bc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},vc=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function yc(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Br(e,vc);if(e.vars&&void 0===e.generateCssVars)throw new Error(zr(18));const s=oc(n),l=ms(e);let c=ca(l,{mixins:Vl(l.breakpoints,r),palette:s,shadows:uc.slice(),typography:lc(s,i),transitions:gc(o),zIndex:Hr({},bc)});return c=ca(c,a),c=t.reduce((e,t)=>ca(e,t),c),c.unstable_sxConfig=Hr({},us,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ps({sx:e,theme:this})},c}const xc=yc();function Sc(){const e=ys(xc);return e[$r]||e}var wc,Cc={},Ec={exports:{}};function Rc(){return wc||(wc=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ec)),Ec.exports}var Ac,Ic={exports:{}};function kc(){return Ac||(Ac=1,(e=Ic).exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports),Ic.exports;var e}var Pc,Mc=Qt(aa),Dc=Qt(ua),Tc=Qt(xa),Oc=Qt(Vs),qc=Qt(gs),Lc=Qt(Es);function Nc(){if(Pc)return Cc;Pc=1;var e=Kl();Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.default=function(e={}){const{themeId:i,defaultTheme:s=f,rootShouldForwardProp:l=d,slotShouldForwardProp:u=d}=e,p=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:s,themeId:i}))}));return p.__mui_systemSx=!0,(e,a={})=>{(0,n.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:f,slot:v,skipVariantsResolver:y,skipSx:x,overridesResolver:S=g(h(v))}=a,w=(0,r.default)(a,c),C=f&&f.startsWith("Mui")||v?"components":"custom",E=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,R=x||!1;let A=d;"Root"===v||"root"===v?A=l:v?A=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);const I=(0,n.default)(e,(0,t.default)({shouldForwardProp:A,label:void 0},w)),k=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?r=>{const n=m({theme:r.theme,defaultTheme:s,themeId:i});return b(e,(0,t.default)({},r,{theme:n}),n.modularCssLayers?C:void 0)}:e,P=(r,...n)=>{let o=k(r);const a=n?n.map(k):[];f&&S&&a.push(e=>{const r=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));if(!r.components||!r.components[f]||!r.components[f].styleOverrides)return null;const n=r.components[f].styleOverrides,o={};return Object.entries(n).forEach(([n,i])=>{o[n]=b(i,(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),S(e,o)}),f&&!E&&a.push(e=>{var r;const n=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));return b({variants:null==n||null==(r=n.components)||null==(r=r[f])?void 0:r.variants},(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),R||a.push(p);const l=a.length-n.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");o=[...r,...e],o.raw=[...r.raw,...e]}const c=I(o,...a);return e.muiName&&(c.muiName=e.muiName),c};return I.withConfig&&(P.withConfig=I.withConfig),P}},Cc.shouldForwardProp=d,Cc.systemDefaultTheme=void 0;var t=e(Rc()),r=e(kc()),n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Mc),o=Dc;e(Tc),e(Oc);var i=e(qc),a=e(Lc);const s=["ownerState"],l=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function p(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=Cc.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function g(e){return e?(t,r)=>r[e]:null}function b(e,o,i){let{ownerState:a}=o,c=(0,r.default)(o,s);const u="function"==typeof e?e((0,t.default)({ownerState:a},c)):e;if(Array.isArray(u))return u.flatMap(e=>b(e,(0,t.default)({ownerState:a},c),i));if(u&&"object"==typeof u&&Array.isArray(u.variants)){const{variants:e=[]}=u;let o=(0,r.default)(u,l);return e.forEach(e=>{let r=!0;if("function"==typeof e.props?r=e.props((0,t.default)({ownerState:a},c,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&c[t]!==e.props[t]&&(r=!1)}),r){Array.isArray(o)||(o=[o]);const r="function"==typeof e.style?e.style((0,t.default)({ownerState:a},c,a)):e.style;o.push(i?p((0,n.internal_serializeStyles)(r),i):r)}}),o}return i?p((0,n.internal_serializeStyles)(u),i):u}return Cc}function jc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const _c=e=>jc(e)&&"classes"!==e,zc=Zt(Nc())({themeId:$r,defaultTheme:xc,rootShouldForwardProp:_c}),Fc=["theme"];function $c(e){let{theme:t}=e,r=Br(e,Fc);const n=t[$r];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Hr({},n,{vars:null}):t&&!t.vars&&(o=Hr({},t,{vars:null}))),or.jsx($l,Hr({},r,{themeId:n?$r:void 0,theme:o}))}const Hc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Bc(e){return _l(e)}function Vc(e){return Ds("MuiSvgIcon",e)}Ts("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Uc=zc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${ya(r.color)}`],t[`fontSize${ya(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),Gc=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=r,p=Br(r,Wc),f=x.isValidElement(n)&&"svg"===n.type,h=Hr({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return wl({root:["root","inherit"!==t&&`color${ya(t)}`,`fontSize${ya(r)}`]},Vc,n)})(h);return or.jsxs(Uc,Hr({as:a,className:ks(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,u?or.jsx("title",{children:u}):null]}))});function Kc(e,t){function r(r,n){return or.jsx(Gc,Hr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Gc.muiName,x.memo(x.forwardRef(r))}function Yc(e,t){return Yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yc(e,t)}function Xc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yc(e,t)}Gc.muiName="SvgIcon";var Jc=!1,Zc=S.createContext(null),Qc="unmounted",eu="exited",tu="entering",ru="entered",nu="exiting",ou=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=eu,n.appearStatus=tu):o=ru:o=t.unmountOnExit||t.mountOnEnter?Qc:eu,n.state={status:o},n.nextCallback=null,n}Xc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Qc?{status:eu}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==tu&&r!==ru&&(t=tu):r!==tu&&r!==ru||(t=nu)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===tu){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:B.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===eu&&this.setState({status:Qc})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[B.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Jc?this.safeSetState({status:ru},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:tu},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:ru},function(){t.props.onEntered(i,a)})})}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:B.findDOMNode(this);t&&!Jc?(this.props.onExit(n),this.safeSetState({status:nu},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:eu},function(){e.props.onExited(n)})})})):this.safeSetState({status:eu},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:B.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Qc)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=Br(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Zc.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function iu(){}function au(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function su(e,t){var r=Object.create(null);return e&&R.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&C(e)?t(e):e}(e)}),r}function lu(e,t,r){return null!=r[t]?r[t]:e.props[t]}function cu(e,t,r){var n=su(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];s[o[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(C(a)){var s=i in t,l=i in n,c=t[i],u=C(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&C(c)&&(o[i]=E(a,{onExited:r.bind(null,a),in:c.props.in,exit:lu(a,"exit",e),enter:lu(a,"enter",e)})):o[i]=E(a,{in:!1}):o[i]=E(a,{onExited:r.bind(null,a),in:!0,exit:lu(a,"exit",e),enter:lu(a,"enter",e)})}}),o}ou.contextType=Zc,ou.propTypes={},ou.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:iu,onEntering:iu,onEntered:iu,onExit:iu,onExiting:iu,onExited:iu},ou.UNMOUNTED=Qc,ou.EXITED=eu,ou.ENTERING=tu,ou.ENTERED=ru,ou.EXITING=nu;var uu=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},du=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(au(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Xc(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,su(r.children,function(e){return E(e,{onExited:n.bind(null,e),in:!0,appear:lu(e,"appear",r),enter:lu(e,"enter",r),exit:lu(e,"exit",r)})})):cu(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=su(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=Hr({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Br(e,["component","childFactory"]),o=this.state.contextValue,i=uu(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(Zc.Provider,{value:o},i):S.createElement(Zc.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);du.propTypes={},du.defaultProps={component:"div",childFactory:function(e){return e}};const pu=e=>e.scrollTop;function fu(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function hu(e){return Ds("MuiPaper",e)}Ts("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const mu=["className","component","elevation","square","variant"],gu=zc("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return Hr({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Hr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ql.alpha("#fff",Hc(t.elevation))}, ${Ql.alpha("#fff",Hc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),bu=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Br(r,mu),c=Hr({},r,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return wl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},hu,o)})(c);return or.jsx(gu,Hr({as:o,ownerState:c,className:ks(u.root,n),ref:t},l))});const vu=Ts("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),yu=["center","classes","className"];let xu,Su,wu,Cu,Eu=e=>e;const Ru=Vi(xu||(xu=Eu`
|
|
18
18
|
0% {
|
|
19
19
|
transform: scale(0);
|
|
20
20
|
opacity: 0.1;
|
|
@@ -24,7 +24,7 @@ function na(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldFo
|
|
|
24
24
|
transform: scale(1);
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
}
|
|
27
|
-
`)),
|
|
27
|
+
`)),Au=Vi(Su||(Su=Eu`
|
|
28
28
|
0% {
|
|
29
29
|
opacity: 1;
|
|
30
30
|
}
|
|
@@ -32,7 +32,7 @@ function na(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldFo
|
|
|
32
32
|
100% {
|
|
33
33
|
opacity: 0;
|
|
34
34
|
}
|
|
35
|
-
`)),
|
|
35
|
+
`)),Iu=Vi(wu||(wu=Eu`
|
|
36
36
|
0% {
|
|
37
37
|
transform: scale(1);
|
|
38
38
|
}
|
|
@@ -44,7 +44,7 @@ function na(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldFo
|
|
|
44
44
|
100% {
|
|
45
45
|
transform: scale(1);
|
|
46
46
|
}
|
|
47
|
-
`)),
|
|
47
|
+
`)),ku=zc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Pu=zc(function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=x.useState(!1),p=ks(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=ks(r.child,u&&r.childLeaving,n&&r.childPulsate);return s||u||d(!0),x.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}},[l,s,c]),or.jsx("span",{className:p,style:f,children:or.jsx("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})(Cu||(Cu=Eu`
|
|
48
48
|
opacity: 0;
|
|
49
49
|
position: absolute;
|
|
50
50
|
|
|
@@ -87,19 +87,19 @@ function na(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldFo
|
|
|
87
87
|
animation-iteration-count: infinite;
|
|
88
88
|
animation-delay: 200ms;
|
|
89
89
|
}
|
|
90
|
-
`),hu.rippleVisible,Su,550,({theme:e})=>e.transitions.easing.easeInOut,hu.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,hu.child,hu.childLeaving,wu,550,({theme:e})=>e.transitions.easing.easeInOut,hu.childPulsate,Cu,({theme:e})=>e.transitions.easing.easeInOut),Au=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Br(r,mu),[s,l]=x.useState([]),c=x.useRef(0),u=x.useRef(null);x.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const d=x.useRef(!1),p=dl(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l(e=>[...e,or.jsx(Ru,{classes:{ripple:ks(o.ripple,hu.ripple),rippleVisible:ks(o.rippleVisible,hu.rippleVisible),ripplePulsate:ks(o.ripplePulsate,hu.ripplePulsate),child:ks(o.child,hu.child),childLeaving:ks(o.childLeaving,hu.childLeaving),childPulsate:ks(o.childPulsate,hu.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)]),c.current+=1,u.current=a},[o]),g=x.useCallback((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:r})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:r})},[n,m,p]),b=x.useCallback(()=>{g({},{pulsate:!0})},[g]),v=x.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,()=>{v(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),u.current=t},[p]);return x.useImperativeHandle(t,()=>({pulsate:b,start:g,stop:v}),[b,g,v]),or.jsx(Eu,Hr({className:ks(hu.root,o.root,i),ref:h},a,{children:or.jsx(su,{component:null,exit:!0,children:s})}))});function Iu(e){return Ds("MuiButtonBase",e)}const ku=Ts("MuiButtonBase",["root","disabled","focusVisible"]),Pu=["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"],Mu=Lc("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"},[`&.${ku.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Du=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:k=0,TouchRippleProps:P,touchRippleRef:M,type:D}=r,T=Br(r,Pu),O=x.useRef(null),q=x.useRef(null),L=sl(q,M),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=xl(),[F,$]=x.useState(!1);l&&F&&$(!1),x.useImperativeHandle(n,()=>({focusVisible:()=>{$(!0),O.current.focus()}}),[]);const[H,B]=x.useState(!1);x.useEffect(()=>{B(!0)},[]);const V=H&&!c&&!l;function W(e,t,r=u){return al(n=>{t&&t(n);return!r&&q.current&&q.current[e](n),!0})}x.useEffect(()=>{F&&d&&!c&&H&&q.current.pulsate()},[c,d,F,H]);const U=W("start",w),G=W("stop",m),K=W("stop",g),Y=W("stop",E),X=W("stop",e=>{F&&e.preventDefault(),C&&C(e)}),J=W("start",I),Z=W("stop",R),Q=W("stop",A),ee=W("stop",e=>{_(e),!1===N.current&&$(!1),f&&f(e)},!1),te=al(e=>{O.current||(O.current=e.currentTarget),j(e),!0===N.current&&($(!0),v&&v(e)),b&&b(e)}),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=al(e=>{d&&!ne.current&&F&&q.current&&" "===e.key&&(ne.current=!0,q.current.stop(e,()=>{q.current.start(e)})),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=al(e=>{d&&" "===e.key&&q.current&&F&&!e.defaultPrevented&&(ne.current=!1,q.current.stop(e,()=>{q.current.pulsate(e)})),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=sl(t,z,O),ce=Hr({},r,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:k,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=wl({root:["root",t&&"disabled",r&&"focusVisible"]},Iu,o);return r&&n&&(i.root+=` ${n}`),i})(ce);return or.jsxs(Mu,Hr({as:ae,className:ks(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:k,type:D},se,T,{children:[i,V?or.jsx(Au,Hr({ref:L,center:o},P)):null]}))});function Tu(e){return Ds("MuiIconButton",e)}const Ou=Ts("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),qu=["edge","children","className","color","disabled","disableFocusRipple","size"],Lu=Lc(Du,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${ya(r.color)}`],r.edge&&t[`edge${ya(r.edge)}`],t[`size${ya(r.size)}`]]}})(({theme:e,ownerState:t})=>Hr({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Jl.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return Hr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Hr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":Hr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jl.alpha(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Ou.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Nu=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=r,u=Br(r,qu),d=Hr({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return wl({root:["root",r&&"disabled","default"!==n&&`color${ya(n)}`,o&&`edge${ya(o)}`,`size${ya(i)}`]},Tu,t)})(d);return or.jsx(Lu,Hr({className:ks(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))});function ju(e){return Ds("MuiTypography",e)}Ts("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _u=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],zu=Lc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${ya(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Hr({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})),Fu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},$u={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Hu=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiTypography"}),n=(e=>$u[e]||e)(r.color),o=Cs(Hr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Fu}=o,f=Br(o,_u),h=Hr({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||Fu[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return wl({root:["root",i,"inherit"!==e.align&&`align${ya(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},ju,a)})(h);return or.jsx(zu,Hr({as:m,ref:t,ownerState:h,className:ks(g.root,a)},f))});const Bu=x.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),s=sl(x.isValidElement(r)?kl(r):null,t);if(Us(()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),Us(()=>{if(i&&!o)return tl(t,i),()=>{tl(t,null)}},[t,i,o]),o){if(x.isValidElement(r)){const e={ref:s};return x.cloneElement(r,e)}return or.jsx(x.Fragment,{children:r})}return or.jsx(x.Fragment,{children:i?H.createPortal(r,i):i})}),Vu=["onChange","maxRows","minRows","style","value"];function Wu(e){return parseInt(e,10)||0}const Uu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Gu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Ku=x.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Br(e,Vu),{current:l}=x.useRef(null!=a),c=x.useRef(null),u=sl(t,c),d=x.useRef(null),p=x.useRef(null),f=x.useCallback(()=>{const t=c.current,r=p.current;if(!t||!r)return;const i=el(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=Wu(i.paddingBottom)+Wu(i.paddingTop),l=Wu(i.borderBottomWidth)+Wu(i.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-u)<=1}},[n,o,e.placeholder]),h=al(()=>{const e=c.current,t=f();if(!e||!t||Gu(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r}),m=x.useCallback(()=>{const e=c.current,t=f();if(!e||!t||Gu(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=x.useRef(-1);Us(()=>{const e=Zs(m),t=null==c?void 0:c.current;if(!t)return;const r=el(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[f,m,h]),Us(()=>{m()});return or.jsxs(x.Fragment,{children:[or.jsx("textarea",Hr({value:a,onChange:e=>{l||m(),r&&r(e)},ref:u,rows:o,style:i},s)),or.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Hr({},Uu,i,{paddingTop:0,paddingBottom:0})})]})});function Yu({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const Xu=x.createContext(void 0);function Ju(){return x.useContext(Xu)}function Zu(e){return or.jsx(Ss,Hr({},e,{defaultTheme:vc,themeId:$r}))}function Qu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ed(e,t=!1){return e&&(Qu(e.value)&&""!==e.value||t&&Qu(e.defaultValue)&&""!==e.defaultValue)}function td(e){return Ds("MuiInputBase",e)}const rd=Ts("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),nd=["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"],od=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ya(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},id=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},ad=Lc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:od})(({theme:e,ownerState:t})=>Hr({},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",[`&.${rd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Hr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),sd=Lc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:id})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Hr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Hr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${rd.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},[`&.${rd.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"})}),ld=or.jsx(Zu,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),cd=x.forwardRef(function(e,t){var r;const n=zc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:A,onFocus:I,onKeyDown:k,onKeyUp:P,placeholder:M,readOnly:D,renderSuffix:T,rows:O,slotProps:q={},slots:L={},startAdornment:N,type:j="text",value:_}=n,z=Br(n,nd),F=null!=b.value?b.value:_,{current:$}=x.useRef(null!=F),H=x.useRef(),B=x.useCallback(e=>{},[]),V=sl(H,v,b.ref,B),[W,U]=x.useState(!1),G=Ju(),K=Yu({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:W,x.useEffect(()=>{!G&&d&&W&&(U(!1),E&&E())},[G,d,W,E]);const Y=G&&G.onFilled,X=G&&G.onEmpty,J=x.useCallback(e=>{ed(e)?Y&&Y():X&&X()},[Y,X]);Us(()=>{$&&J({value:F})},[F,J,$]);x.useEffect(()=>{J(H.current)},[]);let Z=g,Q=b;w&&"input"===Z&&(Q=Hr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Ku);x.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=Hr({},n,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:N,type:j}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return wl({root:["root",`color${ya(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ya(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},td,t)})(ee),re=L.root||l.Root||ad,ne=q.root||c.root||{},oe=L.input||l.Input||sd;return Q=Hr({},Q,null!=(r=q.input)?r:c.input),or.jsxs(x.Fragment,{children:[!p&&ld,or.jsxs(re,Hr({},ne,!Cl(re)&&{ownerState:Hr({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:ks(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,or.jsx(Xu.Provider,{value:null,children:or.jsx(oe,Hr({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:M,readOnly:D,required:K.required,rows:O,value:F,onKeyDown:k,onKeyUp:P,type:j},Q,!Cl(oe)&&{as:Z,ownerState:Hr({},ee,Q.ownerState)},{ref:V,className:ks(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(zr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(Hr({},K,{startAdornment:N})):null]}))]})});function ud(e){return Ds("MuiInput",e)}const dd=Hr({},rd,Ts("MuiInput",["root","underline","input"]));function pd(e){return Ds("MuiOutlinedInput",e)}const fd=Hr({},rd,Ts("MuiOutlinedInput",["root","notchedOutline","input"]));function hd(e){return Ds("MuiFilledInput",e)}const md=Hr({},rd,Ts("MuiFilledInput",["root","underline","input"]));var gd=Vc(or.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const bd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],vd={entering:{opacity:1},entered:{opacity:1}},yd=x.forwardRef(function(e,t){const r=yc(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=eu}=e,v=Br(e,bd),y=x.useRef(null),S=sl(y,kl(a),t),w=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w((e,t)=>{lu(e);const n=cu({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)}),R=w(u),A=w(h),I=w(e=>{const t=cu({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)}),k=w(f);return or.jsx(b,Hr({appear:i,in:l,nodeRef:y,onEnter:E,onEntered:R,onEntering:C,onExit:I,onExited:k,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,Hr({style:Hr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},vd[e],m,a.props.style),ref:S},t))}))});function xd(e){return Ds("MuiBackdrop",e)}Ts("MuiBackdrop",["root","invisible"]);const Sd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],wd=Lc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>Hr({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"})),Cd=x.forwardRef(function(e,t){var r,n,o;const i=zc({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=yd,transitionDuration:g}=i,b=Br(i,Sd),v=Hr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return wl({root:["root",r&&"invisible"]},xd,t)})(v),x=null!=(r=f.root)?r:u.root;return or.jsx(m,Hr({in:p,timeout:g},b,{children:or.jsx(wd,Hr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:c.Root)?n:l,className:ks(y.root,s,null==x?void 0:x.className),ownerState:Hr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),Ed=Ts("MuiBox",["root"]),Rd=bc(),Ad=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=na("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ps);return x.forwardRef(function(e,a){const s=ys(r),l=Cs(e),{className:c,component:u="div"}=l,d=Br(l,Ps);return or.jsx(i,Hr({as:u,ref:a,className:ks(c,o?o(n):n),theme:t&&s[t]||s},d))})}({themeId:$r,defaultTheme:Rd,defaultClassName:Ed.root,generateClassName:As.generate});function Id(e){return Ds("MuiButton",e)}const kd=Ts("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"]),Pd=x.createContext({}),Md=x.createContext(void 0),Dd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Td=e=>Hr({},"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}}),Od=Lc(Du,{shouldForwardProp:e=>qc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ya(r.color)}`],t[`size${ya(r.size)}`],t[`${r.variant}Size${ya(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Hr({},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":Hr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Jl.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})`:Jl.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})`:Jl.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":Hr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${kd.focusVisible}`]:Hr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${kd.disabled}`]:Hr({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 ${Jl.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${kd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${kd.disabled}`]:{boxShadow:"none"}}),qd=Lc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ya(r.size)}`]]}})(({ownerState:e})=>Hr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Td(e))),Ld=Lc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ya(r.size)}`]]}})(({ownerState:e})=>Hr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Td(e))),Nd=x.forwardRef(function(e,t){const r=x.useContext(Pd),n=x.useContext(Md),o=zc({props:Ws(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Br(o,Dd),S=Hr({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Hr({},a,wl({root:["root",i,`${i}${ya(t)}`,`size${ya(o)}`,`${i}Size${ya(o)}`,`color${ya(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ya(o)}`],endIcon:["icon","endIcon",`iconSize${ya(o)}`]},Id,a))})(S),C=g&&or.jsx(qd,{className:w.startIcon,ownerState:S,children:g}),E=p&&or.jsx(Ld,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return or.jsxs(Od,Hr({ownerState:S,className:ks(r.className,w.root,l,R),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:ks(w.focusVisible,f),ref:t,type:b},y,{classes:w,children:[C,i,E]}))});function jd(e){return Ds("PrivateSwitchBase",e)}Ts("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _d=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],zd=Lc(Du,{name:"MuiSwitchBase"})(({ownerState:e})=>Hr({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),Fd=Lc("input",{name:"MuiSwitchBase",shouldForwardProp:qc})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),$d=x.forwardRef(function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,C=Br(e,_d),[E,R]=il({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),A=Ju();let I=s;A&&void 0===I&&(I=A.disabled);const k="checkbox"===S||"radio"===S,P=Hr({},e,{checked:E,disabled:I,disableFocusRipple:l,edge:c}),M=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return wl({root:["root",r&&"checked",n&&"disabled",o&&`edge${ya(o)}`],input:["input"]},jd,t)})(P);return or.jsxs(zd,Hr({component:"span",className:ks(M.root,i),centerRipple:!0,focusRipple:!l,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),A&&A.onFocus&&A.onFocus(e)},onBlur:e=>{m&&m(e),A&&A.onBlur&&A.onBlur(e)},ownerState:P,ref:t},C,{children:[or.jsx(Fd,Hr({autoFocus:r,checked:n,defaultChecked:a,className:M.input,disabled:I,id:k?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:P,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:u]}))});var Hd=Vc(or.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Bd=Vc(or.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Vd=Vc(or.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Wd(e){return Ds("MuiCheckbox",e)}const Ud=Ts("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Gd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Kd=Lc($d,{shouldForwardProp:e=>qc(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ya(r.size)}`],"default"!==r.color&&t[`color${ya(r.color)}`]]}})(({theme:e,ownerState:t})=>Hr({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jl.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Ud.checked}, &.${Ud.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ud.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Yd=or.jsx(Bd,{}),Xd=or.jsx(Hd,{}),Jd=or.jsx(Vd,{}),Zd=x.forwardRef(function(e,t){var r,n;const o=zc({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Yd,color:a="primary",icon:s=Xd,indeterminate:l=!1,indeterminateIcon:c=Jd,inputProps:u,size:d="medium",className:p}=o,f=Br(o,Gd),h=l?c:s,m=l?c:i,g=Hr({},o,{color:a,indeterminate:l,size:d}),b=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return Hr({},t,wl({root:["root",r&&"indeterminate",`color${ya(n)}`,`size${ya(o)}`]},Wd,t))})(g);return or.jsx(Kd,Hr({type:"checkbox",inputProps:Hr({"data-indeterminate":l},u),icon:x.cloneElement(h,{fontSize:null!=(r=h.props.fontSize)?r:d}),checkedIcon:x.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:d}),ownerState:g,ref:t,className:ks(b.root,p)},f,{classes:b}))});function Qd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ep(e){return parseInt(el(e).getComputedStyle(e).paddingRight,10)||0}function tp(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Qd(e,o)})}function rp(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function np(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Qs(e);return t.body===e?el(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Sl(Qs(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ep(n)+e}px`;const t=Qs(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ep(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=Qs(n).body;else{const t=n.parentElement,r=el(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const op=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ip(e){const t=[],r=[];return Array.from(e.querySelectorAll(op)).forEach((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ap(){return!0}function sp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=ip,isEnabled:a=ap,open:s}=e,l=x.useRef(!1),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=sl(kl(t),h),g=x.useRef(null);x.useEffect(()=>{s&&h.current&&(f.current=!r)},[r,s]),x.useEffect(()=>{if(!s||!h.current)return;const e=Qs(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),x.useEffect(()=>{if(!s||!h.current)return;const e=Qs(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return or.jsxs(x.Fragment,{children:[or.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),or.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const lp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Qd(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);tp(t,e.mount,e.modalRef,n,!0);const o=rp(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=rp(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=np(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=rp(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Qd(e.modalRef,t),tp(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Qd(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function cp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=lp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=sl(h,d),[g,b]=x.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=al(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Qs(f.current).body;o.add(S(),e),h.current&&w()}),E=x.useCallback(()=>o.isTopModal(S()),[o]),R=al(e=>{f.current=e,e&&(u&&E()?w():h.current&&Qd(h.current,y))}),A=x.useCallback(()=>{o.remove(S(),y)},[y,o]);x.useEffect(()=>()=>{A()},[A]),x.useEffect(()=>{u?C():v&&i||A()},[u,A,v,i,C]);const I=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},k=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=El(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Hr({},r,t);return Hr({role:"presentation"},n,{onKeyDown:I(n),ref:m})},getBackdropProps:(e={})=>Hr({"aria-hidden":!0},e,{onClick:k(e),open:u}),getTransitionProps:()=>({onEnter:Js(()=>{b(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Js(()=>{b(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function up(e){return Ds("MuiModal",e)}Ts("MuiModal",["root","hidden","backdrop"]);const dp=["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"],pp=Lc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Hr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),fp=Lc(Cd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),hp=x.forwardRef(function(e,t){var r,n,o,i,a,s;const l=zc({name:"MuiModal",props:e}),{BackdropComponent:c=fp,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:k,slotProps:P,slots:M}=l,D=Br(l,dp),T=Hr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:q,getTransitionProps:L,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=cp(Hr({},T,{rootRef:t})),F=Hr({},T,{exited:_}),$=(e=>{const{open:t,exited:r,classes:n}=e;return wl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},up,n)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=L();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==M?void 0:M.root)?n:g.Root)?r:pp,V=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:c,W=null!=(a=null==P?void 0:P.root)?a:b.root,U=null!=(s=null==P?void 0:P.backdrop)?s:b.backdrop,G=Il({elementType:B,externalSlotProps:W,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:ks(d,null==W?void 0:W.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=Il({elementType:V,externalSlotProps:U,additionalProps:u,getSlotProps:e=>q(Hr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ks(null==U?void 0:U.className,null==u?void 0:u.className,null==$?void 0:$.backdrop),ownerState:F});return A||k||z&&!_?or.jsx(Bu,{ref:N,container:h,disablePortal:w,children:or.jsxs(B,Hr({},G,{children:[!R&&c?or.jsx(V,Hr({},K)):null,or.jsx(sp,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:j,open:k,children:x.cloneElement(f,H)})]}))}):null});function mp(e){return Ds("MuiDivider",e)}const gp=Ts("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),bp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],vp=Lc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Hr({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)`:Jl.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})=>Hr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Hr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Hr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Hr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),yp=Lc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Hr({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)`})),xp=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Br(r,bp),h=Hr({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return wl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},mp,n)})(h);return or.jsx(vp,Hr({as:a,className:ks(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?or.jsx(yp,{className:m.wrapper,ownerState:h,children:o}):null}))});xp.muiSkipListHighlight=!0;const Sp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],wp=Lc(ad,{shouldForwardProp:e=>qc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...od(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Hr({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${md.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${md.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${md.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${md.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${md.disabled}, .${md.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${md.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Hr({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),Cp=Lc(sd,{name:"MuiFilledInput",slot:"Input",overridesResolver:id})(({theme:e,ownerState:t})=>Hr({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Ep=x.forwardRef(function(e,t){var r,n,o,i;const a=zc({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Br(a,Sp),g=Hr({},a,{fullWidth:c,inputComponent:u,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Hr({},t,wl({root:["root",!r&&"underline"],input:["input"]},hd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?ca(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:wp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Cp;return or.jsx(cd,Hr({slots:{root:x,input:S},componentsProps:y,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:h},m,{classes:b}))});Ep.muiName="Input";const Rp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ap(e){return`scale(${e}, ${e**2})`}const Ip={entering:{opacity:1,transform:Ap(1)},entered:{opacity:1,transform:"none"}},kp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Pp=x.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=eu}=e,g=Br(e,Rp),b=dl(),v=x.useRef(),y=yc(),S=x.useRef(null),w=sl(S,kl(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(c),R=C((e,t)=>{lu(e);const{duration:r,delay:n,easing:o}=cu({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:kp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)}),A=C(l),I=C(p),k=C(e=>{const{duration:t,delay:r,easing:n}=cu({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:kp?o:.666*o,delay:kp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Ap(.75),u&&u(e)}),P=C(d);return or.jsx(m,Hr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:E,onExit:k,onExited:P,onExiting:I,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,Hr({style:Hr({opacity:0,transform:Ap(.75),visibility:"exited"!==e||a?void 0:"hidden"},Ip[e],f,o.props.style),ref:w},t))}))});Pp.muiSupportAuto=!0;const Mp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Dp=Lc(ad,{shouldForwardProp:e=>qc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...od(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Hr({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${dd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${dd.disabled}, .${dd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${dd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Tp=Lc(sd,{name:"MuiInput",slot:"Input",overridesResolver:id})({}),Op=x.forwardRef(function(e,t){var r,n,o,i;const a=zc({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Br(a,Mp),b=(e=>{const{classes:t,disableUnderline:r}=e;return Hr({},t,wl({root:["root",!r&&"underline"],input:["input"]},ud,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:c)?ca(null!=f?f:c,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Dp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Tp;return or.jsx(cd,Hr({slots:{root:x,input:S},slotProps:y,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))});function qp(e){return Ds("MuiInputAdornment",e)}Op.muiName="Input";const Lp=Ts("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Np;const jp=["children","className","component","disablePointerEvents","disableTypography","position","variant"],_p=Lc("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ya(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})(({theme:e,ownerState:t})=>Hr({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Lp.positionStart}&:not(.${Lp.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),zp=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=r,u=Br(r,jp),d=Ju()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=Hr({},r,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return wl({root:["root",r&&"disablePointerEvents",o&&`position${ya(o)}`,a,n&&"hiddenLabel",i&&`size${ya(i)}`]},qp,t)})(f);return or.jsx(Xu.Provider,{value:null,children:or.jsx(_p,Hr({as:i,ownerState:f,className:ks(h.root,o),ref:t},u,{children:"string"!=typeof n||s?or.jsxs(x.Fragment,{children:["start"===l?Np||(Np=or.jsx("span",{className:"notranslate",children:""})):null,n]}):or.jsx(Hu,{color:"text.secondary",children:n})}))})});function Fp(e){return Ds("MuiLink",e)}const $p=Ts("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Hp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Bp=({theme:e,ownerState:t})=>{const r=(e=>Hp[e]||e)(t.color),n=Sa(e,`palette.${r}`,!1)||t.color,o=Sa(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Jl.alpha(n,.4)},Vp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Wp=Lc(Hu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ya(r.underline)}`],"button"===r.component&&t.button]}})(({theme:e,ownerState:t})=>Hr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Hr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Bp({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$p.focusVisible}`]:{outline:"auto"}})),Up=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:c="always",variant:u="inherit",sx:d}=r,p=Br(r,Vp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=xl(),[b,v]=x.useState(!1),y=sl(t,g),S=Hr({},r,{color:o,component:i,focusVisible:b,underline:c,variant:u}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return wl({root:["root",`underline${ya(o)}`,"button"===r&&"button",n&&"focusVisible"]},Fp,t)})(S);return or.jsx(Wp,Hr({color:o,className:ks(w.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:S,variant:u,sx:[...Object.keys(Hp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),Gp=x.createContext({});function Kp(e){return Ds("MuiList",e)}Ts("MuiList",["root","padding","dense","subheader"]);const Yp=["children","className","component","dense","disablePadding","subheader"],Xp=Lc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>Hr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Jp=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,c=Br(r,Yp),u=x.useMemo(()=>({dense:a}),[a]),d=Hr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return wl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Kp,t)})(d);return or.jsx(Gp.Provider,{value:u,children:or.jsxs(Xp,Hr({as:i,className:ks(p.root,o),ref:t,ownerState:d},c,{children:[l,n]}))})});function Zp(e){return Ds("MuiListItem",e)}const Qp=Ts("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),ef=Ts("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function tf(e){return Ds("MuiListItemSecondaryAction",e)}Ts("MuiListItemSecondaryAction",["root","disableGutters"]);const rf=["className"],nf=Lc("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Hr({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),of=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=Br(r,rf),i=Hr({},r,{disableGutters:x.useContext(Gp).disableGutters}),a=(e=>{const{disableGutters:t,classes:r}=e;return wl({root:["root",t&&"disableGutters"]},tf,r)})(i);return or.jsx(nf,Hr({className:ks(a.root,n),ownerState:i,ref:t},o))});of.muiName="ListItemSecondaryAction";const af=["className"],sf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],lf=Lc("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>Hr({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Hr({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${ef.root}`]:{paddingRight:48}},{[`&.${Qp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qp.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"}},[`&.${Qp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Jl.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})`:Jl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),cf=Lc("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),uf=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:b=!1,focusVisibleClassName:v,secondaryAction:y,selected:S=!1,slotProps:w={},slots:C={}}=r,E=Br(r.ContainerProps,af),R=Br(r,sf),A=x.useContext(Gp),I=x.useMemo(()=>({dense:f||A.dense||!1,alignItems:n,disableGutters:m}),[n,A.dense,f,m]),k=x.useRef(null);Us(()=>{o&&k.current&&k.current.focus()},[o]);const P=x.Children.toArray(a),M=P.length&&(D=P[P.length-1],T=["ListItemSecondaryAction"],x.isValidElement(D)&&-1!==T.indexOf(null!=(O=D.type.muiName)?O:null==(q=D.type)||null==(q=q._payload)||null==(q=q.value)?void 0:q.muiName));var D,T,O,q;const L=Hr({},r,{alignItems:n,autoFocus:o,button:i,dense:I.dense,disabled:h,disableGutters:m,disablePadding:g,divider:b,hasSecondaryAction:M,selected:S}),N=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return wl({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},Zp,n)})(L),j=sl(k,t),_=C.root||c.Root||lf,z=w.root||u.root||{},F=Hr({className:ks(N.root,z.className,s),disabled:h},R);let $=l||"li";return i&&(F.component=l||"div",F.focusVisibleClassName=ks(Qp.focusVisible,v),$=Du),M?($=F.component||l?$:"div","li"===d&&("li"===$?$="div":"li"===F.component&&(F.component="div")),or.jsx(Gp.Provider,{value:I,children:or.jsxs(cf,Hr({as:d,className:ks(N.container,p),ref:j,ownerState:L},E,{children:[or.jsx(_,Hr({},z,!Cl(_)&&{as:$,ownerState:Hr({},L,z.ownerState)},F,{children:P})),P.pop()]}))})):or.jsx(Gp.Provider,{value:I,children:or.jsxs(_,Hr({},z,{as:$,ref:j},!Cl(_)&&{ownerState:Hr({},L,z.ownerState)},F,{children:[P,y&&or.jsx(of,{children:y})]}))})});function df(e){return Ds("MuiListItemIcon",e)}const pf=Ts("MuiListItemIcon",["root","alignItemsFlexStart"]),ff=["className"],hf=Lc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Hr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),mf=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Br(r,ff),i=Hr({},r,{alignItems:x.useContext(Gp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return wl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},df,r)})(i);return or.jsx(hf,Hr({className:ks(a.root,n),ownerState:i,ref:t},o))}),gf=Ts("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),bf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function vf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function yf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function xf(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Sf(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&xf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const wf=x.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Br(e,bf),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Us(()=>{n&&p.current.focus()},[n]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${Sl(Qs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}}),[]);const h=sl(p,t);let m=-1;x.Children.forEach(i,(e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&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 g=x.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),x.cloneElement(e,t)}return e});return or.jsx(Jp,Hr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Qs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Sf(t,n,l,s,vf);else if("ArrowUp"===r)e.preventDefault(),Sf(t,n,l,s,yf);else if("Home"===r)e.preventDefault(),Sf(t,null,l,s,vf);else if("End"===r)e.preventDefault(),Sf(t,null,l,s,yf);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&xf(n,o);o.previousKeyMatched&&(l||Sf(t,n,!1,s,vf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},d,{children:g}))});function Cf(e){return Ds("MuiPopover",e)}Ts("MuiPopover",["root","paper"]);const Ef=["onEntering"],Rf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Af=["slotProps"];function If(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function kf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Pf(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Mf(e){return"function"==typeof e?e():e}const Df=Lc(hp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tf=Lc(fu,{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}),Of=x.forwardRef(function(e,t){var r,n,o;const i=zc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Pp,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,A=Br(i.TransitionProps,Ef),I=Br(i,Rf),k=null!=(r=null==y?void 0:y.paper)?r:b,P=x.useRef(),M=sl(P,k.ref),D=Hr({},i,{anchorOrigin:l,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:k,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:A}),T=(e=>{const{classes:t}=e;return wl({root:["root"],paper:["paper"]},Cf,t)})(D),O=x.useCallback(()=>{if("anchorPosition"===u)return c;const e=Mf(s),t=(e&&1===e.nodeType?e:Qs(P.current).body).getBoundingClientRect();return{top:t.top+If(t,l.vertical),left:t.left+kf(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,u]),q=x.useCallback(e=>({vertical:If(e,S.vertical),horizontal:kf(e,S.horizontal)}),[S.horizontal,S.vertical]),L=x.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=q(t);if("none"===u)return{top:null,left:null,transformOrigin:Pf(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,c=el(Mf(s)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Pf(r)}},[s,u,O,q,m]),[N,j]=x.useState(g),_=x.useCallback(()=>{const e=P.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)},[L]);x.useEffect(()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,R,_]);x.useEffect(()=>{g&&_()}),x.useImperativeHandle(a,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),x.useEffect(()=>{if(!g)return;const e=Zs(()=>{_()}),t=el(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,_]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?Qs(Mf(s)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:Df,H=null!=(o=null==v?void 0:v.paper)?o:Tf,B=Il({elementType:H,externalSlotProps:Hr({},k,{style:N?k.style:Hr({},k.style,{opacity:0})}),additionalProps:{elevation:h,ref:M},ownerState:D,className:ks(T.paper,null==k?void 0:k.className)}),V=Il({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:ks(T.root,p)}),{slotProps:W}=V,U=Br(V,Af);return or.jsx($,Hr({},U,!Cl($)&&{slotProps:W,disableScrollLock:R},{children:or.jsx(w,Hr({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},A,{children:or.jsx(H,Hr({},B,{children:d}))}))}))});function qf(e){return Ds("MuiMenu",e)}Ts("MuiMenu",["root","paper","list"]);const Lf=["onEntering"],Nf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],jf={vertical:"top",horizontal:"right"},_f={vertical:"top",horizontal:"left"},zf=Lc(Of,{shouldForwardProp:e=>qc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ff=Lc(Tf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$f=Lc(wf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Hf=x.forwardRef(function(e,t){var r,n;const o=zc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Br(o.TransitionProps,Lf),S=Br(o,Nf),w=(()=>{const e=x.useContext(ql);return null!=e&&e})(),C=Hr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),E=(e=>{const{classes:t}=e;return wl({root:["root"],paper:["paper"],list:["list"]},qf,t)})(C),R=i&&!l&&d,A=x.useRef(null);let I=-1;x.Children.map(a,(e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))});const k=null!=(r=b.paper)?r:Ff,P=null!=(n=v.paper)?n:p,M=Il({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),D=Il({elementType:k,externalSlotProps:P,ownerState:C,className:E.paper});return or.jsx(zf,Hr({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?jf:_f,slots:{paper:k,root:b.root},slotProps:{root:M,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:Hr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:or.jsx($f,Hr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||l),autoFocusItem:R,variant:g},c,{className:ks(E.list,c.className),children:a}))}))});function Bf(e){return Ds("MuiMenuItem",e)}const Vf=Ts("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Wf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Uf=Lc(Du,{shouldForwardProp:e=>qc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>Hr({},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"}},[`&.${Vf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Vf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Vf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Jl.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})`:Jl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Vf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${gp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${gp.inset}`]:{marginLeft:52},[`& .${gf.root}`]:{marginTop:0,marginBottom:0},[`& .${gf.inset}`]:{paddingLeft:36},[`& .${pf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Hr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${pf.root} svg`]:{fontSize:"1.25rem"}}))),Gf=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:u,className:d}=r,p=Br(r,Wf),f=x.useContext(Gp),h=x.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=x.useRef(null);Us(()=>{n&&m.current&&m.current.focus()},[n]);const g=Hr({},r,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Hr({},a,wl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Bf,a))})(r),v=sl(m,t);let y;return r.disabled||(y=void 0!==u?u:-1),or.jsx(Gp.Provider,{value:h,children:or.jsx(Uf,Hr({ref:v,role:c,tabIndex:y,component:o,focusVisibleClassName:ks(b.focusVisible,l),className:ks(b.root,d)},p,{ownerState:g,classes:b}))})});function Kf(e){return Ds("MuiNativeSelect",e)}const Yf=Ts("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Xf=["className","disabled","error","IconComponent","inputRef","variant"],Jf=({ownerState:e,theme:t})=>Hr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Hr({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Yf.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Zf=Lc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:qc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Yf.multiple}`]:t.multiple}]}})(Jf),Qf=({ownerState:e,theme:t})=>Hr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Yf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),eh=Lc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ya(r.variant)}`],r.open&&t.iconOpen]}})(Qf),th=x.forwardRef(function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Br(e,Xf),c=Hr({},e,{disabled:n,variant:s,error:o}),u=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return wl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ya(r)}`,i&&"iconOpen",n&&"disabled"]},Kf,t)})(c);return or.jsxs(x.Fragment,{children:[or.jsx(Zf,Hr({ownerState:c,className:ks(u.select,r),disabled:n,ref:a||t},l)),e.multiple?null:or.jsx(eh,{as:i,ownerState:c,className:u.icon})]})});var rh;const nh=["children","classes","className","label","notched"],oh=Lc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:qc})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ih=Lc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:qc})(({ownerState:e,theme:t})=>Hr({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Hr({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));const ah=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],sh=Lc(ad,{shouldForwardProp:e=>qc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:od})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Hr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${fd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${fd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${fd.focused} .${fd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${fd.error} .${fd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${fd.disabled} .${fd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Hr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),lh=Lc(function(e){const{className:t,label:r,notched:n}=e,o=Br(e,nh),i=null!=r&&""!==r,a=Hr({},e,{notched:n,withLabel:i});return or.jsx(oh,Hr({"aria-hidden":!0,className:t,ownerState:a},o,{children:or.jsx(ih,{ownerState:a,children:i?or.jsx("span",{children:r}):rh||(rh=or.jsx("span",{className:"notranslate",children:""}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),ch=Lc(sd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:id})(({theme:e,ownerState:t})=>Hr({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),uh=x.forwardRef(function(e,t){var r,n,o,i,a;const s=zc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Br(s,ah),b=(e=>{const{classes:t}=e;return Hr({},t,wl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},pd,t))})(s),v=Ju(),y=Yu({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Hr({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:sh,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:ch;return or.jsx(cd,Hr({slots:{root:w,input:C},renderSuffix:e=>or.jsx(lh,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=or.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:Hr({},b,{notchedOutline:null})}))});function dh(e){return Ds("MuiSelect",e)}uh.muiName="Input";const ph=Ts("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var fh;const hh=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],mh=Lc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${ph.select}`]:t.select},{[`&.${ph.select}`]:t[r.variant]},{[`&.${ph.error}`]:t.error},{[`&.${ph.multiple}`]:t.multiple}]}})(Jf,{[`&.${ph.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),gh=Lc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ya(r.variant)}`],r.open&&t.iconOpen]}})(Qf),bh=Lc("input",{shouldForwardProp:e=>Oc(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function vh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function yh(e){return null==e||"string"==typeof e&&!e.trim()}const xh=x.forwardRef(function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:A,readOnly:I,renderValue:k,SelectDisplayProps:P={},tabIndex:M,value:D,variant:T="standard"}=e,O=Br(e,hh),[q,L]=il({controlled:D,default:u,name:"Select"}),[N,j]=il({controlled:A,default:c,name:"Select"}),_=x.useRef(null),z=x.useRef(null),[F,$]=x.useState(null),{current:H}=x.useRef(null!=A),[B,V]=x.useState(),W=sl(t,m),U=x.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;x.useImperativeHandle(W,()=>({focus:()=>{z.current.focus()},node:_.current,value:q}),[q]),x.useEffect(()=>{c&&N&&F&&!H&&(V(a?null:G.clientWidth),z.current.focus())},[F,a]),x.useEffect(()=>{i&&z.current.focus()},[i]),x.useEffect(()=>{if(!g)return;const e=Qs(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const K=(e,t)=>{e?R&&R(t):C&&C(t),H||(V(a?null:G.clientWidth),j(e))},Y=x.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(q)?q.slice():[];const t=q.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),q!==r&&(L(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),w(o,e)}v||K(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(ed({value:q})||p)&&(k?Z=k(q):te=!0);const re=Y.map(e=>{if(!x.isValidElement(e))return null;let t;if(v){if(!Array.isArray(q))throw new Error(zr(2));t=q.some(t=>vh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=vh(q,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=v?0===ee.length?null:ee.reduce((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e),[]):Q);let ne,oe=B;!a&&H&&F&&(oe=G.clientWidth),ne=void 0!==M?M:d?null:0;const ie=P.id||(y?`mui-component-select-${y}`:void 0),ae=Hr({},e,{variant:T,value:q,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return wl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ya(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},dh,t)})(ae),le=Hr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ce=ol();return or.jsxs(x.Fragment,{children:[or.jsx(mh,Hr({ref:U,tabIndex:ne,role:"combobox","aria-controls":ce,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),K(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:q,name:y}}),S(e))},onFocus:E},P,{ownerState:ae,className:ks(P.className,se.select,l),id:ie,children:yh(Z)?fh||(fh=or.jsx("span",{className:"notranslate",children:""})):Z})),or.jsx(bh,Hr({"aria-invalid":f,value:Array.isArray(q)?q.join(","):q,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=Y.find(t=>t.props.value===e.target.value);void 0!==t&&(L(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),or.jsx(gh,{as:h,className:se.icon,ownerState:ae}),or.jsx(Hf,Hr({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Hr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ce},b.MenuListProps),slotProps:Hr({},b.slotProps,{paper:Hr({},le,{style:Hr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}),Sh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],wh=["root"],Ch={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>qc(e)&&"variant"!==e,slot:"Root"},Eh=Lc(Op,Ch)(""),Rh=Lc(uh,Ch)(""),Ah=Lc(Ep,Ch)(""),Ih=x.forwardRef(function(e,t){const r=zc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=gd,id:u,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Br(r,Sh),A=b?th:xh,I=Yu({props:r,muiFormControl:Ju(),states:["variant","error"]}),k=I.variant||E,P=Hr({},r,{variant:k,classes:i}),M=(e=>{const{classes:t}=e;return t})(P),D=Br(M,wh),T=d||{standard:or.jsx(Eh,{ownerState:P}),outlined:or.jsx(Rh,{label:f,ownerState:P}),filled:or.jsx(Ah,{ownerState:P})}[k],O=sl(t,kl(T));return or.jsx(x.Fragment,{children:x.cloneElement(T,Hr({inputComponent:A,inputProps:Hr({children:o,error:I.error,IconComponent:c,variant:k,type:void 0,multiple:g},b?{id:u}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:S,renderValue:w,SelectDisplayProps:Hr({id:u},C)},p,{classes:p?ca(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===k?{notched:!0}:{},{ref:O,className:ks(T.props.className,a,M.root)},!d&&{variant:k},R))})});Ih.muiName="Select";const kh=x.createContext();function Ph(e){return Ds("MuiTable",e)}Ts("MuiTable",["root","stickyHeader"]);const Mh=["className","component","padding","size","stickyHeader"],Dh=Lc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Hr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Hr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Th="table",Oh=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiTable"}),{className:n,component:o=Th,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Br(r,Mh),c=Hr({},r,{component:o,padding:i,size:a,stickyHeader:s}),u=(e=>{const{classes:t,stickyHeader:r}=e;return wl({root:["root",r&&"stickyHeader"]},Ph,t)})(c),d=x.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return or.jsx(kh.Provider,{value:d,children:or.jsx(Dh,Hr({as:o,role:o===Th?null:"table",ref:t,className:ks(u.root,n),ownerState:c},l))})}),qh=x.createContext();function Lh(e){return Ds("MuiTableBody",e)}Ts("MuiTableBody",["root"]);const Nh=["className","component"],jh=Lc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),_h={variant:"body"},zh="tbody",Fh=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiTableBody"}),{className:n,component:o=zh}=r,i=Br(r,Nh),a=Hr({},r,{component:o}),s=(e=>{const{classes:t}=e;return wl({root:["root"]},Lh,t)})(a);return or.jsx(qh.Provider,{value:_h,children:or.jsx(jh,Hr({className:ks(s.root,n),as:o,ref:t,role:o===zh?null:"rowgroup",ownerState:a},i))})});function $h(e){return Ds("MuiTableCell",e)}const Hh=Ts("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Bh=["align","className","component","padding","scope","size","sortDirection","variant"],Vh=Lc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ya(r.size)}`],"normal"!==r.padding&&t[`padding${ya(r.padding)}`],"inherit"!==r.align&&t[`align${ya(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Hr({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Jl.lighten(Jl.alpha(e.palette.divider,1),.88):Jl.darken(Jl.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Hh.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Wh=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:c,variant:u}=r,d=Br(r,Bh),p=x.useContext(kh),f=x.useContext(qh),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=u||f&&f.variant,v=Hr({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return wl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${ya(n)}`,"normal"!==o&&`padding${ya(o)}`,`size${ya(i)}`]},$h,t)})(v);let S=null;return c&&(S="asc"===c?"ascending":"descending"),or.jsx(Vh,Hr({as:m,ref:t,className:ks(y.root,o),"aria-sort":S,scope:g,ownerState:v},d))});function Uh(e){return Ds("MuiTableContainer",e)}Ts("MuiTableContainer",["root"]);const Gh=["className","component"],Kh=Lc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Yh=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Br(r,Gh),a=Hr({},r,{component:o}),s=(e=>{const{classes:t}=e;return wl({root:["root"]},Uh,t)})(a);return or.jsx(Kh,Hr({ref:t,as:o,className:ks(s.root,n),ownerState:a},i))});function Xh(e){return Ds("MuiTableHead",e)}Ts("MuiTableHead",["root"]);const Jh=["className","component"],Zh=Lc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Qh={variant:"head"},em="thead",tm=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiTableHead"}),{className:n,component:o=em}=r,i=Br(r,Jh),a=Hr({},r,{component:o}),s=(e=>{const{classes:t}=e;return wl({root:["root"]},Xh,t)})(a);return or.jsx(qh.Provider,{value:Qh,children:or.jsx(Zh,Hr({as:o,className:ks(s.root,n),ref:t,role:o===em?null:"rowgroup",ownerState:a},i))})});function rm(e){return Ds("MuiTableRow",e)}const nm=Ts("MuiTableRow",["root","selected","hover","head","footer"]),om=["className","component","hover","selected"],im=Lc("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${nm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Jl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),am="tr",sm=x.forwardRef(function(e,t){const r=zc({props:e,name:"MuiTableRow"}),{className:n,component:o=am,hover:i=!1,selected:a=!1}=r,s=Br(r,om),l=x.useContext(qh),c=Hr({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),u=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return wl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},rm,t)})(c);return or.jsx(im,Hr({as:o,ref:t,className:ks(u.root,n),role:o===am?null:"row",ownerState:c},s))});function lm(e){return or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:or.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function cm({fontSize:e="medium",children:t=null,className:r=""}={}){return or.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:r,children:t})}function um(e={}){return or.jsx(cm,{...e,children:or.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[or.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),or.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 dm(e={}){return or.jsx(cm,{fontSize:"medium",...e,children:or.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[or.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),or.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 pm(e){return or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:or.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 fm(e={}){return or.jsx(cm,{...e,children:or.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:or.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[or.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),or.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function hm(e={}){return or.jsx(cm,{fontSize:"medium",...e,children:or.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:or.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:or.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function mm({className:e}){return or.jsx(cm,{fontSize:"small",className:e,children:or.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:or.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:or.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:or.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[or.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"}),or.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 gm(e={}){return or.jsx(cm,{...e,children:or.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:or.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:or.jsx("rect",{stroke:$t.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var bm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:$t.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:$t.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:or.jsx(lm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${$t.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`,borderRadius:Ut,backgroundColor:$t.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${$t.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:$t.WHITE,color:$t.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Ut},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:$t.GREYSCALE_0_15,backgroundColor:$t.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$t.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:$t.GREEN_PALE},"&:active":{backgroundColor:$t.GREEN_DARK},"&.Mui-focusVisible":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${Xs($t.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:$t.BLUE_PALE},"&:active":{backgroundColor:$t.BLUE_DARK},"&.Mui-focusVisible":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${Xs($t.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ut,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:$t.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:$t.GREYSCALE_0_42,backgroundColor:$t.GREYSCALE_100_60,"&:active":{backgroundColor:$t.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$t.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:$t.PURPLE,"&.Mui-focusVisible":{borderColor:$t.PURPLE,boxShadow:`0 0 0 3px ${Xs($t.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:$t.GREEN,"&.Mui-focusVisible":{borderColor:$t.GREEN,boxShadow:`0 0 0 3px ${Xs($t.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:$t.BLUE,"&.Mui-focusVisible":{borderColor:$t.BLUE,boxShadow:`0 0 0 3px ${Xs($t.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:$t.ORANGE,"&.Mui-focusVisible":{borderColor:$t.ORANGE,boxShadow:`0 0 0 3px ${Xs($t.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:$t.RED,"&.Mui-focusVisible":{borderColor:$t.RED,boxShadow:`0 0 0 3px ${Xs($t.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:$t.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:$t.PURPLE_PALE},"&:active":{backgroundColor:$t.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:$t.PURPLE_PALE,boxShadow:`0 0 0 3px ${Xs($t.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:$t.GREEN_PALE},"&:active":{backgroundColor:$t.GREEN_DARK},"&.Mui-focusVisible":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${Xs($t.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:$t.BLUE_PALE},"&:active":{backgroundColor:$t.BLUE_DARK},"&.Mui-focusVisible":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${Xs($t.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:$t.ORANGE_PALE},"&:active":{backgroundColor:$t.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:$t.ORANGE_PALE,boxShadow:`0 0 0 3px ${Xs($t.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:$t.RED_PALE},"&:active":{backgroundColor:$t.RED_DARK},"&.Mui-focusVisible":{borderColor:$t.RED_PALE,boxShadow:`0 0 0 3px ${Xs($t.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:$t.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:$t.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ut,boxShadow:`inset 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:or.jsx(pm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ht,borderRadius:Ut,color:$t.TEXT_PRIMARY,backgroundColor:$t.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:$t.GREYSCALE_0_05,color:$t.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:$t.GREEN,borderColor:$t.GREEN},"&.MuiChip-outlinedInfo":{color:$t.BLUE,borderColor:$t.BLUE},"&.MuiChip-outlinedWarning":{color:$t.ORANGE,borderColor:$t.ORANGE},"&.MuiChip-outlinedError":{color:$t.RED,borderColor:$t.RED}},outlined:{border:`solid 1px ${$t.GREYSCALE_0_15}`,backgroundColor:$t.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ut,boxShadow:"none",backgroundColor:$t.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:$t.GREEN,borderColor:$t.GREEN},outlinedSecondary:{color:$t.BLUE,borderColor:$t.BLUE},label:{fontFamily:Jt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:or.jsx(pm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:or.jsx(lm,{"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:Ut},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ut,fontSize:Bt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:$t.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${$t.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:$t.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:$t.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ut,border:`solid 1px ${$t.GREYSCALE_0_15}`,color:$t.GREYSCALE_0_60,marginRight:0,width:Wt,height:Wt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${$t.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ut,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:$t.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Bt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ht,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:$t.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:$t.GREYSCALE_25,fontSize:Ht,fontFamily:Jt.FONT_FAMILY,fontWeight:Yt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:$t.TEXT_PRIMARY},"&.Mui-error":{color:$t.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:$t.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Kt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:$t.TEXT_SECONDARY,content:"'(required)'",fontWeight:Kt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Bt,lineHeight:"16px",backgroundColor:$t.WHITE,borderRadius:Ut,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.GREYSCALE_0_05}`,borderColor:$t.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${$t.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${$t.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.RED}`,boxShadow:`0px 0px 0px 1px ${$t.RED}, inset 0 2px 0 0 ${$t.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.GREYSCALE_0_10}`,borderColor:$t.GREYSCALE_0_10,backgroundColor:$t.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:$t.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:$t.GREYSCALE_0_15,borderRadius:Ut,boxShadow:`inset 0 2px 0 0 ${$t.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>or.jsx(lm,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:$t.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:$t.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:$t.GREYSCALE_0_03},"&:active":{backgroundColor:$t.GREYSCALE_0_10},"&:focus":{backgroundColor:$t.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${$t.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:$t.GREYSCALE_0_30,"&:hover":{backgroundColor:$t.GREYSCALE_0_0,borderColor:$t.GREYSCALE_0_15},"& ~svg":{color:$t.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${$t.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ut}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:$t.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Bt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ht,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ht,fontWeight:Yt,color:$t.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Yt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${$t.GREYSCALE_0_15}, 0px 0px 0px 1px ${$t.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:or.jsx(hm,{}),checkedIcon:or.jsx(dm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:$t.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${Xs($t.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${Xs($t.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:$t.GREYSCALE_0_20}},"&.Mui-disabled":{fill:$t.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:or.jsx(gm,{}),checkedIcon:or.jsx(um,{}),indeterminateIcon:or.jsx(fm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ut,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:$t.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:$t.GREYSCALE_0_55,color:$t.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:$t.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:$t.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:$t.GREYSCALE_0_55,"&:hover":{color:$t.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:$t.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:$t.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Bt,color:$t.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Yt},secondary:{fontSize:Ht,color:$t.GREYSCALE_45,fontWeight:Kt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Bt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Bt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:$t.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ht,borderBottom:`solid 1px ${$t.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Bt,color:$t.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:$t.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:$t.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?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:$t.RED}}},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:$t.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:$t.GREEN,height:"24px","&.Mui-disabled":{color:$t.GREYSCALE_0_15}},rail:{backgroundColor:$t.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${$t.GREYSCALE_0_05}`,borderRadius:Ut,boxShadow:`inset 0px 0px 0px 1px ${$t.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${$t.GREYSCALE_0_05}`,borderRadius:Ut},thumb:{height:"16px",width:"16px",borderRadius:Ut,backgroundColor:$t.WHITE,boxShadow:`0px 1px 2px 0px ${$t.GREYSCALE_0_15}, 0px 0px 0px 1px ${$t.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ut,boxShadow:`0 2px 4px 0 ${$t.GREYSCALE_0_30}, 0 0 0 1px ${$t.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${$t.GREYSCALE_0_15}, 0 0 0 1px ${$t.GREYSCALE_0_06}, 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${$t.GREYSCALE_0_15}, 0 0 0 1px ${$t.GREYSCALE_0_06}, 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:$t.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:$t.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:$t.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:$t.GREYSCALE_0_15},markLabel:{color:$t.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:$t.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:$t.WHITE,color:$t.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:$t.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${Xs($t.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${Xs($t.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:$t.GREYSCALE_0_15,borderRadius:Ut},thumb:{height:"16px",width:"16px",borderRadius:Ut,backgroundColor:$t.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Bt,fontWeight:Yt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${$t.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`,backgroundColor:$t.GREYSCALE_0_03,borderRadius:Ut},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:$t.GREYSCALE_25,"&.Mui-selected":{color:$t.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Bt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ut,"&:hover":{backgroundColor:$t.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${$t.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${$t.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ut,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:$t.GREYSCALE_0_05},"&:hover":{backgroundColor:$t.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${$t.GREYSCALE_85}`,borderRight:`1px solid ${$t.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Yt,backgroundColor:$t.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:$t.GREYSCALE_98,borderBottom:`1px solid ${$t.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${$t.GREYSCALE_85}`,borderTop:`1px solid ${$t.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:$t.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:$t.GREYSCALE_0_05,"&:hover":{backgroundColor:$t.GREYSCALE_0_03}},"&&:hover":{backgroundColor:$t.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>or.jsx(mm,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${$t.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Bt,borderRadius:Ut,padding:"7px 16px",border:`1px solid ${$t.GREYSCALE_0_15}`,backgroundColor:$t.GREYSCALE_100_60,color:$t.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:$t.GREYSCALE_0_10,border:`1px solid ${$t.GREYSCALE_0_30}`},"&:hover":{backgroundColor:$t.GREYSCALE_0_03,border:`1px solid ${$t.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:$t.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${$t.MISC_FOCUS_BORDER}`,border:`1px solid ${$t.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:$t.GREYSCALE_25,backgroundColor:$t.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:$t.GREYSCALE_0_10,border:`1px solid ${$t.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ht,height:24,width:24,padding:7},sizeLarge:{fontSize:Vt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Bt,borderRadius:Ut}}},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:$t.GREYSCALE_20},tooltip:{backgroundColor:$t.GREYSCALE_20,fontSize:Ht,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const vm=e=>({mode:"light",primary:{ultraLight:$t.GREEN_ULTRA_LIGHT,light:$t.GREEN_PALE,main:$t.GREEN,dark:$t.GREEN_DARK,extraDark:$t.GREEN_EXTRA_DARK,contrastText:$t.WHITE},secondary:{ultraLight:$t.BLUE_ULTRA_LIGHT,light:$t.BLUE_PALE,main:$t.BLUE,dark:$t.BLUE_DARK,extraDark:$t.BLUE_EXTRA_DARK,contrastText:$t.WHITE},error:{ultraLight:$t.RED_ULTRA_LIGHT,light:$t.RED_PALE,main:$t.RED,dark:$t.RED_DARK,extraDark:$t.RED_EXTRA_DARK,contrastText:$t.WHITE},warning:{ultraLight:$t.ORANGE_ULTRA_LIGHT,light:$t.ORANGE_PALE,main:$t.ORANGE,dark:$t.ORANGE_DARK,extraDark:$t.ORANGE_EXTRA_DARK,contrastText:$t.WHITE},success:{ultraLight:$t.GREEN_ULTRA_LIGHT,light:$t.GREEN_PALE,main:$t.GREEN,dark:$t.GREEN_DARK,extraDark:$t.GREEN_EXTRA_DARK,contrastText:$t.WHITE},info:{ultraLight:$t.BLUE_ULTRA_LIGHT,light:$t.BLUE_PALE,main:$t.BLUE,dark:$t.BLUE_DARK,extraDark:$t.BLUE_EXTRA_DARK,contrastText:$t.WHITE},text:{primary:$t.TEXT_PRIMARY,secondary:$t.TEXT_SECONDARY,disabled:$t.GREYSCALE_0_30},action:{hover:$t.GREYSCALE_0_03,hoverOpacity:.03,selected:$t.GREYSCALE_0_05,selectedOpacity:.05,focus:$t.MISC_FOCUS_BORDER},amethyst:{ultraLight:$t.WHITE,main:$t.PURPLE,light:$t.PURPLE_PALE,dark:$t.PURPLE_DARK,extraDark:$t.GREYSCALE_0_0,contrastText:$t.WHITE},background:{paper:$t.WHITE,default:$t.GREYSCALE_95},divider:$t.GREYSCALE_0_15}),ym=(e="light")=>bc({components:bm(),palette:vm(),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:Bt,fontWeightLight:Gt,fontWeightRegular:Kt,fontWeightMedium:Yt,fontWeightBold:Xt,htmlFontSize:Bt,fontFamily:Jt.FONT_FAMILY,button:{fontWeight:Yt,fontSize:Bt,textTransform:"none"},body1:{fontSize:Vt,lineHeight:"24px"},body2:{fontSize:Bt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Wt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Vt,fontWeight:Yt,lineHeight:"16px"},h6:{fontSize:Bt,fontWeight:Yt,lineHeight:"16px"},caption:{color:$t.TEXT_SECONDARY},subtitle1:{fontSize:Bt,color:$t.TEXT_SECONDARY},subtitle2:{fontSize:Ht,color:$t.TEXT_SECONDARY}},shape:{borderRadius:Ut}}),xm={...Ft},Sm=ym().palette,wm={TEXT:Sm.text.primary,DISABLED:Sm.text.disabled,HOVER:Sm.action.hover,WHITE:xm.GREYSCALE_100,BORDER_LIGHT:xm.GREYSCALE_90,BORDER_MEDIUM:xm.GREYSCALE_85,BORDER_HEAVY:xm.GREYSCALE_50,DARK_MODE_TEXT:xm.GREYSCALE_95,DARK_MODE_BORDER:xm.GREYSCALE_95,DARK_MODE_DISABLED:xm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:xm.GREYSCALE_95,SELECTED:Sm.primary.main,LINK:Sm.info.main,ERROR:Sm.error.main},Cm=(e,t=wm.TEXT,r=wm.WHITE)=>{const n=ie(e??""),o=ie(t),i=ie(r);return n.isInvalid()?t:function(e,t,r){const n=ae(e,t),o=ae(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},Em=e=>{const t=e.getStyle("","","dataColors.selected")||wm.SELECTED,r=function(e,t){const r=ie(se),n=ie(e),o=ie(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ae(r,n),a=ae(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?se:"#000000"}(t,wm.TEXT);return{background:t,color:r}},Rm=(e,t)=>{const r=ie(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Am=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},Im=e=>{const t=ie(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},km=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},Pm=e=>{e.stopPropagation(),e.preventDefault()},Mm=e=>!!e&&0===ie(e).a,Dm="#grid",Tm=(e,t,r,n=wm.WHITE)=>e&&!Mm(e)?e:Mm(t)?r&&!Mm(r)?r:n:t,Om=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},qm=(e,t,r,n,o)=>{const i=Om(".qv-object .qv-inner-object",r),a=Om(".qv-panel-sheet",r),s=Om(Dm,r)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return Im(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ie(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),c=n?.(t),u=o?.(t),d=l||c||i||u,p=Mm(d),f=!Mm(h=p?s:d)&&Cm(h,wm.TEXT,wm.DARK_MODE_TEXT)===ee(wm.DARK_MODE_TEXT);var h;return{color:d,headerColor:Tm(l,d,s),isDark:f}},Lm=(t,r,a,s)=>{const l=i(),c=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o(()=>{let r;return e&&(r=new MutationObserver(e=>{i(e)}),r.observe(e,t)),()=>{r?.disconnect()}},[e,t]),r})(r.closest(Dm),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return e(()=>({...l,background:qm(t,l,r,a,s)}),[l.name(),r,a,s,t,c])};const Nm=3,jm=/\n/g;function _m(e,t,r){let n=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),c=r(s);if(l>t&&c<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}const zm=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o)=>{const{maxNbrLinesOfText:i=Nm,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const s=o.measureText.bind(o),l=kt(e=>{if(void 0===e)return 0;if(a){const t=e.split(jm).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(jm," ");return s(t).width}),c=e=>+l(e).toFixed(2),u=kt(({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split(jm):[e];let o=0;for(const e of n){let r=e;do{o+=1,r=_m(r,t,c)}while(null!==r&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:u}}};function Fm({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Nm,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:c}=A(()=>zm({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[r,n,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:c}}var $m,Hm={};var Bm=function(){if($m)return Hm;$m=1;var e=B;return Hm.createRoot=e.createRoot,Hm.hydrateRoot=e.hydrateRoot,Hm}();const Vm="Source Sans Pro, sans-serif",Wm=(t,n,o)=>{const[,i,a]=function(t,n){const o=e(()=>({isLoading:!0}),n),[i,a]=r(async()=>{try{return await t()}finally{o.isLoading=!1}},n);return[i,o.isLoading,a]}(async()=>{const e=we(o.flags),r=t.getStyle("","","fontFamily"),n=t.getStyle("object","label.name","fontFamily"),i=t.getStyle("object","label.value","fontFamily"),a=t.getStyle("","","fontFamilies")??[];return Promise.all([...e,...a,r,n,i,Vm].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[n,t,o]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function Um(e,t){const[r,n]=I(t);r.some((e,r)=>e!==t[r])&&(n(t),e())}var Gm={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Km=({translator:e})=>(A(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Gm).forEach(t=>{e.add(Gm[t])})}}(e)},[e]),e),Ym="12px",Xm="nebula-table-utils-head-menu-button",Jm="nebula-table-utils-head-menu-wrapper",Zm="nebula-table-utils-head-menu",Qm="nebula-table-utils-head-menu-list-id",eg="sn-copy-cell";let tg=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const rg="nebula-table-utils-column-adjuster";let ng=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),og=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const ig={darker:.15,brighter:.3,opacity:.03},ag={darker:.3,brighter:.5,opacity:.05};let sg=function(e){return e.Cyclic="C",e}({});const lg=document.createElement("textarea");function cg(e){lg.value=e,document.body.appendChild(lg),lg.select(),lg.setSelectionRange(0,lg.value.length),document.execCommand("copy"),document.body.removeChild(lg)}lg.style.position="absolute",lg.style.left="-9999px",lg.setAttribute("readonly","");const ug=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{cg(t)}):cg(t))};function dg(e){return"init"in e}function pg(e){return"function"==typeof e.write}function fg(e){return"v"in e||"e"in e}function hg(e){if("e"in e)throw e.e;if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function mg(e){return"function"==typeof(null==e?void 0:e.then)}function gg(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function bg(e,t,r){const n=r.get(e),o=null==n?void 0:n.t,i=t.p;if(!(null==o?void 0:o.size))return i;if(!i.size)return o;const a=new Set(o);for(const e of i)a.add(e);return a}const vg=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach(e=>e(r)),null==(o=t.get(r))||o.forEach(e=>e())};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function yg(e){return e.i||(e.i=vg()),e.r||(e.r=vg()),e.c||(e.c=vg()),e.m||(e.m=vg()),e.u||(e.u=vg()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const xg=(e,t,r,...n)=>r.read(...n),Sg=(e,t,r,...n)=>r.write(...n),wg=(e,t,r)=>r.INTERNAL_onInit(t),Cg=(e,t,r,n)=>{var o;return null==(o=r.onMount)?void 0:o.call(r,n)},Eg=(e,t,r)=>{var n;const o=e[0];let i=o.get(r);if(!i){const a=e[6],s=e[9];i={d:new Map,p:new Set,n:0},o.set(r,i),null==(n=a.i)||n.call(a,r),function(e){return!!e.INTERNAL_onInit}(r)&&s(e,t,r)}return i},Rg=(e,t)=>{var r;const n=e[1],o=e[3],i=e[4],a=e[5],s=e[6],l=e[13];if(!(s.f||o.size||i.size||a.size))return;const c=[],u=e=>{try{e()}catch(e){c.push(e)}};do{s.f&&u(s.f);const c=new Set;for(const e of o){const t=null==(r=n.get(e))?void 0:r.l;if(t)for(const e of t)c.add(e)}o.clear();for(const e of a)c.add(e);a.clear();for(const e of i)c.add(e);i.clear();for(const e of c)u(e);o.size&&l(e,t)}while(o.size||a.size||i.size);if(c.length)throw new AggregateError(c)},Ag=(e,t)=>{const r=e[1],n=e[2],o=e[3],i=e[11],a=e[14],s=e[17];if(!o.size)return;const l=[],c=[],u=new WeakSet,d=new WeakSet,p=[],f=[];for(const r of o)p.push(r),f.push(i(e,t,r));for(;p.length;){const o=p.length-1,a=p[o],s=f[o];if(d.has(a))p.pop(),f.pop();else if(u.has(a)){if(n.get(a)===s.n)l.push(a),c.push(s);else if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n.has(a))throw new Error("[Bug] invalidated atom exists");d.add(a),p.pop(),f.pop()}else{u.add(a);for(const n of bg(a,s,r))u.has(n)||(p.push(n),f.push(i(e,t,n)))}}for(let r=l.length-1;r>=0;--r){const i=l[r],u=c[r];let d=!1;for(const e of u.d.keys())if(e!==i&&o.has(e)){d=!0;break}d&&(n.set(i,u.n),a(e,t,i),s(e,t,i)),n.delete(i)}},Ig=new WeakSet,kg=(e,t,r)=>{var n,o;const i=e[1],a=e[2],s=e[3],l=e[6],c=e[7],u=e[11],d=e[12],p=e[13],f=e[14],h=e[16],m=e[17],g=e[20],b=e[26],v=e[28],y=u(e,t,r),x=v[0];if(fg(y)){if(i.has(r)&&a.get(r)!==y.n||y.m===x)return y.m=x,y;let n=!1;for(const[r,o]of y.d)if(f(e,t,r).n!==o){n=!0;break}if(!n)return y.m=x,y}let S=!0;const w=new Set(y.d.keys()),C=()=>{for(const e of w)y.d.delete(e)},E=()=>{if(i.has(r)){const n=!s.size;m(e,t,r),n&&(p(e,t),d(e,t))}},R=n=>{var o;if(n===r){const r=u(e,t,n);if(!fg(r)){if(!dg(n))throw new Error("no atom init");g(e,t,n,n.init)}return hg(r)}const a=f(e,t,n);try{return hg(a)}finally{w.delete(n),y.d.set(n,a.n),mg(y.v)&&gg(r,y.v,a),i.has(r)&&(null==(o=i.get(n))||o.t.add(r)),S||E()}};let A,I;const k={get signal(){return A||(A=new AbortController),A.signal},get setSelf(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(import.meta.env?import.meta.env.MODE:void 0)||pg(r)||console.warn("setSelf function cannot be used with read-only atom"),!I&&pg(r)&&(I=(...n)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return h(e,t,r,n)}finally{p(e,t),d(e,t)}}),I}},P=y.n,M=a.get(r)===P;try{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&Ig.delete(t);const o=c(e,t,r,R,k);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&Ig.has(t)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,r,o),mg(o)){b(e,t,o,()=>null==A?void 0:A.abort());const r=()=>{C(),E()};o.then(r,r)}else C();return null==(n=l.r)||n.call(l,r),y.m=x,y}catch(e){return delete y.v,y.e=e,++y.n,y.m=x,y}finally{S=!1,y.n!==P&&M&&(a.set(r,y.n),s.add(r),null==(o=l.c)||o.call(l,r))}},Pg=(e,t,r)=>{const n=e[1],o=e[2],i=e[11],a=[r];for(;a.length;){const r=a.pop(),s=i(e,t,r);for(const l of bg(r,s,n)){const r=i(e,t,l);o.get(l)!==r.n&&(o.set(l,r.n),a.push(l))}}},Mg=(e,t,r,n)=>{const o=e[3],i=e[6],a=e[8],s=e[11],l=e[12],c=e[13],u=e[14],d=e[15],p=e[16],f=e[17],h=e[20],m=e[28];let g=!0;const b=r=>hg(u(e,t,r)),v=(n,...a)=>{var u;const b=s(e,t,n);try{if(n===r){if(!dg(n))throw new Error("atom not writable");"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&Ig.add(t);const r=b.n,s=a[0];return h(e,t,n,s),f(e,t,n),void(r!==b.n&&(++m[0],o.add(n),d(e,t,n),null==(u=i.c)||u.call(i,n)))}return p(e,t,n,a)}finally{g||(c(e,t),l(e,t))}};try{return a(e,t,r,b,v,...n)}finally{g=!1}},Dg=(e,t,r)=>{var n;const o=e[1],i=e[3],a=e[6],s=e[11],l=e[15],c=e[18],u=e[19],d=s(e,t,r),p=o.get(r);if(p&&d.d.size>0){for(const[o,u]of d.d)if(!p.d.has(o)){const d=s(e,t,o);c(e,t,o).t.add(r),p.d.add(o),u!==d.n&&(i.add(o),l(e,t,o),null==(n=a.c)||n.call(a,o))}for(const n of p.d)if(!d.d.has(n)){p.d.delete(n);const o=u(e,t,n);null==o||o.t.delete(r)}}},Tg=(e,t,r)=>{var n;const o=e[1],i=e[4],a=e[6],s=e[10],l=e[11],c=e[12],u=e[13],d=e[14],p=e[16],f=e[18],h=l(e,t,r);let m=o.get(r);if(!m){d(e,t,r);for(const n of h.d.keys()){f(e,t,n).t.add(r)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(r,m),pg(r)&&function(e){return!!e.onMount}(r)){const n=()=>{let n=!0;const o=(...o)=>{try{return p(e,t,r,o)}finally{n||(u(e,t),c(e,t))}};try{const i=s(e,t,r,o);i&&(m.u=()=>{n=!0;try{i()}finally{n=!1}})}finally{n=!1}};i.add(n)}null==(n=a.m)||n.call(a,r)}return m},Og=(e,t,r)=>{var n,o;const i=e[1],a=e[5],s=e[6],l=e[11],c=e[19],u=l(e,t,r);let d=i.get(r);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(n=i.get(e))?void 0:n.d.has(r)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(r);for(const n of u.d.keys()){const o=c(e,t,n);null==o||o.t.delete(r)}null==(o=s.u)||o.call(s,r)},qg=(e,t,r,n)=>{const o=e[11],i=e[27],a=o(e,t,r),s="v"in a,l=a.v;if(mg(n))for(const i of a.d.keys())gg(r,n,o(e,t,i));a.v=n,delete a.e,s&&Object.is(l,a.v)||(++a.n,mg(l)&&i(e,t,l))},Lg=(e,t,r)=>hg((0,e[14])(e,t,r)),Ng=(e,t,r,...n)=>{const o=e[3],i=e[12],a=e[13],s=e[16],l=o.size;try{return s(e,t,r,n)}finally{o.size!==l&&(a(e,t),i(e,t))}},jg=(e,t,r,n)=>{const o=e[12],i=e[18],a=e[19],s=i(e,t,r).l;return s.add(n),o(e,t),()=>{s.delete(n),a(e,t,r),o(e,t)}},_g=(e,t,r,n)=>{const o=e[25];let i=o.get(r);if(!i){i=new Set,o.set(r,i);const e=()=>o.delete(r);r.then(e,e)}i.add(n)},zg=(e,t,r)=>{const n=e[25].get(r);null==n||n.forEach(e=>e())},Fg=new WeakMap;function $g(e){const t=Fg.get(e);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Store must be created by buildStore to read its building blocks");const r=t[24];return r?r(t,e):t}function Hg(...e){const t={get:e=>n(r,t,e),set:(e,...n)=>o(r,t,e,...n),sub:(e,n)=>i(r,t,e,n)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},xg,Sg,wg,Cg,Eg,Rg,Ag,kg,Pg,Mg,Dg,Tg,Og,qg,Lg,Ng,jg,void 0,new WeakMap,_g,zg,[0]].map((t,r)=>e[r]||t);Fg.set(t,Object.freeze(r));const n=r[21],o=r[22],i=r[23];return t}let Bg,Vg=0;function Wg(e,t){const r="atom"+ ++Vg,n={toString(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=Ug,n.write=Gg),t&&(n.write=t),n}function Ug(e){return e(this)}function Gg(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function Kg(){return Hg()}const Yg=P(void 0);function Xg(e){const t=q(Yg);return(null==e?void 0:e.store)||t||(Bg||(Bg=Kg(),"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Bg),globalThis.__JOTAI_DEFAULT_STORE__!==Bg&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Bg)}function Jg({children:e,store:t}){const r=k(null);return t?w(Yg.Provider,{value:t},e):(null===r.current&&(r.current=Kg()),w(Yg.Provider,{value:r.current},e))}const Zg=e=>"function"==typeof(null==e?void 0:e.then),Qg=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},eb=S.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Qg(e),e)}),tb=new WeakMap,rb=(e,t,r)=>{const n=$g(e),o=n[26];let i=tb.get(t);return i||(i=new Promise((a,s)=>{let l=t;const c=e=>t=>{l===e&&a(t)},u=e=>t=>{l===e&&s(t)},d=()=>{try{const t=r();Zg(t)?(tb.set(t,i),l=t,t.then(c(t),u(t)),o(n,e,t,d)):a(t)}catch(e){s(e)}};t.then(c(t),u(t)),o(n,e,t,d)}),tb.set(t,i)),i};function nb(e,t){const{delay:r,unstable_promiseStatus:n=!S.use}={},o=Xg(t),[[i,a,s],l]=M(t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]},void 0,()=>[o.get(e),o,e]);let c=i;if(a===o&&s===e||(l(),c=o.get(e)),D(()=>{const t=o.sub(e,()=>{if(n)try{const t=o.get(e);Zg(t)&&Qg(rb(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof r)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(l,r);l()});return l(),t},[o,e,r,n]),T(c),Zg(c)){const t=rb(o,c,()=>o.get(e));return n&&Qg(t),eb(t)}return c}function ob(e,t){const r=Xg(t);return O((...t)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...t)},[r,e])}function ib(e,t){return[nb(e,t),ob(e,t)]}const ab=Wg(void 0),sb=Wg({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>Promise.resolve()}),lb=Wg({}),cb=Wg({}),ub=Wg(e=>{const t=e(cb);return e=>t.flags.isEnabled(e)}),db=Wg(!1),pb=Wg({qHyperCube:{qDimensionInfo:[],qMeasureInfo:[],qSize:{qcx:0,qcy:0}}}),fb=Wg(e=>e(pb).qHyperCube.qSize.qcy),hb=Wg(e=>!!e(pb).snapshotData),mb=Wg(e=>e(pb).qHyperCube.qDimensionInfo.length),gb=Wg(e=>e(pb).qHyperCube.qMeasureInfo.length),bb=Wg(e=>e(pb).qStateName),vb=Wg(e=>e(pb).snapshotData),yb=Wg(e=>!1!==e(pb).usePagination),xb=Wg(e=>!1!==e(pb).accessibleHeader),Sb=Wg(),wb=Wg(!1),Cb=Wg(e=>e(Sb),(e,t,r)=>{t(Sb,r),t(wb,r.isModal())}),Eb=Wg(),Rb=Wg(e=>{const t=e(Eb),r=e(hb);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}},(e,t,r)=>{t(Eb,r)}),Ab=Wg(e=>!!e(Rb).active),Ib=Wg(e=>!!e(Rb).passive),kb=Wg(e=>!!e(Rb).select),Pb=Wg(e=>!!e(Rb).scroll),Mb=Wg(e=>{const t=e(Ab),r=e(wb);return t&&!r}),Db=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),Tb=Wg(),Ob=Wg(e=>e(Tb)?.direction),qb=Wg(e=>e(Tb)?.footerContainer),Lb=Wg(e=>e(Tb)?.viewState),Nb=Wg(e=>e(Tb)?.freeResize),jb=Wg(e=>{const t=e(pb),r=e(Lb),n=e(yb);return void 0!==r?.usePagination?r.usePagination:n||Db(t,r)}),_b=Wg({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),zb=Wg(e=>e(_b),(e,t,r)=>{const n=e(jb),o=e(ub)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE");(n||o)&&t(_b,r)}),Fb=Wg(),$b=Wg(e=>{const t=e(Fb);if(t&&"getEffectiveProperties"in t)return t}),Hb={width:0,height:0,top:0,left:0},Bb=Wg(Hb),Vb=Wg(Hb),Wb=Wg(e=>e(Bb),(e,t,r)=>{const n=e(pb),o=e(Nb),i=e(Bb),a=n.snapshotData?.content&&!o;(i.width!==r.width||i.height!==r.height||i.top!==r.top||i.left!==r.left||a)&&(t(Vb,r),t(Bb,a?{...r,...n.snapshotData?.content?.size}:r))}),Ub=Wg({}),Gb=new WeakMap,Kb=Wg(e=>{const t=e(Ub),r=Gb.get(t);if(r)return r;const n=Bm.createRoot(t);return Gb.set(t,n),n}),Yb=Wg({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),Xb=Wg({get:e=>e,add:()=>{},language:()=>"en"});var Jb,Zb={exports:{}};var Qb=(Jb||(Jb=1,self,Zb.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=n&&i(n)?n:[]):u=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=n&&i(n)?n:[]):u=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>De});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var c=v(u(n[0],o),h(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(n&&2===n.length){var d=u(n[0],o),p=u(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=c(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=h(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:u,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function P(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=P(e[r||t])?i:e[t],e=e[r||t]}}),e}function T(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){T(e[n],t[n])||(r=!1)}),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||M(t,o)||(P(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(A.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&P(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!P(t[0])&&P(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){P(t[o])&&!M(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},A.apply=function(e,t){t.forEach(function(t){var r,n,o=D(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!M(r,e)&&delete r[e]}),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var u=D(e,t.from);I(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])})},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,q=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var L="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===L)return r[n]}function j(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===L)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var c=i(n,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,u,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(c,1),m=w.getDimComp(c,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(L))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function H(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var c=s;void 0===c&&(c=w.getNumDimensions({properties:o,layout:a}));var u=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,c),h=w.getAboveComp(n,c,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,c);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var v=w.getDimComp(u,1),y=w.getDimComp(u,0),x=w.getAggrComp(b,v,y);b=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function U(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const Y={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var c=i(n,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,u),p="".concat(u," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(c,1),h=w.getDimComp(c,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var c=i(n,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),c=""===s&&""===l?"":s||l,u=le(o,i),d=ce(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(p,"))")}(u,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const ke=Ie;function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}var Me={accumulation:z,movingAverage:V,difference:ee,normalization:ue,timeSeriesDecomposition:Y};const De={modifiers:Me,apply:Oe,applyModifiers:qe,cleanUpMeasure:Le,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,initBase:ke.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Me[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return Me[e]&&Me[e].isApplicable({properties:r,layout:n})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=Fe(e);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:_e};var Te={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Te[r.id]=Te[r.id]||{isFirstTime:!0};var c=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Pe(n))return qe({model:r,properties:n});var u=r?r.layout:void 0,d=i(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(u,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:u})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:u,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ge({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:u,masterItem:s,isFirstTime:c})?r.getEffectiveProperties().then(function(e){var n=t()(!0,{},e);He(n);var o=Qe(n);return Ke({model:r}).then(function(t){return Ye({libraryIds:o,model:r}).then(function(o){return h&&function(e){var t=e.properties;ze(t).forEach(function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Pe(e)&&!e.disabled){if(r++,"object"!==Pe(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:n}),qe({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Pe(e.base)})}(p)?r.getEffectiveProperties().then(function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then(function(){var e=t()(!0,{},n);return ze(n).forEach(function(e){return Le(e)}),Je({oldProperties:e,newProperties:n,model:r})})}({model:r,properties:e})}):Promise.resolve(l)}function qe(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:c}).then(function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach(function(e){return Le(e)}),Promise.resolve();var l=a?void 0:Qe(n);return Ke({model:o,dimensionAndFieldList:s}).then(function(e){return Ye({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){r.forEach(function(r){Ge({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;ke.isValid(r)||ke.initBase(r,!0);var l=r.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Pe(e)&&!e.disabled){if(s++,"object"!==Pe(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Me[e.type].initModifier(e,r);var l=r.qLibraryId||u&&u.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Me[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Me[n.type].updateModifier&&Me[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Me[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}})}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):Le(r)})})})}({measures:a,properties:o,model:r,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)})})}function Le(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Pe(e)&&!e.disabled&&!Me[e.type]})}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})})}function je(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Me[n.type]&&!n.disabled)return n}}function _e(e){var t=je(e);return!t||Me[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach(function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)})}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Pe(t)&&(t.disabled||!Me[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Pe(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ke(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ye(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):q(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Pe(e)&&!e.disabled&&Me[e.type]&&Me[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=Fe(t);if(Ge({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach(function(r){t[r]=i(e,r)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function u(e,r){return t.app[r](e).then(function(t){n[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach(function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(u(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!n[e]&&s.push(u(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose()}),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Te[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>He});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:u};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach(function(e){t.properties[e]=r[e]})},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const P=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},M=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},D=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},q=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(c):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},L=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(c):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},N=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},_=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return I(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),n.dimensions.added(e,r)})}},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return k(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),n.measures.added(e,r)})}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach(function(t){i.setValue(e,t,r[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=_({exportFormat:t,initialProperties:n,hypercubePath:c}),b=i.getValue(n,c||"").qHyperCubeDef,v=i.getValue(g,c||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,A=l.defaultMeasure,I=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),q({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),L({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),j({exportFormat:t,newHyperCubeDef:v}),M("qMaxStackedCells",b,v),M("qNoOfLeftDims",b,v),D("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",b,v,"S"),D("qReductionMode",b,v,"N"),D("qSortbyYValue",b,v),D("qIndentMode",b,v),D("qShowTotalsAbove",b,v),P(g,t,n),m.qProperty=g;var k=i.getValue(u||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:k}),p&&V(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,r,n){t=t||[];var o=u(e,n,r),i=u(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const Y={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(G(a,t,n,o),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=Y.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}),t.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var c=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),u=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(c){var f=Y.create(Y.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:c,isDimension:r,qNumFormat:u,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:c,isDimension:r,qNumFormat:u,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=Y.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ce=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ue=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=Y.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=Y.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return Y.moveByIdFromGroup(a,[],"qAttributeDimensions",c),Y.moveByIdFromGroup(a,[],"qAttributeExpressions",c),Y.moveByIdFromGroup(s,[],"qAttributeExpressions",u),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ce(d,p),b=ue({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),u}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var c=Ce(r,n,l);i.setValue(t,c,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),c=i.getValue(t,l);void 0!==c&&(i.setValue(o,a,c),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",ke="measures",Pe="qDef.conditionalColoring";const Me={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:ke,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Pe,arrayName:ke,quarantineName:Ie})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},He={hypercube:W,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:$e}})(),n.default})()),Zb.exports),ev=Zt(Qb);const tv="qHyperCubeDef.qMeasures",rv="measures",nv="qHyperCubeDef.qDimensions",ov="dimensions",iv="qDef.representation",av="tableRepresentation",sv="qDef.conditionalColoring",lv="conditionalColoring",cv="qMiniChartDef",uv="miniChartDef",dv=({propertyTree:e,hyperCubePath:t})=>{const r=ev.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map(r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t));return o})(o,i,n);return It(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),ev.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),ev.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),ev.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{ev.quarantineArrayProp({properties:e,arrayPath:nv,itemPath:iv,arrayName:ov,quarantineName:av}),ev.quarantineArrayProp({properties:e,arrayPath:tv,itemPath:iv,arrayName:rv,quarantineName:av}),ev.quarantineArrayProp({properties:e,arrayPath:tv,itemPath:sv,arrayName:rv,quarantineName:lv}),ev.quarantineArrayProp({properties:e,arrayPath:tv,itemPath:cv,arrayName:rv,quarantineName:uv})})(r.properties),r};const pv=/^q[A-Z]/,fv=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],hv=e=>"object"==typeof e&&null!==e,mv=(e,t)=>(Object.entries(e).forEach(([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!pv.test(e)&&!fv.some(e=>e.test(t)))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map((e,t)=>hv(e)?mv(e,`${o}.${t}`):e):hv(n)&&(e[r]=mv(n,o))}),e),gv=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:og.Pixels,pixels:e}:{type:og.FitToContent}:i.qDef.columnWidth=e}return i},bv=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{if(i){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}mv(e.properties)}const a=ev.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(ev.conditionalShow.unquarantine(a.qProperty),i)It(a,"qProperty.totals.show",!1),It(a,"qProperty.usePagination",!0),It(a,"qProperty.accessibleHeader",!0);else{ev.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{ev.unquarantineArrayProp({properties:e,arrayPath:nv,itemPath:iv,arrayName:ov,quarantineName:av}),ev.unquarantineArrayProp({properties:e,arrayPath:tv,itemPath:iv,arrayName:rv,quarantineName:av}),ev.unquarantineArrayProp({properties:e,arrayPath:tv,itemPath:sv,arrayName:rv,quarantineName:lv}),ev.unquarantineArrayProp({properties:e,arrayPath:tv,itemPath:cv,arrayName:rv,quarantineName:uv})})(a.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=a.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>gv(e,t,n)),measures:a.filter(e=>e>=o).map(e=>gv(t,e,n,o))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(It(a,"qProperty.qHyperCubeDef.qDimensions",o),It(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var vv,yv={},xv={exports:{}};function Sv(){return vv||(vv=1,(e=xv).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),xv.exports;var e}var wv,Cv,Ev={exports:{}},Rv={exports:{}};function Av(){return wv||(wv=1,function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Rv)),Rv.exports}var Iv={};function kv(e,t){return function(){return null}}function Pv(){return Pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pv.apply(null,arguments)}function Mv(e){return Mv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mv(e)}function Dv(e){return e&&"object"===Mv(e)&&e.constructor===Object}function Tv(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Pv({},e):e;return Dv(e)&&Dv(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(Dv(t[o])&&o in e?n[o]=Tv(e[o],t[o],r):n[o]=t[o])}),n}var Ov=(ea.element,function(){return null});Ov.isRequired=(ea.element.isRequired,function(){return null});var qv=function(){return null};function Lv(e){var t=function(e,t){if("object"!=Mv(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Mv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Mv(t)?t:t+""}var Nv,jv,_v={exports:{}},zv={};var Fv=(jv||(jv=1,_v.exports=function(){if(Nv)return zv;Nv=1;var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),n=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),f=b("react.server.block"),h=b("react.fundamental"),m=b("react.debug_trace_mode"),g=b("react.legacy_hidden")}function v(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case r:case o:case n:case l:case c:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case i:return p;default:return f}}case t:return f}}}var y=i,x=e,S=s,w=r,C=d,E=u,R=t,A=o,I=n,k=l;return zv.ContextConsumer=a,zv.ContextProvider=y,zv.Element=x,zv.ForwardRef=S,zv.Fragment=w,zv.Lazy=C,zv.Memo=E,zv.Portal=R,zv.Profiler=A,zv.StrictMode=I,zv.Suspense=k,zv.isAsyncMode=function(){return!1},zv.isConcurrentMode=function(){return!1},zv.isContextConsumer=function(e){return v(e)===a},zv.isContextProvider=function(e){return v(e)===i},zv.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},zv.isForwardRef=function(e){return v(e)===s},zv.isFragment=function(e){return v(e)===r},zv.isLazy=function(e){return v(e)===d},zv.isMemo=function(e){return v(e)===u},zv.isPortal=function(e){return v(e)===t},zv.isProfiler=function(e){return v(e)===o},zv.isStrictMode=function(e){return v(e)===n},zv.isSuspense=function(e){return v(e)===l},zv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===m||e===n||e===l||e===c||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===p||e[0]===f)},zv.typeOf=v,zv}()),_v.exports),$v=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Hv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match($v);return t&&t[1]||""}(e)||t}function Bv(e,t,r){var n=Hv(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var Vv,Wv="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Uv=ea.oneOfType([ea.func,ea.object]),Gv=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:kv,deepmerge:Tv,elementAcceptingRef:Ov,elementTypeAcceptingRef:qv,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Hv(e,"Component");if("object"===Mv(e))switch(e.$$typeof){case Fv.ForwardRef:return Bv(e,e.render,"ForwardRef");case Fv.Memo:return Bv(e,e.type,"memo");default:return}}},ponyfillGlobal:Wv,refType:Uv}),Kv=Qt(Gv);function Yv(){if(Vv)return Iv;Vv=1,Object.defineProperty(Iv,"__esModule",{value:!0}),Iv.hexToRgb=r,Iv.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),r=t.values;return"#".concat(r.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},Iv.hslToRgb=n,Iv.decomposeColor=o,Iv.recomposeColor=i,Iv.getContrastRatio=function(e,t){var r=a(e),n=a(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Iv.getLuminance=a,Iv.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?l(e,t):c(e,t)},Iv.fade=function(e,t){return s(e,t)},Iv.alpha=s,Iv.darken=l,Iv.lighten=c;var e=Kv;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function r(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function n(e){var t=(e=o(e)).values,r=t[0],n=t[1]/100,a=t[2]/100,s=n*Math.min(a,1-a),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),i({type:c,values:u})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(r(t));var n=t.indexOf("("),i=t.substring(0,n);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var a=t.substring(n+1,t.length-1).split(",");return{type:i,values:a=a.map(function(e){return parseFloat(e)})}}function i(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function a(e){var t="hsl"===(e=o(e)).type?o(n(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,r){return e=o(e),r=t(r),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=r,i(e)}function l(e,r){if(e=o(e),r=t(r),-1!==e.type.indexOf("hsl"))e.values[2]*=1-r;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-r;return i(e)}function c(e,r){if(e=o(e),r=t(r),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*r;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*r;return i(e)}return Iv}var Xv,Jv,Zv,Qv={},ey={exports:{}},ty={exports:{}},ry={exports:{}};function ny(){return Xv||(Xv=1,function(e){var t=Av().default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(ry)),ry.exports}function oy(){return Jv||(Jv=1,function(e){var t=Av().default,r=ny();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(ty)),ty.exports}function iy(){return Zv||(Zv=1,function(e){var t=oy();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(ey)),ey.exports}var ay,sy,ly={exports:{}},cy={exports:{}};function uy(){return ay||(ay=1,(e=cy).exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports),cy.exports;var e}function dy(){return sy||(sy=1,function(e){var t=uy();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(ly)),ly.exports}var py,fy,hy={},my={exports:{}};function gy(){return py||(py=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(my)),my.exports}function by(){if(fy)return hy;fy=1;var e=Sv();Object.defineProperty(hy,"__esModule",{value:!0}),hy.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,c=void 0===l?5:l,u=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-c/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-c/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},u)},hy.keys=void 0;var t=e(gy()),r=e(dy()),n=["xs","sm","md","lg","xl"];return hy.keys=n,hy}var vy,yy={};function xy(){if(vy)return yy;vy=1;var e=Sv();Object.defineProperty(yy,"__esModule",{value:!0}),yy.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(iy()),r=e(gy());return yy}var Sy,wy={},Cy={};function Ey(){if(Sy)return Cy;Sy=1,Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.default=void 0;var e={black:"#000",white:"#fff"};return Cy.default=e,Cy}var Ry,Ay={};function Iy(){if(Ry)return Ay;Ry=1,Object.defineProperty(Ay,"__esModule",{value:!0}),Ay.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return Ay.default=e,Ay}var ky,Py={};function My(){if(ky)return Py;ky=1,Object.defineProperty(Py,"__esModule",{value:!0}),Py.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return Py.default=e,Py}var Dy,Ty={};function Oy(){if(Dy)return Ty;Dy=1,Object.defineProperty(Ty,"__esModule",{value:!0}),Ty.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return Ty.default=e,Ty}var qy,Ly={};function Ny(){if(qy)return Ly;qy=1,Object.defineProperty(Ly,"__esModule",{value:!0}),Ly.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return Ly.default=e,Ly}var jy,_y={};function zy(){if(jy)return _y;jy=1,Object.defineProperty(_y,"__esModule",{value:!0}),_y.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return _y.default=e,_y}var Fy,$y={};function Hy(){if(Fy)return $y;Fy=1,Object.defineProperty($y,"__esModule",{value:!0}),$y.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return $y.default=e,$y}var By,Vy,Wy={};function Uy(){if(By)return Wy;By=1,Object.defineProperty(Wy,"__esModule",{value:!0}),Wy.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return Wy.default=e,Wy}function Gy(){if(Vy)return wy;Vy=1;var e=Sv();Object.defineProperty(wy,"__esModule",{value:!0}),wy.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:c.default[300],main:c.default[500],dark:c.default[700]}:w,E=e.info,R=void 0===E?{light:u.default[300],main:u.default[500],dark:u.default[700]}:E,A=e.success,I=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,k=e.type,P=void 0===k?"light":k,M=e.contrastThreshold,D=void 0===M?3:M,T=e.tonalOffset,O=void 0===T?.2:T,q=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=L(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:P,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(I),grey:i.default,contrastThreshold:D,getContrastText:L,augmentColor:N,tonalOffset:O},j[P]),q);return _},wy.dark=wy.light=void 0;var t=e(gy()),r=e(dy()),n=Kv,o=e(Ey()),i=e(Iy()),a=e(My()),s=e(Oy()),l=e(Ny()),c=e(zy()),u=e(Hy()),d=e(Uy()),p=Yv(),f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};wy.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return wy.dark=h,wy}var Ky,Yy={};function Xy(){if(Ky)return Yy;Ky=1;var e=Sv();Object.defineProperty(Yy,"__esModule",{value:!0}),Yy.default=function(e,l){var c="function"==typeof l?l(e):l,u=c.fontFamily,d=void 0===u?s:u,p=c.fontSize,f=void 0===p?14:p,h=c.fontWeightLight,m=void 0===h?300:h,g=c.fontWeightRegular,b=void 0===g?400:g,v=c.fontWeightMedium,y=void 0===v?500:v,x=c.fontWeightBold,S=void 0===x?700:x,w=c.htmlFontSize,C=void 0===w?16:w,E=c.allVariants,R=c.pxToRem,A=(0,r.default)(c,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),I=f/14,k=R||function(e){return"".concat(e/C*I,"rem")},P=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:k(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},M={h1:P(m,96,1.167,-1.5),h2:P(m,60,1.2,-.5),h3:P(b,48,1.167,0),h4:P(b,34,1.235,.25),h5:P(b,24,1.334,0),h6:P(y,20,1.6,.15),subtitle1:P(b,16,1.75,.15),subtitle2:P(y,14,1.57,.1),body1:P(b,16,1.5,.15),body2:P(b,14,1.43,.15),button:P(y,14,1.75,.4,a),caption:P(b,12,1.66,.4),overline:P(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:k,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},M),A,{clone:!1})};var t=e(gy()),r=e(dy()),n=Kv;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return Yy}var Jy,Zy={};function Qy(){if(Jy)return Zy;Jy=1,Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return Zy.default=t,Zy}var ex,tx={};function rx(){if(ex)return tx;ex=1,Object.defineProperty(tx,"__esModule",{value:!0}),tx.default=void 0;var e={borderRadius:4};return tx.default=e,tx}var nx={};function ox(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ix(e,t){if(e){if("string"==typeof e)return ox(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ox(e,t):void 0}}function ax(e){return function(e){if(Array.isArray(e))return ox(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ix(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sx(e,t){return t?Tv(e,t,{clone:!1}):e}var lx={xs:0,sm:600,md:960,lg:1280,xl:1920},cx={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(lx[e],"px)")}};function ux(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||cx;return t.reduce(function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e},{})}if("object"===Mv(t)){var o=e.theme.breakpoints||cx;return Object.keys(t).reduce(function(e,n){return e[o.up(n)]=r(t[n]),e},{})}return r(t)}function dx(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function px(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=dx(e.theme,o)||{};return ux(e,r,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=dx(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Lv(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)})};return a.propTypes={},a.filterProps=[t],a}function fx(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce(function(t,r){var n=r(e);return n?sx(t,n):t},{})};return n.propTypes={},n.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),n}function hx(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var mx=px({prop:"border",themeKey:"borders",transform:hx}),gx=px({prop:"borderTop",themeKey:"borders",transform:hx}),bx=px({prop:"borderRight",themeKey:"borders",transform:hx}),vx=px({prop:"borderBottom",themeKey:"borders",transform:hx}),yx=px({prop:"borderLeft",themeKey:"borders",transform:hx}),xx=px({prop:"borderColor",themeKey:"palette"}),Sx=px({prop:"borderRadius",themeKey:"shape"}),wx=fx(mx,gx,bx,vx,yx,xx,Sx);function Cx(e,t){var r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}function Ex(e){var t=function(t){var r=e(t);return t.css?Pv({},sx(r,e(Pv({theme:t.theme},t.css))),Cx(t.css,[e.filterProps])):t.sx?Pv({},sx(r,e(Pv({theme:t.theme},t.sx))),Cx(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(ax(e.filterProps)),t}var Rx=fx(px({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),px({prop:"display"}),px({prop:"overflow"}),px({prop:"textOverflow"}),px({prop:"visibility"}),px({prop:"whiteSpace"})),Ax=px({prop:"flexBasis"}),Ix=px({prop:"flexDirection"}),kx=px({prop:"flexWrap"}),Px=px({prop:"justifyContent"}),Mx=px({prop:"alignItems"}),Dx=px({prop:"alignContent"}),Tx=px({prop:"order"}),Ox=px({prop:"flex"}),qx=px({prop:"flexGrow"}),Lx=px({prop:"flexShrink"}),Nx=px({prop:"alignSelf"}),jx=px({prop:"justifyItems"}),_x=px({prop:"justifySelf"}),zx=fx(Ax,Ix,kx,Px,Mx,Dx,Tx,Ox,qx,Lx,Nx,jx,_x),Fx=px({prop:"gridGap"}),$x=px({prop:"gridColumnGap"}),Hx=px({prop:"gridRowGap"}),Bx=px({prop:"gridColumn"}),Vx=px({prop:"gridRow"}),Wx=px({prop:"gridAutoFlow"}),Ux=px({prop:"gridAutoColumns"}),Gx=px({prop:"gridAutoRows"}),Kx=px({prop:"gridTemplateColumns"}),Yx=px({prop:"gridTemplateRows"}),Xx=px({prop:"gridTemplateAreas"}),Jx=px({prop:"gridArea"}),Zx=fx(Fx,$x,Hx,Bx,Vx,Wx,Ux,Gx,Kx,Yx,Xx,Jx),Qx=px({prop:"color",themeKey:"palette"}),eS=px({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),tS=fx(Qx,eS),rS=px({prop:"position"}),nS=px({prop:"zIndex",themeKey:"zIndex"}),oS=px({prop:"top"}),iS=px({prop:"right"}),aS=px({prop:"bottom"}),sS=px({prop:"left"}),lS=fx(rS,nS,oS,iS,aS,sS),cS=px({prop:"boxShadow",themeKey:"shadows"});function uS(e){return e<=1?"".concat(100*e,"%"):e}var dS=px({prop:"width",transform:uS}),pS=px({prop:"maxWidth",transform:uS}),fS=px({prop:"minWidth",transform:uS}),hS=px({prop:"height",transform:uS}),mS=px({prop:"maxHeight",transform:uS}),gS=px({prop:"minHeight",transform:uS}),bS=px({prop:"size",cssProperty:"width",transform:uS}),vS=px({prop:"size",cssProperty:"height",transform:uS}),yS=px({prop:"boxSizing"}),xS=fx(dS,pS,fS,hS,mS,gS,yS);function SS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||ix(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wS={m:"margin",p:"padding"},CS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ES={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},RS=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){if(e.length>2){if(!ES[e])return[e];e=ES[e]}var t=SS(e.split(""),2),r=t[0],n=t[1],o=wS[r],i=CS[n]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),AS=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function IS(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function kS(e,t){return function(r){return e.reduce(function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e},{})}}function PS(e){var t=IS(e.theme);return Object.keys(e).map(function(r){if(-1===AS.indexOf(r))return null;var n=kS(RS(r),t),o=e[r];return ux(e,o,n)}).reduce(sx,{})}PS.propTypes={},PS.filterProps=AS;var MS,DS=px({prop:"fontFamily",themeKey:"typography"}),TS=px({prop:"fontSize",themeKey:"typography"}),OS=px({prop:"fontStyle",themeKey:"typography"}),qS=px({prop:"fontWeight",themeKey:"typography"}),LS=px({prop:"letterSpacing"}),NS=px({prop:"lineHeight"}),jS=px({prop:"textAlign"}),_S=fx(DS,TS,OS,qS,LS,NS,jS),zS=Object.freeze({__proto__:null,alignContent:Dx,alignItems:Mx,alignSelf:Nx,bgcolor:eS,border:mx,borderBottom:vx,borderColor:xx,borderLeft:yx,borderRadius:Sx,borderRight:bx,borderTop:gx,borders:wx,bottom:aS,boxSizing:yS,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||cx,o=n.keys.reduce(function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(Pv({theme:t.theme},t[o]))),r},null);return sx(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(ax(e.filterProps)),t},color:Qx,compose:fx,createUnarySpacing:IS,css:function(e){return Ex(e)},display:Rx,flex:Ox,flexBasis:Ax,flexDirection:Ix,flexGrow:qx,flexShrink:Lx,flexWrap:kx,flexbox:zx,fontFamily:DS,fontSize:TS,fontStyle:OS,fontWeight:qS,grid:Zx,gridArea:Jx,gridAutoColumns:Ux,gridAutoFlow:Wx,gridAutoRows:Gx,gridColumn:Bx,gridColumnGap:$x,gridGap:Fx,gridRow:Vx,gridRowGap:Hx,gridTemplateAreas:Xx,gridTemplateColumns:Kx,gridTemplateRows:Yx,height:hS,justifyContent:Px,justifyItems:jx,justifySelf:_x,left:sS,letterSpacing:LS,lineHeight:NS,maxHeight:mS,maxWidth:pS,minHeight:gS,minWidth:fS,order:Tx,palette:tS,position:rS,positions:lS,right:iS,shadows:cS,sizeHeight:vS,sizeWidth:bS,sizing:xS,spacing:PS,style:px,styleFunctionSx:Ex,textAlign:jS,top:oS,typography:_S,width:dS,zIndex:nS}),FS=Qt(zS);function $S(){if(MS)return nx;MS=1,Object.defineProperty(nx,"__esModule",{value:!0}),nx.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=FS;return nx}var HS,BS={};function VS(){if(HS)return BS;HS=1;var e=Sv();Object.defineProperty(BS,"__esModule",{value:!0}),BS.default=BS.duration=BS.easing=void 0;var t=e(dy()),r={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)"};BS.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}BS.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,c=void 0===l?r.easeInOut:l,u=i.delay,d=void 0===u?0:u;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(c," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return BS.default=i,BS}var WS,US,GS={};function KS(){if(WS)return GS;WS=1,Object.defineProperty(GS,"__esModule",{value:!0}),GS.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return GS.default=e,GS}function YS(){if(US)return Qv;US=1;var e=Sv();Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.createMuiTheme=function(){return p.apply(void 0,arguments)},Qv.default=void 0,e(iy());var t=e(dy()),r=Kv,n=e(by()),o=e(xy()),i=e(Gy()),a=e(Xy()),s=e(Qy()),l=e(rx()),c=e($S()),u=e(VS()),d=e(KS());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,c.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:u.default,zIndex:d.default},S),A=arguments.length,I=new Array(A>1?A-1:0),k=1;k<A;k++)I[k-1]=arguments[k];return R=I.reduce(function(e,t){return(0,r.deepmerge)(e,t)},R)}var f=p;return Qv.default=f,Qv}var XS,JS={};function ZS(){if(XS)return JS;XS=1;var e=Sv();Object.defineProperty(JS,"__esModule",{value:!0}),JS.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=Kv,r=e(YS());return JS}var QS={},ew="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",tw=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function rw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==tw.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[ew]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}function nw(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var ow="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iw="object"===("undefined"==typeof window?"undefined":ow(window))&&"object"===("undefined"==typeof document?"undefined":ow(document))&&9===document.nodeType;function aw(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lv(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sw(e,t){return sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sw(e,t)}function lw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sw(e,t)}function cw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uw(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var dw={}.constructor;function pw(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(pw);if(e.constructor!==dw)return e;var t={};for(var r in e)t[r]=pw(e[r]);return t}function fw(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=pw(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var hw=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},mw=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=hw(e[r]," ");else t=hw(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function gw(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function bw(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function vw(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=gw(r),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=bw(p+":"+c+mw(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=bw(h+":"+c+mw(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=bw(g+":"+c+mw(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),bw(""+e+c+"{"+n,--i)+bw("}",i)):n}var yw=/([[\].#*$><+~=|^:(),"'`\s])/g,xw="undefined"!=typeof CSS&&CSS.escape,Sw=function(e){return xw?xw(e):e.replace(yw,"\\$1")},ww=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Cw=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(cw(cw(o)),s),o.selectorText="."+Sw(o.id)),o}lw(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=mw(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Pv({},e,{allowEmpty:!0}):e;return vw(this.selectorText,this.style,r)},aw(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(ww),Ew={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Cw(e,t,r)}},Rw={indent:1,children:!0},Aw=/@([\w-]+)/,Iw=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Aw);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Jw(Pv({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=Rw);var t=gw(e).linebreak;if(null==e.indent&&(e.indent=Rw.indent),null==e.children&&(e.children=Rw.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),kw=/@container|@media|@supports\s+/,Pw={onCreateRule:function(e,t,r){return kw.test(e)?new Iw(e,t,r):null}},Mw={indent:1,children:!0},Dw=/@keyframes\s+([\w-]+)/,Tw=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Dw);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:Sw(a(this,i)),this.rules=new Jw(Pv({},r,{parent:this})),t)this.rules.add(s,t[s],Pv({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Mw);var t=gw(e).linebreak;if(null==e.indent&&(e.indent=Mw.indent),null==e.children&&(e.children=Mw.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Ow=/@keyframes\s+/,qw=/\$([\w-]+)/g,Lw=function(e,t){return"string"==typeof e?e.replace(qw,function(e,r){return r in t?t[r]:e}):e},Nw=function(e,t,r){var n=e[t],o=Lw(n,r);o!==n&&(e[t]=o)},jw={onCreateRule:function(e,t,r){return"string"==typeof e&&Ow.test(e)?new Tw(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Nw(e,"animation-name",r.keyframes),"animation"in e&&Nw(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Lw(e,n.keyframes);default:return e}}},_w=function(e){function t(){return e.apply(this,arguments)||this}return lw(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Pv({},e,{allowEmpty:!0}):e;return vw(this.key,this.style,r)},t}(ww),zw={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new _w(e,t,r):null}},Fw=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=gw(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=vw(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return vw(this.at,this.style,e)},e}(),$w=/@font-face/,Hw={onCreateRule:function(e,t,r){return $w.test(e)?new Fw(e,t,r):null}},Bw=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return vw(this.key,this.style,e)},e}(),Vw={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Bw(e,t,r):null}},Ww=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Uw={"@charset":!0,"@import":!0,"@namespace":!0},Gw={onCreateRule:function(e,t,r){return e in Uw?new Ww(e,t,r):null}},Kw=[Ew,Pw,jw,zw,Hw,Vw,Gw],Yw={process:!0},Xw={force:!0,process:!0},Jw=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,c=n.scoped,u=Pv({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Sw(this.classes[d]));var p=fw(d,t,u);if(!p)return null;this.register(p);var f=void 0===u.index?this.index.length:u.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=Pv({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Cw?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Tw&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Cw?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Tw&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=Yw);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Xw)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,Xw)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=gw(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),Zw=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Pv({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Jw(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),Qw=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),eC=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=uw(t,["attached"]),o=gw(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},aw(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),tC=new eC,rC="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),nC="2f1acc6c3a606b082e5eef5e54414ffb";null==rC[nC]&&(rC[nC]=0);var oC=rC[nC]++,iC=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+oC+o+t:i+r.key+"-"+oC+(o?"-"+o:"")+"-"+t}},aC=function(e){var t;return function(){return t||(t=e()),t}},sC=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},lC=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=mw(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},cC=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},uC=function(e,t){return e.selectorText=t,e.selectorText===t},dC=aC(function(){return document.querySelector("head")});function pC(e){var t=tC.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=dC(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var fC=aC(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),hC=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},mC=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},gC=function(){function e(e){this.getPropertyValue=sC,this.setProperty=lC,this.removeProperty=cC,this.setSelector=uC,this.hasInsertedRules=!1,this.cssRules=[],e&&tC.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=fC();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=pC(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else dC().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=mC(r,t);if(!1===(o=hC(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=mC(r,t),l=hC(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof Zw&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),bC=0,vC=function(){function e(e){this.id=bC++,this.version="10.10.0",this.plugins=new Qw,this.options={id:{minify:!1},createGenerateId:iC,Renderer:iw?gC:null,plugins:[]},this.generateId=iC({minify:!1});for(var t=0;t<Kw.length;t++)this.plugins.use(Kw[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Pv({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===tC.index?0:tC.index+1);var n=new Zw(e,Pv({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),tC.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=Pv({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=fw(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){e.plugins.use(t)}),this},e}(),yC=function(e){return new vC(e)},xC="object"==typeof CSS&&null!=CSS&&"number"in CSS;function SC(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=SC(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
90
|
+
`),vu.rippleVisible,Ru,550,({theme:e})=>e.transitions.easing.easeInOut,vu.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,vu.child,vu.childLeaving,Au,550,({theme:e})=>e.transitions.easing.easeInOut,vu.childPulsate,Iu,({theme:e})=>e.transitions.easing.easeInOut),Mu=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Br(r,yu),[s,l]=x.useState([]),c=x.useRef(0),u=x.useRef(null);x.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const d=x.useRef(!1),p=dl(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l(e=>[...e,or.jsx(Pu,{classes:{ripple:ks(o.ripple,vu.ripple),rippleVisible:ks(o.rippleVisible,vu.rippleVisible),ripplePulsate:ks(o.ripplePulsate,vu.ripplePulsate),child:ks(o.child,vu.child),childLeaving:ks(o.childLeaving,vu.childLeaving),childPulsate:ks(o.childPulsate,vu.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)]),c.current+=1,u.current=a},[o]),g=x.useCallback((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:r})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:r})},[n,m,p]),b=x.useCallback(()=>{g({},{pulsate:!0})},[g]),v=x.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,()=>{v(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),u.current=t},[p]);return x.useImperativeHandle(t,()=>({pulsate:b,start:g,stop:v}),[b,g,v]),or.jsx(ku,Hr({className:ks(vu.root,o.root,i),ref:h},a,{children:or.jsx(du,{component:null,exit:!0,children:s})}))});function Du(e){return Ds("MuiButtonBase",e)}const Tu=Ts("MuiButtonBase",["root","disabled","focusVisible"]),Ou=["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"],qu=zc("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"},[`&.${Tu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lu=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:k=0,TouchRippleProps:P,touchRippleRef:M,type:D}=r,T=Br(r,Ou),O=x.useRef(null),q=x.useRef(null),L=sl(q,M),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=xl(),[F,$]=x.useState(!1);l&&F&&$(!1),x.useImperativeHandle(n,()=>({focusVisible:()=>{$(!0),O.current.focus()}}),[]);const[H,B]=x.useState(!1);x.useEffect(()=>{B(!0)},[]);const V=H&&!c&&!l;function W(e,t,r=u){return al(n=>{t&&t(n);return!r&&q.current&&q.current[e](n),!0})}x.useEffect(()=>{F&&d&&!c&&H&&q.current.pulsate()},[c,d,F,H]);const U=W("start",w),G=W("stop",m),K=W("stop",g),Y=W("stop",E),X=W("stop",e=>{F&&e.preventDefault(),C&&C(e)}),J=W("start",I),Z=W("stop",R),Q=W("stop",A),ee=W("stop",e=>{_(e),!1===N.current&&$(!1),f&&f(e)},!1),te=al(e=>{O.current||(O.current=e.currentTarget),j(e),!0===N.current&&($(!0),v&&v(e)),b&&b(e)}),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=al(e=>{d&&!ne.current&&F&&q.current&&" "===e.key&&(ne.current=!0,q.current.stop(e,()=>{q.current.start(e)})),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=al(e=>{d&&" "===e.key&&q.current&&F&&!e.defaultPrevented&&(ne.current=!1,q.current.stop(e,()=>{q.current.pulsate(e)})),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=sl(t,z,O),ce=Hr({},r,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:k,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=wl({root:["root",t&&"disabled",r&&"focusVisible"]},Du,o);return r&&n&&(i.root+=` ${n}`),i})(ce);return or.jsxs(qu,Hr({as:ae,className:ks(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:k,type:D},se,T,{children:[i,V?or.jsx(Mu,Hr({ref:L,center:o},P)):null]}))});function Nu(e){return Ds("MuiIconButton",e)}const ju=Ts("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),_u=["edge","children","className","color","disabled","disableFocusRipple","size"],zu=zc(Lu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${ya(r.color)}`],r.edge&&t[`edge${ya(r.edge)}`],t[`size${ya(r.size)}`]]}})(({theme:e,ownerState:t})=>Hr({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ql.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return Hr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Hr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":Hr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ql.alpha(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${ju.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Fu=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=r,u=Br(r,_u),d=Hr({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return wl({root:["root",r&&"disabled","default"!==n&&`color${ya(n)}`,o&&`edge${ya(o)}`,`size${ya(i)}`]},Nu,t)})(d);return or.jsx(zu,Hr({className:ks(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))});function $u(e){return Ds("MuiTypography",e)}Ts("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Hu=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Bu=zc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${ya(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Hr({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})),Vu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Wu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Uu=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiTypography"}),n=(e=>Wu[e]||e)(r.color),o=Cs(Hr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Vu}=o,f=Br(o,Hu),h=Hr({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||Vu[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return wl({root:["root",i,"inherit"!==e.align&&`align${ya(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},$u,a)})(h);return or.jsx(Bu,Hr({as:m,ref:t,ownerState:h,className:ks(g.root,a)},f))});const Gu=x.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),s=sl(x.isValidElement(r)?kl(r):null,t);if(Us(()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),Us(()=>{if(i&&!o)return tl(t,i),()=>{tl(t,null)}},[t,i,o]),o){if(x.isValidElement(r)){const e={ref:s};return x.cloneElement(r,e)}return or.jsx(x.Fragment,{children:r})}return or.jsx(x.Fragment,{children:i?H.createPortal(r,i):i})}),Ku=["onChange","maxRows","minRows","style","value"];function Yu(e){return parseInt(e,10)||0}const Xu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ju(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Zu=x.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Br(e,Ku),{current:l}=x.useRef(null!=a),c=x.useRef(null),u=sl(t,c),d=x.useRef(null),p=x.useRef(null),f=x.useCallback(()=>{const t=c.current,r=p.current;if(!t||!r)return;const i=el(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=Yu(i.paddingBottom)+Yu(i.paddingTop),l=Yu(i.borderBottomWidth)+Yu(i.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-u)<=1}},[n,o,e.placeholder]),h=al(()=>{const e=c.current,t=f();if(!e||!t||Ju(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r}),m=x.useCallback(()=>{const e=c.current,t=f();if(!e||!t||Ju(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=x.useRef(-1);Us(()=>{const e=Zs(m),t=null==c?void 0:c.current;if(!t)return;const r=el(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[f,m,h]),Us(()=>{m()});return or.jsxs(x.Fragment,{children:[or.jsx("textarea",Hr({value:a,onChange:e=>{l||m(),r&&r(e)},ref:u,rows:o,style:i},s)),or.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Hr({},Xu,i,{paddingTop:0,paddingBottom:0})})]})});function Qu({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const ed=x.createContext(void 0);function td(){return x.useContext(ed)}function rd(e){return or.jsx(Ss,Hr({},e,{defaultTheme:xc,themeId:$r}))}function nd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function od(e,t=!1){return e&&(nd(e.value)&&""!==e.value||t&&nd(e.defaultValue)&&""!==e.defaultValue)}function id(e){return Ds("MuiInputBase",e)}const ad=Ts("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),sd=["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"],ld=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ya(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},cd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},ud=zc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ld})(({theme:e,ownerState:t})=>Hr({},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",[`&.${ad.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Hr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),dd=zc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:cd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Hr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Hr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ad.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},[`&.${ad.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"})}),pd=or.jsx(rd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),fd=x.forwardRef(function(e,t){var r;const n=Bc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:A,onFocus:I,onKeyDown:k,onKeyUp:P,placeholder:M,readOnly:D,renderSuffix:T,rows:O,slotProps:q={},slots:L={},startAdornment:N,type:j="text",value:_}=n,z=Br(n,sd),F=null!=b.value?b.value:_,{current:$}=x.useRef(null!=F),H=x.useRef(),B=x.useCallback(e=>{},[]),V=sl(H,v,b.ref,B),[W,U]=x.useState(!1),G=td(),K=Qu({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:W,x.useEffect(()=>{!G&&d&&W&&(U(!1),E&&E())},[G,d,W,E]);const Y=G&&G.onFilled,X=G&&G.onEmpty,J=x.useCallback(e=>{od(e)?Y&&Y():X&&X()},[Y,X]);Us(()=>{$&&J({value:F})},[F,J,$]);x.useEffect(()=>{J(H.current)},[]);let Z=g,Q=b;w&&"input"===Z&&(Q=Hr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Zu);x.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=Hr({},n,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:N,type:j}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return wl({root:["root",`color${ya(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ya(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},id,t)})(ee),re=L.root||l.Root||ud,ne=q.root||c.root||{},oe=L.input||l.Input||dd;return Q=Hr({},Q,null!=(r=q.input)?r:c.input),or.jsxs(x.Fragment,{children:[!p&&pd,or.jsxs(re,Hr({},ne,!Cl(re)&&{ownerState:Hr({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:ks(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,or.jsx(ed.Provider,{value:null,children:or.jsx(oe,Hr({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:M,readOnly:D,required:K.required,rows:O,value:F,onKeyDown:k,onKeyUp:P,type:j},Q,!Cl(oe)&&{as:Z,ownerState:Hr({},ee,Q.ownerState)},{ref:V,className:ks(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(zr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(Hr({},K,{startAdornment:N})):null]}))]})});function hd(e){return Ds("MuiInput",e)}const md=Hr({},ad,Ts("MuiInput",["root","underline","input"]));function gd(e){return Ds("MuiOutlinedInput",e)}const bd=Hr({},ad,Ts("MuiOutlinedInput",["root","notchedOutline","input"]));function vd(e){return Ds("MuiFilledInput",e)}const yd=Hr({},ad,Ts("MuiFilledInput",["root","underline","input"]));var xd=Kc(or.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Sd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wd={entering:{opacity:1},entered:{opacity:1}},Cd=x.forwardRef(function(e,t){const r=Sc(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=ou}=e,v=Br(e,Sd),y=x.useRef(null),S=sl(y,kl(a),t),w=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w((e,t)=>{pu(e);const n=fu({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)}),R=w(u),A=w(h),I=w(e=>{const t=fu({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)}),k=w(f);return or.jsx(b,Hr({appear:i,in:l,nodeRef:y,onEnter:E,onEntered:R,onEntering:C,onExit:I,onExited:k,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,Hr({style:Hr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},wd[e],m,a.props.style),ref:S},t))}))});function Ed(e){return Ds("MuiBackdrop",e)}Ts("MuiBackdrop",["root","invisible"]);const Rd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ad=zc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>Hr({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"})),Id=x.forwardRef(function(e,t){var r,n,o;const i=Bc({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Cd,transitionDuration:g}=i,b=Br(i,Rd),v=Hr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return wl({root:["root",r&&"invisible"]},Ed,t)})(v),x=null!=(r=f.root)?r:u.root;return or.jsx(m,Hr({in:p,timeout:g},b,{children:or.jsx(Ad,Hr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:c.Root)?n:l,className:ks(y.root,s,null==x?void 0:x.className),ownerState:Hr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),kd=Ts("MuiBox",["root"]),Pd=yc(),Md=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=na("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ps);return x.forwardRef(function(e,a){const s=ys(r),l=Cs(e),{className:c,component:u="div"}=l,d=Br(l,Ps);return or.jsx(i,Hr({as:u,ref:a,className:ks(c,o?o(n):n),theme:t&&s[t]||s},d))})}({themeId:$r,defaultTheme:Pd,defaultClassName:kd.root,generateClassName:As.generate});function Dd(e){return Ds("MuiButton",e)}const Td=Ts("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"]),Od=x.createContext({}),qd=x.createContext(void 0),Ld=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Nd=e=>Hr({},"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}}),jd=zc(Lu,{shouldForwardProp:e=>_c(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ya(r.color)}`],t[`size${ya(r.size)}`],t[`${r.variant}Size${ya(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Hr({},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":Hr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ql.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})`:Ql.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})`:Ql.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":Hr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Td.focusVisible}`]:Hr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Td.disabled}`]:Hr({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 ${Ql.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Td.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Td.disabled}`]:{boxShadow:"none"}}),_d=zc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ya(r.size)}`]]}})(({ownerState:e})=>Hr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Nd(e))),zd=zc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ya(r.size)}`]]}})(({ownerState:e})=>Hr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Nd(e))),Fd=x.forwardRef(function(e,t){const r=x.useContext(Od),n=x.useContext(qd),o=Bc({props:Ws(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Br(o,Ld),S=Hr({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Hr({},a,wl({root:["root",i,`${i}${ya(t)}`,`size${ya(o)}`,`${i}Size${ya(o)}`,`color${ya(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ya(o)}`],endIcon:["icon","endIcon",`iconSize${ya(o)}`]},Dd,a))})(S),C=g&&or.jsx(_d,{className:w.startIcon,ownerState:S,children:g}),E=p&&or.jsx(zd,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return or.jsxs(jd,Hr({ownerState:S,className:ks(r.className,w.root,l,R),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:ks(w.focusVisible,f),ref:t,type:b},y,{classes:w,children:[C,i,E]}))});function $d(e){return Ds("PrivateSwitchBase",e)}Ts("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Hd=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Bd=zc(Lu,{name:"MuiSwitchBase"})(({ownerState:e})=>Hr({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),Vd=zc("input",{name:"MuiSwitchBase",shouldForwardProp:_c})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Wd=x.forwardRef(function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,C=Br(e,Hd),[E,R]=il({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),A=td();let I=s;A&&void 0===I&&(I=A.disabled);const k="checkbox"===S||"radio"===S,P=Hr({},e,{checked:E,disabled:I,disableFocusRipple:l,edge:c}),M=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return wl({root:["root",r&&"checked",n&&"disabled",o&&`edge${ya(o)}`],input:["input"]},$d,t)})(P);return or.jsxs(Bd,Hr({component:"span",className:ks(M.root,i),centerRipple:!0,focusRipple:!l,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),A&&A.onFocus&&A.onFocus(e)},onBlur:e=>{m&&m(e),A&&A.onBlur&&A.onBlur(e)},ownerState:P,ref:t},C,{children:[or.jsx(Vd,Hr({autoFocus:r,checked:n,defaultChecked:a,className:M.input,disabled:I,id:k?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:P,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:u]}))});var Ud=Kc(or.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Gd=Kc(or.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Kd=Kc(or.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Yd(e){return Ds("MuiCheckbox",e)}const Xd=Ts("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Jd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Zd=zc(Wd,{shouldForwardProp:e=>_c(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ya(r.size)}`],"default"!==r.color&&t[`color${ya(r.color)}`]]}})(({theme:e,ownerState:t})=>Hr({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ql.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Xd.checked}, &.${Xd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Xd.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Qd=or.jsx(Gd,{}),ep=or.jsx(Ud,{}),tp=or.jsx(Kd,{}),rp=x.forwardRef(function(e,t){var r,n;const o=Bc({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Qd,color:a="primary",icon:s=ep,indeterminate:l=!1,indeterminateIcon:c=tp,inputProps:u,size:d="medium",className:p}=o,f=Br(o,Jd),h=l?c:s,m=l?c:i,g=Hr({},o,{color:a,indeterminate:l,size:d}),b=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return Hr({},t,wl({root:["root",r&&"indeterminate",`color${ya(n)}`,`size${ya(o)}`]},Yd,t))})(g);return or.jsx(Zd,Hr({type:"checkbox",inputProps:Hr({"data-indeterminate":l},u),icon:x.cloneElement(h,{fontSize:null!=(r=h.props.fontSize)?r:d}),checkedIcon:x.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:d}),ownerState:g,ref:t,className:ks(b.root,p)},f,{classes:b}))});function np(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function op(e){return parseInt(el(e).getComputedStyle(e).paddingRight,10)||0}function ip(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&np(e,o)})}function ap(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function sp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Qs(e);return t.body===e?el(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Sl(Qs(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${op(n)+e}px`;const t=Qs(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${op(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=Qs(n).body;else{const t=n.parentElement,r=el(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const lp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cp(e){const t=[],r=[];return Array.from(e.querySelectorAll(lp)).forEach((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function up(){return!0}function dp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=cp,isEnabled:a=up,open:s}=e,l=x.useRef(!1),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=sl(kl(t),h),g=x.useRef(null);x.useEffect(()=>{s&&h.current&&(f.current=!r)},[r,s]),x.useEffect(()=>{if(!s||!h.current)return;const e=Qs(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),x.useEffect(()=>{if(!s||!h.current)return;const e=Qs(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return or.jsxs(x.Fragment,{children:[or.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),or.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const pp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&np(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);ip(t,e.mount,e.modalRef,n,!0);const o=ap(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=ap(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=sp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=ap(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&np(e.modalRef,t),ip(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&np(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function fp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=pp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=sl(h,d),[g,b]=x.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=al(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Qs(f.current).body;o.add(S(),e),h.current&&w()}),E=x.useCallback(()=>o.isTopModal(S()),[o]),R=al(e=>{f.current=e,e&&(u&&E()?w():h.current&&np(h.current,y))}),A=x.useCallback(()=>{o.remove(S(),y)},[y,o]);x.useEffect(()=>()=>{A()},[A]),x.useEffect(()=>{u?C():v&&i||A()},[u,A,v,i,C]);const I=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},k=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=El(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Hr({},r,t);return Hr({role:"presentation"},n,{onKeyDown:I(n),ref:m})},getBackdropProps:(e={})=>Hr({"aria-hidden":!0},e,{onClick:k(e),open:u}),getTransitionProps:()=>({onEnter:Js(()=>{b(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Js(()=>{b(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function hp(e){return Ds("MuiModal",e)}Ts("MuiModal",["root","hidden","backdrop"]);const mp=["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"],gp=zc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Hr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),bp=zc(Id,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),vp=x.forwardRef(function(e,t){var r,n,o,i,a,s;const l=Bc({name:"MuiModal",props:e}),{BackdropComponent:c=bp,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:k,slotProps:P,slots:M}=l,D=Br(l,mp),T=Hr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:q,getTransitionProps:L,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=fp(Hr({},T,{rootRef:t})),F=Hr({},T,{exited:_}),$=(e=>{const{open:t,exited:r,classes:n}=e;return wl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},hp,n)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=L();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==M?void 0:M.root)?n:g.Root)?r:gp,V=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:c,W=null!=(a=null==P?void 0:P.root)?a:b.root,U=null!=(s=null==P?void 0:P.backdrop)?s:b.backdrop,G=Il({elementType:B,externalSlotProps:W,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:ks(d,null==W?void 0:W.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=Il({elementType:V,externalSlotProps:U,additionalProps:u,getSlotProps:e=>q(Hr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ks(null==U?void 0:U.className,null==u?void 0:u.className,null==$?void 0:$.backdrop),ownerState:F});return A||k||z&&!_?or.jsx(Gu,{ref:N,container:h,disablePortal:w,children:or.jsxs(B,Hr({},G,{children:[!R&&c?or.jsx(V,Hr({},K)):null,or.jsx(dp,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:j,open:k,children:x.cloneElement(f,H)})]}))}):null});function yp(e){return Ds("MuiDivider",e)}const xp=Ts("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Sp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],wp=zc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Hr({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)`:Ql.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})=>Hr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Hr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Hr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Hr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Cp=zc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Hr({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)`})),Ep=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Br(r,Sp),h=Hr({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return wl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},yp,n)})(h);return or.jsx(wp,Hr({as:a,className:ks(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?or.jsx(Cp,{className:m.wrapper,ownerState:h,children:o}):null}))});Ep.muiSkipListHighlight=!0;const Rp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Ap=zc(ud,{shouldForwardProp:e=>_c(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ld(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Hr({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${yd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${yd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${yd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yd.disabled}, .${yd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Hr({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),Ip=zc(dd,{name:"MuiFilledInput",slot:"Input",overridesResolver:cd})(({theme:e,ownerState:t})=>Hr({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),kp=x.forwardRef(function(e,t){var r,n,o,i;const a=Bc({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Br(a,Rp),g=Hr({},a,{fullWidth:c,inputComponent:u,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Hr({},t,wl({root:["root",!r&&"underline"],input:["input"]},vd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?ca(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Ap,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Ip;return or.jsx(fd,Hr({slots:{root:x,input:S},componentsProps:y,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:h},m,{classes:b}))});kp.muiName="Input";const Pp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Mp(e){return`scale(${e}, ${e**2})`}const Dp={entering:{opacity:1,transform:Mp(1)},entered:{opacity:1,transform:"none"}},Tp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Op=x.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=ou}=e,g=Br(e,Pp),b=dl(),v=x.useRef(),y=Sc(),S=x.useRef(null),w=sl(S,kl(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(c),R=C((e,t)=>{pu(e);const{duration:r,delay:n,easing:o}=fu({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Tp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)}),A=C(l),I=C(p),k=C(e=>{const{duration:t,delay:r,easing:n}=fu({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Tp?o:.666*o,delay:Tp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Mp(.75),u&&u(e)}),P=C(d);return or.jsx(m,Hr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:E,onExit:k,onExited:P,onExiting:I,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,Hr({style:Hr({opacity:0,transform:Mp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Dp[e],f,o.props.style),ref:w},t))}))});Op.muiSupportAuto=!0;const qp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Lp=zc(ud,{shouldForwardProp:e=>_c(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ld(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Hr({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${md.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${md.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${md.disabled}, .${md.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${md.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Np=zc(dd,{name:"MuiInput",slot:"Input",overridesResolver:cd})({}),jp=x.forwardRef(function(e,t){var r,n,o,i;const a=Bc({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Br(a,qp),b=(e=>{const{classes:t,disableUnderline:r}=e;return Hr({},t,wl({root:["root",!r&&"underline"],input:["input"]},hd,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:c)?ca(null!=f?f:c,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Lp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Np;return or.jsx(fd,Hr({slots:{root:x,input:S},slotProps:y,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))});function _p(e){return Ds("MuiInputAdornment",e)}jp.muiName="Input";const zp=Ts("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Fp;const $p=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Hp=zc("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ya(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})(({theme:e,ownerState:t})=>Hr({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${zp.positionStart}&:not(.${zp.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),Bp=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=r,u=Br(r,$p),d=td()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=Hr({},r,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return wl({root:["root",r&&"disablePointerEvents",o&&`position${ya(o)}`,a,n&&"hiddenLabel",i&&`size${ya(i)}`]},_p,t)})(f);return or.jsx(ed.Provider,{value:null,children:or.jsx(Hp,Hr({as:i,ownerState:f,className:ks(h.root,o),ref:t},u,{children:"string"!=typeof n||s?or.jsxs(x.Fragment,{children:["start"===l?Fp||(Fp=or.jsx("span",{className:"notranslate",children:""})):null,n]}):or.jsx(Uu,{color:"text.secondary",children:n})}))})});function Vp(e){return Ds("MuiLink",e)}const Wp=Ts("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Up={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Gp=({theme:e,ownerState:t})=>{const r=(e=>Up[e]||e)(t.color),n=Sa(e,`palette.${r}`,!1)||t.color,o=Sa(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ql.alpha(n,.4)},Kp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Yp=zc(Uu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ya(r.underline)}`],"button"===r.component&&t.button]}})(({theme:e,ownerState:t})=>Hr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Hr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Gp({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Wp.focusVisible}`]:{outline:"auto"}})),Xp=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:c="always",variant:u="inherit",sx:d}=r,p=Br(r,Kp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=xl(),[b,v]=x.useState(!1),y=sl(t,g),S=Hr({},r,{color:o,component:i,focusVisible:b,underline:c,variant:u}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return wl({root:["root",`underline${ya(o)}`,"button"===r&&"button",n&&"focusVisible"]},Vp,t)})(S);return or.jsx(Yp,Hr({color:o,className:ks(w.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:S,variant:u,sx:[...Object.keys(Up).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),Jp=x.createContext({});function Zp(e){return Ds("MuiList",e)}Ts("MuiList",["root","padding","dense","subheader"]);const Qp=["children","className","component","dense","disablePadding","subheader"],ef=zc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>Hr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),tf=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,c=Br(r,Qp),u=x.useMemo(()=>({dense:a}),[a]),d=Hr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return wl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Zp,t)})(d);return or.jsx(Jp.Provider,{value:u,children:or.jsxs(ef,Hr({as:i,className:ks(p.root,o),ref:t,ownerState:d},c,{children:[l,n]}))})});function rf(e){return Ds("MuiListItem",e)}const nf=Ts("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),of=Ts("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function af(e){return Ds("MuiListItemSecondaryAction",e)}Ts("MuiListItemSecondaryAction",["root","disableGutters"]);const sf=["className"],lf=zc("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Hr({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),cf=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=Br(r,sf),i=Hr({},r,{disableGutters:x.useContext(Jp).disableGutters}),a=(e=>{const{disableGutters:t,classes:r}=e;return wl({root:["root",t&&"disableGutters"]},af,r)})(i);return or.jsx(lf,Hr({className:ks(a.root,n),ownerState:i,ref:t},o))});cf.muiName="ListItemSecondaryAction";const uf=["className"],df=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],pf=zc("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>Hr({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Hr({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${of.root}`]:{paddingRight:48}},{[`&.${nf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ql.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ql.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nf.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"}},[`&.${nf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ql.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})`:Ql.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),ff=zc("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),hf=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:b=!1,focusVisibleClassName:v,secondaryAction:y,selected:S=!1,slotProps:w={},slots:C={}}=r,E=Br(r.ContainerProps,uf),R=Br(r,df),A=x.useContext(Jp),I=x.useMemo(()=>({dense:f||A.dense||!1,alignItems:n,disableGutters:m}),[n,A.dense,f,m]),k=x.useRef(null);Us(()=>{o&&k.current&&k.current.focus()},[o]);const P=x.Children.toArray(a),M=P.length&&(D=P[P.length-1],T=["ListItemSecondaryAction"],x.isValidElement(D)&&-1!==T.indexOf(null!=(O=D.type.muiName)?O:null==(q=D.type)||null==(q=q._payload)||null==(q=q.value)?void 0:q.muiName));var D,T,O,q;const L=Hr({},r,{alignItems:n,autoFocus:o,button:i,dense:I.dense,disabled:h,disableGutters:m,disablePadding:g,divider:b,hasSecondaryAction:M,selected:S}),N=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return wl({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},rf,n)})(L),j=sl(k,t),_=C.root||c.Root||pf,z=w.root||u.root||{},F=Hr({className:ks(N.root,z.className,s),disabled:h},R);let $=l||"li";return i&&(F.component=l||"div",F.focusVisibleClassName=ks(nf.focusVisible,v),$=Lu),M?($=F.component||l?$:"div","li"===d&&("li"===$?$="div":"li"===F.component&&(F.component="div")),or.jsx(Jp.Provider,{value:I,children:or.jsxs(ff,Hr({as:d,className:ks(N.container,p),ref:j,ownerState:L},E,{children:[or.jsx(_,Hr({},z,!Cl(_)&&{as:$,ownerState:Hr({},L,z.ownerState)},F,{children:P})),P.pop()]}))})):or.jsx(Jp.Provider,{value:I,children:or.jsxs(_,Hr({},z,{as:$,ref:j},!Cl(_)&&{ownerState:Hr({},L,z.ownerState)},F,{children:[P,y&&or.jsx(cf,{children:y})]}))})});function mf(e){return Ds("MuiListItemIcon",e)}const gf=Ts("MuiListItemIcon",["root","alignItemsFlexStart"]),bf=["className"],vf=zc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Hr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),yf=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Br(r,bf),i=Hr({},r,{alignItems:x.useContext(Jp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return wl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},mf,r)})(i);return or.jsx(vf,Hr({className:ks(a.root,n),ownerState:i,ref:t},o))}),xf=Ts("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Sf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function wf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Cf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Ef(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Rf(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Ef(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Af=x.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Br(e,Sf),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Us(()=>{n&&p.current.focus()},[n]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${Sl(Qs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}}),[]);const h=sl(p,t);let m=-1;x.Children.forEach(i,(e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&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 g=x.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),x.cloneElement(e,t)}return e});return or.jsx(tf,Hr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Qs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Rf(t,n,l,s,wf);else if("ArrowUp"===r)e.preventDefault(),Rf(t,n,l,s,Cf);else if("Home"===r)e.preventDefault(),Rf(t,null,l,s,wf);else if("End"===r)e.preventDefault(),Rf(t,null,l,s,Cf);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&Ef(n,o);o.previousKeyMatched&&(l||Rf(t,n,!1,s,wf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},d,{children:g}))});function If(e){return Ds("MuiPopover",e)}Ts("MuiPopover",["root","paper"]);const kf=["onEntering"],Pf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Mf=["slotProps"];function Df(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Tf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Of(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function qf(e){return"function"==typeof e?e():e}const Lf=zc(vp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nf=zc(bu,{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}),jf=x.forwardRef(function(e,t){var r,n,o;const i=Bc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Op,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,A=Br(i.TransitionProps,kf),I=Br(i,Pf),k=null!=(r=null==y?void 0:y.paper)?r:b,P=x.useRef(),M=sl(P,k.ref),D=Hr({},i,{anchorOrigin:l,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:k,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:A}),T=(e=>{const{classes:t}=e;return wl({root:["root"],paper:["paper"]},If,t)})(D),O=x.useCallback(()=>{if("anchorPosition"===u)return c;const e=qf(s),t=(e&&1===e.nodeType?e:Qs(P.current).body).getBoundingClientRect();return{top:t.top+Df(t,l.vertical),left:t.left+Tf(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,u]),q=x.useCallback(e=>({vertical:Df(e,S.vertical),horizontal:Tf(e,S.horizontal)}),[S.horizontal,S.vertical]),L=x.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=q(t);if("none"===u)return{top:null,left:null,transformOrigin:Of(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,c=el(qf(s)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Of(r)}},[s,u,O,q,m]),[N,j]=x.useState(g),_=x.useCallback(()=>{const e=P.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)},[L]);x.useEffect(()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,R,_]);x.useEffect(()=>{g&&_()}),x.useImperativeHandle(a,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),x.useEffect(()=>{if(!g)return;const e=Zs(()=>{_()}),t=el(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,_]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?Qs(qf(s)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:Lf,H=null!=(o=null==v?void 0:v.paper)?o:Nf,B=Il({elementType:H,externalSlotProps:Hr({},k,{style:N?k.style:Hr({},k.style,{opacity:0})}),additionalProps:{elevation:h,ref:M},ownerState:D,className:ks(T.paper,null==k?void 0:k.className)}),V=Il({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:ks(T.root,p)}),{slotProps:W}=V,U=Br(V,Mf);return or.jsx($,Hr({},U,!Cl($)&&{slotProps:W,disableScrollLock:R},{children:or.jsx(w,Hr({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},A,{children:or.jsx(H,Hr({},B,{children:d}))}))}))});function _f(e){return Ds("MuiMenu",e)}Ts("MuiMenu",["root","paper","list"]);const zf=["onEntering"],Ff=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],$f={vertical:"top",horizontal:"right"},Hf={vertical:"top",horizontal:"left"},Bf=zc(jf,{shouldForwardProp:e=>_c(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vf=zc(Nf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Wf=zc(Af,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Uf=x.forwardRef(function(e,t){var r,n;const o=Bc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Br(o.TransitionProps,zf),S=Br(o,Ff),w=(()=>{const e=x.useContext(ql);return null!=e&&e})(),C=Hr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),E=(e=>{const{classes:t}=e;return wl({root:["root"],paper:["paper"],list:["list"]},_f,t)})(C),R=i&&!l&&d,A=x.useRef(null);let I=-1;x.Children.map(a,(e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))});const k=null!=(r=b.paper)?r:Vf,P=null!=(n=v.paper)?n:p,M=Il({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),D=Il({elementType:k,externalSlotProps:P,ownerState:C,className:E.paper});return or.jsx(Bf,Hr({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?$f:Hf,slots:{paper:k,root:b.root},slotProps:{root:M,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:Hr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:or.jsx(Wf,Hr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||l),autoFocusItem:R,variant:g},c,{className:ks(E.list,c.className),children:a}))}))});function Gf(e){return Ds("MuiMenuItem",e)}const Kf=Ts("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Yf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Xf=zc(Lu,{shouldForwardProp:e=>_c(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>Hr({},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"}},[`&.${Kf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ql.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Kf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ql.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Kf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ql.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})`:Ql.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Kf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Kf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${xp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${xp.inset}`]:{marginLeft:52},[`& .${xf.root}`]:{marginTop:0,marginBottom:0},[`& .${xf.inset}`]:{paddingLeft:36},[`& .${gf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Hr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${gf.root} svg`]:{fontSize:"1.25rem"}}))),Jf=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:u,className:d}=r,p=Br(r,Yf),f=x.useContext(Jp),h=x.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=x.useRef(null);Us(()=>{n&&m.current&&m.current.focus()},[n]);const g=Hr({},r,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Hr({},a,wl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Gf,a))})(r),v=sl(m,t);let y;return r.disabled||(y=void 0!==u?u:-1),or.jsx(Jp.Provider,{value:h,children:or.jsx(Xf,Hr({ref:v,role:c,tabIndex:y,component:o,focusVisibleClassName:ks(b.focusVisible,l),className:ks(b.root,d)},p,{ownerState:g,classes:b}))})});function Zf(e){return Ds("MuiNativeSelect",e)}const Qf=Ts("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),eh=["className","disabled","error","IconComponent","inputRef","variant"],th=({ownerState:e,theme:t})=>Hr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Hr({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Qf.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),rh=zc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_c,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Qf.multiple}`]:t.multiple}]}})(th),nh=({ownerState:e,theme:t})=>Hr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Qf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),oh=zc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ya(r.variant)}`],r.open&&t.iconOpen]}})(nh),ih=x.forwardRef(function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Br(e,eh),c=Hr({},e,{disabled:n,variant:s,error:o}),u=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return wl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ya(r)}`,i&&"iconOpen",n&&"disabled"]},Zf,t)})(c);return or.jsxs(x.Fragment,{children:[or.jsx(rh,Hr({ownerState:c,className:ks(u.select,r),disabled:n,ref:a||t},l)),e.multiple?null:or.jsx(oh,{as:i,ownerState:c,className:u.icon})]})});var ah;const sh=["children","classes","className","label","notched"],lh=zc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:_c})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ch=zc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:_c})(({ownerState:e,theme:t})=>Hr({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Hr({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));const uh=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],dh=zc(ud,{shouldForwardProp:e=>_c(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:ld})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Hr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${bd.focused} .${bd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${bd.error} .${bd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bd.disabled} .${bd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Hr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),ph=zc(function(e){const{className:t,label:r,notched:n}=e,o=Br(e,sh),i=null!=r&&""!==r,a=Hr({},e,{notched:n,withLabel:i});return or.jsx(lh,Hr({"aria-hidden":!0,className:t,ownerState:a},o,{children:or.jsx(ch,{ownerState:a,children:i?or.jsx("span",{children:r}):ah||(ah=or.jsx("span",{className:"notranslate",children:""}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),fh=zc(dd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:cd})(({theme:e,ownerState:t})=>Hr({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),hh=x.forwardRef(function(e,t){var r,n,o,i,a;const s=Bc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Br(s,uh),b=(e=>{const{classes:t}=e;return Hr({},t,wl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gd,t))})(s),v=td(),y=Qu({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Hr({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:dh,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:fh;return or.jsx(fd,Hr({slots:{root:w,input:C},renderSuffix:e=>or.jsx(ph,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=or.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:Hr({},b,{notchedOutline:null})}))});function mh(e){return Ds("MuiSelect",e)}hh.muiName="Input";const gh=Ts("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var bh;const vh=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],yh=zc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${gh.select}`]:t.select},{[`&.${gh.select}`]:t[r.variant]},{[`&.${gh.error}`]:t.error},{[`&.${gh.multiple}`]:t.multiple}]}})(th,{[`&.${gh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),xh=zc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ya(r.variant)}`],r.open&&t.iconOpen]}})(nh),Sh=zc("input",{shouldForwardProp:e=>jc(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function wh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Ch(e){return null==e||"string"==typeof e&&!e.trim()}const Eh=x.forwardRef(function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:A,readOnly:I,renderValue:k,SelectDisplayProps:P={},tabIndex:M,value:D,variant:T="standard"}=e,O=Br(e,vh),[q,L]=il({controlled:D,default:u,name:"Select"}),[N,j]=il({controlled:A,default:c,name:"Select"}),_=x.useRef(null),z=x.useRef(null),[F,$]=x.useState(null),{current:H}=x.useRef(null!=A),[B,V]=x.useState(),W=sl(t,m),U=x.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;x.useImperativeHandle(W,()=>({focus:()=>{z.current.focus()},node:_.current,value:q}),[q]),x.useEffect(()=>{c&&N&&F&&!H&&(V(a?null:G.clientWidth),z.current.focus())},[F,a]),x.useEffect(()=>{i&&z.current.focus()},[i]),x.useEffect(()=>{if(!g)return;const e=Qs(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const K=(e,t)=>{e?R&&R(t):C&&C(t),H||(V(a?null:G.clientWidth),j(e))},Y=x.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(q)?q.slice():[];const t=q.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),q!==r&&(L(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),w(o,e)}v||K(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(od({value:q})||p)&&(k?Z=k(q):te=!0);const re=Y.map(e=>{if(!x.isValidElement(e))return null;let t;if(v){if(!Array.isArray(q))throw new Error(zr(2));t=q.some(t=>wh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=wh(q,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=v?0===ee.length?null:ee.reduce((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e),[]):Q);let ne,oe=B;!a&&H&&F&&(oe=G.clientWidth),ne=void 0!==M?M:d?null:0;const ie=P.id||(y?`mui-component-select-${y}`:void 0),ae=Hr({},e,{variant:T,value:q,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return wl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ya(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},mh,t)})(ae),le=Hr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ce=ol();return or.jsxs(x.Fragment,{children:[or.jsx(yh,Hr({ref:U,tabIndex:ne,role:"combobox","aria-controls":ce,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),K(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:q,name:y}}),S(e))},onFocus:E},P,{ownerState:ae,className:ks(P.className,se.select,l),id:ie,children:Ch(Z)?bh||(bh=or.jsx("span",{className:"notranslate",children:""})):Z})),or.jsx(Sh,Hr({"aria-invalid":f,value:Array.isArray(q)?q.join(","):q,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=Y.find(t=>t.props.value===e.target.value);void 0!==t&&(L(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),or.jsx(xh,{as:h,className:se.icon,ownerState:ae}),or.jsx(Uf,Hr({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Hr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ce},b.MenuListProps),slotProps:Hr({},b.slotProps,{paper:Hr({},le,{style:Hr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}),Rh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ah=["root"],Ih={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_c(e)&&"variant"!==e,slot:"Root"},kh=zc(jp,Ih)(""),Ph=zc(hh,Ih)(""),Mh=zc(kp,Ih)(""),Dh=x.forwardRef(function(e,t){const r=Bc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=xd,id:u,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Br(r,Rh),A=b?ih:Eh,I=Qu({props:r,muiFormControl:td(),states:["variant","error"]}),k=I.variant||E,P=Hr({},r,{variant:k,classes:i}),M=(e=>{const{classes:t}=e;return t})(P),D=Br(M,Ah),T=d||{standard:or.jsx(kh,{ownerState:P}),outlined:or.jsx(Ph,{label:f,ownerState:P}),filled:or.jsx(Mh,{ownerState:P})}[k],O=sl(t,kl(T));return or.jsx(x.Fragment,{children:x.cloneElement(T,Hr({inputComponent:A,inputProps:Hr({children:o,error:I.error,IconComponent:c,variant:k,type:void 0,multiple:g},b?{id:u}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:S,renderValue:w,SelectDisplayProps:Hr({id:u},C)},p,{classes:p?ca(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===k?{notched:!0}:{},{ref:O,className:ks(T.props.className,a,M.root)},!d&&{variant:k},R))})});Dh.muiName="Select";const Th=x.createContext();function Oh(e){return Ds("MuiTable",e)}Ts("MuiTable",["root","stickyHeader"]);const qh=["className","component","padding","size","stickyHeader"],Lh=zc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Hr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Hr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Nh="table",jh=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiTable"}),{className:n,component:o=Nh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Br(r,qh),c=Hr({},r,{component:o,padding:i,size:a,stickyHeader:s}),u=(e=>{const{classes:t,stickyHeader:r}=e;return wl({root:["root",r&&"stickyHeader"]},Oh,t)})(c),d=x.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return or.jsx(Th.Provider,{value:d,children:or.jsx(Lh,Hr({as:o,role:o===Nh?null:"table",ref:t,className:ks(u.root,n),ownerState:c},l))})}),_h=x.createContext();function zh(e){return Ds("MuiTableBody",e)}Ts("MuiTableBody",["root"]);const Fh=["className","component"],$h=zc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Hh={variant:"body"},Bh="tbody",Vh=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiTableBody"}),{className:n,component:o=Bh}=r,i=Br(r,Fh),a=Hr({},r,{component:o}),s=(e=>{const{classes:t}=e;return wl({root:["root"]},zh,t)})(a);return or.jsx(_h.Provider,{value:Hh,children:or.jsx($h,Hr({className:ks(s.root,n),as:o,ref:t,role:o===Bh?null:"rowgroup",ownerState:a},i))})});function Wh(e){return Ds("MuiTableCell",e)}const Uh=Ts("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Gh=["align","className","component","padding","scope","size","sortDirection","variant"],Kh=zc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ya(r.size)}`],"normal"!==r.padding&&t[`padding${ya(r.padding)}`],"inherit"!==r.align&&t[`align${ya(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Hr({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Ql.lighten(Ql.alpha(e.palette.divider,1),.88):Ql.darken(Ql.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Uh.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Yh=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:c,variant:u}=r,d=Br(r,Gh),p=x.useContext(Th),f=x.useContext(_h),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=u||f&&f.variant,v=Hr({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return wl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${ya(n)}`,"normal"!==o&&`padding${ya(o)}`,`size${ya(i)}`]},Wh,t)})(v);let S=null;return c&&(S="asc"===c?"ascending":"descending"),or.jsx(Kh,Hr({as:m,ref:t,className:ks(y.root,o),"aria-sort":S,scope:g,ownerState:v},d))});function Xh(e){return Ds("MuiTableContainer",e)}Ts("MuiTableContainer",["root"]);const Jh=["className","component"],Zh=zc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Qh=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Br(r,Jh),a=Hr({},r,{component:o}),s=(e=>{const{classes:t}=e;return wl({root:["root"]},Xh,t)})(a);return or.jsx(Zh,Hr({ref:t,as:o,className:ks(s.root,n),ownerState:a},i))});function em(e){return Ds("MuiTableHead",e)}Ts("MuiTableHead",["root"]);const tm=["className","component"],rm=zc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),nm={variant:"head"},om="thead",im=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiTableHead"}),{className:n,component:o=om}=r,i=Br(r,tm),a=Hr({},r,{component:o}),s=(e=>{const{classes:t}=e;return wl({root:["root"]},em,t)})(a);return or.jsx(_h.Provider,{value:nm,children:or.jsx(rm,Hr({as:o,className:ks(s.root,n),ref:t,role:o===om?null:"rowgroup",ownerState:a},i))})});function am(e){return Ds("MuiTableRow",e)}const sm=Ts("MuiTableRow",["root","selected","hover","head","footer"]),lm=["className","component","hover","selected"],cm=zc("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${sm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${sm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ql.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ql.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),um="tr",dm=x.forwardRef(function(e,t){const r=Bc({props:e,name:"MuiTableRow"}),{className:n,component:o=um,hover:i=!1,selected:a=!1}=r,s=Br(r,lm),l=x.useContext(_h),c=Hr({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),u=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return wl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},am,t)})(c);return or.jsx(cm,Hr({as:o,ref:t,className:ks(u.root,n),role:o===um?null:"row",ownerState:c},s))});function pm(e){return or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:or.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function fm({fontSize:e="medium",children:t=null,className:r=""}={}){return or.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:r,children:t})}function hm(e={}){return or.jsx(fm,{...e,children:or.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[or.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),or.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 mm(e={}){return or.jsx(fm,{fontSize:"medium",...e,children:or.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[or.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),or.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 gm(e){return or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:or.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 bm(e={}){return or.jsx(fm,{...e,children:or.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:or.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[or.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),or.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function vm(e={}){return or.jsx(fm,{fontSize:"medium",...e,children:or.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:or.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:or.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function ym({className:e}){return or.jsx(fm,{fontSize:"small",className:e,children:or.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:or.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:or.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:or.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[or.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"}),or.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 xm(e={}){return or.jsx(fm,{...e,children:or.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:or.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:or.jsx("rect",{stroke:$t.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Sm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:$t.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:$t.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:or.jsx(pm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${$t.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`,borderRadius:Ut,backgroundColor:$t.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${$t.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:$t.WHITE,color:$t.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Ut},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:$t.GREYSCALE_0_15,backgroundColor:$t.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$t.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:$t.GREEN_PALE},"&:active":{backgroundColor:$t.GREEN_DARK},"&.Mui-focusVisible":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${Xs($t.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:$t.BLUE_PALE},"&:active":{backgroundColor:$t.BLUE_DARK},"&.Mui-focusVisible":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${Xs($t.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ut,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:$t.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:$t.GREYSCALE_0_42,backgroundColor:$t.GREYSCALE_100_60,"&:active":{backgroundColor:$t.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$t.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:$t.PURPLE,"&.Mui-focusVisible":{borderColor:$t.PURPLE,boxShadow:`0 0 0 3px ${Xs($t.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:$t.GREEN,"&.Mui-focusVisible":{borderColor:$t.GREEN,boxShadow:`0 0 0 3px ${Xs($t.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:$t.BLUE,"&.Mui-focusVisible":{borderColor:$t.BLUE,boxShadow:`0 0 0 3px ${Xs($t.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:$t.ORANGE,"&.Mui-focusVisible":{borderColor:$t.ORANGE,boxShadow:`0 0 0 3px ${Xs($t.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:$t.RED,"&.Mui-focusVisible":{borderColor:$t.RED,boxShadow:`0 0 0 3px ${Xs($t.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:$t.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:$t.PURPLE_PALE},"&:active":{backgroundColor:$t.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:$t.PURPLE_PALE,boxShadow:`0 0 0 3px ${Xs($t.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:$t.GREEN_PALE},"&:active":{backgroundColor:$t.GREEN_DARK},"&.Mui-focusVisible":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${Xs($t.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:$t.BLUE_PALE},"&:active":{backgroundColor:$t.BLUE_DARK},"&.Mui-focusVisible":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${Xs($t.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:$t.ORANGE_PALE},"&:active":{backgroundColor:$t.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:$t.ORANGE_PALE,boxShadow:`0 0 0 3px ${Xs($t.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:$t.RED_PALE},"&:active":{backgroundColor:$t.RED_DARK},"&.Mui-focusVisible":{borderColor:$t.RED_PALE,boxShadow:`0 0 0 3px ${Xs($t.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:$t.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:$t.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ut,boxShadow:`inset 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:or.jsx(gm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ht,borderRadius:Ut,color:$t.TEXT_PRIMARY,backgroundColor:$t.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:$t.GREYSCALE_0_05,color:$t.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:$t.GREEN,borderColor:$t.GREEN},"&.MuiChip-outlinedInfo":{color:$t.BLUE,borderColor:$t.BLUE},"&.MuiChip-outlinedWarning":{color:$t.ORANGE,borderColor:$t.ORANGE},"&.MuiChip-outlinedError":{color:$t.RED,borderColor:$t.RED}},outlined:{border:`solid 1px ${$t.GREYSCALE_0_15}`,backgroundColor:$t.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ut,boxShadow:"none",backgroundColor:$t.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:$t.GREEN,borderColor:$t.GREEN},outlinedSecondary:{color:$t.BLUE,borderColor:$t.BLUE},label:{fontFamily:Jt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:or.jsx(gm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:or.jsx(pm,{"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:Ut},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ut,fontSize:Bt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:$t.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${$t.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:$t.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:$t.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ut,border:`solid 1px ${$t.GREYSCALE_0_15}`,color:$t.GREYSCALE_0_60,marginRight:0,width:Wt,height:Wt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${$t.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ut,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:$t.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Bt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ht,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:$t.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:$t.GREYSCALE_25,fontSize:Ht,fontFamily:Jt.FONT_FAMILY,fontWeight:Yt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:$t.TEXT_PRIMARY},"&.Mui-error":{color:$t.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:$t.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Kt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:$t.TEXT_SECONDARY,content:"'(required)'",fontWeight:Kt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Bt,lineHeight:"16px",backgroundColor:$t.WHITE,borderRadius:Ut,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.GREYSCALE_0_05}`,borderColor:$t.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${$t.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${$t.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.RED}`,boxShadow:`0px 0px 0px 1px ${$t.RED}, inset 0 2px 0 0 ${$t.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.GREYSCALE_0_10}`,borderColor:$t.GREYSCALE_0_10,backgroundColor:$t.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:$t.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:$t.GREYSCALE_0_15,borderRadius:Ut,boxShadow:`inset 0 2px 0 0 ${$t.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>or.jsx(pm,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:$t.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:$t.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:$t.GREYSCALE_0_03},"&:active":{backgroundColor:$t.GREYSCALE_0_10},"&:focus":{backgroundColor:$t.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${$t.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:$t.GREYSCALE_0_30,"&:hover":{backgroundColor:$t.GREYSCALE_0_0,borderColor:$t.GREYSCALE_0_15},"& ~svg":{color:$t.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${$t.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ut}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:$t.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Bt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ht,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ht,fontWeight:Yt,color:$t.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Yt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${$t.GREYSCALE_0_15}, 0px 0px 0px 1px ${$t.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:or.jsx(vm,{}),checkedIcon:or.jsx(mm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:$t.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${Xs($t.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${Xs($t.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:$t.GREYSCALE_0_20}},"&.Mui-disabled":{fill:$t.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:or.jsx(xm,{}),checkedIcon:or.jsx(hm,{}),indeterminateIcon:or.jsx(bm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ut,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:$t.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:$t.GREYSCALE_0_55,color:$t.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:$t.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:$t.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:$t.GREYSCALE_0_55,"&:hover":{color:$t.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:$t.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:$t.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Bt,color:$t.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Yt},secondary:{fontSize:Ht,color:$t.GREYSCALE_45,fontWeight:Kt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Bt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Bt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:$t.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ht,borderBottom:`solid 1px ${$t.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Bt,color:$t.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:$t.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:$t.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?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:$t.RED}}},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:$t.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:$t.GREEN,height:"24px","&.Mui-disabled":{color:$t.GREYSCALE_0_15}},rail:{backgroundColor:$t.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${$t.GREYSCALE_0_05}`,borderRadius:Ut,boxShadow:`inset 0px 0px 0px 1px ${$t.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${$t.GREYSCALE_0_05}`,borderRadius:Ut},thumb:{height:"16px",width:"16px",borderRadius:Ut,backgroundColor:$t.WHITE,boxShadow:`0px 1px 2px 0px ${$t.GREYSCALE_0_15}, 0px 0px 0px 1px ${$t.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ut,boxShadow:`0 2px 4px 0 ${$t.GREYSCALE_0_30}, 0 0 0 1px ${$t.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${$t.GREYSCALE_0_15}, 0 0 0 1px ${$t.GREYSCALE_0_06}, 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${$t.GREYSCALE_0_15}, 0 0 0 1px ${$t.GREYSCALE_0_06}, 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:$t.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:$t.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:$t.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:$t.GREYSCALE_0_15},markLabel:{color:$t.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:$t.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:$t.WHITE,color:$t.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:$t.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${Xs($t.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${Xs($t.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:$t.GREYSCALE_0_15,borderRadius:Ut},thumb:{height:"16px",width:"16px",borderRadius:Ut,backgroundColor:$t.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Bt,fontWeight:Yt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${$t.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`,backgroundColor:$t.GREYSCALE_0_03,borderRadius:Ut},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:$t.GREYSCALE_25,"&.Mui-selected":{color:$t.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Bt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ut,"&:hover":{backgroundColor:$t.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${$t.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${$t.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ut,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:$t.GREYSCALE_0_05},"&:hover":{backgroundColor:$t.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${$t.GREYSCALE_85}`,borderRight:`1px solid ${$t.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Yt,backgroundColor:$t.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:$t.GREYSCALE_98,borderBottom:`1px solid ${$t.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${$t.GREYSCALE_85}`,borderTop:`1px solid ${$t.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:$t.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:$t.GREYSCALE_0_05,"&:hover":{backgroundColor:$t.GREYSCALE_0_03}},"&&:hover":{backgroundColor:$t.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>or.jsx(ym,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${$t.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Bt,borderRadius:Ut,padding:"7px 16px",border:`1px solid ${$t.GREYSCALE_0_15}`,backgroundColor:$t.GREYSCALE_100_60,color:$t.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:$t.GREYSCALE_0_10,border:`1px solid ${$t.GREYSCALE_0_30}`},"&:hover":{backgroundColor:$t.GREYSCALE_0_03,border:`1px solid ${$t.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:$t.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${$t.MISC_FOCUS_BORDER}`,border:`1px solid ${$t.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:$t.GREYSCALE_25,backgroundColor:$t.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:$t.GREYSCALE_0_10,border:`1px solid ${$t.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ht,height:24,width:24,padding:7},sizeLarge:{fontSize:Vt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Bt,borderRadius:Ut}}},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:$t.GREYSCALE_20},tooltip:{backgroundColor:$t.GREYSCALE_20,fontSize:Ht,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const wm=e=>({mode:"light",primary:{ultraLight:$t.GREEN_ULTRA_LIGHT,light:$t.GREEN_PALE,main:$t.GREEN,dark:$t.GREEN_DARK,extraDark:$t.GREEN_EXTRA_DARK,contrastText:$t.WHITE},secondary:{ultraLight:$t.BLUE_ULTRA_LIGHT,light:$t.BLUE_PALE,main:$t.BLUE,dark:$t.BLUE_DARK,extraDark:$t.BLUE_EXTRA_DARK,contrastText:$t.WHITE},error:{ultraLight:$t.RED_ULTRA_LIGHT,light:$t.RED_PALE,main:$t.RED,dark:$t.RED_DARK,extraDark:$t.RED_EXTRA_DARK,contrastText:$t.WHITE},warning:{ultraLight:$t.ORANGE_ULTRA_LIGHT,light:$t.ORANGE_PALE,main:$t.ORANGE,dark:$t.ORANGE_DARK,extraDark:$t.ORANGE_EXTRA_DARK,contrastText:$t.WHITE},success:{ultraLight:$t.GREEN_ULTRA_LIGHT,light:$t.GREEN_PALE,main:$t.GREEN,dark:$t.GREEN_DARK,extraDark:$t.GREEN_EXTRA_DARK,contrastText:$t.WHITE},info:{ultraLight:$t.BLUE_ULTRA_LIGHT,light:$t.BLUE_PALE,main:$t.BLUE,dark:$t.BLUE_DARK,extraDark:$t.BLUE_EXTRA_DARK,contrastText:$t.WHITE},text:{primary:$t.TEXT_PRIMARY,secondary:$t.TEXT_SECONDARY,disabled:$t.GREYSCALE_0_30},action:{hover:$t.GREYSCALE_0_03,hoverOpacity:.03,selected:$t.GREYSCALE_0_05,selectedOpacity:.05,focus:$t.MISC_FOCUS_BORDER},amethyst:{ultraLight:$t.WHITE,main:$t.PURPLE,light:$t.PURPLE_PALE,dark:$t.PURPLE_DARK,extraDark:$t.GREYSCALE_0_0,contrastText:$t.WHITE},background:{paper:$t.WHITE,default:$t.GREYSCALE_95},divider:$t.GREYSCALE_0_15}),Cm=(e="light")=>yc({components:Sm(),palette:wm(),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:Bt,fontWeightLight:Gt,fontWeightRegular:Kt,fontWeightMedium:Yt,fontWeightBold:Xt,htmlFontSize:Bt,fontFamily:Jt.FONT_FAMILY,button:{fontWeight:Yt,fontSize:Bt,textTransform:"none"},body1:{fontSize:Vt,lineHeight:"24px"},body2:{fontSize:Bt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Wt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Vt,fontWeight:Yt,lineHeight:"16px"},h6:{fontSize:Bt,fontWeight:Yt,lineHeight:"16px"},caption:{color:$t.TEXT_SECONDARY},subtitle1:{fontSize:Bt,color:$t.TEXT_SECONDARY},subtitle2:{fontSize:Ht,color:$t.TEXT_SECONDARY}},shape:{borderRadius:Ut}}),Em={...Ft},Rm=Cm().palette,Am={TEXT:Rm.text.primary,DISABLED:Rm.text.disabled,HOVER:Rm.action.hover,WHITE:Em.GREYSCALE_100,BORDER_LIGHT:Em.GREYSCALE_90,BORDER_MEDIUM:Em.GREYSCALE_85,BORDER_HEAVY:Em.GREYSCALE_50,DARK_MODE_TEXT:Em.GREYSCALE_95,DARK_MODE_BORDER:Em.GREYSCALE_95,DARK_MODE_DISABLED:Em.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Em.GREYSCALE_95,SELECTED:Rm.primary.main,LINK:Rm.info.main,ERROR:Rm.error.main},Im=(e,t=Am.TEXT,r=Am.WHITE)=>{const n=ie(e??""),o=ie(t),i=ie(r);return n.isInvalid()?t:function(e,t,r){const n=ae(e,t),o=ae(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},km=e=>{const t=e.getStyle("","","dataColors.selected")||Am.SELECTED,r=function(e,t){const r=ie(se),n=ie(e),o=ie(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ae(r,n),a=ae(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?se:"#000000"}(t,Am.TEXT);return{background:t,color:r}},Pm=(e,t)=>{const r=ie(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Mm=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},Dm=e=>{const t=ie(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Tm=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},Om=e=>{e.stopPropagation(),e.preventDefault()},qm=e=>!!e&&0===ie(e).a,Lm="#grid",Nm=(e,t,r,n=Am.WHITE)=>e&&!qm(e)?e:qm(t)?r&&!qm(r)?r:n:t,jm=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},_m=(e,t,r,n,o)=>{const i=jm(".qv-object .qv-inner-object",r),a=jm(".qv-panel-sheet",r),s=jm(Lm,r)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return Dm(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ie(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),c=n?.(t),u=o?.(t),d=l||c||i||u,p=qm(d),f=!qm(h=p?s:d)&&Im(h,Am.TEXT,Am.DARK_MODE_TEXT)===ee(Am.DARK_MODE_TEXT);var h;return{color:d,headerColor:Nm(l,d,s),isDark:f}},zm=(t,r,a,s)=>{const l=i(),c=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o(()=>{let r;return e&&(r=new MutationObserver(e=>{i(e)}),r.observe(e,t)),()=>{r?.disconnect()}},[e,t]),r})(r.closest(Lm),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return e(()=>({...l,background:_m(t,l,r,a,s)}),[l.name(),r,a,s,t,c])};const Fm=3,$m=/\n/g;function Hm(e,t,r){let n=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),c=r(s);if(l>t&&c<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}const Bm=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o)=>{const{maxNbrLinesOfText:i=Fm,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const s=o.measureText.bind(o),l=kt(e=>{if(void 0===e)return 0;if(a){const t=e.split($m).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace($m," ");return s(t).width}),c=e=>+l(e).toFixed(2),u=kt(({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split($m):[e];let o=0;for(const e of n){let r=e;do{o+=1,r=Hm(r,t,c)}while(null!==r&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:u}}};function Vm({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Fm,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:c}=A(()=>Bm({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[r,n,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:c}}var Wm,Um={};var Gm=function(){if(Wm)return Um;Wm=1;var e=B;return Um.createRoot=e.createRoot,Um.hydrateRoot=e.hydrateRoot,Um}();const Km="Source Sans Pro, sans-serif",Ym=(t,n,o)=>{const[,i,a]=function(t,n){const o=e(()=>({isLoading:!0}),n),[i,a]=r(async()=>{try{return await t()}finally{o.isLoading=!1}},n);return[i,o.isLoading,a]}(async()=>{const e=we(o.flags),r=t.getStyle("","","fontFamily"),n=t.getStyle("object","label.name","fontFamily"),i=t.getStyle("object","label.value","fontFamily"),a=t.getStyle("","","fontFamilies")??[];return Promise.all([...e,...a,r,n,i,Km].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[n,t,o]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function Xm(e,t){const[r,n]=I(t);r.some((e,r)=>e!==t[r])&&(n(t),e())}var Jm={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Zm=({translator:e})=>(A(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Jm).forEach(t=>{e.add(Jm[t])})}}(e)},[e]),e),Qm="12px",eg="nebula-table-utils-head-menu-button",tg="nebula-table-utils-head-menu-wrapper",rg="nebula-table-utils-head-menu",ng="nebula-table-utils-head-menu-list-id",og="sn-copy-cell";let ig=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const ag="nebula-table-utils-column-adjuster";let sg=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),lg=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const cg={darker:.15,brighter:.3,opacity:.03},ug={darker:.3,brighter:.5,opacity:.05};let dg=function(e){return e.Cyclic="C",e}({});const pg=document.createElement("textarea");function fg(e){pg.value=e,document.body.appendChild(pg),pg.select(),pg.setSelectionRange(0,pg.value.length),document.execCommand("copy"),document.body.removeChild(pg)}pg.style.position="absolute",pg.style.left="-9999px",pg.setAttribute("readonly","");const hg=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{fg(t)}):fg(t))};function mg(e){return"init"in e}function gg(e){return"function"==typeof e.write}function bg(e){return"v"in e||"e"in e}function vg(e){if("e"in e)throw e.e;if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function yg(e){return"function"==typeof(null==e?void 0:e.then)}function xg(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function Sg(e,t,r){const n=r.get(e),o=null==n?void 0:n.t,i=t.p;if(!(null==o?void 0:o.size))return i;if(!i.size)return o;const a=new Set(o);for(const e of i)a.add(e);return a}const wg=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach(e=>e(r)),null==(o=t.get(r))||o.forEach(e=>e())};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function Cg(e){return e.i||(e.i=wg()),e.r||(e.r=wg()),e.c||(e.c=wg()),e.m||(e.m=wg()),e.u||(e.u=wg()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const Eg=(e,t,r,...n)=>r.read(...n),Rg=(e,t,r,...n)=>r.write(...n),Ag=(e,t,r)=>r.INTERNAL_onInit(t),Ig=(e,t,r,n)=>{var o;return null==(o=r.onMount)?void 0:o.call(r,n)},kg=(e,t,r)=>{var n;const o=e[0];let i=o.get(r);if(!i){const a=e[6],s=e[9];i={d:new Map,p:new Set,n:0},o.set(r,i),null==(n=a.i)||n.call(a,r),function(e){return!!e.INTERNAL_onInit}(r)&&s(e,t,r)}return i},Pg=(e,t)=>{var r;const n=e[1],o=e[3],i=e[4],a=e[5],s=e[6],l=e[13];if(!(s.f||o.size||i.size||a.size))return;const c=[],u=e=>{try{e()}catch(e){c.push(e)}};do{s.f&&u(s.f);const c=new Set;for(const e of o){const t=null==(r=n.get(e))?void 0:r.l;if(t)for(const e of t)c.add(e)}o.clear();for(const e of a)c.add(e);a.clear();for(const e of i)c.add(e);i.clear();for(const e of c)u(e);o.size&&l(e,t)}while(o.size||a.size||i.size);if(c.length)throw new AggregateError(c)},Mg=(e,t)=>{const r=e[1],n=e[2],o=e[3],i=e[11],a=e[14],s=e[17];if(!o.size)return;const l=[],c=[],u=new WeakSet,d=new WeakSet,p=[],f=[];for(const r of o)p.push(r),f.push(i(e,t,r));for(;p.length;){const o=p.length-1,a=p[o],s=f[o];if(d.has(a))p.pop(),f.pop();else if(u.has(a)){if(n.get(a)===s.n)l.push(a),c.push(s);else if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n.has(a))throw new Error("[Bug] invalidated atom exists");d.add(a),p.pop(),f.pop()}else{u.add(a);for(const n of Sg(a,s,r))u.has(n)||(p.push(n),f.push(i(e,t,n)))}}for(let r=l.length-1;r>=0;--r){const i=l[r],u=c[r];let d=!1;for(const e of u.d.keys())if(e!==i&&o.has(e)){d=!0;break}d&&(n.set(i,u.n),a(e,t,i),s(e,t,i)),n.delete(i)}},Dg=new WeakSet,Tg=(e,t,r)=>{var n,o;const i=e[1],a=e[2],s=e[3],l=e[6],c=e[7],u=e[11],d=e[12],p=e[13],f=e[14],h=e[16],m=e[17],g=e[20],b=e[26],v=e[28],y=u(e,t,r),x=v[0];if(bg(y)){if(i.has(r)&&a.get(r)!==y.n||y.m===x)return y.m=x,y;let n=!1;for(const[r,o]of y.d)if(f(e,t,r).n!==o){n=!0;break}if(!n)return y.m=x,y}let S=!0;const w=new Set(y.d.keys()),C=()=>{for(const e of w)y.d.delete(e)},E=()=>{if(i.has(r)){const n=!s.size;m(e,t,r),n&&(p(e,t),d(e,t))}},R=n=>{var o;if(n===r){const r=u(e,t,n);if(!bg(r)){if(!mg(n))throw new Error("no atom init");g(e,t,n,n.init)}return vg(r)}const a=f(e,t,n);try{return vg(a)}finally{w.delete(n),y.d.set(n,a.n),yg(y.v)&&xg(r,y.v,a),i.has(r)&&(null==(o=i.get(n))||o.t.add(r)),S||E()}};let A,I;const k={get signal(){return A||(A=new AbortController),A.signal},get setSelf(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(import.meta.env?import.meta.env.MODE:void 0)||gg(r)||console.warn("setSelf function cannot be used with read-only atom"),!I&&gg(r)&&(I=(...n)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return h(e,t,r,n)}finally{p(e,t),d(e,t)}}),I}},P=y.n,M=a.get(r)===P;try{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&Dg.delete(t);const o=c(e,t,r,R,k);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&Dg.has(t)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,r,o),yg(o)){b(e,t,o,()=>null==A?void 0:A.abort());const r=()=>{C(),E()};o.then(r,r)}else C();return null==(n=l.r)||n.call(l,r),y.m=x,y}catch(e){return delete y.v,y.e=e,++y.n,y.m=x,y}finally{S=!1,y.n!==P&&M&&(a.set(r,y.n),s.add(r),null==(o=l.c)||o.call(l,r))}},Og=(e,t,r)=>{const n=e[1],o=e[2],i=e[11],a=[r];for(;a.length;){const r=a.pop(),s=i(e,t,r);for(const l of Sg(r,s,n)){const r=i(e,t,l);o.get(l)!==r.n&&(o.set(l,r.n),a.push(l))}}},qg=(e,t,r,n)=>{const o=e[3],i=e[6],a=e[8],s=e[11],l=e[12],c=e[13],u=e[14],d=e[15],p=e[16],f=e[17],h=e[20],m=e[28];let g=!0;const b=r=>vg(u(e,t,r)),v=(n,...a)=>{var u;const b=s(e,t,n);try{if(n===r){if(!mg(n))throw new Error("atom not writable");"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&Dg.add(t);const r=b.n,s=a[0];return h(e,t,n,s),f(e,t,n),void(r!==b.n&&(++m[0],o.add(n),d(e,t,n),null==(u=i.c)||u.call(i,n)))}return p(e,t,n,a)}finally{g||(c(e,t),l(e,t))}};try{return a(e,t,r,b,v,...n)}finally{g=!1}},Lg=(e,t,r)=>{var n;const o=e[1],i=e[3],a=e[6],s=e[11],l=e[15],c=e[18],u=e[19],d=s(e,t,r),p=o.get(r);if(p&&d.d.size>0){for(const[o,u]of d.d)if(!p.d.has(o)){const d=s(e,t,o);c(e,t,o).t.add(r),p.d.add(o),u!==d.n&&(i.add(o),l(e,t,o),null==(n=a.c)||n.call(a,o))}for(const n of p.d)if(!d.d.has(n)){p.d.delete(n);const o=u(e,t,n);null==o||o.t.delete(r)}}},Ng=(e,t,r)=>{var n;const o=e[1],i=e[4],a=e[6],s=e[10],l=e[11],c=e[12],u=e[13],d=e[14],p=e[16],f=e[18],h=l(e,t,r);let m=o.get(r);if(!m){d(e,t,r);for(const n of h.d.keys()){f(e,t,n).t.add(r)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(r,m),gg(r)&&function(e){return!!e.onMount}(r)){const n=()=>{let n=!0;const o=(...o)=>{try{return p(e,t,r,o)}finally{n||(u(e,t),c(e,t))}};try{const i=s(e,t,r,o);i&&(m.u=()=>{n=!0;try{i()}finally{n=!1}})}finally{n=!1}};i.add(n)}null==(n=a.m)||n.call(a,r)}return m},jg=(e,t,r)=>{var n,o;const i=e[1],a=e[5],s=e[6],l=e[11],c=e[19],u=l(e,t,r);let d=i.get(r);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(n=i.get(e))?void 0:n.d.has(r)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(r);for(const n of u.d.keys()){const o=c(e,t,n);null==o||o.t.delete(r)}null==(o=s.u)||o.call(s,r)},_g=(e,t,r,n)=>{const o=e[11],i=e[27],a=o(e,t,r),s="v"in a,l=a.v;if(yg(n))for(const i of a.d.keys())xg(r,n,o(e,t,i));a.v=n,delete a.e,s&&Object.is(l,a.v)||(++a.n,yg(l)&&i(e,t,l))},zg=(e,t,r)=>vg((0,e[14])(e,t,r)),Fg=(e,t,r,...n)=>{const o=e[3],i=e[12],a=e[13],s=e[16],l=o.size;try{return s(e,t,r,n)}finally{o.size!==l&&(a(e,t),i(e,t))}},$g=(e,t,r,n)=>{const o=e[12],i=e[18],a=e[19],s=i(e,t,r).l;return s.add(n),o(e,t),()=>{s.delete(n),a(e,t,r),o(e,t)}},Hg=(e,t,r,n)=>{const o=e[25];let i=o.get(r);if(!i){i=new Set,o.set(r,i);const e=()=>o.delete(r);r.then(e,e)}i.add(n)},Bg=(e,t,r)=>{const n=e[25].get(r);null==n||n.forEach(e=>e())},Vg=new WeakMap;function Wg(e){const t=Vg.get(e);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Store must be created by buildStore to read its building blocks");const r=t[24];return r?r(t,e):t}function Ug(...e){const t={get:e=>n(r,t,e),set:(e,...n)=>o(r,t,e,...n),sub:(e,n)=>i(r,t,e,n)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},Eg,Rg,Ag,Ig,kg,Pg,Mg,Tg,Og,qg,Lg,Ng,jg,_g,zg,Fg,$g,void 0,new WeakMap,Hg,Bg,[0]].map((t,r)=>e[r]||t);Vg.set(t,Object.freeze(r));const n=r[21],o=r[22],i=r[23];return t}let Gg,Kg=0;function Yg(e,t){const r="atom"+ ++Kg,n={toString(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=Xg,n.write=Jg),t&&(n.write=t),n}function Xg(e){return e(this)}function Jg(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function Zg(){return Ug()}const Qg=P(void 0);function eb(e){const t=q(Qg);return(null==e?void 0:e.store)||t||(Gg||(Gg=Zg(),"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Gg),globalThis.__JOTAI_DEFAULT_STORE__!==Gg&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Gg)}function tb({children:e,store:t}){const r=k(null);return t?w(Qg.Provider,{value:t},e):(null===r.current&&(r.current=Zg()),w(Qg.Provider,{value:r.current},e))}const rb=e=>"function"==typeof(null==e?void 0:e.then),nb=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},ob=S.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(nb(e),e)}),ib=new WeakMap,ab=(e,t,r)=>{const n=Wg(e),o=n[26];let i=ib.get(t);return i||(i=new Promise((a,s)=>{let l=t;const c=e=>t=>{l===e&&a(t)},u=e=>t=>{l===e&&s(t)},d=()=>{try{const t=r();rb(t)?(ib.set(t,i),l=t,t.then(c(t),u(t)),o(n,e,t,d)):a(t)}catch(e){s(e)}};t.then(c(t),u(t)),o(n,e,t,d)}),ib.set(t,i)),i};function sb(e,t){const{delay:r,unstable_promiseStatus:n=!S.use}={},o=eb(t),[[i,a,s],l]=M(t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]},void 0,()=>[o.get(e),o,e]);let c=i;if(a===o&&s===e||(l(),c=o.get(e)),D(()=>{const t=o.sub(e,()=>{if(n)try{const t=o.get(e);rb(t)&&nb(ab(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof r)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(l,r);l()});return l(),t},[o,e,r,n]),T(c),rb(c)){const t=ab(o,c,()=>o.get(e));return n&&nb(t),ob(t)}return c}function lb(e,t){const r=eb(t);return O((...t)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...t)},[r,e])}function cb(e,t){return[sb(e,t),lb(e,t)]}const ub=Yg(void 0),db=Yg({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>Promise.resolve()}),pb=Yg({}),fb=Yg({}),hb=Yg(e=>{const t=e(fb);return e=>t.flags.isEnabled(e)}),mb=Yg(!1),gb=Yg({qHyperCube:{qDimensionInfo:[],qMeasureInfo:[],qSize:{qcx:0,qcy:0}}}),bb=Yg(e=>e(gb).qHyperCube.qSize.qcy),vb=Yg(e=>!!e(gb).snapshotData),yb=Yg(e=>e(gb).qHyperCube.qDimensionInfo.length),xb=Yg(e=>e(gb).qHyperCube.qMeasureInfo.length),Sb=Yg(e=>e(gb).qStateName),wb=Yg(e=>e(gb).snapshotData),Cb=Yg(e=>!1!==e(gb).usePagination),Eb=Yg(e=>!1!==e(gb).accessibleHeader),Rb=Yg(),Ab=Yg(!1),Ib=Yg(e=>e(Rb),(e,t,r)=>{t(Rb,r),t(Ab,r.isModal())}),kb=Yg(),Pb=Yg(e=>{const t=e(kb),r=e(vb);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}},(e,t,r)=>{t(kb,r)}),Mb=Yg(e=>!!e(Pb).active),Db=Yg(e=>!!e(Pb).passive),Tb=Yg(e=>!!e(Pb).select),Ob=Yg(e=>!!e(Pb).scroll),qb=Yg(e=>{const t=e(Mb),r=e(Ab);return t&&!r}),Lb=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),Nb=Yg(),jb=Yg(e=>e(Nb)?.direction),_b=Yg(e=>e(Nb)?.footerContainer),zb=Yg(e=>e(Nb)?.viewState),Fb=Yg(e=>e(Nb)?.freeResize),$b=Yg(e=>{const t=e(gb),r=e(zb),n=e(Cb);return void 0!==r?.usePagination?r.usePagination:n||Lb(t,r)}),Hb=Yg({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),Bb=Yg(e=>e(Hb),(e,t,r)=>{const n=e($b),o=e(hb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE");(n||o)&&t(Hb,r)}),Vb=Yg(),Wb=Yg(e=>{const t=e(Vb);if(t&&"getEffectiveProperties"in t)return t}),Ub={width:0,height:0,top:0,left:0},Gb=Yg(Ub),Kb=Yg(Ub),Yb=Yg(e=>e(Gb),(e,t,r)=>{const n=e(gb),o=e(Fb),i=e(Gb),a=n.snapshotData?.content&&!o;(i.width!==r.width||i.height!==r.height||i.top!==r.top||i.left!==r.left||a)&&(t(Kb,r),t(Gb,a?{...r,...n.snapshotData?.content?.size}:r))}),Xb=Yg({}),Jb=new WeakMap,Zb=Yg(e=>{const t=e(Xb),r=Jb.get(t);if(r)return r;const n=Gm.createRoot(t);return Jb.set(t,n),n}),Qb=Yg({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),ev=Yg({get:e=>e,add:()=>{},language:()=>"en"});var tv,rv={exports:{}};var nv=(tv||(tv=1,self,rv.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=n&&i(n)?n:[]):u=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=n&&i(n)?n:[]):u=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>De});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var c=v(u(n[0],o),h(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(n&&2===n.length){var d=u(n[0],o),p=u(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=c(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=h(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:u,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function P(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=P(e[r||t])?i:e[t],e=e[r||t]}}),e}function T(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){T(e[n],t[n])||(r=!1)}),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||M(t,o)||(P(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(A.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&P(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!P(t[0])&&P(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){P(t[o])&&!M(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},A.apply=function(e,t){t.forEach(function(t){var r,n,o=D(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!M(r,e)&&delete r[e]}),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var u=D(e,t.from);I(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])})},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,q=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var L="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===L)return r[n]}function j(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===L)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var c=i(n,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,u,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(c,1),m=w.getDimComp(c,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(L))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function H(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var c=s;void 0===c&&(c=w.getNumDimensions({properties:o,layout:a}));var u=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,c),h=w.getAboveComp(n,c,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,c);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var v=w.getDimComp(u,1),y=w.getDimComp(u,0),x=w.getAggrComp(b,v,y);b=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function U(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const Y={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var c=i(n,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,u),p="".concat(u," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(c,1),h=w.getDimComp(c,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var c=i(n,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),c=""===s&&""===l?"":s||l,u=le(o,i),d=ce(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(p,"))")}(u,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const ke=Ie;function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}var Me={accumulation:z,movingAverage:V,difference:ee,normalization:ue,timeSeriesDecomposition:Y};const De={modifiers:Me,apply:Oe,applyModifiers:qe,cleanUpMeasure:Le,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,initBase:ke.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Me[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return Me[e]&&Me[e].isApplicable({properties:r,layout:n})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=Fe(e);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:_e};var Te={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Te[r.id]=Te[r.id]||{isFirstTime:!0};var c=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Pe(n))return qe({model:r,properties:n});var u=r?r.layout:void 0,d=i(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(u,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:u})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:u,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ge({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:u,masterItem:s,isFirstTime:c})?r.getEffectiveProperties().then(function(e){var n=t()(!0,{},e);He(n);var o=Qe(n);return Ke({model:r}).then(function(t){return Ye({libraryIds:o,model:r}).then(function(o){return h&&function(e){var t=e.properties;ze(t).forEach(function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Pe(e)&&!e.disabled){if(r++,"object"!==Pe(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:n}),qe({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Pe(e.base)})}(p)?r.getEffectiveProperties().then(function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then(function(){var e=t()(!0,{},n);return ze(n).forEach(function(e){return Le(e)}),Je({oldProperties:e,newProperties:n,model:r})})}({model:r,properties:e})}):Promise.resolve(l)}function qe(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:c}).then(function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach(function(e){return Le(e)}),Promise.resolve();var l=a?void 0:Qe(n);return Ke({model:o,dimensionAndFieldList:s}).then(function(e){return Ye({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){r.forEach(function(r){Ge({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;ke.isValid(r)||ke.initBase(r,!0);var l=r.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Pe(e)&&!e.disabled){if(s++,"object"!==Pe(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Me[e.type].initModifier(e,r);var l=r.qLibraryId||u&&u.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Me[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Me[n.type].updateModifier&&Me[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Me[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}})}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):Le(r)})})})}({measures:a,properties:o,model:r,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)})})}function Le(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Pe(e)&&!e.disabled&&!Me[e.type]})}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})})}function je(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Me[n.type]&&!n.disabled)return n}}function _e(e){var t=je(e);return!t||Me[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach(function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)})}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Pe(t)&&(t.disabled||!Me[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Pe(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ke(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ye(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):q(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Pe(e)&&!e.disabled&&Me[e.type]&&Me[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=Fe(t);if(Ge({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach(function(r){t[r]=i(e,r)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function u(e,r){return t.app[r](e).then(function(t){n[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach(function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(u(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!n[e]&&s.push(u(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose()}),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Te[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>He});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:u};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach(function(e){t.properties[e]=r[e]})},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const P=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},M=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},D=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},q=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(c):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},L=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(c):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},N=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},_=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return I(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),n.dimensions.added(e,r)})}},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return k(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),n.measures.added(e,r)})}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach(function(t){i.setValue(e,t,r[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=_({exportFormat:t,initialProperties:n,hypercubePath:c}),b=i.getValue(n,c||"").qHyperCubeDef,v=i.getValue(g,c||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,A=l.defaultMeasure,I=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),q({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),L({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),j({exportFormat:t,newHyperCubeDef:v}),M("qMaxStackedCells",b,v),M("qNoOfLeftDims",b,v),D("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",b,v,"S"),D("qReductionMode",b,v,"N"),D("qSortbyYValue",b,v),D("qIndentMode",b,v),D("qShowTotalsAbove",b,v),P(g,t,n),m.qProperty=g;var k=i.getValue(u||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:k}),p&&V(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,r,n){t=t||[];var o=u(e,n,r),i=u(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const Y={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(G(a,t,n,o),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=Y.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}),t.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var c=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),u=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(c){var f=Y.create(Y.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:c,isDimension:r,qNumFormat:u,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:c,isDimension:r,qNumFormat:u,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=Y.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ce=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ue=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=Y.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=Y.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return Y.moveByIdFromGroup(a,[],"qAttributeDimensions",c),Y.moveByIdFromGroup(a,[],"qAttributeExpressions",c),Y.moveByIdFromGroup(s,[],"qAttributeExpressions",u),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ce(d,p),b=ue({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),u}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var c=Ce(r,n,l);i.setValue(t,c,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),c=i.getValue(t,l);void 0!==c&&(i.setValue(o,a,c),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",ke="measures",Pe="qDef.conditionalColoring";const Me={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:ke,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Pe,arrayName:ke,quarantineName:Ie})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},He={hypercube:W,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:$e}})(),n.default})()),rv.exports),ov=Zt(nv);const iv="qHyperCubeDef.qMeasures",av="measures",sv="qHyperCubeDef.qDimensions",lv="dimensions",cv="qDef.representation",uv="tableRepresentation",dv="qDef.conditionalColoring",pv="conditionalColoring",fv="qMiniChartDef",hv="miniChartDef",mv=({propertyTree:e,hyperCubePath:t})=>{const r=ov.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map(r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t));return o})(o,i,n);return It(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),ov.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),ov.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),ov.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{ov.quarantineArrayProp({properties:e,arrayPath:sv,itemPath:cv,arrayName:lv,quarantineName:uv}),ov.quarantineArrayProp({properties:e,arrayPath:iv,itemPath:cv,arrayName:av,quarantineName:uv}),ov.quarantineArrayProp({properties:e,arrayPath:iv,itemPath:dv,arrayName:av,quarantineName:pv}),ov.quarantineArrayProp({properties:e,arrayPath:iv,itemPath:fv,arrayName:av,quarantineName:hv})})(r.properties),r};const gv=/^q[A-Z]/,bv=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],vv=e=>"object"==typeof e&&null!==e,yv=(e,t)=>(Object.entries(e).forEach(([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!gv.test(e)&&!bv.some(e=>e.test(t)))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map((e,t)=>vv(e)?yv(e,`${o}.${t}`):e):vv(n)&&(e[r]=yv(n,o))}),e),xv=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:lg.Pixels,pixels:e}:{type:lg.FitToContent}:i.qDef.columnWidth=e}return i},Sv=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{if(i){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}yv(e.properties)}const a=ov.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(ov.conditionalShow.unquarantine(a.qProperty),i)It(a,"qProperty.totals.show",!1),It(a,"qProperty.usePagination",!0),It(a,"qProperty.accessibleHeader",!0);else{ov.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{ov.unquarantineArrayProp({properties:e,arrayPath:sv,itemPath:cv,arrayName:lv,quarantineName:uv}),ov.unquarantineArrayProp({properties:e,arrayPath:iv,itemPath:cv,arrayName:av,quarantineName:uv}),ov.unquarantineArrayProp({properties:e,arrayPath:iv,itemPath:dv,arrayName:av,quarantineName:pv}),ov.unquarantineArrayProp({properties:e,arrayPath:iv,itemPath:fv,arrayName:av,quarantineName:hv})})(a.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=a.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>xv(e,t,n)),measures:a.filter(e=>e>=o).map(e=>xv(t,e,n,o))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(It(a,"qProperty.qHyperCubeDef.qDimensions",o),It(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var wv,Cv,Ev={},Rv={exports:{}},Av={exports:{}};function Iv(){return wv||(wv=1,function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Av)),Av.exports}var kv={};function Pv(e,t){return function(){return null}}function Mv(e){return e&&"object"===Hl(e)&&e.constructor===Object}function Dv(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Hr({},e):e;return Mv(e)&&Mv(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(Mv(t[o])&&o in e?n[o]=Dv(e[o],t[o],r):n[o]=t[o])}),n}var Tv=(ea.element,function(){return null});Tv.isRequired=(ea.element.isRequired,function(){return null});var Ov=function(){return null};var qv,Lv,Nv={exports:{}},jv={};var _v=(Lv||(Lv=1,Nv.exports=function(){if(qv)return jv;qv=1;var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),n=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),f=b("react.server.block"),h=b("react.fundamental"),m=b("react.debug_trace_mode"),g=b("react.legacy_hidden")}function v(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case r:case o:case n:case l:case c:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case i:return p;default:return f}}case t:return f}}}var y=i,x=e,S=s,w=r,C=d,E=u,R=t,A=o,I=n,k=l;return jv.ContextConsumer=a,jv.ContextProvider=y,jv.Element=x,jv.ForwardRef=S,jv.Fragment=w,jv.Lazy=C,jv.Memo=E,jv.Portal=R,jv.Profiler=A,jv.StrictMode=I,jv.Suspense=k,jv.isAsyncMode=function(){return!1},jv.isConcurrentMode=function(){return!1},jv.isContextConsumer=function(e){return v(e)===a},jv.isContextProvider=function(e){return v(e)===i},jv.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},jv.isForwardRef=function(e){return v(e)===s},jv.isFragment=function(e){return v(e)===r},jv.isLazy=function(e){return v(e)===d},jv.isMemo=function(e){return v(e)===u},jv.isPortal=function(e){return v(e)===t},jv.isProfiler=function(e){return v(e)===o},jv.isStrictMode=function(e){return v(e)===n},jv.isSuspense=function(e){return v(e)===l},jv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===m||e===n||e===l||e===c||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===p||e[0]===f)},jv.typeOf=v,jv}()),Nv.exports),zv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Fv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(zv);return t&&t[1]||""}(e)||t}function $v(e,t,r){var n=Fv(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var Hv,Bv="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Vv=ea.oneOfType([ea.func,ea.object]),Wv=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Pv,deepmerge:Dv,elementAcceptingRef:Tv,elementTypeAcceptingRef:Ov,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Fv(e,"Component");if("object"===Hl(e))switch(e.$$typeof){case _v.ForwardRef:return $v(e,e.render,"ForwardRef");case _v.Memo:return $v(e,e.type,"memo");default:return}}},ponyfillGlobal:Bv,refType:Vv}),Uv=Qt(Wv);function Gv(){if(Hv)return kv;Hv=1,Object.defineProperty(kv,"__esModule",{value:!0}),kv.hexToRgb=r,kv.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),r=t.values;return"#".concat(r.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},kv.hslToRgb=n,kv.decomposeColor=o,kv.recomposeColor=i,kv.getContrastRatio=function(e,t){var r=a(e),n=a(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},kv.getLuminance=a,kv.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?l(e,t):c(e,t)},kv.fade=function(e,t){return s(e,t)},kv.alpha=s,kv.darken=l,kv.lighten=c;var e=Uv;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function r(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function n(e){var t=(e=o(e)).values,r=t[0],n=t[1]/100,a=t[2]/100,s=n*Math.min(a,1-a),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),i({type:c,values:u})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(r(t));var n=t.indexOf("("),i=t.substring(0,n);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var a=t.substring(n+1,t.length-1).split(",");return{type:i,values:a=a.map(function(e){return parseFloat(e)})}}function i(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function a(e){var t="hsl"===(e=o(e)).type?o(n(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,r){return e=o(e),r=t(r),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=r,i(e)}function l(e,r){if(e=o(e),r=t(r),-1!==e.type.indexOf("hsl"))e.values[2]*=1-r;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-r;return i(e)}function c(e,r){if(e=o(e),r=t(r),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*r;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*r;return i(e)}return kv}var Kv,Yv,Xv,Jv={},Zv={exports:{}},Qv={exports:{}},ey={exports:{}};function ty(){return Kv||(Kv=1,function(e){var t=Iv().default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(ey)),ey.exports}function ry(){return Yv||(Yv=1,function(e){var t=Iv().default,r=ty();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Qv)),Qv.exports}function ny(){return Xv||(Xv=1,function(e){var t=ry();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Zv)),Zv.exports}var oy,iy={exports:{}};function ay(){return oy||(oy=1,function(e){var t=kc();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(iy)),iy.exports}var sy,ly={};function cy(){if(sy)return ly;sy=1;var e=Kl();Object.defineProperty(ly,"__esModule",{value:!0}),ly.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,c=void 0===l?5:l,u=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-c/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-c/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},u)},ly.keys=void 0;var t=e(Rc()),r=e(ay()),n=["xs","sm","md","lg","xl"];return ly.keys=n,ly}var uy,dy={};function py(){if(uy)return dy;uy=1;var e=Kl();Object.defineProperty(dy,"__esModule",{value:!0}),dy.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(ny()),r=e(Rc());return dy}var fy,hy={},my={};function gy(){if(fy)return my;fy=1,Object.defineProperty(my,"__esModule",{value:!0}),my.default=void 0;var e={black:"#000",white:"#fff"};return my.default=e,my}var by,vy={};function yy(){if(by)return vy;by=1,Object.defineProperty(vy,"__esModule",{value:!0}),vy.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return vy.default=e,vy}var xy,Sy={};function wy(){if(xy)return Sy;xy=1,Object.defineProperty(Sy,"__esModule",{value:!0}),Sy.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return Sy.default=e,Sy}var Cy,Ey={};function Ry(){if(Cy)return Ey;Cy=1,Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return Ey.default=e,Ey}var Ay,Iy={};function ky(){if(Ay)return Iy;Ay=1,Object.defineProperty(Iy,"__esModule",{value:!0}),Iy.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return Iy.default=e,Iy}var Py,My={};function Dy(){if(Py)return My;Py=1,Object.defineProperty(My,"__esModule",{value:!0}),My.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return My.default=e,My}var Ty,Oy={};function qy(){if(Ty)return Oy;Ty=1,Object.defineProperty(Oy,"__esModule",{value:!0}),Oy.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return Oy.default=e,Oy}var Ly,Ny,jy={};function _y(){if(Ly)return jy;Ly=1,Object.defineProperty(jy,"__esModule",{value:!0}),jy.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return jy.default=e,jy}function zy(){if(Ny)return hy;Ny=1;var e=Kl();Object.defineProperty(hy,"__esModule",{value:!0}),hy.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:c.default[300],main:c.default[500],dark:c.default[700]}:w,E=e.info,R=void 0===E?{light:u.default[300],main:u.default[500],dark:u.default[700]}:E,A=e.success,I=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,k=e.type,P=void 0===k?"light":k,M=e.contrastThreshold,D=void 0===M?3:M,T=e.tonalOffset,O=void 0===T?.2:T,q=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=L(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:P,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(I),grey:i.default,contrastThreshold:D,getContrastText:L,augmentColor:N,tonalOffset:O},j[P]),q);return _},hy.dark=hy.light=void 0;var t=e(Rc()),r=e(ay()),n=Uv,o=e(gy()),i=e(yy()),a=e(wy()),s=e(Ry()),l=e(ky()),c=e(Dy()),u=e(qy()),d=e(_y()),p=Gv(),f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};hy.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return hy.dark=h,hy}var Fy,$y={};function Hy(){if(Fy)return $y;Fy=1;var e=Kl();Object.defineProperty($y,"__esModule",{value:!0}),$y.default=function(e,l){var c="function"==typeof l?l(e):l,u=c.fontFamily,d=void 0===u?s:u,p=c.fontSize,f=void 0===p?14:p,h=c.fontWeightLight,m=void 0===h?300:h,g=c.fontWeightRegular,b=void 0===g?400:g,v=c.fontWeightMedium,y=void 0===v?500:v,x=c.fontWeightBold,S=void 0===x?700:x,w=c.htmlFontSize,C=void 0===w?16:w,E=c.allVariants,R=c.pxToRem,A=(0,r.default)(c,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),I=f/14,k=R||function(e){return"".concat(e/C*I,"rem")},P=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:k(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},M={h1:P(m,96,1.167,-1.5),h2:P(m,60,1.2,-.5),h3:P(b,48,1.167,0),h4:P(b,34,1.235,.25),h5:P(b,24,1.334,0),h6:P(y,20,1.6,.15),subtitle1:P(b,16,1.75,.15),subtitle2:P(y,14,1.57,.1),body1:P(b,16,1.5,.15),body2:P(b,14,1.43,.15),button:P(y,14,1.75,.4,a),caption:P(b,12,1.66,.4),overline:P(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:k,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},M),A,{clone:!1})};var t=e(Rc()),r=e(ay()),n=Uv;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return $y}var By,Vy={};function Wy(){if(By)return Vy;By=1,Object.defineProperty(Vy,"__esModule",{value:!0}),Vy.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return Vy.default=t,Vy}var Uy,Gy={};function Ky(){if(Uy)return Gy;Uy=1,Object.defineProperty(Gy,"__esModule",{value:!0}),Gy.default=void 0;var e={borderRadius:4};return Gy.default=e,Gy}var Yy={};function Xy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Jy(e,t){if(e){if("string"==typeof e)return Xy(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xy(e,t):void 0}}function Zy(e){return function(e){if(Array.isArray(e))return Xy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Jy(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qy(e,t){return t?Dv(e,t,{clone:!1}):e}var ex={xs:0,sm:600,md:960,lg:1280,xl:1920},tx={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(ex[e],"px)")}};function rx(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||tx;return t.reduce(function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e},{})}if("object"===Hl(t)){var o=e.theme.breakpoints||tx;return Object.keys(t).reduce(function(e,n){return e[o.up(n)]=r(t[n]),e},{})}return r(t)}function nx(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function ox(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=nx(e.theme,o)||{};return rx(e,r,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=nx(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Bl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)})};return a.propTypes={},a.filterProps=[t],a}function ix(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce(function(t,r){var n=r(e);return n?Qy(t,n):t},{})};return n.propTypes={},n.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),n}function ax(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var sx=ox({prop:"border",themeKey:"borders",transform:ax}),lx=ox({prop:"borderTop",themeKey:"borders",transform:ax}),cx=ox({prop:"borderRight",themeKey:"borders",transform:ax}),ux=ox({prop:"borderBottom",themeKey:"borders",transform:ax}),dx=ox({prop:"borderLeft",themeKey:"borders",transform:ax}),px=ox({prop:"borderColor",themeKey:"palette"}),fx=ox({prop:"borderRadius",themeKey:"shape"}),hx=ix(sx,lx,cx,ux,dx,px,fx);function mx(e,t){var r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}function gx(e){var t=function(t){var r=e(t);return t.css?Hr({},Qy(r,e(Hr({theme:t.theme},t.css))),mx(t.css,[e.filterProps])):t.sx?Hr({},Qy(r,e(Hr({theme:t.theme},t.sx))),mx(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(Zy(e.filterProps)),t}var bx=ix(ox({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),ox({prop:"display"}),ox({prop:"overflow"}),ox({prop:"textOverflow"}),ox({prop:"visibility"}),ox({prop:"whiteSpace"})),vx=ox({prop:"flexBasis"}),yx=ox({prop:"flexDirection"}),xx=ox({prop:"flexWrap"}),Sx=ox({prop:"justifyContent"}),wx=ox({prop:"alignItems"}),Cx=ox({prop:"alignContent"}),Ex=ox({prop:"order"}),Rx=ox({prop:"flex"}),Ax=ox({prop:"flexGrow"}),Ix=ox({prop:"flexShrink"}),kx=ox({prop:"alignSelf"}),Px=ox({prop:"justifyItems"}),Mx=ox({prop:"justifySelf"}),Dx=ix(vx,yx,xx,Sx,wx,Cx,Ex,Rx,Ax,Ix,kx,Px,Mx),Tx=ox({prop:"gridGap"}),Ox=ox({prop:"gridColumnGap"}),qx=ox({prop:"gridRowGap"}),Lx=ox({prop:"gridColumn"}),Nx=ox({prop:"gridRow"}),jx=ox({prop:"gridAutoFlow"}),_x=ox({prop:"gridAutoColumns"}),zx=ox({prop:"gridAutoRows"}),Fx=ox({prop:"gridTemplateColumns"}),$x=ox({prop:"gridTemplateRows"}),Hx=ox({prop:"gridTemplateAreas"}),Bx=ox({prop:"gridArea"}),Vx=ix(Tx,Ox,qx,Lx,Nx,jx,_x,zx,Fx,$x,Hx,Bx),Wx=ox({prop:"color",themeKey:"palette"}),Ux=ox({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Gx=ix(Wx,Ux),Kx=ox({prop:"position"}),Yx=ox({prop:"zIndex",themeKey:"zIndex"}),Xx=ox({prop:"top"}),Jx=ox({prop:"right"}),Zx=ox({prop:"bottom"}),Qx=ox({prop:"left"}),eS=ix(Kx,Yx,Xx,Jx,Zx,Qx),tS=ox({prop:"boxShadow",themeKey:"shadows"});function rS(e){return e<=1?"".concat(100*e,"%"):e}var nS=ox({prop:"width",transform:rS}),oS=ox({prop:"maxWidth",transform:rS}),iS=ox({prop:"minWidth",transform:rS}),aS=ox({prop:"height",transform:rS}),sS=ox({prop:"maxHeight",transform:rS}),lS=ox({prop:"minHeight",transform:rS}),cS=ox({prop:"size",cssProperty:"width",transform:rS}),uS=ox({prop:"size",cssProperty:"height",transform:rS}),dS=ox({prop:"boxSizing"}),pS=ix(nS,oS,iS,aS,sS,lS,dS);function fS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Jy(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var hS={m:"margin",p:"padding"},mS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bS=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){if(e.length>2){if(!gS[e])return[e];e=gS[e]}var t=fS(e.split(""),2),r=t[0],n=t[1],o=hS[r],i=mS[n]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),vS=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function yS(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function xS(e,t){return function(r){return e.reduce(function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e},{})}}function SS(e){var t=yS(e.theme);return Object.keys(e).map(function(r){if(-1===vS.indexOf(r))return null;var n=xS(bS(r),t),o=e[r];return rx(e,o,n)}).reduce(Qy,{})}SS.propTypes={},SS.filterProps=vS;var wS,CS=ox({prop:"fontFamily",themeKey:"typography"}),ES=ox({prop:"fontSize",themeKey:"typography"}),RS=ox({prop:"fontStyle",themeKey:"typography"}),AS=ox({prop:"fontWeight",themeKey:"typography"}),IS=ox({prop:"letterSpacing"}),kS=ox({prop:"lineHeight"}),PS=ox({prop:"textAlign"}),MS=ix(CS,ES,RS,AS,IS,kS,PS),DS=Object.freeze({__proto__:null,alignContent:Cx,alignItems:wx,alignSelf:kx,bgcolor:Ux,border:sx,borderBottom:ux,borderColor:px,borderLeft:dx,borderRadius:fx,borderRight:cx,borderTop:lx,borders:hx,bottom:Zx,boxSizing:dS,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||tx,o=n.keys.reduce(function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(Hr({theme:t.theme},t[o]))),r},null);return Qy(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Zy(e.filterProps)),t},color:Wx,compose:ix,createUnarySpacing:yS,css:function(e){return gx(e)},display:bx,flex:Rx,flexBasis:vx,flexDirection:yx,flexGrow:Ax,flexShrink:Ix,flexWrap:xx,flexbox:Dx,fontFamily:CS,fontSize:ES,fontStyle:RS,fontWeight:AS,grid:Vx,gridArea:Bx,gridAutoColumns:_x,gridAutoFlow:jx,gridAutoRows:zx,gridColumn:Lx,gridColumnGap:Ox,gridGap:Tx,gridRow:Nx,gridRowGap:qx,gridTemplateAreas:Hx,gridTemplateColumns:Fx,gridTemplateRows:$x,height:aS,justifyContent:Sx,justifyItems:Px,justifySelf:Mx,left:Qx,letterSpacing:IS,lineHeight:kS,maxHeight:sS,maxWidth:oS,minHeight:lS,minWidth:iS,order:Ex,palette:Gx,position:Kx,positions:eS,right:Jx,shadows:tS,sizeHeight:uS,sizeWidth:cS,sizing:pS,spacing:SS,style:ox,styleFunctionSx:gx,textAlign:PS,top:Xx,typography:MS,width:nS,zIndex:Yx}),TS=Qt(DS);function OS(){if(wS)return Yy;wS=1,Object.defineProperty(Yy,"__esModule",{value:!0}),Yy.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=TS;return Yy}var qS,LS={};function NS(){if(qS)return LS;qS=1;var e=Kl();Object.defineProperty(LS,"__esModule",{value:!0}),LS.default=LS.duration=LS.easing=void 0;var t=e(ay()),r={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)"};LS.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}LS.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,c=void 0===l?r.easeInOut:l,u=i.delay,d=void 0===u?0:u;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(c," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return LS.default=i,LS}var jS,_S,zS={};function FS(){if(jS)return zS;jS=1,Object.defineProperty(zS,"__esModule",{value:!0}),zS.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return zS.default=e,zS}function $S(){if(_S)return Jv;_S=1;var e=Kl();Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.createMuiTheme=function(){return p.apply(void 0,arguments)},Jv.default=void 0,e(ny());var t=e(ay()),r=Uv,n=e(cy()),o=e(py()),i=e(zy()),a=e(Hy()),s=e(Wy()),l=e(Ky()),c=e(OS()),u=e(NS()),d=e(FS());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,c.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:u.default,zIndex:d.default},S),A=arguments.length,I=new Array(A>1?A-1:0),k=1;k<A;k++)I[k-1]=arguments[k];return R=I.reduce(function(e,t){return(0,r.deepmerge)(e,t)},R)}var f=p;return Jv.default=f,Jv}var HS,BS={};function VS(){if(HS)return BS;HS=1;var e=Kl();Object.defineProperty(BS,"__esModule",{value:!0}),BS.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=Uv,r=e($S());return BS}var WS={},US="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",GS=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function KS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==GS.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[US]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}function YS(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var XS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JS="object"===("undefined"==typeof window?"undefined":XS(window))&&"object"===("undefined"==typeof document?"undefined":XS(document))&&9===document.nodeType;function ZS(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var QS={}.constructor;function ew(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(ew);if(e.constructor!==QS)return e;var t={};for(var r in e)t[r]=ew(e[r]);return t}function tw(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=ew(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var rw=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},nw=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=rw(e[r]," ");else t=rw(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function ow(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function iw(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function aw(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=ow(r),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=iw(p+":"+c+nw(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=iw(h+":"+c+nw(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=iw(g+":"+c+nw(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),iw(""+e+c+"{"+n,--i)+iw("}",i)):n}var sw=/([[\].#*$><+~=|^:(),"'`\s])/g,lw="undefined"!=typeof CSS&&CSS.escape,cw=function(e){return lw?lw(e):e.replace(sw,"\\$1")},uw=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),dw=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(au(au(o)),s),o.selectorText="."+cw(o.id)),o}Xc(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=nw(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Hr({},e,{allowEmpty:!0}):e;return aw(this.selectorText,this.style,r)},ZS(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(uw),pw={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new dw(e,t,r)}},fw={indent:1,children:!0},hw=/@([\w-]+)/,mw=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(hw);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new zw(Hr({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=fw);var t=ow(e).linebreak;if(null==e.indent&&(e.indent=fw.indent),null==e.children&&(e.children=fw.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),gw=/@container|@media|@supports\s+/,bw={onCreateRule:function(e,t,r){return gw.test(e)?new mw(e,t,r):null}},vw={indent:1,children:!0},yw=/@keyframes\s+([\w-]+)/,xw=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(yw);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:cw(a(this,i)),this.rules=new zw(Hr({},r,{parent:this})),t)this.rules.add(s,t[s],Hr({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=vw);var t=ow(e).linebreak;if(null==e.indent&&(e.indent=vw.indent),null==e.children&&(e.children=vw.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Sw=/@keyframes\s+/,ww=/\$([\w-]+)/g,Cw=function(e,t){return"string"==typeof e?e.replace(ww,function(e,r){return r in t?t[r]:e}):e},Ew=function(e,t,r){var n=e[t],o=Cw(n,r);o!==n&&(e[t]=o)},Rw={onCreateRule:function(e,t,r){return"string"==typeof e&&Sw.test(e)?new xw(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Ew(e,"animation-name",r.keyframes),"animation"in e&&Ew(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Cw(e,n.keyframes);default:return e}}},Aw=function(e){function t(){return e.apply(this,arguments)||this}return Xc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Hr({},e,{allowEmpty:!0}):e;return aw(this.key,this.style,r)},t}(uw),Iw={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Aw(e,t,r):null}},kw=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=ow(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=aw(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return aw(this.at,this.style,e)},e}(),Pw=/@font-face/,Mw={onCreateRule:function(e,t,r){return Pw.test(e)?new kw(e,t,r):null}},Dw=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return aw(this.key,this.style,e)},e}(),Tw={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Dw(e,t,r):null}},Ow=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),qw={"@charset":!0,"@import":!0,"@namespace":!0},Lw={onCreateRule:function(e,t,r){return e in qw?new Ow(e,t,r):null}},Nw=[pw,bw,Rw,Iw,Mw,Tw,Lw],jw={process:!0},_w={force:!0,process:!0},zw=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,c=n.scoped,u=Hr({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+cw(this.classes[d]));var p=tw(d,t,u);if(!p)return null;this.register(p);var f=void 0===u.index?this.index.length:u.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=Hr({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof dw?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof xw&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof dw?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof xw&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=jw);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,_w)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,_w)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=ow(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),Fw=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Hr({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new zw(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),$w=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Hw=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Br(t,["attached"]),o=ow(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},ZS(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Bw=new Hw,Vw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Ww="2f1acc6c3a606b082e5eef5e54414ffb";null==Vw[Ww]&&(Vw[Ww]=0);var Uw=Vw[Ww]++,Gw=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+Uw+o+t:i+r.key+"-"+Uw+(o?"-"+o:"")+"-"+t}},Kw=function(e){var t;return function(){return t||(t=e()),t}},Yw=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Xw=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=nw(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Jw=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Zw=function(e,t){return e.selectorText=t,e.selectorText===t},Qw=Kw(function(){return document.querySelector("head")});function eC(e){var t=Bw.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=Qw(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var tC=Kw(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),rC=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},nC=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},oC=function(){function e(e){this.getPropertyValue=Yw,this.setProperty=Xw,this.removeProperty=Jw,this.setSelector=Zw,this.hasInsertedRules=!1,this.cssRules=[],e&&Bw.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=tC();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=eC(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Qw().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=nC(r,t);if(!1===(o=rC(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=nC(r,t),l=rC(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof Fw&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),iC=0,aC=function(){function e(e){this.id=iC++,this.version="10.10.0",this.plugins=new $w,this.options={id:{minify:!1},createGenerateId:Gw,Renderer:JS?oC:null,plugins:[]},this.generateId=Gw({minify:!1});for(var t=0;t<Nw.length;t++)this.plugins.use(Nw[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Hr({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===Bw.index?0:Bw.index+1);var n=new Fw(e,Hr({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),Bw.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=Hr({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=tw(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){e.plugins.use(t)}),this},e}(),sC=function(e){return new aC(e)},lC="object"==typeof CSS&&null!=CSS&&"number"in CSS;function cC(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=cC(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
91
91
|
/**
|
|
92
92
|
* A better abstraction over CSS.
|
|
93
93
|
*
|
|
94
94
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
95
95
|
* @website https://github.com/cssinjs/jss
|
|
96
96
|
* @license MIT
|
|
97
|
-
*/yC();var wC=Date.now(),CC="fnValues"+wC,EC="fnStyle"+ ++wC,RC="@global",AC="@global ",IC=function(){function e(e,t,r){for(var n in this.type="global",this.at=RC,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new Jw(Pv({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),kC=function(){function e(e,t,r){this.type="global",this.at=RC,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,Pv({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),PC=/\s*,\s*/g;function MC(e,t){for(var r=e.split(PC),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function DC(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===RC)return new IC(e,t,r);if("@"===e[0]&&e.substr(0,8)===AC)return new kC(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[RC]:null;if(o){for(var i in o)t.addRule(i,o[i],Pv({},r,{selector:MC(i,e.selector)}));delete n[RC]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===RC){var i=MC(o.substr(7),e.selector);t.addRule(i,n[o],Pv({},r,{selector:i})),delete n[o]}}(e,t))}}}var TC=/\s*,\s*/g,OC=/&/g,qC=/\$([\w-]+)/g;function LC(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(TC),n=e.split(TC),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(OC,a):a+" "+l}return o}function r(e,t,r){if(r)return Pv({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=Pv({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,c=l.options.parent;for(var u in n){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=r(l,c,a),d){var f=t(u,l.selector);s||(s=e(c,i)),f=f.replace(qC,s);var h=l.key+"-"+u;"replaceRule"in c?c.replaceRule(h,n[u],Pv({},a,{selector:f})):c.addRule(h,n[u],Pv({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,n[u],{selector:l.selector});delete n[u]}}return n}}}var NC=/[A-Z]/g,jC=/^ms-/,_C={};function zC(e){return"-"+e.toLowerCase()}function FC(e){if(_C.hasOwnProperty(e))return _C[e];var t=e.replace(NC,zC);return _C[e]=jC.test(t)?"-"+t:t}function $C(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:FC(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map($C):t.fallbacks=$C(e.fallbacks)),t}var HC=xC&&CSS?CSS.px:"px",BC=xC&&CSS?CSS.ms:"ms",VC=xC&&CSS?CSS.percent:"%";function WC(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var UC=WC({"animation-delay":BC,"animation-duration":BC,"background-position":HC,"background-position-x":HC,"background-position-y":HC,"background-size":HC,border:HC,"border-bottom":HC,"border-bottom-left-radius":HC,"border-bottom-right-radius":HC,"border-bottom-width":HC,"border-left":HC,"border-left-width":HC,"border-radius":HC,"border-right":HC,"border-right-width":HC,"border-top":HC,"border-top-left-radius":HC,"border-top-right-radius":HC,"border-top-width":HC,"border-width":HC,"border-block":HC,"border-block-end":HC,"border-block-end-width":HC,"border-block-start":HC,"border-block-start-width":HC,"border-block-width":HC,"border-inline":HC,"border-inline-end":HC,"border-inline-end-width":HC,"border-inline-start":HC,"border-inline-start-width":HC,"border-inline-width":HC,"border-start-start-radius":HC,"border-start-end-radius":HC,"border-end-start-radius":HC,"border-end-end-radius":HC,margin:HC,"margin-bottom":HC,"margin-left":HC,"margin-right":HC,"margin-top":HC,"margin-block":HC,"margin-block-end":HC,"margin-block-start":HC,"margin-inline":HC,"margin-inline-end":HC,"margin-inline-start":HC,padding:HC,"padding-bottom":HC,"padding-left":HC,"padding-right":HC,"padding-top":HC,"padding-block":HC,"padding-block-end":HC,"padding-block-start":HC,"padding-inline":HC,"padding-inline-end":HC,"padding-inline-start":HC,"mask-position-x":HC,"mask-position-y":HC,"mask-size":HC,height:HC,width:HC,"min-height":HC,"max-height":HC,"min-width":HC,"max-width":HC,bottom:HC,left:HC,top:HC,right:HC,inset:HC,"inset-block":HC,"inset-block-end":HC,"inset-block-start":HC,"inset-inline":HC,"inset-inline-end":HC,"inset-inline-start":HC,"box-shadow":HC,"text-shadow":HC,"column-gap":HC,"column-rule":HC,"column-rule-width":HC,"column-width":HC,"font-size":HC,"font-size-delta":HC,"letter-spacing":HC,"text-decoration-thickness":HC,"text-indent":HC,"text-stroke":HC,"text-stroke-width":HC,"word-spacing":HC,motion:HC,"motion-offset":HC,outline:HC,"outline-offset":HC,"outline-width":HC,perspective:HC,"perspective-origin-x":VC,"perspective-origin-y":VC,"transform-origin":VC,"transform-origin-x":VC,"transform-origin-y":VC,"transform-origin-z":VC,"transition-delay":BC,"transition-duration":BC,"vertical-align":HC,"flex-basis":HC,"shape-margin":HC,size:HC,gap:HC,grid:HC,"grid-gap":HC,"row-gap":HC,"grid-row-gap":HC,"grid-column-gap":HC,"grid-template-rows":HC,"grid-template-columns":HC,"grid-auto-rows":HC,"grid-auto-columns":HC,"box-shadow-x":HC,"box-shadow-y":HC,"box-shadow-blur":HC,"box-shadow-spread":HC,"font-line-height":HC,"text-shadow-x":HC,"text-shadow-y":HC,"text-shadow-blur":HC});function GC(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=GC(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=GC(o,t[o],r);else for(var i in t)t[i]=GC(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||UC[e];return!a||0===t&&a===HC?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function KC(e){void 0===e&&(e={});var t=WC(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=GC(n,e[n],t);return e},onChangeValue:function(e,r){return GC(r,e,t)}}}var YC="",XC="",JC="",ZC="",QC=iw&&"ontouchstart"in document.documentElement;if(iw){var eE={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},tE=document.createElement("p").style;for(var rE in eE)if(rE+"Transform"in tE){YC=rE,XC=eE[rE];break}"Webkit"===YC&&"msHyphens"in tE&&(YC="ms",XC=eE.ms,ZC="edge"),"Webkit"===YC&&"-apple-trailing-word"in tE&&(JC="apple")}var nE=YC,oE=XC,iE=JC,aE=ZC,sE=QC;var lE={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===nE?"-webkit-"+e:oE+e)}},cE={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===nE?oE+"print-"+e:e)}},uE=/[-\s]+(.)?/g;function dE(e,t){return t?t.toUpperCase():""}function pE(e){return e.replace(uE,dE)}function fE(e){return pE("-"+e)}var hE,mE={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===nE){var r="mask-image";if(pE(r)in t)return e;if(nE+fE(r)in t)return oE+e}return e}},gE={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==iE||sE?e:oE+e)}},bE={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:oE+e)}},vE={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:oE+e)}},yE={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===nE||"ms"===nE&&"edge"!==aE?oE+e:e)}},xE={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===nE||"ms"===nE||"apple"===iE?oE+e:e)}},SE={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===nE?"WebkitColumn"+fE(e)in t&&oE+"column-"+e:"Moz"===nE&&("page"+fE(e)in t&&"page-"+e))}},wE={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===nE)return e;var r=e.replace("-inline","");return nE+fE(r)in t&&oE+r}},CE={supportedProperty:function(e,t){return pE(e)in t&&e}},EE={supportedProperty:function(e,t){var r=fE(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:nE+r in t?oE+e:"Webkit"!==nE&&"Webkit"+r in t&&"-webkit-"+e}},RE={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===nE?""+oE+e:e)}},AE={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===nE?oE+"scroll-chaining":e)}},IE={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},kE={supportedProperty:function(e,t){var r=IE[e];return!!r&&(nE+fE(r)in t&&oE+r)}},PE={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ME=Object.keys(PE),DE=function(e){return oE+e},TE={supportedProperty:function(e,t,r){var n=r.multiple;if(ME.indexOf(e)>-1){var o=PE[e];if(!Array.isArray(o))return nE+fE(o)in t&&oE+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(nE+fE(o[0])in t))return!1;return o.map(DE)}return!1}},OE=[lE,cE,mE,gE,bE,vE,yE,xE,SE,wE,CE,EE,RE,AE,kE,TE],qE=OE.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),LE=OE.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,ax(t.noPrefill)),e},[]),NE={};if(iw){hE=document.createElement("p");var jE=window.getComputedStyle(document.documentElement,"");for(var _E in jE)isNaN(_E)||(NE[jE[_E]]=jE[_E]);LE.forEach(function(e){return delete NE[e]})}function zE(e,t){if(void 0===t&&(t={}),!hE)return e;if(null!=NE[e])return NE[e];"transition"!==e&&"transform"!==e||(t[e]=e in hE.style);for(var r=0;r<qE.length&&(NE[e]=qE[r](e,hE.style,t),!NE[e]);r++);try{hE.style[e]=""}catch(e){return!1}return NE[e]}var FE,$E={},HE={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},BE=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function VE(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?zE(t):", "+zE(r);return n||(t||r)}function WE(e,t){var r=t;if(!FE||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=$E[n])return $E[n];try{FE.style[e]=r}catch(e){return $E[n]=!1,!1}if(HE[e])r=r.replace(BE,VE);else if(""===FE.style[e]&&("-ms-flex"===(r=oE+r)&&(FE.style[e]="-ms-flexbox"),FE.style[e]=r,""===FE.style[e]))return $E[n]=!1,!1;return FE.style[e]="",$E[n]=r,$E[n]}function UE(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=zE(r);i&&i!==r&&(o=!0);var a=!1,s=WE(i,mw(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===nE?e:"@"+oE+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return WE(t,mw(e))||e}}}function GE(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}function KE(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=fw(e,{},r);return n[EC]=t,n},onProcessStyle:function(e,t){if(CC in t||EC in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[CC]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[EC];i&&(o.style=i(e)||{});var a=o[CC];if(a)for(var s in a)o.prop(s,a[s](e),n)}},DC(),LC(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=$C(e[t]);return e}return $C(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=FC(t);return t===n?e:(r.prop(n,e),null)}},KC(),"undefined"==typeof window?null:UE(),GE()]}}function YE(e,t){if(null==e)return{};var r,n,o=uw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function XE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=Pv({},t);return Object.keys(r).forEach(function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))}),n}iw&&(FE=document.createElement("p"));var JE=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},ZE=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},QE=function(e,t,r){e.get(t).delete(r)},eR=S.createContext(null);function tR(){return S.useContext(eR)}var rR,nR=yC(KE()),oR=rw(),iR=new Map,aR={disableGeneration:!1,generateClassName:oR,jss:nR,sheetsCache:null,sheetsManager:iR,sheetsRegistry:null},sR=S.createContext(aR);function lR(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=YE(e,["children","injectFirst","disableGeneration"]),s=Pv({},S.useContext(sR),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!rR){var l=document.head;rR=document.createComment("mui-inject-first"),l.insertBefore(rR,l.firstChild)}s.jss=yC({plugins:KE().plugins,insertionPoint:rR})}return S.createElement(sR.Provider,{value:s},t)}var cR=-1e9;var uR={};function dR(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=ZE(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},JE(o.sheetsManager,i,n,s));var l=Pv({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=ZE(o.sheetsCache,i,n));var d=i.create(n,a);u||((u=o.jss.createStyleSheet(d,Pv({link:!1},l))).attach(),o.sheetsCache&&JE(o.sheetsCache,i,n,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=SC(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Pv({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=XE({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function pR(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?uR:i,s=YE(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=Pv({},o);return Object.keys(i).forEach(function(e){a[e]=Tv(a[e],i[e])}),a},options:{}}}(e),c=r||n||"makeStyles";l.options={index:cR+=1,name:r,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=tR()||a,n=Pv({},S.useContext(sR),s),i=S.useRef(),c=S.useRef();!function(e,t){var r,n=S.useRef([]),o=S.useMemo(function(){return{}},t);n.current!==o&&(n.current=o,r=e()),S.useEffect(function(){return function(){r&&r()}},[o])}(function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return dR(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=ZE(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(QE(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,l]),S.useEffect(function(){c.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(i.current,e),c.current=!0});var u=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=XE({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return u}}var fR=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return aw(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new eC;var r=rw();return S.createElement(lR,Pv({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return S.createElement("style",Pv({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function hR(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=hR(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function mR(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=hR(e))&&(n&&(n+=" "),n+=t);return n}var gR,bR,vR,yR,xR={exports:{}},SR={};function wR(){return bR||(bR=1,xR.exports=function(){if(gR)return SR;gR=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case n:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return p}}case r:return p}}}function x(e){return y(e)===c}return SR.AsyncMode=l,SR.ConcurrentMode=c,SR.ContextConsumer=s,SR.ContextProvider=a,SR.Element=t,SR.ForwardRef=u,SR.Fragment=n,SR.Lazy=h,SR.Memo=f,SR.Portal=r,SR.Profiler=i,SR.StrictMode=o,SR.Suspense=d,SR.isAsyncMode=function(e){return x(e)||y(e)===l},SR.isConcurrentMode=x,SR.isContextConsumer=function(e){return y(e)===s},SR.isContextProvider=function(e){return y(e)===a},SR.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},SR.isForwardRef=function(e){return y(e)===u},SR.isFragment=function(e){return y(e)===n},SR.isLazy=function(e){return y(e)===h},SR.isMemo=function(e){return y(e)===f},SR.isPortal=function(e){return y(e)===r},SR.isProfiler=function(e){return y(e)===i},SR.isStrictMode=function(e){return y(e)===o},SR.isSuspense=function(e){return y(e)===d},SR.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},SR.typeOf=y,SR}()),xR.exports}var CR=function(){if(yR)return vR;yR=1;var e=wR(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(r){return e.isMemo(r)?n:o[r.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=n;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return vR=function e(t,n,o){if("string"!=typeof n){if(d){var p=u(n);p&&p!==d&&e(t,p,o)}var f=s(n);l&&(f=f.concat(l(n)));for(var h=i(t),m=i(n),g=0;g<f.length;++g){var b=f[g];if(!(r[b]||o&&o[b]||m&&m[b]||h&&h[b])){var v=c(n,b);try{a(t,b,v)}catch(e){}}}}return t},vR}(),ER=Zt(CR);function RR(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=S.forwardRef(function(r,n){var o=r.innerRef,i=YE(r,["innerRef"]),a=tR()||e;return S.createElement(t,Pv({theme:a,ref:o||n},i))});return ER(r,t),r}}var AR,IR=RR(),kR=Object.freeze({__proto__:null,ServerStyleSheets:fR,StylesContext:sR,StylesProvider:lR,ThemeProvider:function(e){var t=e.children,r=e.theme,n=tR(),o=S.useMemo(function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):Pv({},e,t)}(n,r);return null!=e&&(e[ew]=null!==n),e},[r,n]);return S.createElement(eR.Provider,{value:o},t)},createGenerateClassName:rw,createStyles:function(e){return e},getThemeProps:nw,jssPreset:KE,makeStyles:pR,mergeClasses:XE,sheetsManager:iR,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=YE(n,["name"]),a=o,s=pR("function"==typeof t?function(e){return{root:function(r){return t(Pv({theme:e},r))}}}:{root:t},Pv({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=S.forwardRef(function(t,n){var o,i,a,l=t.children,c=t.className,u=t.clone,d=t.component,p=YE(t,["children","className","clone","component"]),f=mR(s(t).root,c),h=p;if(r&&(o=h,i=r,a={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(a[e]=o[e])}),h=a),u)return S.cloneElement(l,Pv({className:mR(l.props.className,f)},h));if("function"==typeof l)return l(Pv({className:f},h));var m=d||e;return S.createElement(m,Pv({ref:n,className:f},h),l)});return ER(l,e),l}},useTheme:tR,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=YE(t,["defaultTheme","withTheme","name"]),l=a,c=pR(e,Pv({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),u=S.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=YE(e,["classes","innerRef"]),u=c(Pv({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=tR()||n,a&&(d=nw({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),S.createElement(r,Pv({ref:s||t,classes:u},d))});return ER(u,r),u}},withTheme:IR,withThemeCreator:RR}),PR=Qt(kR);
|
|
97
|
+
*/sC();var uC=Date.now(),dC="fnValues"+uC,pC="fnStyle"+ ++uC,fC="@global",hC="@global ",mC=function(){function e(e,t,r){for(var n in this.type="global",this.at=fC,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new zw(Hr({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),gC=function(){function e(e,t,r){this.type="global",this.at=fC,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,Hr({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),bC=/\s*,\s*/g;function vC(e,t){for(var r=e.split(bC),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function yC(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===fC)return new mC(e,t,r);if("@"===e[0]&&e.substr(0,8)===hC)return new gC(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[fC]:null;if(o){for(var i in o)t.addRule(i,o[i],Hr({},r,{selector:vC(i,e.selector)}));delete n[fC]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===fC){var i=vC(o.substr(7),e.selector);t.addRule(i,n[o],Hr({},r,{selector:i})),delete n[o]}}(e,t))}}}var xC=/\s*,\s*/g,SC=/&/g,wC=/\$([\w-]+)/g;function CC(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(xC),n=e.split(xC),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(SC,a):a+" "+l}return o}function r(e,t,r){if(r)return Hr({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=Hr({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,c=l.options.parent;for(var u in n){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=r(l,c,a),d){var f=t(u,l.selector);s||(s=e(c,i)),f=f.replace(wC,s);var h=l.key+"-"+u;"replaceRule"in c?c.replaceRule(h,n[u],Hr({},a,{selector:f})):c.addRule(h,n[u],Hr({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,n[u],{selector:l.selector});delete n[u]}}return n}}}var EC=/[A-Z]/g,RC=/^ms-/,AC={};function IC(e){return"-"+e.toLowerCase()}function kC(e){if(AC.hasOwnProperty(e))return AC[e];var t=e.replace(EC,IC);return AC[e]=RC.test(t)?"-"+t:t}function PC(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:kC(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(PC):t.fallbacks=PC(e.fallbacks)),t}var MC=lC&&CSS?CSS.px:"px",DC=lC&&CSS?CSS.ms:"ms",TC=lC&&CSS?CSS.percent:"%";function OC(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var qC=OC({"animation-delay":DC,"animation-duration":DC,"background-position":MC,"background-position-x":MC,"background-position-y":MC,"background-size":MC,border:MC,"border-bottom":MC,"border-bottom-left-radius":MC,"border-bottom-right-radius":MC,"border-bottom-width":MC,"border-left":MC,"border-left-width":MC,"border-radius":MC,"border-right":MC,"border-right-width":MC,"border-top":MC,"border-top-left-radius":MC,"border-top-right-radius":MC,"border-top-width":MC,"border-width":MC,"border-block":MC,"border-block-end":MC,"border-block-end-width":MC,"border-block-start":MC,"border-block-start-width":MC,"border-block-width":MC,"border-inline":MC,"border-inline-end":MC,"border-inline-end-width":MC,"border-inline-start":MC,"border-inline-start-width":MC,"border-inline-width":MC,"border-start-start-radius":MC,"border-start-end-radius":MC,"border-end-start-radius":MC,"border-end-end-radius":MC,margin:MC,"margin-bottom":MC,"margin-left":MC,"margin-right":MC,"margin-top":MC,"margin-block":MC,"margin-block-end":MC,"margin-block-start":MC,"margin-inline":MC,"margin-inline-end":MC,"margin-inline-start":MC,padding:MC,"padding-bottom":MC,"padding-left":MC,"padding-right":MC,"padding-top":MC,"padding-block":MC,"padding-block-end":MC,"padding-block-start":MC,"padding-inline":MC,"padding-inline-end":MC,"padding-inline-start":MC,"mask-position-x":MC,"mask-position-y":MC,"mask-size":MC,height:MC,width:MC,"min-height":MC,"max-height":MC,"min-width":MC,"max-width":MC,bottom:MC,left:MC,top:MC,right:MC,inset:MC,"inset-block":MC,"inset-block-end":MC,"inset-block-start":MC,"inset-inline":MC,"inset-inline-end":MC,"inset-inline-start":MC,"box-shadow":MC,"text-shadow":MC,"column-gap":MC,"column-rule":MC,"column-rule-width":MC,"column-width":MC,"font-size":MC,"font-size-delta":MC,"letter-spacing":MC,"text-decoration-thickness":MC,"text-indent":MC,"text-stroke":MC,"text-stroke-width":MC,"word-spacing":MC,motion:MC,"motion-offset":MC,outline:MC,"outline-offset":MC,"outline-width":MC,perspective:MC,"perspective-origin-x":TC,"perspective-origin-y":TC,"transform-origin":TC,"transform-origin-x":TC,"transform-origin-y":TC,"transform-origin-z":TC,"transition-delay":DC,"transition-duration":DC,"vertical-align":MC,"flex-basis":MC,"shape-margin":MC,size:MC,gap:MC,grid:MC,"grid-gap":MC,"row-gap":MC,"grid-row-gap":MC,"grid-column-gap":MC,"grid-template-rows":MC,"grid-template-columns":MC,"grid-auto-rows":MC,"grid-auto-columns":MC,"box-shadow-x":MC,"box-shadow-y":MC,"box-shadow-blur":MC,"box-shadow-spread":MC,"font-line-height":MC,"text-shadow-x":MC,"text-shadow-y":MC,"text-shadow-blur":MC});function LC(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=LC(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=LC(o,t[o],r);else for(var i in t)t[i]=LC(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||qC[e];return!a||0===t&&a===MC?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function NC(e){void 0===e&&(e={});var t=OC(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=LC(n,e[n],t);return e},onChangeValue:function(e,r){return LC(r,e,t)}}}var jC="",_C="",zC="",FC="",$C=JS&&"ontouchstart"in document.documentElement;if(JS){var HC={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},BC=document.createElement("p").style;for(var VC in HC)if(VC+"Transform"in BC){jC=VC,_C=HC[VC];break}"Webkit"===jC&&"msHyphens"in BC&&(jC="ms",_C=HC.ms,FC="edge"),"Webkit"===jC&&"-apple-trailing-word"in BC&&(zC="apple")}var WC=jC,UC=_C,GC=zC,KC=FC,YC=$C;var XC={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===WC?"-webkit-"+e:UC+e)}},JC={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===WC?UC+"print-"+e:e)}},ZC=/[-\s]+(.)?/g;function QC(e,t){return t?t.toUpperCase():""}function eE(e){return e.replace(ZC,QC)}function tE(e){return eE("-"+e)}var rE,nE={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===WC){var r="mask-image";if(eE(r)in t)return e;if(WC+tE(r)in t)return UC+e}return e}},oE={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==GC||YC?e:UC+e)}},iE={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:UC+e)}},aE={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:UC+e)}},sE={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===WC||"ms"===WC&&"edge"!==KC?UC+e:e)}},lE={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===WC||"ms"===WC||"apple"===GC?UC+e:e)}},cE={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===WC?"WebkitColumn"+tE(e)in t&&UC+"column-"+e:"Moz"===WC&&("page"+tE(e)in t&&"page-"+e))}},uE={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===WC)return e;var r=e.replace("-inline","");return WC+tE(r)in t&&UC+r}},dE={supportedProperty:function(e,t){return eE(e)in t&&e}},pE={supportedProperty:function(e,t){var r=tE(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:WC+r in t?UC+e:"Webkit"!==WC&&"Webkit"+r in t&&"-webkit-"+e}},fE={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===WC?""+UC+e:e)}},hE={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===WC?UC+"scroll-chaining":e)}},mE={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},gE={supportedProperty:function(e,t){var r=mE[e];return!!r&&(WC+tE(r)in t&&UC+r)}},bE={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},vE=Object.keys(bE),yE=function(e){return UC+e},xE={supportedProperty:function(e,t,r){var n=r.multiple;if(vE.indexOf(e)>-1){var o=bE[e];if(!Array.isArray(o))return WC+tE(o)in t&&UC+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(WC+tE(o[0])in t))return!1;return o.map(yE)}return!1}},SE=[XC,JC,nE,oE,iE,aE,sE,lE,cE,uE,dE,pE,fE,hE,gE,xE],wE=SE.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),CE=SE.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Zy(t.noPrefill)),e},[]),EE={};if(JS){rE=document.createElement("p");var RE=window.getComputedStyle(document.documentElement,"");for(var AE in RE)isNaN(AE)||(EE[RE[AE]]=RE[AE]);CE.forEach(function(e){return delete EE[e]})}function IE(e,t){if(void 0===t&&(t={}),!rE)return e;if(null!=EE[e])return EE[e];"transition"!==e&&"transform"!==e||(t[e]=e in rE.style);for(var r=0;r<wE.length&&(EE[e]=wE[r](e,rE.style,t),!EE[e]);r++);try{rE.style[e]=""}catch(e){return!1}return EE[e]}var kE,PE={},ME={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},DE=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function TE(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?IE(t):", "+IE(r);return n||(t||r)}function OE(e,t){var r=t;if(!kE||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=PE[n])return PE[n];try{kE.style[e]=r}catch(e){return PE[n]=!1,!1}if(ME[e])r=r.replace(DE,TE);else if(""===kE.style[e]&&("-ms-flex"===(r=UC+r)&&(kE.style[e]="-ms-flexbox"),kE.style[e]=r,""===kE.style[e]))return PE[n]=!1,!1;return kE.style[e]="",PE[n]=r,PE[n]}function qE(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=IE(r);i&&i!==r&&(o=!0);var a=!1,s=OE(i,nw(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===WC?e:"@"+UC+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return OE(t,nw(e))||e}}}function LE(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}function NE(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=tw(e,{},r);return n[pC]=t,n},onProcessStyle:function(e,t){if(dC in t||pC in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[dC]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[pC];i&&(o.style=i(e)||{});var a=o[dC];if(a)for(var s in a)o.prop(s,a[s](e),n)}},yC(),CC(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=PC(e[t]);return e}return PC(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=kC(t);return t===n?e:(r.prop(n,e),null)}},NC(),"undefined"==typeof window?null:qE(),LE()]}}function jE(e,t){if(null==e)return{};var r,n,o=Br(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=Hr({},t);return Object.keys(r).forEach(function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))}),n}JS&&(kE=document.createElement("p"));var zE=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},FE=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},$E=function(e,t,r){e.get(t).delete(r)},HE=S.createContext(null);function BE(){return S.useContext(HE)}var VE,WE=sC(NE()),UE=KS(),GE=new Map,KE={disableGeneration:!1,generateClassName:UE,jss:WE,sheetsCache:null,sheetsManager:GE,sheetsRegistry:null},YE=S.createContext(KE);function XE(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=jE(e,["children","injectFirst","disableGeneration"]),s=Hr({},S.useContext(YE),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!VE){var l=document.head;VE=document.createComment("mui-inject-first"),l.insertBefore(VE,l.firstChild)}s.jss=sC({plugins:NE().plugins,insertionPoint:VE})}return S.createElement(YE.Provider,{value:s},t)}var JE=-1e9;var ZE={};function QE(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=FE(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},zE(o.sheetsManager,i,n,s));var l=Hr({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=FE(o.sheetsCache,i,n));var d=i.create(n,a);u||((u=o.jss.createStyleSheet(d,Hr({link:!1},l))).attach(),o.sheetsCache&&zE(o.sheetsCache,i,n,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=cC(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Hr({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=_E({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function eR(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?ZE:i,s=jE(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=Hr({},o);return Object.keys(i).forEach(function(e){a[e]=Dv(a[e],i[e])}),a},options:{}}}(e),c=r||n||"makeStyles";l.options={index:JE+=1,name:r,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=BE()||a,n=Hr({},S.useContext(YE),s),i=S.useRef(),c=S.useRef();!function(e,t){var r,n=S.useRef([]),o=S.useMemo(function(){return{}},t);n.current!==o&&(n.current=o,r=e()),S.useEffect(function(){return function(){r&&r()}},[o])}(function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return QE(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=FE(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&($E(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,l]),S.useEffect(function(){c.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(i.current,e),c.current=!0});var u=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=_E({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return u}}var tR=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return ZS(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new Hw;var r=KS();return S.createElement(XE,Hr({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return S.createElement("style",Hr({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function rR(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=rR(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function nR(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=rR(e))&&(n&&(n+=" "),n+=t);return n}var oR,iR,aR,sR,lR={exports:{}},cR={};function uR(){return iR||(iR=1,lR.exports=function(){if(oR)return cR;oR=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case n:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return p}}case r:return p}}}function x(e){return y(e)===c}return cR.AsyncMode=l,cR.ConcurrentMode=c,cR.ContextConsumer=s,cR.ContextProvider=a,cR.Element=t,cR.ForwardRef=u,cR.Fragment=n,cR.Lazy=h,cR.Memo=f,cR.Portal=r,cR.Profiler=i,cR.StrictMode=o,cR.Suspense=d,cR.isAsyncMode=function(e){return x(e)||y(e)===l},cR.isConcurrentMode=x,cR.isContextConsumer=function(e){return y(e)===s},cR.isContextProvider=function(e){return y(e)===a},cR.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},cR.isForwardRef=function(e){return y(e)===u},cR.isFragment=function(e){return y(e)===n},cR.isLazy=function(e){return y(e)===h},cR.isMemo=function(e){return y(e)===f},cR.isPortal=function(e){return y(e)===r},cR.isProfiler=function(e){return y(e)===i},cR.isStrictMode=function(e){return y(e)===o},cR.isSuspense=function(e){return y(e)===d},cR.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},cR.typeOf=y,cR}()),lR.exports}var dR=function(){if(sR)return aR;sR=1;var e=uR(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(r){return e.isMemo(r)?n:o[r.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=n;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return aR=function e(t,n,o){if("string"!=typeof n){if(d){var p=u(n);p&&p!==d&&e(t,p,o)}var f=s(n);l&&(f=f.concat(l(n)));for(var h=i(t),m=i(n),g=0;g<f.length;++g){var b=f[g];if(!(r[b]||o&&o[b]||m&&m[b]||h&&h[b])){var v=c(n,b);try{a(t,b,v)}catch(e){}}}}return t},aR}(),pR=Zt(dR);function fR(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=S.forwardRef(function(r,n){var o=r.innerRef,i=jE(r,["innerRef"]),a=BE()||e;return S.createElement(t,Hr({theme:a,ref:o||n},i))});return pR(r,t),r}}var hR,mR=fR(),gR=Object.freeze({__proto__:null,ServerStyleSheets:tR,StylesContext:YE,StylesProvider:XE,ThemeProvider:function(e){var t=e.children,r=e.theme,n=BE(),o=S.useMemo(function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):Hr({},e,t)}(n,r);return null!=e&&(e[US]=null!==n),e},[r,n]);return S.createElement(HE.Provider,{value:o},t)},createGenerateClassName:KS,createStyles:function(e){return e},getThemeProps:YS,jssPreset:NE,makeStyles:eR,mergeClasses:_E,sheetsManager:GE,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=jE(n,["name"]),a=o,s=eR("function"==typeof t?function(e){return{root:function(r){return t(Hr({theme:e},r))}}}:{root:t},Hr({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=S.forwardRef(function(t,n){var o,i,a,l=t.children,c=t.className,u=t.clone,d=t.component,p=jE(t,["children","className","clone","component"]),f=nR(s(t).root,c),h=p;if(r&&(o=h,i=r,a={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(a[e]=o[e])}),h=a),u)return S.cloneElement(l,Hr({className:nR(l.props.className,f)},h));if("function"==typeof l)return l(Hr({className:f},h));var m=d||e;return S.createElement(m,Hr({ref:n,className:f},h),l)});return pR(l,e),l}},useTheme:BE,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=jE(t,["defaultTheme","withTheme","name"]),l=a,c=eR(e,Hr({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),u=S.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=jE(e,["classes","innerRef"]),u=c(Hr({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=BE()||n,a&&(d=YS({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),S.createElement(r,Hr({ref:s||t,classes:u},d))});return pR(u,r),u}},withTheme:mR,withThemeCreator:fR}),bR=Qt(gR);
|
|
98
98
|
/** @license Material-UI v4.11.5
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the MIT license found in the
|
|
101
101
|
* LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/function MR(){if(AR)return QS;AR=1,Object.defineProperty(QS,"__esModule",{value:!0}),QS.default=function(t){return(0,e.createStyles)(t)};var e=PR;return QS}var DR,TR,OR={},qR={};function LR(){if(DR)return qR;DR=1;var e=Sv();Object.defineProperty(qR,"__esModule",{value:!0}),qR.default=void 0;var t=(0,e(YS()).default)();return qR.default=t,qR}function NR(){if(TR)return OR;TR=1;var e=Sv();Object.defineProperty(OR,"__esModule",{value:!0}),OR.default=void 0;var t=e(gy()),r=PR,n=e(LR());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return OR.default=o,OR}var jR,_R,zR={},FR={};function $R(){if(jR)return FR;jR=1;var e=Sv();Object.defineProperty(FR,"__esModule",{value:!0}),FR.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},FR.getUnit=r,FR.toUnitless=n,FR.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},FR.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},FR.fontGrid=function(e){var t=e.lineHeight,r=e.pixels,n=e.htmlFontSize;return r/(t*n)},FR.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,c=e.transform,u=void 0===c?null:c,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach(function(e){var o=n+p*e;null!==u&&(o=u(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(iy());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return FR}function HR(){if(_R)return zR;_R=1;var e=Sv();Object.defineProperty(zR,"__esModule",{value:!0}),zR.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,c=o.factor,u=void 0===c?2:c,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/u,c=o.lineHeight;if(!(0,n.isUnitless)(c)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(c)||(c=parseFloat(m(c,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:c,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(gy()),r=Kv,n=$R();return zR}var BR,VR={};function WR(){if(BR)return VR;BR=1;var e=Sv();Object.defineProperty(VR,"__esModule",{value:!0}),VR.default=void 0;var t=e(gy()),r=PR,n=e(LR()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return VR.default=o,VR}var UR,GR={};function KR(){if(UR)return GR;UR=1;var e=Sv();Object.defineProperty(GR,"__esModule",{value:!0}),GR.default=function(){return(0,t.useTheme)()||r.default};var t=PR;e(S);var r=e(LR());return GR}var YR,XR={};function JR(){if(YR)return XR;YR=1;var e=Sv();Object.defineProperty(XR,"__esModule",{value:!0}),XR.default=void 0;var t=e(gy()),r=PR,n=e(LR());var o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return XR.default=o,XR}var ZR,QR,eA={};function tA(){if(ZR)return eA;ZR=1;var e=Sv();Object.defineProperty(eA,"__esModule",{value:!0}),eA.default=void 0;var t=PR,r=e(LR()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return eA.default=n,eA}function rA(){return QR||(QR=1,function(e){var t=Sv(),r=(Cv||(Cv=1,function(e){var t=Av().default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Ev)),Ev.exports);Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Yv();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=r(YS()),a=t(ZS()),s=t(MR()),l=t(NR()),c=t(HR()),u=t(WR()),d=VS();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(KR()),f=t(JR()),h=t(tA()),m=PR}(yv)),yv}var nA=rA();nA.alpha($t.GREYSCALE_0,.05),nA.alpha($t.GREEN_PALE,.5),nA.alpha($t.BLUE_PALE,.5),nA.alpha($t.GREEN_PALE,.5),nA.alpha($t.BLUE_PALE,.5),nA.alpha($t.GREEN_PALE,.5),nA.alpha($t.BLUE_PALE,.5),nA.alpha($t.GREEN_PALE,.5),nA.alpha($t.BLUE_PALE,.5),nA.alpha($t.GREEN_PALE,.5),nA.alpha($t.BLUE_PALE,.5),import.meta.env&&import.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},t){var r;let n,o;const i={getItem:(r,i)=>{var a,s;const l=e=>{if(n!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}n=e}return o},c=null!=(s=null==(a=e())?void 0:a.getItem(r))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(c)?c.then(l):l(c)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let a;try{a=null==(r=e())?void 0:r.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),a&&(i.subscribe=(s=a,(e,t,r)=>s(e,e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)})))}();const oA=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),iA=new WeakMap,aA=()=>{};function sA(e,t=aA){return((e,t,r)=>{const n=oA(()=>new WeakMap,iA,t);return oA(e,n,r)})(()=>{const r=new WeakMap,n=new WeakMap,o=Wg(0),i=Wg([]);i.INTERNAL_onInit=e=>{e.set(i,[()=>e.set(o,e=>e+1)])},"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(o.debugPrivate=!0,i.debugPrivate=!0);const a=Wg(s=>{let l;s(o);try{l=s(a)}catch(e){}const c=s(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(c))return{v:c};if(c!==(null==l?void 0:l.p)&&c.then(e=>{n.set(c,e);const[t]=s(i);t()},e=>{r.set(c,e);const[t]=s(i);t()}),r.has(c))throw r.get(c);return n.has(c)?{p:c,v:n.get(c)}:l&&"v"in l?{p:c,f:t(l.v),v:l.v}:{p:c,f:t()}});return a.init=void 0,"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(a.debugPrivate=!0),Wg(e=>{const t=e(a);return"f"in t?t.f:t.v},(t,r,...n)=>r(e,...n))},e,t)}const lA=new WeakMap;function cA(e,t){const r=Xg(t),n=uA(r);for(const[o,...i]of e)n.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(n.add(o),r.set(o,...i))}const uA=e=>{let t=lA.get(e);return t||(t=new WeakSet,lA.set(e,t)),t},dA=Wg(),pA=Wg(),fA=Wg(),hA=Wg(e=>e(fA)?.translate??(e=>e)),mA=Wg("");function gA(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function bA(e){const t=Wg(()=>[]),r=Wg(function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)});return r.effect=e,r.INTERNAL_onInit=e=>{const n=$g(e),o=n[1],i=n[3],a=yg(n[6]),s=n[11],l=n[12],c=n[13],u=n[14],d=n[15],p=n[16],f=n[17],h=n[20],m=new Set;let g,b=0,v=!1,y=!1,x=!1;function S(){if(b)return;m.clear();let t=!0;const w=i=>{if(x)return e.get(i);if(i===r){const t=s(n,e,i);if(!fg(t)){if(!dg(i))throw new Error("no atom init");h(n,e,i,i.init)}return hg(t)}const a=u(n,e,i);try{return hg(a)}finally{C.d.set(i,a.n),o.get(i)?.t.add(r),t?m.add(i):o.has(i)&&(f(n,e,r),c(n,e),l(n,e))}};w.peek=e.get;const E=(o,...u)=>{const m=s(n,e,o);try{if(++b,o===r){if(!dg(o))throw new Error("atom not writable");const t=m.n,r=u[0];return h(n,e,o,r),f(n,e,o),void(t!==m.n&&(i.add(o),a.c?.(o),d(n,e,o)))}return p(n,e,o,u)}finally{t||(c(n,e),l(n,e)),--b}};E.recurse=(t,...o)=>{if(x){if(gA())throw new Error("set.recurse is not allowed in cleanup")}else try{return v=!0,f(n,e,r),E(t,...o)}finally{c(n,e),v=!1,y&&(y=!1,S())}};try{g?.();const e=r.effect(w,E);if("function"!=typeof e)return;g=()=>{if(!b)try{return t=!0,x=!0,e()}finally{t=!1,x=!1,g=void 0}}}finally{t=!1,m.forEach(t=>{C.d.set(t,s(n,e,t).n)}),f(n,e,r),c(n,e)}}const w=function(e,t){let r=vA.get(e);r||(r=new Set,vA.set(e,r),t.f.add(function(){for(const e of r)r.delete(e),e()}));return r}(e,a),C=s(n,e,r);C.v=void 0,Object.assign(e.get(t),[m,C,o]),a.c.add(r,function(){i.delete(r)}),a.m.add(r,function(){w.add(S),g&&w.delete(g)}),a.u.add(r,function(){w.delete(S),g&&w.add(g)}),a.c.add(r,function(){v?y=!0:w.add(S)})},gA()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const vA=new WeakMap;const yA=new WeakMap,xA={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},SA=sA(Wg(async e=>{const t=e(dA);if(t){if(yA.has(t))return yA.get(t);try{const e=await t.app.createSessionObject(xA);return yA.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}})),wA=Wg(),CA=bA((e,t)=>{const r=e(dA),n=e(SA);if(!r||!n)return;const o=async()=>{const e=await r.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await r.getEffectiveProperties();await n.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef.qDimensions??[])},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef.qMeasures??[])}]);const i=await n.getLayout();t(wA,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)})};return o(),r.Invalidated?.bind(o),()=>{r.Invalidated?.unbind(o)}}),EA=Wg(e=>e(wA)?.layout),RA=Wg(e=>e(wA)?.altLayout),AA=Wg(e=>e(wA)?.properties),IA=({props:e,children:t})=>(cA([[dA,e.args.model],[fA,e.args.apis],[pA,e.args.handler]]),nb(CA),t);function kA(e,t){const r=new Set(e),n=new Set(t);return e===t||r.size===n.size&&Array.from(r).every(n.has.bind(n))}function PA(e){return"write"in e}const MA=new WeakMap,DA={},{read:TA,write:OA}=Wg(null);function qA(e,t,r){const[n,o,i,,a]=e,s=n.get(t);if(s)return s;if(r===e){let n=o.get(t);return n||(n=[_A(e,t,r),r],o.set(t,n)),n}const l=r??DA;let c=i.get(l);c||(c=new WeakMap,i.set(l,c));let u=c.get(t);if(!u){const[n,o]=a?qA(a,t,r):[t];u=[t.read===TA?n:_A(e,t,o),o],c.set(t,u)}return u}function LA(e){for(const t of e[5])t()}function NA(e,t,r,n,o){if(r.read===TA&&PA(r)&&PA(t)&&r.write!==OA&&e!==n){const{write:i}=r;return t.write=jA(e,r.write.bind(r),n,o),()=>{t.write=i}}}function jA(e,t,r,n=r){return function(o,i,...a){return t(function(t){const[n]=qA(e,t,r);return o(n)},function(t,...o){const[a]=qA(e,t,r),s=NA(e,a,t,r,n);try{return i(a,...o)}finally{null==s||s()}},...a)}}function _A(e,t,r){const n=Object.getOwnPropertyDescriptors(t);Object.keys(n).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>n[e].configurable=!0);const o=Object.getPrototypeOf(t),i=Object.create(o,n);return i.read!==TA&&(i.read=function(e,t,r){return function(n,o){return t(function(t){const[o]=qA(e,t,r);return n(o)},o)}}(e,t.read.bind(t),r)),PA(i)&&PA(t)&&i.write!==OA&&(i.write=jA(e,t.write.bind(t),r)),i}function zA({atoms:e=[],atomFamilies:t=[],parentStore:r,name:n}){const o=new WeakSet(e),i=MA.get(r),a=(null==i?void 0:i[3])??r,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],c=s[5],u=function(e){const t=e[3],r=[...$g(t)],n=r[21],o=r[22],i=r[23],a={};let s,l;return r[21]=h(n),r[22]=p,r[23]=h(i),r[24]=function(e){return s??(s=m(e[0],c)),l??(l=[s,m(e[1],u),m(e[2]),g(e[3]),e[4],e[5],v(e[6]),h(e[7]),h(e[8]),h(e[9]),h(e[10]),d(s,e[11]),(t,...n)=>e[12](r,...n),(t,...n)=>e[13](r,...n),h(e[14]),h(e[15]),h(e[16]),h(e[17]),h(e[18]),h(e[19]),h(e[20]),h(e[21]),h(e[22]),h(e[23]),()=>e,e[25],(t,...n)=>e[26](r,...n),(t,...n)=>e[27](r,...n),e[28],...e.slice(25)]),l},Hg(...r);function c(t){const r=new WeakMap;return function(n){let o=r.get(n);if(o)return o;const i=t(n);if(!i)return;let a,s;return o=new Proxy(i,{get:(t,r)=>"d"===r?a??(a=m(i.d,function(t){return r=>t(qA(e,r)[0])})):"p"===r?s??(s=g(i.p)):Reflect.get(i,r)}),r.set(n,o),o}}function u(e){const t=new WeakMap;return function(r){let n=t.get(r);if(n)return n;const o=e(r);return o?(n={...o,d:g(o.d),t:g(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(r,n),n):void 0}}function d(e,t){const r=h(t);return function(t,n,o){const i=e.get(o);if(i)return i;const a=r(t,n,o);return e.set(o,a),e.get(o)}}function p(t,r,n,...i){const[a,s]=qA(e,n),l=NA(e,a,n,s,e);try{return o(t,r,a,...i)}finally{null==l||l()}}function f(t,r){return function(n,...o){const[i]=qA(e,n);return(r?r(t):t)(i,...o)}}function h(t){return function(n,o,i,...a){const[s]=qA(e,i);return t(r,o,s,...a)}}function m(e,t){const r={get:f(e.get.bind(e),t),set:f(e.set.bind(e)),has:f(e.has.bind(e)),delete:f(e.delete.bind(e))};if("function"==typeof e.keys){const t=e,n=r;n.keys=t.keys.bind(t),n[Symbol.iterator]=t[Symbol.iterator].bind(t),Object.defineProperty(r,"size",{enumerable:!1,configurable:!0,get:()=>t.size})}return r}function g(t){return{get size(){return t.size},add:f(t.add.bind(t)),has:f(t.has.bind(t)),delete:f(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(f(e)),*[Symbol.iterator](){for(const r of t)yield qA(e,r)[0]}}}function b(t){if(!t)return;const r=f(t);return r.add=function(r,n){if(void 0===r)return t.add(void 0,n);const[o]=qA(e,r);return t.add(o,n)},r}function v(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>a[t]??(a[t]=b(e[t])),set(r){delete a[t],e[t]=r},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=u,Object.assign(u,{name:n}),MA.set(u,s);for(const t of new Set(e))l.set(t,[_A(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const r=e(t);l.has(r)||l.set(r,[_A(s,r,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!o.has(t)&&l.delete(t):l.set(t,[_A(s,t,s),s])});c.add(t)}return u}const FA=function(e,t){return function(r){const{atoms:n=[],atomFamilies:o=[],children:i,scope:a,name:s}=r,l=t(),c=Array.from(n,e=>Array.isArray(e)?e[0]:e);function u(){return[a??zA({atoms:c,atomFamilies:o,parentStore:l,name:s}),function(e){return l!==e.parentStore||!kA(c,e.atoms)||!kA(o,e.atomFamilies)||a!==e.providedScope}]}const[[d,p],f]=I(u);if(p({atoms:c,atomFamilies:o,parentStore:l,providedScope:a})){const e=MA.get(d);e&&LA(e),f(u)}return cA(Array.from(n).filter(Array.isArray),{store:d}),D(()=>{const e=MA.get(d);return()=>{e&&LA(e)}},[d]),w(e,{store:d,children:i})}}(Jg,Xg);var $A=Object.defineProperty,HA=Object.defineProperties,BA=Object.getOwnPropertyDescriptors,VA=Object.getOwnPropertySymbols,WA=Object.prototype.hasOwnProperty,UA=Object.prototype.propertyIsEnumerable,GA=(e,t,r)=>t in e?$A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,KA=(e,t)=>{for(var r in t||(t={}))WA.call(t,r)&&GA(e,r,t[r]);if(VA)for(var r of VA(t))UA.call(t,r)&&GA(e,r,t[r]);return e},YA=(e,t)=>HA(e,BA(t));function XA(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function JA(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function ZA(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const c=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex(e=>c(e,a.id)),o=e.findIndex(e=>c(e,s.id));if(-1===n||-1===o){if(JA(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const u=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of u)if(-1===f&&(f=t.findIndex(e=>c(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>c(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&JA(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return YA(KA({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return YA(KA({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&JA(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return YA(KA({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return YA(KA({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return YA(KA({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return YA(KA({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,XA)}function QA(e,t){let r=null;const n=new Map,o=new Set;function i(o){let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!r?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}const eI=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,tI=Wg(),rI=Wg(e=>e(tI)?.numberOfSections??0),nI=Wg(e=>e(tI)?.numberOfItemsInSection??[]),oI=Wg(e=>e(tI)?.keyExtractor??eI),iI=Wg(e=>e(tI)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),aI=Wg(e=>e(tI)?.onDragEnd),sI=Wg(e=>e(tI)?.onDragOver),lI=Wg(e=>e(tI)?.itemRenderer),cI=Wg(e=>e(tI)?.headerRenderer),uI=Wg(e=>e(tI)?.dragOverlayRenderer),dI=Wg(e=>e(tI)?.onClick),pI=Wg(e=>{const t=e(rI),r=e(nI),n=e(oI),o={};for(let e=0;e<t;e++)o[e]=Array.from({length:r[e]},(t,r)=>n({sectionIndex:e,itemIndex:r}));return o}),fI=Wg(null),hI=Wg(e=>e(fI),(e,t,r)=>{if(null===r)return void t(fI,null);const n=e(fI);t(fI,{...n,...r})}),mI=QA(e=>Wg(null,(t,r,n)=>{let o;"over"===e?o=t(sI):"end"===e&&(o=t(aI),r(hI,null));const{source:i,target:a}=n.operation;if("start"===e)return void r(hI,{id:i.id,startSection:i.data.sectionKey,startIndex:i.data.itemIndex,startSectionIndex:i.data.sectionIndex});if(null===a)return void r(hI,{toIndex:void 0,toSectionIndex:void 0});const s=i.data.sectionIndex!==a.data.sectionIndex;let l;if(s){const e=ZA(t(pI),n)[a.data.sectionIndex].indexOf(i.id);l=-1!==e?e:a.sortable?.index??0}else l=a.sortable?.index??0;if("over"===e){const e=t(hI)?.startIndex;r(hI,{toIndex:!s&&void 0!==e&&l>e?l+1:l,toSectionIndex:a.data.sectionIndex})}o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t(hI)?.startSection??i.data.sectionKey,event:n})})),gI=[tI,rI,nI,oI,iI,aI,lI,cI,dI,hI],bI=[mI],vI=({props:e,children:t})=>{const r=ob(tI);return L(()=>{r(e)},[e,r]),t};var yI=Symbol.for("preact-signals");function xI(){if(RI>1)RI--;else{var e,t=!1;for(!function(){var e=PI;for(PI=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==EI;){var r=EI;for(EI=void 0,AI++;void 0!==r;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&qI(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(AI=0,RI--,t)throw e}}function SI(e){if(RI>0)return e();kI=++II,RI++;try{return e()}finally{xI()}}var wI=void 0;function CI(e){var t=wI;wI=void 0;try{return e()}finally{wI=t}}var EI=void 0,RI=0,AI=0,II=0,kI=0,PI=void 0,MI=0;function DI(e){if(void 0!==wI){var t=e.n;if(void 0===t||t.t!==wI)return t={i:0,S:e,p:wI.s,n:void 0,t:wI,e:void 0,x:void 0,r:t},void 0!==wI.s&&(wI.s.n=t),wI.s=t,e.n=t,32&wI.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=wI.s,t.n=void 0,wI.s.n=t,wI.s=t),t}}function TI(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function OI(e,t){return new TI(e,t)}function qI(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function LI(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function NI(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function jI(e,t){TI.call(this,void 0),this.x=e,this.s=void 0,this.g=MI-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function _I(e,t){return new jI(e,t)}function zI(e){var t=e.m;if(e.m=void 0,"function"==typeof t){RI++;var r=wI;wI=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,FI(e),t}finally{wI=r,xI()}}}function FI(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,zI(e)}function $I(e){if(wI!==this)throw new Error("Out-of-order effect");NI(this),wI=e,this.f&=-2,8&this.f&&FI(this),xI()}function HI(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function BI(e,t){var r=new HI(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}TI.prototype.brand=yI,TI.prototype.h=function(){return!0},TI.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:CI(function(){var e;null==(e=t.W)||e.call(t)}))},TI.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&CI(function(){var e;null==(e=t.Z)||e.call(t)}))}},TI.prototype.subscribe=function(e){var t=this;return BI(function(){var r=t.value,n=wI;wI=void 0;try{e(r)}finally{wI=n}},{name:"sub"})},TI.prototype.valueOf=function(){return this.value},TI.prototype.toString=function(){return this.value+""},TI.prototype.toJSON=function(){return this.value},TI.prototype.peek=function(){var e=this;return CI(function(){return e.value})},Object.defineProperty(TI.prototype,"value",{get:function(){var e=DI(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(AI>100)throw new Error("Cycle detected");!function(e){0!==RI&&0===AI&&e.l!==kI&&(e.l=kI,PI={S:e,v:e.v,i:e.i,o:PI})}(this),this.v=e,this.i++,MI++,RI++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{xI()}}}}),jI.prototype=new TI,jI.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===MI)return!0;if(this.g=MI,this.f|=1,this.i>0&&!qI(this))return this.f&=-2,!0;var e=wI;try{LI(this),wI=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return wI=e,NI(this),this.f&=-2,!0},jI.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}TI.prototype.S.call(this,e)},jI.prototype.U=function(e){if(void 0!==this.t&&(TI.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},jI.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(jI.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=DI(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),HI.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},HI.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,zI(this),LI(this),RI++;var e=wI;return wI=this,$I.bind(this,e)},HI.prototype.N=function(){2&this.f||(this.f|=2,this.u=EI,EI=this)},HI.prototype.d=function(){this.f|=8,1&this.f||FI(this)},HI.prototype.dispose=function(){this.d()};var VI,WI,UI,GI,KI,YI,XI,JI,ZI,QI,ek,tk,rk,nk,ok,ik,ak,sk,lk,ck,uk=Object.create,dk=Object.defineProperty,pk=Object.defineProperties,fk=Object.getOwnPropertyDescriptor,hk=Object.getOwnPropertyDescriptors,mk=Object.getOwnPropertySymbols,gk=Object.prototype.hasOwnProperty,bk=Object.prototype.propertyIsEnumerable,vk=e=>{throw TypeError(e)},yk=(e,t,r)=>t in e?dk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xk=(e,t)=>dk(e,"name",{value:t,configurable:!0}),Sk=["class","method","getter","setter","accessor","field","value","get","set"],wk=e=>void 0!==e&&"function"!=typeof e?vk("Function expected"):e,Ck=(e,t,r,n,o)=>({kind:Sk[e],name:t,metadata:n,addInitializer:e=>r._?vk("Already initialized"):o.push(wk(e||null))}),Ek=(e,t)=>{return yk(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},Rk=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},Ak=(e,t,r,n,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=Sk[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&fk(d<4?o:{get[r](){return Pk(this,i)},set[r](e){return Dk(this,i,e)}},r));d?f&&d<4&&xk(i,(d>2?"set ":d>1?"get ":"")+r):xk(o,r);for(var y=n.length-1;y>=0;y--)c=Ck(d,r,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>kk(o,e):e=>r in e},3^d&&(u.get=f?e=>(1^d?Pk:Tk)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(u.set=f?(e,t)=>Dk(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?wk(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?vk("Object expected"):(wk(a=s.get)&&(v.get=a),wk(a=s.set)&&(v.set=a),wk(a=s.init)&&g.unshift(a));return d||Ek(e,o),v&&dk(o,r,v),f?4^d?i:v:o},Ik=(e,t,r)=>t.has(e)||vk("Cannot "+r),kk=(e,t)=>Object(t)!==t?vk('Cannot use the "in" operator on this value'):e.has(t),Pk=(e,t,r)=>(Ik(e,t,"read from private field"),r?r.call(e):t.get(e)),Mk=(e,t,r)=>t.has(e)?vk("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Dk=(e,t,r,n)=>(Ik(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Tk=(e,t,r)=>(Ik(e,t,"access private method"),r);function Ok(e,t){if(t){let r;return _I(()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)})}return _I(e)}function qk(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,r)=>!qk(e,t[r]))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some(r=>!qk(e[r],t[r]));return!o}return!1}function Lk({get:e},t){return{init:e=>OI(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function Nk(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=Ok(e.bind(this)),r.set(this,t)),t.value}}function jk(e=!0){return function(t,r){r.addInitializer(function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>pk(e,hk(t)))(((e,t)=>{for(var r in t||(t={}))gk.call(t,r)&&yk(e,r,t[r]);if(mk)for(var r of mk(t))bk.call(t,r)&&yk(e,r,t[r]);return e})({},n),{enumerable:e}))})}}function _k(...e){const t=e.map(e=>BI(e));return()=>t.forEach(e=>e())}YI=[Lk],KI=[Lk],GI=[Lk],UI=[jk()],WI=[jk()],VI=[jk()];var zk,Fk=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Rk(XI,5,this),Mk(this,tk),Mk(this,JI,Rk(XI,8,this)),Rk(XI,11,this),Mk(this,rk,Rk(XI,12,this)),Rk(XI,15,this),Mk(this,ak,Rk(XI,16,this)),Rk(XI,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Pk(this,tk,lk)}get initial(){return Pk(this,tk,QI)}get previous(){return Pk(this,tk,ok)}set current(e){const t=CI(()=>Pk(this,tk,lk));e&&t&&this.equals(t,e)||SI(()=>{Pk(this,tk,QI)||Dk(this,tk,e,ek),Dk(this,tk,t,ik),Dk(this,tk,e,ck)})}reset(e=this.defaultValue){SI(()=>{Dk(this,tk,void 0,ik),Dk(this,tk,e,ek),Dk(this,tk,e,ck)})}};function $k(e){return CI(()=>{const t={};for(const r in e)t[r]=e[r];return t})}XI=[,,,uk(null)],JI=new WeakMap,tk=new WeakSet,rk=new WeakMap,ak=new WeakMap,ZI=Ak(XI,20,"#initial",YI,tk,JI),QI=ZI.get,ek=ZI.set,nk=Ak(XI,20,"#previous",KI,tk,rk),ok=nk.get,ik=nk.set,sk=Ak(XI,20,"#current",GI,tk,ak),lk=sk.get,ck=sk.set,Ak(XI,2,"current",UI,Fk),Ak(XI,2,"initial",WI,Fk),Ak(XI,2,"previous",VI,Fk),Ek(XI,Fk);zk=new WeakMap;var Hk,Bk,Vk,Wk,Uk,Gk=Object.create,Kk=Object.defineProperty,Yk=Object.getOwnPropertyDescriptor,Xk=Object.getOwnPropertySymbols,Jk=Object.prototype.hasOwnProperty,Zk=Object.prototype.propertyIsEnumerable,Qk=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),eP=e=>{throw TypeError(e)},tP=Math.pow,rP=(e,t,r)=>t in e?Kk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nP=["class","method","getter","setter","accessor","field","value","get","set"],oP=e=>void 0!==e&&"function"!=typeof e?eP("Function expected"):e,iP=(e,t,r,n,o)=>({kind:nP[e],name:t,metadata:n,addInitializer:e=>r._?eP("Already initialized"):o.push(oP(e||null))}),aP=(e,t,r,n,o,i)=>{for(var a,s,l,c,u=7&t,d=nP[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Yk(o,r)),h=n.length-1;h>=0;h--)(l=iP(u,r,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>r in e},c.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,oP(a)&&(f[d]=a);return f&&Kk(o,r,f),o},sP=(e,t,r)=>t.has(e)||eP("Cannot "+r),lP=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},cP=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))Jk.call(t,r)&&rP(e,r,t[r]);if(Xk)for(var r of Xk(t))Zk.call(t,r)&&rP(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new lP((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return lP.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var uP,dP=class extends(Vk=Fk,Bk=[Nk],Hk=[Nk],Vk){constructor(e){var t,r,n;super(lP.from(e),(e,t)=>lP.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(Uk,5,this),t=this,n=0,(r=Wk).has(t)?eP("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return lP.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=lP.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(sP(a=this,s=Wk,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);SI(()=>{((e,t,r)=>{sP(e,t,"write to private field"),t.set(e,r)})(this,Wk,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(lP.from(e)),this.velocity={x:0,y:0}}};function pP({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(tP(n,2)+tP(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}Uk=(e=>{var t;return[,,,Gk(null!=(t=null==e?void 0:e[Qk("metadata")])?t:null)]})(Vk),Wk=new WeakMap,aP(Uk,2,"delta",Bk,dP),aP(Uk,2,"direction",Hk,dP),uP=Uk,rP(dP,Qk("metadata"),uP[3]);var fP,hP,mP,gP,bP=(e=>(e.Horizontal="x",e.Vertical="y",e))(bP||{}),vP=Object.values(bP),yP=Object.create,xP=Object.defineProperty,SP=Object.defineProperties,wP=Object.getOwnPropertyDescriptor,CP=Object.getOwnPropertyDescriptors,EP=Object.getOwnPropertySymbols,RP=Object.prototype.hasOwnProperty,AP=Object.prototype.propertyIsEnumerable,IP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),kP=e=>{throw TypeError(e)},PP=(e,t,r)=>t in e?xP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,MP=(e,t)=>{for(var r in t||(t={}))RP.call(t,r)&&PP(e,r,t[r]);if(EP)for(var r of EP(t))AP.call(t,r)&&PP(e,r,t[r]);return e},DP=(e,t)=>SP(e,CP(t)),TP=(e,t)=>xP(e,"name",{value:t,configurable:!0}),OP=(e,t)=>{var r={};for(var n in e)RP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&EP)for(var n of EP(e))t.indexOf(n)<0&&AP.call(e,n)&&(r[n]=e[n]);return r},qP=e=>{var t;return[,,,yP(null!=(t=null==e?void 0:e[IP("metadata")])?t:null)]},LP=["class","method","getter","setter","accessor","field","value","get","set"],NP=e=>void 0!==e&&"function"!=typeof e?kP("Function expected"):e,jP=(e,t,r,n,o)=>({kind:LP[e],name:t,metadata:n,addInitializer:e=>r._?kP("Already initialized"):o.push(NP(e||null))}),_P=(e,t)=>PP(t,IP("metadata"),e[3]),zP=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},FP=(e,t,r,n,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=LP[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&wP(d<4?o:{get[r](){return BP(this,i)},set[r](e){return WP(this,i,e)}},r));d?f&&d<4&&TP(i,(d>2?"set ":d>1?"get ":"")+r):TP(o,r);for(var y=n.length-1;y>=0;y--)c=jP(d,r,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>HP(o,e):e=>r in e},3^d&&(u.get=f?e=>(1^d?BP:UP)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(u.set=f?(e,t)=>WP(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?NP(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?kP("Object expected"):(NP(a=s.get)&&(v.get=a),NP(a=s.set)&&(v.set=a),NP(a=s.init)&&g.unshift(a));return d||_P(e,o),v&&xP(o,r,v),f?4^d?i:v:o},$P=(e,t,r)=>t.has(e)||kP("Cannot "+r),HP=(e,t)=>Object(t)!==t?kP('Cannot use the "in" operator on this value'):e.has(t),BP=(e,t,r)=>($P(e,t,"read from private field"),r?r.call(e):t.get(e)),VP=(e,t,r)=>t.has(e)?kP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),WP=(e,t,r,n)=>($P(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),UP=(e,t,r)=>($P(e,t,"access private method"),r);function GP(e,t){return{plugin:e,options:t}}function KP(e){return t=>GP(e,t)}function YP(e){return"function"==typeof e?{plugin:e,options:void 0}:e}fP=[Lk];var XP=class{constructor(e,t){this.manager=e,this.options=t,VP(this,mP,zP(hP,8,this,!1)),zP(hP,11,this),VP(this,gP,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return CI(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=BI(e.bind(this));return BP(this,gP).add(t),t}destroy(){BP(this,gP).forEach(e=>e())}static configure(e){return GP(this,e)}};hP=qP(null),mP=new WeakMap,gP=new WeakMap,FP(hP,4,"disabled",fP,XP,mP),_P(hP,XP);var JP,ZP=class extends XP{},QP=class{constructor(e){this.manager=e,this.instances=new Map,VP(this,JP,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(YP).reduce((e,t)=>{const r=e.find(({plugin:e})=>e===t.plugin);return r?(r.options=t.options,e):[...e,t]},[]),r=t.map(({plugin:e})=>e);for(const e of BP(this,JP))if(!r.includes(e)){if(e.prototype instanceof ZP)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);WP(this,JP,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function eM(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}JP=new WeakMap;var tM,rM,nM,oM,iM,aM,sM,lM,cM,uM,dM,pM,fM=[],hM=class extends XP{constructor(e){super(e),VP(this,tM),VP(this,rM),this.computeCollisions=this.computeCollisions.bind(this),WP(this,rM,OI(fM)),this.destroy=_k(()=>{const e=this.computeCollisions(),t=CI(()=>this.manager.dragOperation.position.current);if(e!==fM){const e=BP(this,tM);if(WP(this,tM,t),e&&t.x==e.x&&t.y==e.y)return}else WP(this,tM,void 0);BP(this,rM).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){CI(()=>{e?BP(this,rM).value=this.computeCollisions():WP(this,tM,void 0)})}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return fM;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=CI(()=>e({droppable:i,dragOperation:n}));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?fM:(s.sort(eM),s)}get collisions(){return BP(this,rM).value}};tM=new WeakMap,rM=new WeakMap,iM=[Lk],oM=[Lk],nM=[Lk];var mM=class e{constructor(e,t){VP(this,cM,zP(lM,8,this)),zP(lM,11,this),VP(this,uM),VP(this,dM,zP(lM,12,this)),zP(lM,15,this),VP(this,pM,zP(lM,16,this)),zP(lM,19,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;WP(this,uM,OI(n)),this.manager=t,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return s=e,null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}get id(){var t,r;const n=BP(this,uM).value;return null!=(r=null==(t=e.pendingIdChanges)?void 0:t.get(this))?r:n}set id(t){var r,n;t!==(null!=(n=null==(r=e.pendingIdChanges)?void 0:r.get(this))?n:BP(this,uM).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return UP(t=e,aM,sM).call(t)})),e.pendingIdChanges.set(this,t))}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};lM=qP(null),aM=new WeakSet,sM=function(){const e=mM.pendingIdChanges;mM.pendingIdChanges=null,e&&SI(()=>{for(const[t,r]of e)BP(t,uM).value=r})},cM=new WeakMap,uM=new WeakMap,dM=new WeakMap,pM=new WeakMap,FP(lM,4,"manager",iM,mM,cM),FP(lM,4,"data",oM,mM,dM),FP(lM,4,"disabled",nM,mM,pM),VP(mM,aM),_P(lM,mM),mM.pendingIdChanges=null;var gM,bM,vM,yM,xM,SM,wM,CM,EM,RM,AM,IM,kM,PM,MM,DM,TM,OM,qM,LM,NM,jM,_M,zM,FM=mM,$M=class{constructor(){this.map=OI(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n&&n.id===e){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);for(const[n,o]of r)if(o===t&&n!==e){i.delete(n);break}i.set(e,t),this.map.value=i;const a=_k(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},HM=class extends(wM=FM,SM=[Lk],xM=[Lk],yM=[Lk],vM=[Nk],bM=[Nk],gM=[Nk],wM){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i,plugins:a,effects:s}=r,l=OP(r,["modifiers","type","sensors","plugins","effects"]);super(DP(MP({},l),{effects:()=>{var e;return[...null!=(e=null==s?void 0:s())?e:[],()=>{const{manager:e,plugins:t}=this;if(e&&t)for(const r of t){const{plugin:t}=YP(r);e.registry.plugins.register(t)}}]}}),t),zP(CM,5,this),VP(this,EM,zP(CM,8,this)),zP(CM,11,this),VP(this,RM,zP(CM,12,this)),zP(CM,15,this),VP(this,AM,zP(CM,16,this,this.isDragSource?"dragging":"idle")),zP(CM,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=l.alignment,this.plugins=a}pluginConfig(e){if(this.plugins)for(const t of this.plugins){const r=YP(t);if(r.plugin===e)return r.options}}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};CM=qP(wM),EM=new WeakMap,RM=new WeakMap,AM=new WeakMap,FP(CM,4,"type",SM,HM,EM),FP(CM,4,"modifiers",xM,HM,RM),FP(CM,4,"status",yM,HM,AM),FP(CM,2,"isDropping",vM,HM),FP(CM,2,"isDragging",bM,HM),FP(CM,2,"isDragSource",gM,HM),_P(CM,HM);var BM=class extends(OM=FM,TM=[Lk],DM=[Lk],MM=[Lk],PM=[Lk],kM=[Lk],IM=[Nk],OM){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(OP(r,["accept","collisionDetector","collisionPriority","type"]),t),zP(qM,5,this),VP(this,LM,zP(qM,8,this)),zP(qM,11,this),VP(this,NM,zP(qM,12,this)),zP(qM,15,this),VP(this,jM,zP(qM,16,this)),zP(qM,19,this),VP(this,_M,zP(qM,20,this)),zP(qM,23,this),VP(this,zM,zP(qM,24,this)),zP(qM,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};qM=qP(OM),LM=new WeakMap,NM=new WeakMap,jM=new WeakMap,_M=new WeakMap,zM=new WeakMap,FP(qM,4,"accept",TM,BM,LM),FP(qM,4,"type",DM,BM,NM),FP(qM,4,"collisionDetector",MM,BM,jM),FP(qM,4,"collisionPriority",PM,BM,_M),FP(qM,4,"shape",kM,BM,zM),FP(qM,2,"isDropTarget",IM,BM),_P(qM,BM);var VM=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},WM=class extends VM{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function UM(e,t=!0){let r=!1;return DP(MP({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var GM,KM,YM,XM,JM,ZM,QM,eD,tD,rD=class extends ZP{constructor(e){super(e);let t=[];this.destroy=_k(()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())},()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;if(FM.pendingIdChanges)return;const i=UM({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;CI(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{r.enable()}))})})}},nD=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(nD||{}),oD=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(oD||{});QM=[Lk],ZM=[Nk],JM=[Nk],XM=[Nk],YM=[Nk],KM=[Nk],GM=[Nk];var iD=class{constructor(){zP(eD,5,this),VP(this,tD,zP(eD,8,this,"idle")),zP(eD,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};eD=qP(null),tD=new WeakMap,FP(eD,4,"value",QM,iD,tD),FP(eD,2,"current",ZM,iD),FP(eD,2,"idle",JM,iD),FP(eD,2,"initializing",XM,iD),FP(eD,2,"initialized",YM,iD),FP(eD,2,"dragging",KM,iD),FP(eD,2,"dropped",GM,iD),_P(eD,iD);var aD,sD=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return CI(()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=UM({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then(()=>n.defaultPrevented)})}start(e){return CI(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;SI(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)});const i=UM({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&SI(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1})})}),r)})}move(e){return CI(()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=UM({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l})})}stop(e={}){return CI(()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{n.status.set("dropped");const e=CI(()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)}),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=BI(()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())})}else this.manager.renderer.rendering.then(t)})};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,r)=>{e.resume=t,e.abort=r}),e}}),i?i.then(a).catch(()=>n.reset()):a()})}},lD=class extends XP{constructor(e,t){super(e,t),this.manager=e,this.options=t}},cD=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},uD=class{constructor(e){this.options=e,VP(this,aD)}set controller(e){WP(this,aD,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=BP(this,aD))||t.activate(e)}};aD=new WeakMap;var dD,pD,fD,hD,mD,gD,bD,vD,yD,xD,SD,wD,CD,ED,RD,AD,ID,kD,PD,MD=class extends XP{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},DD=class{constructor(e){this.draggables=new $M,this.droppables=new $M,this.plugins=new QP(e),this.sensors=new QP(e),this.modifiers=new QP(e)}register(e,t){if(e instanceof HM)return this.draggables.register(e.id,e);if(e instanceof BM)return this.droppables.register(e.id,e);if(e.prototype instanceof MD)return this.modifiers.register(e,t);if(e.prototype instanceof lD)return this.sensors.register(e,t);if(e.prototype instanceof XP)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof FM)return e instanceof HM?this.draggables.unregister(e.id,e):e instanceof BM?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof MD)return this.modifiers.unregister(e);if(e.prototype instanceof lD)return this.sensors.unregister(e);if(e.prototype instanceof XP)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};yD=[Nk],vD=[Lk],bD=[Lk],gD=[Lk],mD=[Lk],hD=[Lk],fD=[Nk],pD=[Nk],dD=[Nk];var TD=class{constructor(e){zP(CD,5,this),VP(this,xD),VP(this,SD),VP(this,wD,new Fk(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new iD,VP(this,ED,zP(CD,8,this,!1)),zP(CD,11,this),VP(this,RD,zP(CD,12,this,null)),zP(CD,15,this),VP(this,AD,zP(CD,16,this,null)),zP(CD,19,this),VP(this,ID,zP(CD,20,this,null)),zP(CD,23,this),VP(this,kD,zP(CD,24,this,[])),zP(CD,27,this),this.position=new dP({x:0,y:0}),VP(this,PD,{x:0,y:0}),WP(this,xD,e)}get shape(){const{current:e,initial:t,previous:r}=BP(this,wD);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?BP(this,wD).current=e:BP(this,wD).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=BP(this,xD).registry.draggables.get(t);return r&&WP(this,SD,r),null!=(e=null!=r?r:BP(this,SD))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=BP(this,xD).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(DP(MP({},this.snapshot()),{transform:r}));return WP(this,PD,r),r}snapshot(){return CI(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:BP(this,PD),shape:this.shape?$k(this.shape):null,position:$k(this.position),status:$k(this.status),canceled:this.canceled}))}reset(){SI(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,BP(this,wD).reset(),this.position.reset({x:0,y:0}),WP(this,PD,{x:0,y:0}),this.modifiers=[]})}};CD=qP(null),xD=new WeakMap,SD=new WeakMap,wD=new WeakMap,ED=new WeakMap,RD=new WeakMap,AD=new WeakMap,ID=new WeakMap,kD=new WeakMap,PD=new WeakMap,FP(CD,2,"shape",yD,TD),FP(CD,4,"canceled",vD,TD,ED),FP(CD,4,"activatorEvent",bD,TD,RD),FP(CD,4,"sourceIdentifier",gD,TD,AD),FP(CD,4,"targetIdentifier",mD,TD,ID),FP(CD,4,"modifiers",hD,TD,kD),FP(CD,2,"source",fD,TD),FP(CD,2,"target",pD,TD),FP(CD,2,"transform",dD,TD),_P(CD,TD);var OD={get rendering(){return Promise.resolve()}};function qD(e,t){return"function"==typeof e?e(t):null!=e?e:t}var LD=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=qD(r.plugins,[]),o=qD(r.sensors,[]),i=qD(r.modifiers,[]),a=null!=(t=r.renderer)?t:OD,s=new WM(this),l=new DD(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new sD(this),this.dragOperation=new TD(this),this.collisionObserver=new hM(this),this.plugins=[rD,...n],this.modifiers=i,this.sensors=o;const{destroy:c}=this,u=_k(()=>{var e,t,r;const n=CI(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of n)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:r}=YP(e);return new t(this,r)}))?r:o});this.destroy=()=>{u(),c()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},ND=e=>{throw TypeError(e)},jD=(e,t,r)=>t.has(e)||ND("Cannot "+r),_D=(e,t,r)=>(jD(e,t,"read from private field"),t.get(e)),zD=(e,t,r)=>t.has(e)?ND("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),FD=(e,t,r,n)=>(jD(e,t,"write to private field"),t.set(e,r),r),$D=(e,t,r)=>(jD(e,t,"access private method"),r);function HD(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function BD(e,t){const r=e.getAnimations();let n=null;for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,o=(HD(r)?r.getKeyframes():[]).filter(t);o.length>0&&(n=[o[o.length-1],e])}return n}function VD(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function WD(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function UD(e){return"nodeType"in e}function GD(e){var t,r,n;return e?WD(e)?e:UD(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function KD(e){const{Document:t}=GD(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function YD(e){return!(!e||WD(e))&&(e instanceof GD(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function XD(e){return e instanceof GD(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function JD(e){return e?WD(e)?e.document:UD(e)?KD(e)?e:YD(e)||XD(e)?e.ownerDocument:document:document:document}function ZD(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function QD(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:c}=e,u=null!=(n=c.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==c.documentElement;){if(!ZD(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=u.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:u.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:u.innerHeight,b=r*g,v=r*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function eT(e){return{x:e.clientX,y:e.clientY}}var tT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function rT(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...rT(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...rT(o.document,t))}}catch(e){}return r}function nT(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function oT(){var e,t;const r=nT()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function iT(e){return!(!e||!UD(e))&&e instanceof GD(e).ShadowRoot}function aT(e){if(e&&UD(e)){let t=e.getRootNode();if(iT(t))return t;if(t instanceof Document)return t}return JD(e)}function sT(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function lT(e){return"value"in e}function cT(e){return"CANVAS"===e.tagName}function uT(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return uT(e,{x:t-o,y:r-i})}}return n}var dT=new WeakMap;var pT=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}const i=this.entries;return function(){for(const e of o){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o),i.delete(e)}}}};function fT(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function hT(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}(()=>{e.apply(a,i),o=r()},t-(r()-o))):(e.apply(a,i),o=r())}}var mT,gT=tT?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},bT=class extends gT{constructor(e){super(t=>{_D(this,mT)?e(t,this):FD(this,mT,!0)}),zD(this,mT,!1)}};mT=new WeakMap;var vT,yT,xT,ST,wT,CT,ET,RT,AT,IT,kT,PT=Array.from({length:100},(e,t)=>t/100),MT=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,zD(this,AT),this.disconnect=()=>{var e,t,r;FD(this,ET,!0),null==(e=_D(this,xT))||e.disconnect(),null==(t=_D(this,ST))||t.disconnect(),_D(this,wT).disconnect(),null==(r=_D(this,CT))||r.remove()},zD(this,vT,!0),zD(this,yT),zD(this,xT),zD(this,ST),zD(this,wT),zD(this,CT),zD(this,ET,!1),zD(this,RT,hT(()=>{var e,t,r;const{element:n}=this;if(null==(e=_D(this,ST))||e.disconnect(),_D(this,ET)||!_D(this,vT)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=QD(n,s),{top:c,left:u,bottom:d,right:p}=l,f=-Math.floor(c),h=-Math.floor(u),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,FD(this,ST,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:cP.intersectionRatio(r,QD(n)))&&_D(this,RT).call(this)},{threshold:PT,rootMargin:m,root:o})),_D(this,ST).observe(n),$D(this,AT,IT).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),FD(this,vT,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=QD(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(FD(this,CT,document.createElement("div")),_D(this,CT).style.background="rgba(0,0,0,0.15)",_D(this,CT).style.position="fixed",_D(this,CT).style.pointerEvents="none",o.body.appendChild(_D(this,CT))),FD(this,wT,new IntersectionObserver(t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,c=_D(this,vT);FD(this,vT,a),(s||l)&&(c&&!a?(null==(r=_D(this,ST))||r.disconnect(),this.callback(null),null==(n=_D(this,xT))||n.disconnect(),FD(this,xT,void 0),_D(this,CT)&&(_D(this,CT).style.visibility="hidden")):_D(this,RT).call(this),a&&!_D(this,xT)&&(FD(this,xT,new bT(_D(this,RT))),_D(this,xT).observe(e)))},{threshold:PT,root:o})),_D(this,vT)&&!r.skipInitial&&this.callback(this.boundingClientRect),_D(this,wT).observe(e)}};vT=new WeakMap,yT=new WeakMap,xT=new WeakMap,ST=new WeakMap,wT=new WeakMap,CT=new WeakMap,ET=new WeakMap,RT=new WeakMap,AT=new WeakSet,IT=function(){_D(this,ET)||($D(this,AT,kT).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,_D(this,yT))||(this.callback(this.boundingClientRect),FD(this,yT,this.boundingClientRect)))},kT=function(){if(_D(this,CT)){const{top:e,left:t,width:r,height:n}=QD(this.element);_D(this,CT).style.overflow="hidden",_D(this,CT).style.visibility="visible",_D(this,CT).style.top=`${Math.floor(e)}px`,_D(this,CT).style.left=`${Math.floor(t)}px`,_D(this,CT).style.width=`${Math.floor(r)}px`,_D(this,CT).style.height=`${Math.floor(n)}px`}};var DT,TT,OT,qT,LT=new WeakMap,NT=new WeakMap;function jT(e,t){let r=LT.get(e);if(!r){const t=new MT(e,t=>{const r=LT.get(e);r&&r.callbacks.forEach(e=>e(t))},{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),LT.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(LT.delete(e),r.disconnect())}}var _T=class{constructor(e,t,r){this.callback=t,zD(this,DT),zD(this,TT,!1),zD(this,OT),zD(this,qT,hT(e=>{if(!_D(this,TT)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of _D(this,OT))if(e.target.contains(t)){this.callback(_D(this,DT).boundingClientRect);break}},75));const n=function(e){const t=new Set;let r=fT(e);for(;r;)t.add(r),r=fT(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=jT(n,t);r.add(e)}return()=>r.forEach(e=>e())}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!NT.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),NT.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=NT.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),NT.delete(n))}):()=>{}}(e,_D(this,qT));FD(this,OT,n),FD(this,DT,new MT(e,t,r)),this.disconnect=()=>{_D(this,TT)||(FD(this,TT,!0),o(),i(),_D(this,DT).disconnect())}}};function zT(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function FT(e){try{zT(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function $T(e){return!(!tT||!e)&&e===JD(e).scrollingElement}function HT(e){var t,r;const n=GD(e),o=$T(e)?function(e){var t,r,n,o;const{documentElement:i}=JD(e),a=GD(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,c=null!=(n=null==a?void 0:a.offsetTop)?n:0,u=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:c,left:u,right:u+s,bottom:c+l,width:s,height:l}}(e):VD(e),i=n.visualViewport,a=$T(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function BT(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=HT(e),{x:s,y:l}=null!=t?t:{x:0,y:0},c=!r&&a.current.y+l>0,u=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:c,bottom:u,left:d,right:p,x:d||p,y:c||u}}DT=new WeakMap,TT=new WeakMap,OT=new WeakMap,qT=new WeakMap;var VT=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},WT=new VT(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),UT=new VT(e=>setTimeout(e,50)),GT=new Map,KT=GT.clear.bind(GT);function YT(e,t=!1){if(!t)return XT(e);let r=GT.get(e);return r||(r=XT(e),GT.set(e,r),UT.schedule(KT),r)}function XT(e){return GD(e).getComputedStyle(e)}var JT={excludeElement:!0,escapeShadowDOM:!0};function ZT(e,t=JT){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(KD(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&iT(a))return t(a.host);if(!YD(a))return XD(a)?t(a.parentElement):i;if(i.has(a))return i;const s=YT(a,!0);if(n&&a===e||function(e,t=YT(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&r.test(n)})}(a,s)&&i.add(a),function(e,t=YT(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function QT(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=fT(e);for(;n;){if(n===t)return r;const e=VD(n),{x:o,y:i}=eO(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=fT(n)}return r}function eO(e,t=VD(e)){const r=Math.round(t.width),n=Math.round(t.height);if(YD(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=YT(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function tO(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function rO(e){var t,r,n,o,i,a,s,l,c;const{scale:u,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(u),h=tO(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(c=null==h?void 0:h.z)?c:0,scaleX:g*w,scaleY:b*C}}var nO=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(nO||{}),oO={x:.2,y:.2},iO={x:10,y:10};function aO(e,t,r,n=25,o=oO,i=iO){const{x:a,y:s}=t,{rect:l,isTop:c,isBottom:u,isLeft:d,isRight:p}=HT(e),f=QT(e),h=rO(YT(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new cP(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return x>0&&(!c||g&&!u)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):x>0&&(!u||g&&!c)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),S>0&&(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):S>0&&(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function sO(e,{block:t="nearest",inline:r="nearest"}={}){if(!YD(e))return;const n=ZT(e),o=[];for(const i of n){if(!YD(i))continue;const{top:n,left:a}=cO(e,i);let s=n,l=a;for(const e of o)s-=e.scrollTop,l-=e.scrollLeft;if("none"!==t){const r=s<i.scrollTop;r!==s+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop="center"===t?s-i.clientHeight/2+e.offsetHeight/2:r?s:s+e.offsetHeight-i.clientHeight)}if("none"!==r){const t=l<i.scrollLeft;t!==l+e.offsetWidth>i.scrollLeft+i.clientWidth&&(i.scrollLeft="center"===r?l-i.clientWidth/2+e.offsetWidth/2:t?l:l+e.offsetWidth-i.clientWidth)}o.push(i)}}function lO(e){let t=0,r=0,n=e;for(;n;){t+=n.offsetTop,r+=n.offsetLeft;const e=n.offsetParent;if(!YD(e))break;t+=e.clientTop,r+=e.clientLeft,n=e}return{top:t,left:r}}function cO(e,t){const r=lO(e),n=lO(t);return{top:r.top-n.top-t.clientTop,left:r.left-n.left-t.clientLeft}}function uO({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function dO(e,t=YT(e).translate,r=!0){if(r){const t=BD(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=tO(e);if(t)return t}}}if(t){const e=tO(t);if(e)return e}return{x:0,y:0,z:0}}var pO=new VT(e=>setTimeout(e,0)),fO=new Map,hO=fO.clear.bind(fO);function mO(e,t){const r=function(e){const t=e.ownerDocument;let r=fO.get(t);if(r)return r;r=t.getAnimations(),fO.set(t,r),pO.schedule(hO);const n=r.filter(t=>HD(t.effect)&&t.effect.target===e);return fO.set(e,n),r}(e).filter(e=>{var r,n;if(HD(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some(e=>{for(const r of t.properties)if(e[r])return!0})}}).map(e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0});if(r.length>0)return()=>r.forEach(e=>null==e?void 0:e())}var gO=class extends cP{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=QT(e),ignoreTransforms:s,getBoundingClientRect:l=VD}=t,c=mO(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||nT())&&t.contains(e)}),u=l(e);let d,{top:p,left:f,width:h,height:m}=u;const g=YT(e),b=rO(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){const r=e.getAnimations();if(!r.length)return null;let n,o,i,a=!1;for(const e of r){if("running"!==e.playState)continue;const t=HD(e.effect)?e.effect.getKeyframes():[],r=t[t.length-1];if(!r)continue;const{transform:s,translate:l,scale:c}=r;"string"==typeof s&&s&&(n=s,a=!0),"string"==typeof l&&l&&(o=l,a=!0),"string"==typeof c&&c&&(i=c,a=!0)}return a?rO({transform:null!=n?n:t.transform,translate:null!=o?o:t.translate,scale:null!=i?i:t.scale}):null}(e,g);null==c||c(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),c=n?e.width/n:e.width,u=o?e.height/o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(u,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),c=n?e.width*n:e.width,u=o?e.height*o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function bO(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var vO=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(bO(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(bO(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(bO(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function yO(e){return!!e&&(e instanceof GD(e).Element||UD(e)&&e.nodeType===Node.ELEMENT_NODE)}function xO(e){if(!e)return!1;const{KeyboardEvent:t}=GD(e.target);return e instanceof t}var SO={};function wO(e){const t=null==SO[e]?0:SO[e]+1;return SO[e]=t,`${e}-${t}`}var CO=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/lP.distance(t.shape.center,r),type:oD.PointerIntersection,priority:nD.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=lP.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:oD.ShapeIntersection,priority:nD.Normal}}return null})(e)},EO=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?cP.from(n.current.boundingRectangle).corners:void 0,a=cP.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+lP.distance(lP.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)},0),s=a/4;return{id:r.id,value:1/s,type:oD.Collision,priority:nD.Normal}},RO=Object.create,AO=Object.defineProperty,IO=Object.defineProperties,kO=Object.getOwnPropertyDescriptor,PO=Object.getOwnPropertyDescriptors,MO=Object.getOwnPropertySymbols,DO=Object.prototype.hasOwnProperty,TO=Object.prototype.propertyIsEnumerable,OO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),qO=e=>{throw TypeError(e)},LO=(e,t,r)=>t in e?AO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,NO=(e,t)=>{for(var r in t||(t={}))DO.call(t,r)&&LO(e,r,t[r]);if(MO)for(var r of MO(t))TO.call(t,r)&&LO(e,r,t[r]);return e},jO=(e,t)=>IO(e,PO(t)),_O=(e,t)=>AO(e,"name",{value:t,configurable:!0}),zO=(e,t)=>{var r={};for(var n in e)DO.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&MO)for(var n of MO(e))t.indexOf(n)<0&&TO.call(e,n)&&(r[n]=e[n]);return r},FO=e=>{var t;return[,,,RO(null!=(t=null==e?void 0:e[OO("metadata")])?t:null)]},$O=["class","method","getter","setter","accessor","field","value","get","set"],HO=e=>void 0!==e&&"function"!=typeof e?qO("Function expected"):e,BO=(e,t,r,n,o)=>({kind:$O[e],name:t,metadata:n,addInitializer:e=>r._?qO("Already initialized"):o.push(HO(e||null))}),VO=(e,t)=>LO(t,OO("metadata"),e[3]),WO=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},UO=(e,t,r,n,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=$O[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&kO(d<4?o:{get[r](){return YO(this,i)},set[r](e){return JO(this,i,e)}},r));d?f&&d<4&&_O(i,(d>2?"set ":d>1?"get ":"")+r):_O(o,r);for(var y=n.length-1;y>=0;y--)c=BO(d,r,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>KO(o,e):e=>r in e},3^d&&(u.get=f?e=>(1^d?YO:ZO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(u.set=f?(e,t)=>JO(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?HO(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?qO("Object expected"):(HO(a=s.get)&&(v.get=a),HO(a=s.set)&&(v.set=a),HO(a=s.init)&&g.unshift(a));return d||VO(e,o),v&&AO(o,r,v),f?4^d?i:v:o},GO=(e,t,r)=>t.has(e)||qO("Cannot "+r),KO=(e,t)=>Object(t)!==t?qO('Cannot use the "in" operator on this value'):e.has(t),YO=(e,t,r)=>(GO(e,t,"read from private field"),r?r.call(e):t.get(e)),XO=(e,t,r)=>t.has(e)?qO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),JO=(e,t,r,n)=>(GO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ZO=(e,t,r)=>(GO(e,t,"access private method"),r),QO="button",eq="draggable",tq="dnd-kit-description",rq="dnd-kit-announcement",nq={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},oq={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function iq(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var aq=["dragover","dragmove"],sq=class extends XP{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=tq,announcement:o=rq}={},announcements:i=oq,screenReaderInstructions:a=nq,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:wO(n),c=r?`${o}-${r}`:wO(o);let u,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>WT.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,aq.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==u?void 0:u.isConnected)||(u=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(u)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(c),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){u&&d||y.add(v),iq(r)&&!nT()||r.hasAttribute("tabindex")||y.add(()=>r.setAttribute("tabindex","0")),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add(()=>r.setAttribute("role",QO)),r.hasAttribute("aria-roledescription")||y.add(()=>r.setAttribute("aria-roledescription",eq)),r.hasAttribute("aria-describedby")||y.add(()=>r.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add(()=>r.setAttribute(e,n))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add(()=>r.setAttribute("aria-disabled",e))}}y.size>0&&WT.schedule(x)}),this.destroy=()=>{super.destroy(),null==u||u.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var lq,cq,uq,dq,pq,fq,hq,mq,gq,bq,vq,yq,xq,Sq=new Map,wq=class extends(pq=ZP,dq=[Lk],uq=[Nk],cq=[Nk],lq=[Nk],pq){constructor(e,t){super(e,t),WO(hq,5,this),XO(this,gq),XO(this,fq,new Set),XO(this,mq,WO(hq,8,this,new Set)),WO(hq,11,this),this.registerEffect(ZO(this,gq,bq))}register(e){return YO(this,fq).add(e),()=>{YO(this,fq).delete(e)}}addRoot(e){return CI(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{CI(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return aT(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return aT(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};hq=FO(pq),fq=new WeakMap,mq=new WeakMap,gq=new WeakSet,bq=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of YO(this,fq))t.push(ZO(this,gq,vq).call(this,r,e));return()=>{for(const e of t)e()}},vq=function(e,t){let r=Sq.get(e);r||(r=new Map,Sq.set(e,r));let n=r.get(t);if(!n){const o=KD(e)?ZO(this,gq,yq).call(this,e,r,t):ZO(this,gq,xq).call(this,e,r,t);if(!o)return()=>{};n=o,r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},yq=function(e,t,r){var n;const o=e.createElement("style"),{nonce:i}=null!=(n=this.options)?n:{};i&&o.setAttribute("nonce",i),o.textContent=r,e.head.prepend(o);const a=new MutationObserver(t=>{for(const r of t)for(const t of Array.from(r.removedNodes))if(t===o)return void e.head.prepend(o)});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),o.remove(),t.delete(r),0===t.size&&Sq.delete(e)}}},xq=function(e,t,r){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const n=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=n?n:{};if(!o)return null;const i=new o;return i.replaceSync(r),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var n;if(iT(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(r),0===t.size&&Sq.delete(e)}}},UO(hq,4,"additionalRoots",dq,wq,mq),UO(hq,2,"sourceRoot",uq,wq),UO(hq,2,"targetRoot",cq,wq),UO(hq,2,"roots",lq,wq),VO(hq,wq),wq.configure=KP(wq);var Cq=wq,Eq="data-dnd-",Rq=`${Eq}dropping`,Aq="--dnd-",Iq=`${Eq}dragging`,kq=`${Eq}placeholder`,Pq=[Iq,kq,"popover","aria-pressed","aria-grabbing"],Mq=["view-transition-name"],Dq=`\n :is(:root,:host) [${Iq}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${Aq}top, 0px) !important;\n left: var(${Aq}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Aq}width, auto);\n max-width: var(${Aq}width, auto);\n height: var(${Aq}height, auto);\n max-height: var(${Aq}height, auto);\n transform: var(${Aq}transform, none) !important;\n transition: var(${Aq}transition) !important;\n }\n\n :is(:root,:host) [${kq}] {\n transition: none;\n }\n\n :is(:root,:host) [${kq}='hidden'] {\n visibility: hidden;\n }\n\n [${Iq}] * {\n pointer-events: none !important;\n }\n\n [${Iq}]:not([${Rq}]) {\n translate: var(${Aq}translate) !important;\n }\n\n [${Iq}][style*='${Aq}scale'] {\n scale: var(${Aq}scale) !important;\n transform-origin: var(${Aq}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${Iq}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${Iq}]::backdrop, [${Eq}overlay]:not([${Iq}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function Tq(e,t="hidden"){return CI(()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${Eq}${wO("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach((e,t)=>{const r=n[t];if(lT(e)&&lT(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),cT(e)&&cT(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}}),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),dT.set(a,i),r.push(()=>{dT.delete(a),n.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(kq,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function Oq(e,t){return e===t||fT(e)===fT(t)}function qq(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&yO(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>FT(t))}function Lq(e){return"TR"===e.tagName}var Nq,jq,_q,zq,Fq,$q,Hq,Bq=250,Vq="ease";var Wq=class extends(jq=XP,Nq=[Lk],jq){constructor(e,t){super(e,t),XO(this,Fq),XO(this,zq,WO(_q,8,this)),WO(_q,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(Cq),n=null==r?void 0:r.register(Dq);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(ZO(this,Fq,$q).bind(this,r)),this.registerEffect(ZO(this,Fq,Hq))}};_q=FO(jq),zq=new WeakMap,Fq=new WeakSet,$q=function(e){const{overlay:t}=this;if(!t||!e)return;const r=aT(t);return r?e.addRoot(r):void 0},Hq=function(){var e,t,r,n,o,i,a;const{state:s,manager:l,options:c}=this,{dragOperation:u}=l,{position:d,source:p,status:f}=u;if(f.idle)return s.current={},void(s.initial={});if(!p)return;const{element:h}=p,m=p.pluginConfig(Wq),g=null!=(t=null!=(e=null==m?void 0:m.feedback)?e:null==c?void 0:c.feedback)?t:"default",b="function"==typeof g?g(p,l):g;if(!h||"none"===b||!f.initialized||f.initializing)return;const{initial:v}=s,y=null!=(r=this.overlay)?r:h,x=QT(y),S=QT(h),w=!Oq(h,y),C=new gO(h,{frameTransform:w?S:null,ignoreTransforms:!w}),E=S.scaleX/x.scaleX,R=S.scaleY/x.scaleY;let{width:A,height:I,top:k,left:P}=C;w&&(A/=E,I/=R);const M=new vO(y),D=YT(h),{transition:T,translate:O,boxSizing:q,paddingBlockStart:L,paddingBlockEnd:N,paddingInlineStart:j,paddingInlineEnd:_,borderInlineStartWidth:z,borderInlineEndWidth:F,borderBlockStartWidth:$,borderBlockEndWidth:H}=D,B=T.split(",").filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(","),V=rO(D),W=D.transform,U="clone"===b,G="content-box"===q,K=G?parseInt(j)+parseInt(_)+parseInt(z)+parseInt(F):0,Y=G?parseInt(L)+parseInt(N)+parseInt($)+parseInt(H):0,X="move"===b||this.overlay?null:Tq(p,U?"clone":"hidden"),J=CI(()=>xO(l.dragOperation.activatorEvent));if(!v.translate)if(this.overlay&&V)v.translate={x:V.x,y:V.y};else if("none"!==O){const e=tO(O);e&&(v.translate=e)}if(!v.transformOrigin){const e=CI(()=>d.current),t=P+(null!=(n=null==V?void 0:V.x)?n:0),r=k+(null!=(o=null==V?void 0:V.y)?o:0);v.transformOrigin={x:(e.x-t*x.scaleX-x.x)/(A*x.scaleX),y:(e.y-r*x.scaleY-x.y)/(I*x.scaleY)}}const{transformOrigin:Z}=v,Q=k*x.scaleY+x.y,ee=P*x.scaleX+x.x;if(!v.coordinates&&(v.coordinates={x:ee,y:Q},1!==E||1!==R)){const{scaleX:e,scaleY:t}=S,{x:r,y:n}=Z;v.coordinates.x+=(A*e-A)*r,v.coordinates.y+=(I*t-I)*n}v.dimensions||(v.dimensions={width:A,height:I}),v.frameTransform||(v.frameTransform=x);const te=v.coordinates.x-ee,re=v.coordinates.y-Q,ne=(v.dimensions.width*v.frameTransform.scaleX-A*x.scaleX)*Z.x,oe=(v.dimensions.height*v.frameTransform.scaleY-I*x.scaleY)*Z.y,ie={x:te/x.scaleX+ne,y:re/x.scaleY+oe},ae=P+ie.x,se=k+ie.y;y.setAttribute(Iq,"true");const le=CI(()=>u.transform),ce=null!=(i=v.translate)?i:{x:0,y:0},ue=le.x*x.scaleX+ce.x,de=le.y*x.scaleY+ce.y,pe=oT();if(M.set({width:A-K,height:I-Y,top:se+pe.y,left:ae+pe.x,translate:`${ue}px ${de}px 0`,transform:this.overlay?"none":W,transition:B?`${B}, translate 0ms linear`:"translate 0ms linear",scale:w?`${E} ${R}`:"","transform-origin":`${100*Z.x}% ${100*Z.y}%`},Aq),X&&(h.insertAdjacentElement("afterend",X),null==c?void 0:c.rootElement)){("function"==typeof c.rootElement?c.rootElement(p):c.rootElement).appendChild(h)}let fe,he,me;zT(y)&&(y.hasAttribute("popover")||y.setAttribute("popover","manual"),FT(y),y.addEventListener("beforetoggle",qq));const ge=(be={placeholder:X,element:h,feedbackElement:y,frameTransform:x,transformOrigin:Z,width:A,height:I,top:k,left:P,widthOffset:K,heightOffset:Y,delta:ie,styles:M,dragOperation:u,getTranslate:()=>s.current.translate,getElementMutationObserver:()=>fe,getSavedCellWidths:()=>me,setSavedCellWidths:e=>{me=e}},new ResizeObserver(()=>{var e,t,r;const n=new gO(be.placeholder,{frameTransform:be.frameTransform,ignoreTransforms:!0}),o=null!=(e=be.transformOrigin)?e:{x:1,y:1},i=(be.width-n.width)*o.x+be.delta.x,a=(be.height-n.height)*o.y+be.delta.y,s=oT();if(be.styles.set({width:n.width-be.widthOffset,height:n.height-be.heightOffset,top:be.top+a+s.y,left:be.left+i+s.x},Aq),null==(t=be.getElementMutationObserver())||t.takeRecords(),Lq(be.element)&&Lq(be.placeholder)){const e=Array.from(be.element.cells),t=Array.from(be.placeholder.cells);be.getSavedCellWidths()||be.setSavedCellWidths(e.map(e=>e.style.width));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}const l=null!=(r=be.getTranslate())?r:{x:0,y:0},c=be.left+i+s.x+l.x,u=be.top+a+s.y+l.y,d=n.width-be.widthOffset,p=n.height-be.heightOffset,f=be.frameTransform;be.dragOperation.shape=new cP(c*f.scaleX+f.x,u*f.scaleY+f.y,d*f.scaleX,p*f.scaleY)}));var be;const ve=new gO(y);CI(()=>u.shape=ve);const ye=GD(y),xe=e=>{this.manager.actions.stop({event:e})},Se=sT(ye);J&&ye.addEventListener("resize",xe),"idle"===CI(()=>p.status)&&requestAnimationFrame(()=>p.status="dragging"),X&&(ge.observe(X),fe=function(e,t,r){const n=new MutationObserver(n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||Pq.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(bO(e)&&bO(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(Mq.includes(e)||e.startsWith(Aq))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(h,X,U),he=function(e,t,r){const n=new MutationObserver(n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void FT(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void FT(r)}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement("afterend",t),FT(r))});return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(h,X,y));const we=null==(a=l.dragOperation.source)?void 0:a.id,Ce=()=>{var e;if(!J||null==we)return;const t=l.registry.draggables.get(we),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;YD(r)&&r.focus()},Ee=()=>{var e;if(null==fe||fe.disconnect(),null==he||he.disconnect(),ge.disconnect(),ye.removeEventListener("resize",xe),zT(y)&&(y.removeEventListener("beforetoggle",qq),y.removeAttribute("popover")),y.removeAttribute(Iq),M.reset(),me&&Lq(h)){const t=Array.from(h.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=me[r])?e:""}p.status="idle";const t=null!=s.current.translate,r=u.status.dragging;X&&(!r&&t||X.parentElement!==y.parentElement)&&y.isConnected&&X.replaceWith(y),null==X||X.remove()},Re=null==c?void 0:c.dropAnimation,Ae=this,Ie=_k(()=>{var e,t,r;const{transform:n,status:o}=u;if((n.x||n.y||s.current.translate)&&o.dragging){const o=null!=(e=v.translate)?e:{x:0,y:0},i={x:n.x/x.scaleX+o.x,y:n.y/x.scaleY+o.y},a=s.current.translate,l=CI(()=>u.modifiers),d=CI(()=>{var e;return null==(e=u.shape)?void 0:e.current}),p=null==c?void 0:c.keyboardTransition,f=J&&!Se&&null!==p?`${null!=(t=null==p?void 0:p.duration)?t:250}ms ${null!=(r=null==p?void 0:p.easing)?r:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(M.set({transition:B?`${B}, translate ${f}`:`translate ${f}`,translate:`${i.x}px ${i.y}px 0`},Aq),null==fe||fe.takeRecords(),d&&d!==ve&&a&&!l.length){const e=lP.delta(i,a);u.shape=cP.from(d.boundingRectangle).translate(e.x*x.scaleX,e.y*x.scaleY)}else u.shape=new gO(y);s.current.translate=i}},function(){if(u.status.dropped){this.dispose(),p.status="dropping";const e=void 0!==(null==m?void 0:m.dropAnimation)?m.dropAnimation:void 0!==Ae.dropAnimation?Ae.dropAnimation:Re;let t=s.current.translate;const r=null!=t;if(t||h===y||(t={x:0,y:0}),!t||null===e)return void Ee();l.renderer.rendering.then(()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=Bq,easing:s=Vq}=null!=i?i:{};FT(e.feedbackElement);const[,l]=null!=(t=BD(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const c=null!=(r=e.placeholder)?r:e.element,u={frameTransform:Oq(e.feedbackElement,c)?null:void 0},d=new gO(e.feedbackElement,u),p=null!=(n=tO(YT(e.feedbackElement).translate))?n:e.translate,f=new gO(c,u),h=cP.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},Aq),e.feedbackElement.setAttribute(Rq,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),uO({element:e.feedbackElement,keyframes:jO(NO(NO({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:sT(GD(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(Rq),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({source:p,element:h,feedbackElement:y,placeholder:X,translate:t,moved:r,transition:T,alignment:p.alignment,styles:M,animation:null!=e?e:void 0,getElementMutationObserver:()=>fe,cleanup:Ee,restoreFocus:Ce})})}});return()=>{Ee(),Ie()}},UO(_q,4,"overlay",Nq,Wq,zq),VO(_q,Wq),Wq.configure=KP(Wq);var Uq,Gq,Kq,Yq,Xq,Jq,Zq,Qq=Wq,eL=!0;Kq=[Lk],Yq=nO.Forward,Uq=[Lk],Gq=nO.Reverse;var tL=class{constructor(){XO(this,Jq,WO(Xq,8,this,eL)),WO(Xq,11,this),XO(this,Zq,WO(Xq,12,this,eL)),WO(Xq,15,this)}isLocked(e){return e!==nO.Idle&&(null==e?this[nO.Forward]===eL&&this[nO.Reverse]===eL:this[e]===eL)}unlock(e){e!==nO.Idle&&(this[e]=false)}};Xq=FO(null),Jq=new WeakMap,Zq=new WeakMap,UO(Xq,4,Yq,Kq,tL,Jq),UO(Xq,4,Gq,Uq,tL,Zq),VO(Xq,tL);var rL,nL,oL,iL,aL,sL,lL=[nO.Forward,nO.Reverse],cL=class{constructor(){this.x=new tL,this.y=new tL}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},uL=class extends XP{constructor(e){super(e);const t=OI(new cL);let r=null;this.signal=t,BI(()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new cL);const{delta:o}=e.dragOperation.position;if(r){const e={x:dL(o.x,r.x),y:dL(o.y,r.y)},n=t.peek();SI(()=>{for(const t of vP)for(const r of lL)e[t]===r&&n[t].unlock(r);t.value=n})}r=o})}get current(){return this.signal.peek()}};function dL(e,t){return Math.sign(e-t)}var pL=class extends(nL=ZP,rL=[Lk],nL){constructor(e){super(e),XO(this,iL,WO(oL,8,this,!1)),WO(oL,11,this),XO(this,aL),XO(this,sL,()=>{if(!YO(this,aL))return;const{element:e,by:t}=YO(this,aL);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{var r;if(this.disabled)return!1;const n=this.getScrollableElements();if(!n)return JO(this,aL,void 0),!1;const{position:o}=this.manager.dragOperation,i=null==o?void 0:o.current;if(i){const{by:o}=null!=e?e:{},a=o?{x:fL(o.x),y:fL(o.y)}:void 0,s=a?void 0:this.scrollIntentTracker.current;if(null==s?void 0:s.isLocked())return!1;for(const e of n){const n=BT(e,o);if(n.x||n.y){const{speed:n,direction:l}=aO(e,i,a,null==t?void 0:t.acceleration,null==t?void 0:t.threshold);if(s)for(const e of vP)s[e].isLocked(l[e])&&(n[e]=0,l[e]=0);if(l.x||l.y){const{x:t,y:i}=null!=o?o:l,a=t*n.x,s=i*n.y;if(a||s){const t=null==(r=YO(this,aL))?void 0:r.by;if(this.autoScrolling&&t){if(t.x&&!a||t.y&&!s)continue}return JO(this,aL,{element:e,by:{x:a,y:s}}),WT.schedule(YO(this,sL)),!0}}}}}return JO(this,aL,void 0),!1};let t=null,r=null;const n=Ok(()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=uT(aT(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t}),o=Ok(()=>{const t=n.value,{documentElement:o}=JD(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=ZT(n,{excludeElement:!1});return r=e,e}}if(t){const e=ZT(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null},qk);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new uL(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&xO(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function fL(e){return e>0?nO.Forward:e<0?nO.Reverse:nO.Idle}oL=FO(nL),iL=new WeakMap,aL=new WeakMap,sL=new WeakMap,UO(oL,4,"autoScrolling",rL,pL,iL),VO(oL,pL);var hL=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),mL=class extends XP{constructor(e,t){super(e,t);const r=e.registry.plugins.get(pL);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=BI(()=>{var t,n,o;if(this.disabled)return;const{position:i,status:a}=e.dragOperation;if(a.dragging){const e={acceleration:null==(t=this.options)?void 0:t.acceleration,threshold:"number"==typeof(null==(n=this.options)?void 0:n.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(o=this.options)?void 0:o.threshold};if(r.scroll(void 0,e)){r.autoScrolling=!0;const t=setInterval(()=>hL.schedule(()=>r.scroll(void 0,e)),10);return()=>{clearInterval(t)}}r.autoScrolling=!1}})}};mL.configure=KP(mL);var gL,bL=mL,vL={capture:!0,passive:!0},yL=class extends ZP{constructor(e){super(e),XO(this,gL),this.handleScroll=()=>{null==YO(this,gL)&&JO(this,gL,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),JO(this,gL,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=BI(()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,vL),()=>{o.removeEventListener("scroll",this.handleScroll,vL)}}})}};gL=new WeakMap;function xL(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var SL,wL=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),CL=class extends lD{constructor(e,t){super(e),this.manager=e,this.options=t,XO(this,SL,[]),this.listeners=new pT,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!yO(e.target))return;if(t.disabled)return;const{keyboardCodes:n=wL.keyboardCodes,preventActivation:o=wL.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=BI(()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{xO(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}});return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),sO(n);const{center:o}=new gO(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=JD(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];YO(this,SL).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=wL.keyboardCodes}=null!=r?r:{};if(AL(e,[...n.end,...n.cancel])){e.preventDefault();const t=AL(e,n.cancel);return void this.handleEnd(e,t)}AL(e,n.up)?this.handleMove("up",e):AL(e,n.down)&&this.handleMove("down",e),AL(e,n.left)?this.handleMove("left",e):AL(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:wL.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(bL);!1===(null==e?void 0:e.disabled)&&(e.disable(),YO(this,SL).push(()=>{e.enable()}))}cleanup(){YO(this,SL).forEach(e=>e()),JO(this,SL,[])}destroy(){this.cleanup(),this.listeners.clear()}};SL=new WeakMap,CL.configure=KP(CL),CL.defaults=wL;var EL,RL=CL;function AL(e,t){return t.includes(e.code)}var IL,kL;EL=new WeakMap;IL=new WeakMap,kL=new WeakMap;var PL=class{};PL.Delay=class extends uD{constructor(){super(...arguments),XO(this,IL),XO(this,kL)}onEvent(e){switch(e.type){case"pointerdown":JO(this,kL,eT(e)),JO(this,IL,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!YO(this,kL))return;const{x:t,y:r}=eT(e);pP({x:t-YO(this,kL).x,y:r-YO(this,kL).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){YO(this,IL)&&(clearTimeout(YO(this,IL)),JO(this,kL,void 0),JO(this,IL,void 0))}},PL.Distance=class extends uD{constructor(){super(...arguments),XO(this,EL)}onEvent(e){switch(e.type){case"pointerdown":JO(this,EL,eT(e));break;case"pointermove":if(!YO(this,EL))return;const{x:t,y:r}=eT(e),n={x:t-YO(this,EL).x,y:r-YO(this,EL).y},{tolerance:o}=this.options;if(o&&pP(n,o))return void this.abort();pP(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){JO(this,EL,void 0)}};var ML,DL=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!yO(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new PL.Delay({value:250,tolerance:5})]:function(e){if(!yO(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new PL.Delay({value:200,tolerance:0})]:[new PL.Delay({value:200,tolerance:10}),new PL.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!yO(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),TL=class extends lD{constructor(e,t){super(e),this.manager=e,this.options=t,XO(this,ML,new Set),this.listeners=new pT,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=DL.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=BI(()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=GD(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(jL(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()});return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!yO(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=DL.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=YD(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=QT(t.element),{x:s,y:l}=eT(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const c=this.activationConstraints(e,t,r);e.sensor=this;const u=new cD(c,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;const d=rT(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:qL,options:{capture:!0}}]);YO(this,ML).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=eT(e),n=QT(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,WT.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=JD(t.target).body;try{o.setPointerCapture(t.pointerId)}catch(e){return void this.handleCancel(t)}const i=yO(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:qL,options:{passive:!1}},{type:"click",listener:qL},{type:"contextmenu",listener:qL},{type:"keydown",listener:this.handleKeyDown}]);YO(this,ML).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){const{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},YO(this,ML).forEach(e=>e()),YO(this,ML).clear()}destroy(){this.cleanup(),this.listeners.clear()}};ML=new WeakMap,TL.configure=KP(TL),TL.defaults=DL;var OL=TL;function qL(e){e.preventDefault()}function LL(){}var NL=new WeakSet;function jL(e){e&&!NL.has(e)&&(e.addEventListener("touchmove",LL,{capture:!1,passive:!1}),NL.add(e))}var _L,zL,FL,$L,HL,BL,VL,WL,UL,GL,KL,YL,XL,JL,ZL,QL,eN={modifiers:[],plugins:[sq,bL,class extends XP{constructor(e,t){super(e,t),this.manager=e;const{cursor:r="grabbing"}=null!=t?t:{},n=e.registry.plugins.get(Cq),o=null==n?void 0:n.register(`* { cursor: ${r} !important; }`);if(o){const e=this.destroy.bind(this);this.destroy=()=>{o(),e()}}}},Qq,class extends XP{constructor(e){super(e),this.manager=e;const t=e.registry.plugins.get(Cq),r=null==t?void 0:t.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=BI(()=>{const{dragOperation:e}=this.manager;if(e.status.initialized)return xL(),document.addEventListener("selectionchange",xL,{capture:!0}),()=>{document.removeEventListener("selectionchange",xL,{capture:!0})}}),r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}}}],sensors:[OL,RL]},tN=class extends LD{constructor(e={}){const t=qD(e.plugins,eN.plugins),r=qD(e.sensors,eN.sensors),n=qD(e.modifiers,eN.modifiers);super(jO(NO({},e),{plugins:[yL,pL,Cq,...t],sensors:r,modifiers:n}))}},rN=class extends(FL=HM,zL=[Lk],_L=[Lk],FL){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i}=r,a=zO(r,["element","effects","handle"]);super(NO({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(YP))?t:[...r.sensors]).map(e=>{const t=e instanceof lD?e:r.registry.register(e.plugin),n=e instanceof lD?void 0:e.options;return t.bind(this,n)});return function(){n.forEach(e=>e())}}]},a),t),XO(this,HL,WO($L,8,this)),WO($L,11,this),XO(this,BL,WO($L,12,this)),WO($L,15,this),this.element=n,this.handle=i}};$L=FO(FL),HL=new WeakMap,BL=new WeakMap,UO($L,4,"handle",zL,rN,HL),UO($L,4,"element",_L,rN,BL),VO($L,rN);var nN=class extends(UL=BM,WL=[Lk],VL=[Lk],UL){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=zO(r,["element","effects"]);const{collisionDetector:a=CO}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new gO(r),o=CI(()=>this.shape);return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=OI(!1);super(jO(NO({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new _T(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),XO(this,ZL),XO(this,KL,WO(GL,8,this)),WO(GL,11,this),XO(this,QL,WO(GL,12,this)),WO(GL,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){JO(this,ZL,e,JL)}get element(){var e;return null!=(e=this.proxy)?e:YO(this,ZL,XL)}};function oN(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}GL=FO(UL),KL=new WeakMap,ZL=new WeakSet,QL=new WeakMap,YL=UO(GL,20,"#element",WL,ZL,KL),XL=YL.get,JL=YL.set,UO(GL,4,"proxy",VL,nN,QL),VO(GL,nN);var iN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?L:D;function aN(){const e=I(0)[1];return O(()=>{e(e=>e+1)},[e])}function sN(e,t=[],r=!1){const n=k(e);return n.current=e,function(e,t=!1){const r=k(e.peek()),n=k(!1),o=aN();return iN(()=>BI(()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?V(o):o()}}),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(A(()=>Ok(()=>n.current()),t),r)}function lN(e,t){const r=k(new Map),n=aN();return iN(()=>{if(e)return BI(()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=CI(()=>n[1]),c=e[s];l!==c&&(i=!0,r.current.set(s,c),a=null!=(o=null==t?void 0:t(s,l,c))&&o)}i&&(a?queueMicrotask(()=>V(n)):n())});r.current.clear()},[e]),A(()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e,[e])}function cN(e,t){e()}function uN(e){const t=k(e);return iN(()=>{t.current=e},[e]),t}function dN(e,t,r=D,n=Object.is){const o=k(e);r(()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))},[t,e])}function pN(e,t){const r=k(oN(e));iN(()=>{const n=oN(e);n!==r.current&&(r.current=n,t(n))})}var fN=Object.defineProperty,hN=Object.defineProperties,mN=Object.getOwnPropertyDescriptors,gN=Object.getOwnPropertySymbols,bN=Object.prototype.hasOwnProperty,vN=Object.prototype.propertyIsEnumerable,yN=(e,t,r)=>t in e?fN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xN=P(new tN),SN=j(_(({children:e},t)=>{const[r,n]=I(0),o=k(null),i=k(null),a=A(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),z(()=>{e(),n(e=>e+1)})}}),[]);return iN(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,r]),F(t,()=>a),null})),wN=[void 0,qk];function CN(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,c=((e,t)=>{var r={};for(var n in e)bN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&gN)for(var n of gN(e))t.indexOf(n)<0&&vN.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const u=k(null),{plugins:d,modifiers:p,sensors:f}=c,h=qD(d,eN.plugins),m=qD(f,eN.sensors),g=qD(p,eN.modifiers),b=uN(o),v=uN(i),y=uN(s),x=uN(a),S=uN(l),w=uN(n),C=function(e){const t=k(null);t.current||(t.current=e());return N(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new tN(c)});return D(()=>{if(!u.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=u.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",e=>{const r=b.current;r&&t(()=>r(e,C))}),r.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),r.addEventListener("dragover",e=>{const r=y.current;r&&t(()=>r(e,C))}),r.addEventListener("dragmove",e=>{const r=x.current;r&&t(()=>r(e,C))}),r.addEventListener("dragend",e=>{const r=S.current;r&&t(()=>r(e,C))}),r.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>n.forEach(e=>e())},[C]),dN(h,()=>C&&(C.plugins=h),...wN),dN(m,()=>C&&(C.sensors=m),...wN),dN(g,()=>C&&(C.modifiers=g),...wN),or.jsxs(xN.Provider,{value:C,children:[or.jsx(SN,{ref:u,children:r}),r]})}function EN(){return q(xN)}function RN(e){var t;const r=null!=(t=EN())?t:void 0,[n]=I(()=>e(r));return n.manager!==r&&(n.manager=r),iN(n.register,[r,n]),n}function AN({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=k(null),l=EN(),c=null!=(a=sN(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,u="function"==typeof i?i(c):i;D(()=>{if(!s.current||!l||u)return;const e=l.plugins.find(e=>e instanceof Qq);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,u]),D(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof Qq);return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0},[l,r]);const d=A(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?IN:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})},[l]);return or.jsx(xN.Provider,{value:d,children:w(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!c||u)return null;if("function"==typeof e)return or.jsx(kN,{source:c,children:e});return e}())})}function IN(){return()=>{}}function kN({children:e,source:t}){return e(lN(t))}var PN,MN,DN,TN,ON,qN=Object.create,LN=Object.defineProperty,NN=Object.getOwnPropertyDescriptor,jN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),_N=e=>{throw TypeError(e)},zN=["class","method","getter","setter","accessor","field","value","get","set"],FN=e=>void 0!==e&&"function"!=typeof e?_N("Function expected"):e,$N=(e,t,r,n,o)=>({kind:zN[e],name:t,metadata:n,addInitializer:e=>r._?_N("Already initialized"):o.push(FN(e||null))}),HN=(e,t,r,n,o,i)=>{for(var a,s,l,c,u=7&t,d=zN[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,NN(o,r)),h=n.length-1;h>=0;h--)(l=$N(u,r,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>r in e},c.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,FN(a)&&(f[d]=a);return f&&LN(o,r,f),o},BN=(e,t,r)=>t.has(e)||_N("Cannot "+r),VN=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},WN=class extends(DN=Fk,MN=[Nk],PN=[Nk],DN){constructor(e){var t,r,n;super(VN.from(e),(e,t)=>VN.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(ON,5,this),t=this,n=0,(r=TN).has(t)?_N("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return VN.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=VN.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(BN(a=this,s=TN,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);SI(()=>{((e,t,r)=>{BN(e,t,"write to private field"),t.set(e,r)})(this,TN,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(VN.from(e)),this.velocity={x:0,y:0}}};ON=(e=>{var t;return[,,,qN(null!=(t=null==e?void 0:e[jN("metadata")])?t:null)]})(DN),TN=new WeakMap,HN(ON,2,"delta",MN,WN),HN(ON,2,"direction",PN,WN),((e,t)=>{((e,t,r)=>{t in e?LN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,jN("metadata"),e[3])})(ON,WN);var UN=(e=>(e.Horizontal="x",e.Vertical="y",e))(UN||{});Object.values(UN);var GN=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/VN.distance(t.shape.center,r),type:oD.PointerIntersection,priority:nD.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=VN.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:oD.ShapeIntersection,priority:nD.Normal}}return null})(e)};function KN(e){const{collisionDetector:t,data:r,disabled:n,element:o,id:i,accept:a,type:s}=e,l=RN(t=>new nN(((e,t)=>hN(e,mN(t)))(((e,t)=>{for(var r in t||(t={}))bN.call(t,r)&&yN(e,r,t[r]);if(gN)for(var r of gN(t))vN.call(t,r)&&yN(e,r,t[r]);return e})({},e),{register:!1,element:oN(o)}),t)),c=lN(l);return dN(i,()=>l.id=i),pN(o,e=>l.element=e),dN(a,()=>l.accept=a,void 0,qk),dN(t,()=>l.collisionDetector=null!=t?t:GN),dN(r,()=>r&&(l.data=r)),dN(n,()=>l.disabled=!0===n),dN(s,()=>l.type=s),{droppable:c,get isDropTarget(){return c.isDropTarget},ref:O(e=>{var t,r;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(r=l.manager)?void 0:r.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}function YN(e){const t=EN();D(()=>{if(!t)return;const r=Object.entries(e).reduce((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e},[]);return()=>r.forEach(e=>null==e?void 0:e())},[t,e])}const XN=e=>Array.from({length:e},(e,t)=>t),JN=({id:e,sectionIndex:t,itemIndex:r})=>or.jsx("span",{children:`${e}-${t}-${r}`}),ZN=S.memo(()=>{const e=nb(uI)??JN,{startSectionIndex:t,startIndex:r,id:n}=nb(hI)??{};return"number"!=typeof t||"number"!=typeof r||void 0===n?null:or.jsx(AN,{dropAnimation:null,children:or.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:or.jsx(e,{id:n,sectionIndex:t,itemIndex:r})})})}),QN=({sectionIndex:e,itemIndex:t,isDragging:r})=>{const n=nb(hI),o=n?.toSectionIndex===e&&n.toIndex===t;return or.jsx("div",{"data-key":"drop-target-indicator","data-testid":"drop-target-indicator",style:{visibility:o&&!r?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},ej=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,tj=S.memo(({sectionIndex:e})=>{const t=nb(nI)[e],r=nb(oI),n=nb(iI),o=null!==nb(hI),i=n(e),a=r({sectionIndex:e}),{ref:s,isDropTarget:l}=KN({id:a,type:"section",accept:"item",collisionPriority:nD.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:or.jsxs(Ad,{ref:s,sx:{margin:"4px",outline:ej(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[or.jsx(Ad,{sx:{position:"relative",top:"4px"},children:or.jsx(QN,{sectionIndex:e,itemIndex:0,isDragging:!1})}),or.jsxs(Ad,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[or.jsx(Hu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:i.title}),or.jsx(Hu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:i.message})]})]})}),rj=S.memo(({id:e,sectionIndex:t})=>{const r=nb(cI);return void 0===r?null:or.jsx(r,{id:e,sectionIndex:t})});var nj=Object.defineProperty,oj=Object.defineProperties,ij=Object.getOwnPropertyDescriptors,aj=Object.getOwnPropertySymbols,sj=Object.prototype.hasOwnProperty,lj=Object.prototype.propertyIsEnumerable,cj=(e,t,r)=>t in e?nj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uj=(e,t)=>{for(var r in t||(t={}))sj.call(t,r)&&cj(e,r,t[r]);if(aj)for(var r of aj(t))lj.call(t,r)&&cj(e,r,t[r]);return e},dj=(e,t)=>oj(e,ij(t)),pj=class extends MD{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return dj(uj({},e),{[t]:r})}};pj.configure=KP(pj);var fj=pj,hj=fj.configure({axis:"x",value:0});fj.configure({axis:"y",value:0});var mj=class extends MD{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return dj(uj({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};mj.configure=KP(mj);var gj=Object.create,bj=Object.defineProperty,vj=Object.defineProperties,yj=Object.getOwnPropertyDescriptor,xj=Object.getOwnPropertyDescriptors,Sj=Object.getOwnPropertySymbols,wj=Object.prototype.hasOwnProperty,Cj=Object.prototype.propertyIsEnumerable,Ej=e=>{throw TypeError(e)},Rj=(e,t,r)=>t in e?bj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Aj=(e,t)=>{for(var r in t||(t={}))wj.call(t,r)&&Rj(e,r,t[r]);if(Sj)for(var r of Sj(t))Cj.call(t,r)&&Rj(e,r,t[r]);return e},Ij=(e,t)=>vj(e,xj(t)),kj=["class","method","getter","setter","accessor","field","value","get","set"],Pj=e=>void 0!==e&&"function"!=typeof e?Ej("Function expected"):e,Mj=(e,t,r,n,o)=>({kind:kj[e],name:t,metadata:n,addInitializer:e=>r._?Ej("Already initialized"):o.push(Pj(e||null))}),Dj=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},Tj=(e,t,r,n,o,i)=>{for(var a,s,l,c,u,d=7&t,p=e.length+1,f=kj[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,yj({get[r](){return qj(this,i)},set[r](e){return Nj(this,i,e)}},r)),b=n.length-1;b>=0;b--)(c=Mj(d,r,l={},e[3],m)).static=false,c.private=false,u=c.access={has:e=>r in e},u.get=e=>e[r],u.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},c),l._=1,void 0===s?Pj(s)&&(g[f]=s):"object"!=typeof s||null===s?Ej("Object expected"):(Pj(a=s.get)&&(g.get=a),Pj(a=s.set)&&(g.set=a),Pj(a=s.init)&&h.unshift(a));return g&&bj(o,r,g),o},Oj=(e,t,r)=>t.has(e)||Ej("Cannot "+r),qj=(e,t,r)=>(Oj(e,t,"read from private field"),t.get(e)),Lj=(e,t,r)=>t.has(e)?Ej("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Nj=(e,t,r,n)=>(Oj(e,t,"write to private field"),t.set(e,r),r);function jj(e){return e instanceof h_||e instanceof f_}var _j=class extends XP{constructor(e){super(e);const t=BI(()=>{const{dragOperation:t}=e;if(xO(t.activatorEvent)&&jj(t.source)&&t.status.initialized){const t=e.registry.plugins.get(pL);if(t)return t.disable(),()=>t.enable()}}),r=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!xO(e.nativeEvent))return;if(!jj(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:c}=r,{center:u}=r.shape.current,d=[],p=[];SI(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==c?void 0:c.id)&&jj(e)||!e.element)continue;let r=e.shape;const n=new gO(e.element,{getBoundingClientRect:e=>QD(e,void 0,.2)});n.height&&n.width&&(("down"==s&&u.y+10<n.center.y||"up"==s&&u.y-10>n.center.y||"left"==s&&u.x-10>n.center.x||"right"==s&&u.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push(()=>e.shape=r)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,EO);SI(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=r;if(!e||!jj(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,c=g!==a||b!==s,u=c?l:null==t?void 0:t.element;if(!u)return;sO(u);const d=new gO(u);if(!d)return;const p=cP.delta(d,cP.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),c?n.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{r(),t()}}};var zj=Object.defineProperty,Fj=Object.defineProperties,$j=Object.getOwnPropertyDescriptors,Hj=Object.getOwnPropertySymbols,Bj=Object.prototype.hasOwnProperty,Vj=Object.prototype.propertyIsEnumerable,Wj=(e,t,r)=>t in e?zj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Uj=(e,t)=>{for(var r in t||(t={}))Bj.call(t,r)&&Wj(e,r,t[r]);if(Hj)for(var r of Hj(t))Vj.call(t,r)&&Wj(e,r,t[r]);return e},Gj=(e,t)=>Fj(e,$j(t));function Kj(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function Yj(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function Xj(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const c=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex(e=>c(e,a.id)),o=e.findIndex(e=>c(e,s.id));if(-1===n||-1===o){if(Yj(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const u=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of u)if(-1===f&&(f=t.findIndex(e=>c(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>c(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&Yj(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return Gj(Uj({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return Gj(Uj({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&Yj(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return Gj(Uj({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return Gj(Uj({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return Gj(Uj({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return Gj(Uj({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,Kj)}var Jj="__default__";function Zj(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function Qj(e,t){return e.index-t.index}function e_(e){return Array.from(e).sort(Qj)}var t_,r_,n_,o_,i_,a_,s_,l_,c_=[_j,class extends XP{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof h_){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(e_(r)));return t},r=[e.monitor.addEventListener("dragover",(e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!jj(o)||!jj(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),c=s?l:a.get(i.sortable.group);l&&c&&queueMicrotask(()=>{e.defaultPrevented||r.renderer.rendering.then(()=>{var n,u,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=e_(l),g=s?m:e_(c),b=null!=(u=o.sortable.group)?u:Jj,v=null!=(d=i.sortable.group)?d:Jj,y={[b]:m,[v]:g},x=Xj(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),Zj(f,S,h,w),SI(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),r.actions.setDropTarget(o.id).then(()=>r.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;jj(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=e_(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(Zj(r,i.index,a,o.index),SI(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of r)e()}}}],u_={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},d_=new class{constructor(){Mk(this,zk,new WeakMap)}get(e,t){var r;return e?null==(r=Pk(this,zk).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return Pk(this,zk).has(e)||Pk(this,zk).set(e,new Map),null==(n=Pk(this,zk).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=Pk(this,zk).get(e))?void 0:t.clear():void 0}};r_=[Lk],t_=[Lk];var p_=class{constructor(e,t){Lj(this,o_,Dj(n_,8,this)),Dj(n_,11,this),Lj(this,i_),Lj(this,a_),Lj(this,s_,Dj(n_,12,this)),Dj(n_,15,this),Lj(this,l_),this.register=()=>(SI(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{SI(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{SI(()=>{this.droppable.destroy(),this.draggable.destroy()})};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=u_,plugins:c}=r,u=((e,t)=>{var r={};for(var n in e)wj.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Sj)for(var n of Sj(e))t.indexOf(n)<0&&Cj.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);const d=qD(c,c_);this.droppable=new h_(u,t,this),this.draggable=new f_(Ij(Aj({},u),{plugins:d,effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&d_.clear(this.manager),(null==n?void 0:n.dragging)&&d_.set(this.manager,this.id,CI(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:r}=this,n=qj(this,a_),o=qj(this,i_);e===n&&t===o||(Nj(this,a_,e),Nj(this,i_,t),this.animate())},()=>{var e,t;const{target:r}=this,{isDragSource:n}=this.draggable;"move"===(null!=(t=null==(e=this.draggable.pluginConfig(Qq))?void 0:e.feedback)?t:"default")&&n&&(this.droppable.disabled=!r)},...n()],type:s,sensors:a}),t,this),Nj(this,l_,u.element),this.manager=t,this.index=i,Nj(this,a_,i),this.group=o,Nj(this,i_,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=d_.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=d_.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){CI(()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then(()=>{const{element:n}=this;if(!n)return;for(const e of n.getAnimations())!("transitionProperty"in e)||"transform"!==e.transitionProperty&&"translate"!==e.transitionProperty&&"scale"!==e.transitionProperty||e.cancel();const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=YT(n),l=dO(n,s,!1),c=dO(n,s);if(i||a){const r=sT(GD(n))?Ij(Aj({},t),{duration:0}):t;uO({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${c.x}px ${c.y}px ${c.z}`]},options:r}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){SI(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){SI(()=>{const t=qj(this,l_),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),Nj(this,l_,e)})}get element(){var e,t;const r=qj(this,l_);if(r)return null!=(t=null!=(e=dT.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set plugins(e){this.draggable.plugins=qD(e,c_)}set disabled(e){SI(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){SI(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:CO}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){SI(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};n_=[,,,gj(null)],o_=new WeakMap,i_=new WeakMap,a_=new WeakMap,s_=new WeakMap,l_=new WeakMap,Tj(n_,4,"index",r_,p_,o_),Tj(n_,4,"group",t_,p_,s_),((e,t)=>{return Rj(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(n_,p_);var f_=class extends rN{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},h_=class extends nN{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},m_=Object.defineProperty,g_=Object.defineProperties,b_=Object.getOwnPropertyDescriptors,v_=Object.getOwnPropertySymbols,y_=Object.prototype.hasOwnProperty,x_=Object.prototype.propertyIsEnumerable,S_=(e,t,r)=>t in e?m_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w_=(e,t)=>{for(var r in t||(t={}))y_.call(t,r)&&S_(e,r,t[r]);if(v_)for(var r of v_(t))x_.call(t,r)&&S_(e,r,t[r]);return e};function C_(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:c,disabled:u,modifiers:d,sensors:p,target:f,type:h,plugins:m}=e,g=w_(w_({},u_),e.transition),b=RN(t=>new p_(((e,t)=>g_(e,b_(t)))(w_({},e),{transition:g,register:!1,handle:oN(s),element:oN(a),target:oN(f)}),t)),v=lN(b,E_);return dN(o,()=>b.id=o),iN(()=>{SI(()=>{b.group=c,b.index=l})},[b,c,l]),dN(h,()=>b.type=h),dN(t,()=>b.accept=t,void 0,qk),dN(i,()=>i&&(b.data=i)),dN(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},cN),pN(s,e=>b.handle=e),pN(a,e=>b.element=e),pN(f,e=>b.target=e),dN(u,()=>b.disabled=!0===u),dN(p,()=>b.sensors=p),dN(r,()=>b.collisionDetector=r),dN(n,()=>b.collisionPriority=n),dN(m,()=>b.plugins=m,void 0,qk),dN(g,()=>b.transition=g,void 0,qk),dN(d,()=>b.modifiers=d,void 0,qk),dN(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:O(e=>{b.handle=null!=e?e:void 0},[b]),ref:O(e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:O(e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:O(e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function E_(e,t,r){return!("isDragSource"!==e||r||!t)}const R_=({id:e,itemIndex:t,sectionIndex:r})=>or.jsx("div",{children:`${r}:${t} - ${e}`}),A_=({id:e,itemIndex:t,sectionIndex:r})=>{const n=nb(dI),o=nb(lI),i=nb(nI).at(r)??0,a=nb(oI)({sectionIndex:r}),{ref:s,isDragging:l,handleRef:c}=C_({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[hj],plugins:[_j],data:{id:e,sectionIndex:r,sectionKey:a,itemIndex:t}}),u=void 0!==n?()=>{n({id:e,itemIndex:t,sectionIndex:r})}:void 0,d=o??R_;return or.jsx(uf,{className:"section-item-container","data-testid":"section-item",onClick:u,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:or.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[or.jsx(QN,{isDragging:l,itemIndex:t,sectionIndex:r}),or.jsx(d,{id:e,itemIndex:t,sectionIndex:r,dragHandleRef:c}),t===i-1&&or.jsx(QN,{isDragging:!1,itemIndex:t+1,sectionIndex:r})]})})},I_=S.memo(A_),k_=S.memo(({sectionIndex:e})=>{const t=nb(oI),r=nb(nI).at(e)??0,n=t({sectionIndex:e});return or.jsxs(Ad,{className:"exploration-list",style:{overflow:"auto"},children:[or.jsx(xp,{}),or.jsx(rj,{id:n,sectionIndex:e}),or.jsx(xp,{}),or.jsx(tj,{sectionIndex:e}),or.jsx(Jp,{sx:{padding:"2px 8px"},children:XN(r).map(r=>{const n=t({sectionIndex:e,itemIndex:r});return or.jsx(I_,{id:n,itemIndex:r,sectionIndex:e},n)})})]},n)}),P_=[OL.configure({activationConstraints:[new PL.Distance({value:5})]}),RL],M_=S.memo(()=>{const e=nb(rI),t=nb(oI),r=ob(mI("start")),n=ob(mI("over")),o=ob(mI("end"));return or.jsxs(CN,{sensors:P_,onDragEnd:e=>{o(e)},onDragOver:e=>{n(e)},onDragStart:e=>{r(e)},children:[or.jsx(Ad,{style:{display:"flex",flexDirection:"column"},children:XN(e).map(e=>or.jsx(k_,{sectionIndex:e},t({sectionIndex:e})))}),or.jsx(ZN,{})]})}),D_=S.memo(e=>or.jsx(FA,{atoms:gI,atomFamilies:bI,children:or.jsx(vI,{props:e,children:or.jsx(M_,{})})})),T_=_((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),O_=_((e,t)=>or.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[or.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),or.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]})),q_=Wg(e=>{const t=e(RA),r=t?.qHyperCube.qDimensionInfo.filter(e=>void 0!==e.cId).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??"",alternative:!0,icon:T_})),n=t?.qHyperCube.qMeasureInfo.filter(e=>void 0!==e.cId).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??"",alternative:!0,icon:O_}));if(void 0!==r&&void 0!==n)return[...r,...n]}),L_=Wg(e=>{const t=e(EA);if(!t)return;const r=t.qHyperCube.qDimensionInfo.filter(e=>void 0!==e.cId).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??"",alternative:!1,icon:T_})),n=t.qHyperCube.qMeasureInfo.filter(e=>void 0!==e.cId).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??"",alternative:!1,icon:O_}));return[...r,...n]}),N_=Wg(e=>{const t=e(q_),r=e(L_);if(void 0===t||void 0===r)return[];const n=[...r,...t],o=e(AA);if(!o)return[];const i=o.qHyperCubeDef.qLayoutExclude?.allColumnOrder??{};return n.sort((e,t)=>(i[e.id]??1/0)-(i[t.id]??1/0))}),j_=Wg(e=>e(N_).length),__=QA(e=>Wg(t=>t(N_)[e]?.title??""),(e,t)=>e===t),z_=QA(e=>Wg(t=>t(N_)[e]?.icon),(e,t)=>e===t),F_="#177fe6",$_=({children:e})=>or.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),H_=({children:e})=>{const t=S.useRef(null);return or.jsxs(Ad,{ref:t,className:"exploration-section-header",tabIndex:0,sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${F_} inset`}},children:[or.jsx(Zd,{size:"small",style:{flexShrink:0,padding:9}}),or.jsx($_,{children:e})]})},B_=()=>{const e=nb(hA);return or.jsx(H_,{children:e("Common.Columns")})},V_=_((e,t)=>or.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:or.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),W_=Lc("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),U_=Lc(V_)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${F_} inset`}})),G_=({children:e})=>or.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),K_=({itemIndex:e})=>{const t=nb(__(e)),r=nb(hA),n=S.useRef(null),o=S.useRef(null),i=S.useRef(null),a=nb(z_(e));return or.jsxs(Ad,{ref:n,className:"exploration-item",tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:t,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${F_} inset`}},children:[or.jsxs(Ad,{ref:o,className:"exploration-item-focus",component:"div",tabIndex:0,sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${F_} inset`}},children:[or.jsx(Zd,{"aria-label":r("ChartExploration.ListItem.Label",t),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0}}),or.jsx(Ad,{children:a&&or.jsx(a,{height:12,style:{opacity:1,marginRight:"8px"}})}),or.jsx(G_,{children:t})]}),or.jsx(U_,{ref:i,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()}})]})},Y_=()=>{const e=nb(j_);return or.jsx(D_,{numberOfSections:1,numberOfItemsInSection:[e],emptyTexts:()=>({title:"No columns",message:"blah blah"}),headerRenderer:B_,itemRenderer:K_})},X_=_((e,t)=>or.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:or.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})})),J_=()=>{const[e,t]=ib(mA),r=nb(hA),n=S.useRef(null),o=nb(j_),i=O(e=>{t(e.target.value)},[t]),a=0===e.length||0===o?r("Common.Search.NoResultsAvailable"):r("ChartExploration.Table.Search.ResultsFound",o.toString());return or.jsxs(Ad,{ref:n,style:{position:"sticky",top:0,zIndex:10,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:0,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[or.jsx(W_,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:a}),or.jsx(uh,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":r("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:r("Common.Search"),onChange:i,startAdornment:or.jsx(zp,{position:"start",children:or.jsx(X_,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},Z_=e=>{const t=ym();return or.jsx(jc,{theme:t,children:or.jsx(Jg,{children:or.jsx(IA,{props:e,children:or.jsxs(Ad,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[or.jsx(J_,{}),or.jsx(Y_,{})]})})})})},Q_=e=>e.flags.isEnabled("VNA-655-STRAIGHT_TABLE_NEW_EXPLORATION")?{component:Z_,classification:{tags:["exploration"],exclusive:!0}}:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};var ez=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(ez||{}),tz=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(tz||{}),rz=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(rz||{}),nz=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(nz||{});const oz=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,iz=e=>{if(!Array.isArray(e))return"";let t="{<";const r=[];if(e.forEach(e=>{let t,n=`[${e.field}]${e.exclude?"-":""}={`,o="}";switch(e.type){case rz.SEARCH:t=(e=>{let t="",r="";const n=e.options?.mode;if(!n)return"";switch(n){case ez.BEGINNING_OF_WORD:t="*^",r="*";break;case ez.ENDS_WITH:t="*";break;case ez.STARTS_WITH:r="*";break;case ez.MATCHES_EXACTLY:break;case ez.CONTAINS:default:t="*",r="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${r}"`:""})(e);break;case rz.CONDITION:t=(e=>{const{options:t}=e,r=t?.mode===tz.GENERAL,n=t?.modifier?.type===nz.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!n&&(!t.firstValue?.aggregator||!t.firstValue?.field)||n&&!t.firstValue?.fixedValue||r&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";r&&n?(i=`${t.conditionField?.aggregator}(${oz(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!r&&n?(i="",a=`${t.firstValue?.fixedValue}`,s=""):r||n?(i=`${t.conditionField?.aggregator}(${oz(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${oz(t.firstValue?.field)})`):(i=`${oz(e.field)}`,a=`${t.firstValue?.aggregator}(total ${oz(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let c="";if(o.length>1){if(!n&&(!t.secondValue?.aggregator||!t.secondValue?.field)||n&&!t.secondValue?.fixedValue)return"";let e,a;r&&n?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!r&&n?(e=`${t.secondValue?.fixedValue}`,a=""):r||n?(e=`${t.secondValue?.aggregator}(${oz(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${oz(t.secondValue?.field)})`,a=` and ${i}`),c=`${a}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case rz.CLEAR_SELECTION:t=`[${e.field}]=`,n="",o="";break;case rz.VALUES:default:t=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==t&&r.push(`${n}${t}${o}`)}),0===r.length)return;return t+=`${r.join(",")}>}`,t},az=[];for(let e=0;e<256;++e)az.push((e+256).toString(16).slice(1));const sz=new Uint8Array(16);function lz(e,t,r){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const t=e.random??e.rng?.()??crypto.getRandomValues(sz);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(az[e[t+0]]+az[e[t+1]]+az[e[t+2]]+az[e[t+3]]+"-"+az[e[t+4]]+az[e[t+5]]+"-"+az[e[t+6]]+az[e[t+7]]+"-"+az[e[t+8]]+az[e[t+9]]+"-"+az[e[t+10]]+az[e[t+11]]+az[e[t+12]]+az[e[t+13]]+az[e[t+14]]+az[e[t+15]]).toLowerCase()}(t)}(e)}const cz=()=>crypto?.randomUUID?.()??lz(),uz=({qDimensions:e,qMeasures:t})=>[...e.map(e=>({id:e.qDef.cId,isDimension:!0,def:e})),...t.map(e=>({id:e.qDef.cId,isDimension:!1,def:e}))],dz=({previousColumns:e,nextColumns:t,qInterColumnSortOrder:r})=>{const n=new Map(e.map((e,t)=>[t,e.qDef.cId])),o=new Map(t.map((e,t)=>[e.qDef.cId,t]));return r.map(e=>{const t=n.get(e);return(void 0===t?void 0:o.get(t))??e})};class pz extends s{#e;constructor(e,t){super(e),this.#e=t}#t(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.keys(t).length;this.hcProperties.qLayoutExclude.allColumnOrder={...t,...Object.fromEntries(e.map((e,t)=>[e,r+t]))}}#r(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude.allColumnOrder=Object.fromEntries(r.map(([e],t)=>[e,t]))}#n(e,t){const r=this.hcProperties.qLayoutExclude.allColumnOrder??{},n={};for(const[o,i]of Object.entries(r))n[o===e?t:o]=i;this.hcProperties.qLayoutExclude.allColumnOrder=n}async addDimension(e,t=!1){const r=await this.addDimensions([e],t);return 0===r.length?void 0:r[0]}async addDimensions(e,t=!1){const r=await super.addDimensions(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeDimension(e,t=!1){const r=await this.removeDimensions([e],t);return 0===r.length?void 0:r[0]}async removeDimensions(e,t=!1){const r=await super.removeDimensions(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceDimension(e,t){const r=this.getDimensions()[e].qDef.cId,n=await super.replaceDimension(e,t),o=n.qDef.cId;return this.#n(r,o),n}async addMeasure(e,t=!1){const r=await this.addMeasures([e],t);return 0===r.length?void 0:r[0]}async addMeasures(e,t=!1){const r=await super.addMeasures(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeMeasure(e,t=!1){const r=await this.removeMeasures([e],t);return 0===r.length?void 0:r[0]}async removeMeasures(e,t=!1){const r=await super.removeMeasures(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceMeasure(e,t){const r=this.getMeasures()[e].qDef.cId,n=await super.replaceMeasure(e,t),o=n.qDef.cId;return this.#n(r,o),n}async#o(e){const t=this.getMeasure(e);if(t){const r=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#i(e){const t=this.getMeasure(e);if(t){const r=this.getMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#a(e){const t=this.getDimension(e);if(t){const r=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#s(e){const t=this.getDimension(e);if(t){const r=this.getDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!1),await super.addDimension(t,!0,this.getDimensions().length)}}async toggleAlternatives(e,t){for(const t of e)"dimension"===t.type?await(t.isAlternative?this.#a(t.id):this.#s(t.id)):await(t.isAlternative?this.#o(t.id):this.#i(t.id));this.updateColumnOrders(t)}updateColumnOrders(e){const t=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:r,nextAllColumnOrderById:n})=>{const o=uz({qDimensions:e,qMeasures:t}),i=[...e,...t],a=new Map(n.map((e,t)=>[e,t])),s=o.toSorted((e,t)=>{const r=a.get(e.id),n=a.get(t.id);return void 0===r||void 0===n?0:r-n}),l=s.filter(e=>e.isDimension).map(e=>e.def),c=s.filter(e=>!e.isDimension).map(e=>e.def),u=[...l,...c],d=new Map(u.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:l,qMeasures:c,qInterColumnSortOrder:dz({previousColumns:i,nextColumns:u,qInterColumnSortOrder:r}),qColumnOrder:s.map(e=>d.get(e.id)).filter(e=>void 0!==e)}})({qDimensions:this.hcProperties.qDimensions,qMeasures:this.hcProperties.qMeasures,qInterColumnSortOrder:this.hcProperties.qInterColumnSortOrder,nextAllColumnOrderById:e});this.hcProperties.qDimensions=t.qDimensions,this.hcProperties.qMeasures=t.qMeasures,this.hcProperties.qColumnOrder=t.qColumnOrder,this.hcProperties.qInterColumnSortOrder=t.qInterColumnSortOrder,this.hcProperties.qLayoutExclude.allColumnOrder=e.reduce((e,t,r)=>(e[t]=r,e),{})}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,r=Array.isArray(t)&&t.includes("$numeric"),n=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:n?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:cz(),qTags:Array.isArray(t)?t:[],isNumeric:r};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=iz(o),i}addFilters(e){const t=[];for(const r of e)t.push(this.addFilterField(r));return t}#l(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=iz(t),t}removeFilters(e){if(0===e.length)return[];const t=[...e].sort((e,t)=>t-e),r=this.getFilters().filter((t,r)=>e.includes(r));for(const e of t)this.#l(e);return r}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#e.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const fz=(e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;return e.splice(r,1),r};function hz(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function mz(e){return e>0?0:1}function gz(e){return e.translator.get("Visualizations.Descriptions.Column")}function bz(e){return{measures:{min:mz,max:1e3,description:()=>gz(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;hz(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties,i=(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n;fz(o,i)}},dimensions:{min:mz,max:1e3,description:()=>gz(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return hz(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;fz(o,n)}}}}let vz=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),yz=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const xz=e=>{switch(e?.type){case"url":return vz.Link;case"image":return vz.Image;case"indicator":return vz.Indicator;case"miniChart":return vz.MiniChart;default:return vz.Text}},Sz=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),wz=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>xz(e.qDef.representation)===vz.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},Cz=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:Sz({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>xz(e.qDef.representation)===vz.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>xz(e.qDef.representation)===vz.Link&&e.qDef.representation?.urlPosition===yz.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>xz(e.qDef.representation)===vz.Link&&e.qDef.representation?.urlPosition===yz.Attribute},...wz(r)}},Ez=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[vz.Image],i=!n?.("qMiniChartDef")&&t[vz.MiniChart],a=!n?.("tableIndicators")&&t[vz.Indicator],s=o&&t[vz.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>xz(e.qDef.representation)===vz.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var Rz,Az={};var Iz,kz=(Rz||(Rz=1,Iz=Az,(()=>{var e={370:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=n&&i(n)?n:[]):u=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{default:()=>ke});var o=r(370),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var c="".concat(" ","(").concat(" "),u="".concat(" ",")").concat(" ");function d(e){return c+e+u}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var c=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(n&&2===n.length){var u=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(u,f),b=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function w(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:f,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=g(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var u=g(0),p=g(1);return"If(Count(".concat(u,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:w,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return w(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(c);if(-1!==r){var n=t.indexOf(u);if(-1!==n)return t.substring(r+c.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=C({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(c),r=e.indexOf(u);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=l.OPTIONS.find(function(t){return t.value===e.decomposition});return t?l.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(l.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var I=i().bind(null,!0),k={},P=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function D(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}}),e}function q(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){q(e[n],t[n])||(r=!1)}),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!q(e[n],t[n]))return!1;return!0}return e===t}k.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?I({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);q(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(k.generate(a,i,s)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(q(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(k.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){D(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},k.apply=function(e,t){t.forEach(function(t){var r,n,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return R(e)}(n=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]}),I(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var u=O(e,t.from);P(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])})},k.clone=function(e){return I({},e)},k.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):I(e,t)};const L=k;var N="accumulation";function j(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function _(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var c=s(n,"qHyperCubeDef.qDimensions",[]),u=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:a}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,u,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(c,1),m=E.getDimComp(c,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(_(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(_(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=j(t,e);return i&&!i.disabled}}}};var $="movingAverage";function H(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function B(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var c=a;void 0===c&&(c=E.getNumDimensions({properties:o,layout:i}));var u=s(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,c),h=E.getAboveComp(n,c,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,c);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:i})){var v=E.getDimComp(u,1),y=E.getDimComp(u,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=H(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function G(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function K(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const X={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(K(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:l.OPTIONS},steps:{refFn:function(t){return"".concat(K(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=G(t,e);return i&&!i.disabled}}}};var J="difference";function Z(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===J)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var c=s(n,"qHyperCubeDef.qDimensions",[]),u=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:a}),d=E.getAboveComp(r,l,u),p="".concat(u," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(c,1),h=E.getDimComp(c,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(J))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===J)return r[n]}(t,e);return i&&!i.disabled}}}};var te="normalization";function re(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var c=s(n,"qHyperCubeDef.qDimensions",[]),u=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a,s){var l=ae(t),c=se(t,r,n),u=""===l&&""===c?"":l||c,d=le(o,i),p=ce(o,i,a),f=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(u," ").concat(d).concat(p," Aggr(").concat(u," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(u," ").concat(d).concat(p," Aggr(").concat(u," ").concat(e,", ").concat(f,"))")}(u,d,r.field,r.value,p,l,r.primaryDimension,r.ignoreNegative)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="library id deleted",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId",ge="qDef.qLabel",be="qDef.qLabelExpression",ve="qDef.base.qLabel",ye="qDef.base.qLabelExpression",xe="qDef.qAggrFunc",Se="qDef.base.qAggrFunc",we="qDef.base";const Ce={getExpression:function(e){var t=s(e,fe);return void 0!==t?t:s(e,pe)},getExpressionRef:function(e){return void 0!==s(e,fe)?fe:pe},getLibraryIdRef:function(e){return s(e,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},getLabelRef:function(e){return s(e,we)?ve:ge},getLabelExpressionRef:function(e){return s(e,we)?ye:be}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,me,s(e,he)),a(e,ve,s(e,ge)),a(e,ye,s(e,be)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,he,s(e,me)),a(e,ge,s(e,ve)),a(e,be,s(e,ye)),s(e,xe)&&s(e,Se)&&a(e,xe,s(e,Se)),delete e.qDef.base)},isValid:function(e){var t=s(e,fe),r=s(e,me);return void 0!==t||void 0!==r}};const Re=Ee;function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}var Ie={accumulation:F,movingAverage:W,difference:ee,normalization:ue,timeSeriesDecomposition:X};const ke={modifiers:Ie,apply:Me,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&Pe[e.id]&&Pe[e.id].masterItemSubscriber&&(Pe[e.id].masterItemSubscriber&&Pe[e.id].masterItemSubscriber.unsubscribe(),delete Pe[e.id])},hasActiveModifiers:Oe,getActiveModifier:qe,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Ie[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return Ie[e]&&Ie[e].isApplicable({properties:r,layout:n})})},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=je(e);Ve({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ye({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:Le};var Pe={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,l=!1;Pe[t.id]=Pe[t.id]||{isFirstTime:!0};var c=Pe[t.id].isFirstTime;if(Pe[t.id].isFirstTime=!1,r&&"object"===Ae(r))return De({model:t,properties:r});var u=t?t.layout:void 0,d=s(u,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(u,"qHyperCube.qMeasureInfo"),f=Pe[t.id].lastReloadTime;if(Pe[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:u})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Be({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:u,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ve({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:u,masterItem:a,isFirstTime:c})?t.getEffectiveProperties().then(function(e){var r=i()(!0,{},e);ze(r);var n=Xe(r);return We({model:t}).then(function(o){return Ue({libraryIds:n,model:t}).then(function(n){return h&&function(e){var t=e.properties;Ne(t).forEach(function(e){return function(e){var t=e.measure;if(Be({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(r++,"object"!==Ae(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&$e(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:r}),De({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(l)})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ae(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then(function(){var e=i()(!0,{},r);return Ne(r).forEach(function(e){return Te(e)}),Ke({oldProperties:e,newProperties:r,model:t})})}({model:t,properties:e})}):Promise.resolve(l)}function De(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,l=void 0!==a&&a,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),ze(n);var p=Xe(n);return Je({model:t,libraryIds:p,masterItem:c}).then(function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Ne(r)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:r}))return t.forEach(function(e){return Te(e)}),Promise.resolve();var l=o?void 0:Xe(r);return We({model:n,dimensionAndFieldList:a}).then(function(e){return Ue({libraryIds:l,model:n,libraryItemsProps:o}).then(function(n){t.forEach(function(t){var o=t.qDef.modifiers;n&&Ve({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(a++,"object"!==Ae(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ie[e.type].initModifier(e,t);var l=t.qLibraryId||u&&u.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ie[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||Le(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Le(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Fe(t)):Te(t)})})})}({measures:o,properties:n,model:t,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return l?Ke({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function Te(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&!Ie[e.type]})}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ve({modifiers:je(e),properties:r,layout:n})})}function qe(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ie[n.type]&&!n.disabled)return n}}function Le(e){var t=qe(e);return!t||Ie[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function _e(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function ze(e){Ne(e).forEach(function(e){return function(e){var t=qe(e);t&&(void 0!==t.outputExpression&&_e(t)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)})}function Fe(e){var t=je(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ae(t)&&(t.disabled||!Ie[t.type]&&_e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function $e(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Be(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&Ve({modifiers:je(t),properties:r,layout:n})}function Ve(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ae(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function We(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ue(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ge(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ke(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),Ge)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&s(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):function(e,t,r){if(!e)return Promise.resolve();var n=L.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(n,!0)):Promise.resolve()}(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ye(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=je(t);if(Ve({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ye({modifiers:n,properties:e})}}),s(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Pe[t.id].masterItemSubscriber=Pe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach(function(r){t[r]=s(e,r)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function u(){Object.keys(n).forEach(function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){n[e]={listener:t.layoutSubscribe(c),unbindCloseListnener:d(t,function(){return e=t.id,r(de),delete n[e],void u();var e}),enabled:!1,properties:l(t.layout)}}).catch(function(){})}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:a}),u(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()}),n={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Pe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in Iz.default=n.default,n)-1===["default"].indexOf(Ze)&&(Iz[Ze]=n[Ze]);Object.defineProperty(Iz,"__esModule",{value:!0})})()),Az),Pz=Zt(kz);const Mz="TOTAL_OFF",Dz={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},Tz={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},Oz=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!Pz.hasActiveModifiers({measures:[e],properties:t.properties})||Pz.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),qz={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:og.Auto,translation:"Common.Auto"},{value:og.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:og.Pixels,translation:"Object.Table.Column.Pixels"},{value:og.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:og.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===og.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===og.Percentage}},Lz=e=>({...Dz,...e.flags.isEnabled("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?{columnExpression:{type:"items",grouped:!0,items:[{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}]}]}}:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}},...Tz,...qz}),Nz=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},subTotalGroup:{type:"items",show:e.flags.isEnabled("TLV-2303-SUB-TOTALS")&&!e.anything.sense?.isUnsupportedFeature?.("totals"),items:[{uses:"divider"},{type:"string",component:"switch",translation:"properties.showSubTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:Mz,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Mz,translation:"properties.off"}},{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"Common.Label",defaultValue:()=>e.translator.get("properties.subTotals"),show:e=>e.qOtherTotalSpec?.qTotalMode!==Mz},{uses:"divider"}]},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}}),jz=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:Oz(e)}},_z=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:Nz(e)},presentation:{type:"items",translation:"properties.presentation",items:{...Lz(e),...Cz(e)}}}}}),zz=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:jz(e)},presentation:{type:"items",translation:"properties.presentation",items:{...Lz(e),...Ez(e,{[vz.Image]:!0,[vz.Indicator]:!0,[vz.MiniChart]:!0})}}}}}),Fz=e=>({..._z(e),...zz(e)}),$z=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...Fz(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),Hz=e=>({ref:e,type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}),Bz=e=>Hz("dimensionNullValues"===e?"nullValueRepresentation.dimensionText":"nullValueRepresentation.text"),Vz={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},Wz=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),Uz=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),Gz=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},Kz=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>Gz(e,!0))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...we(n).filter(e=>!a.includes(e)).map(e=>Gz(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Yz=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Xz=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>Gz(e,!1))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Yz.filter(e=>!i.includes(e)).map(e=>Gz(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Jz=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Kz({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:Xz({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:Uz(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:Uz(`${e}.background`,"properties.background",(t,r)=>{const n=r?wm.WHITE:wm.TRANSPARENT;return o(t,e,"backgroundColor")??n},a)}}}}),Zz=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n,isNullStyling:o,translation:i})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:Uz(`${e}.fontColor`,void 0,t=>n(t,e,"color")??t.color)}},background:Uz(`${e}.background`,"properties.background",t=>n(t,e,"backgroundColor")??r??"transparent")}},nullValueText:o?Bz(e):void 0}}),Qz=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"subTotalValues":return e.object?.straightTableV2?.subTotal?.label?.value?.[r];case"nullValues":case"dimensionNullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},eF=e=>e.grid?.zebraStripes?.show,tF={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},rF=e=>e?.content?.hoverEffect,nF={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:rF,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:rF,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},oF=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,iF=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:Jz({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:Qz,disableNoneCallback:oF}),dimensionValueSection:Jz({section:"dimensionValues",translator:t,flags:e,getThemeValue:Qz}),measureValueSection:Jz({section:"measureValues",translator:t,flags:e,getThemeValue:Qz}),totalRowSection:Jz({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:Qz,disableNoneCallback:oF}),subTotalRowSection:e.isEnabled("TLV-2303-SUB-TOTALS")?Jz({section:"subTotalValues",defaultFontStyle:["bold"],translation:"properties.subTotals",translator:t,flags:e,getThemeValue:Qz,disableNoneCallback:oF}):void 0,...e.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")?{dimensionNullSection:Zz({section:"dimensionNullValues",fallbackBackground:wm.NULL_VALUE_BACKGROUND,getThemeValue:Qz,isNullStyling:!0}),nullValues:Zz({section:"nullValues",translation:"properties.pivot.measureNullValues",fallbackBackground:wm.NULL_VALUE_BACKGROUND,getThemeValue:Qz,isNullStyling:!0})}:{nullValues:Zz({section:"nullValues",fallbackBackground:wm.NULL_VALUE_BACKGROUND,getThemeValue:Qz,isNullStyling:!0})},grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...tF},border:Uz("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??wm.BORDER_MEDIUM),divider:Uz("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??wm.BORDER_HEAVY)}}}},hoverEffectSection:nF,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:eF,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:eF,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:eF,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:eF,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),aF=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[iF(e),Wz(e),{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1},e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")?void 0:Bz()]},...Vz}}),sF={uses:"sorting"},lF={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},cF=e=>({type:"items",component:"accordion",items:{data:$z(e),sorting:sF,addOns:lF,settings:aF(e)}});function uF(e){return{definition:cF(e),exploration:Q_(e),data:bz(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return bv({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>dv({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:t=>new pz(t,e.translator),usePropertyHandler:"sn-table-data"}}}var dF,pF={exports:{}};
|
|
102
|
+
*/function vR(){if(hR)return WS;hR=1,Object.defineProperty(WS,"__esModule",{value:!0}),WS.default=function(t){return(0,e.createStyles)(t)};var e=bR;return WS}var yR,xR,SR={},wR={};function CR(){if(yR)return wR;yR=1;var e=Kl();Object.defineProperty(wR,"__esModule",{value:!0}),wR.default=void 0;var t=(0,e($S()).default)();return wR.default=t,wR}function ER(){if(xR)return SR;xR=1;var e=Kl();Object.defineProperty(SR,"__esModule",{value:!0}),SR.default=void 0;var t=e(Rc()),r=bR,n=e(CR());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return SR.default=o,SR}var RR,AR,IR={},kR={};function PR(){if(RR)return kR;RR=1;var e=Kl();Object.defineProperty(kR,"__esModule",{value:!0}),kR.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},kR.getUnit=r,kR.toUnitless=n,kR.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},kR.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},kR.fontGrid=function(e){var t=e.lineHeight,r=e.pixels,n=e.htmlFontSize;return r/(t*n)},kR.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,c=e.transform,u=void 0===c?null:c,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach(function(e){var o=n+p*e;null!==u&&(o=u(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(ny());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return kR}function MR(){if(AR)return IR;AR=1;var e=Kl();Object.defineProperty(IR,"__esModule",{value:!0}),IR.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,c=o.factor,u=void 0===c?2:c,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/u,c=o.lineHeight;if(!(0,n.isUnitless)(c)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(c)||(c=parseFloat(m(c,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:c,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Rc()),r=Uv,n=PR();return IR}var DR,TR={};function OR(){if(DR)return TR;DR=1;var e=Kl();Object.defineProperty(TR,"__esModule",{value:!0}),TR.default=void 0;var t=e(Rc()),r=bR,n=e(CR()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return TR.default=o,TR}var qR,LR={};function NR(){if(qR)return LR;qR=1;var e=Kl();Object.defineProperty(LR,"__esModule",{value:!0}),LR.default=function(){return(0,t.useTheme)()||r.default};var t=bR;e(S);var r=e(CR());return LR}var jR,_R={};function zR(){if(jR)return _R;jR=1;var e=Kl();Object.defineProperty(_R,"__esModule",{value:!0}),_R.default=void 0;var t=e(Rc()),r=bR,n=e(CR());var o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return _R.default=o,_R}var FR,$R,HR={};function BR(){if(FR)return HR;FR=1;var e=Kl();Object.defineProperty(HR,"__esModule",{value:!0}),HR.default=void 0;var t=bR,r=e(CR()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return HR.default=n,HR}function VR(){return $R||($R=1,function(e){var t=Kl(),r=(Cv||(Cv=1,function(e){var t=Iv().default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Rv)),Rv.exports);Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Gv();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=r($S()),a=t(VS()),s=t(vR()),l=t(ER()),c=t(MR()),u=t(OR()),d=NS();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(NR()),f=t(zR()),h=t(BR()),m=bR}(Ev)),Ev}var WR=VR();WR.alpha($t.GREYSCALE_0,.05),WR.alpha($t.GREEN_PALE,.5),WR.alpha($t.BLUE_PALE,.5),WR.alpha($t.GREEN_PALE,.5),WR.alpha($t.BLUE_PALE,.5),WR.alpha($t.GREEN_PALE,.5),WR.alpha($t.BLUE_PALE,.5),WR.alpha($t.GREEN_PALE,.5),WR.alpha($t.BLUE_PALE,.5),WR.alpha($t.GREEN_PALE,.5),WR.alpha($t.BLUE_PALE,.5),import.meta.env&&import.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},t){var r;let n,o;const i={getItem:(r,i)=>{var a,s;const l=e=>{if(n!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}n=e}return o},c=null!=(s=null==(a=e())?void 0:a.getItem(r))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(c)?c.then(l):l(c)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let a;try{a=null==(r=e())?void 0:r.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),a&&(i.subscribe=(s=a,(e,t,r)=>s(e,e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)})))}();const UR=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),GR=new WeakMap,KR=()=>{};function YR(e,t=KR){return((e,t,r)=>{const n=UR(()=>new WeakMap,GR,t);return UR(e,n,r)})(()=>{const r=new WeakMap,n=new WeakMap,o=Yg(0),i=Yg([]);i.INTERNAL_onInit=e=>{e.set(i,[()=>e.set(o,e=>e+1)])},"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(o.debugPrivate=!0,i.debugPrivate=!0);const a=Yg(s=>{let l;s(o);try{l=s(a)}catch(e){}const c=s(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(c))return{v:c};if(c!==(null==l?void 0:l.p)&&c.then(e=>{n.set(c,e);const[t]=s(i);t()},e=>{r.set(c,e);const[t]=s(i);t()}),r.has(c))throw r.get(c);return n.has(c)?{p:c,v:n.get(c)}:l&&"v"in l?{p:c,f:t(l.v),v:l.v}:{p:c,f:t()}});return a.init=void 0,"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(a.debugPrivate=!0),Yg(e=>{const t=e(a);return"f"in t?t.f:t.v},(t,r,...n)=>r(e,...n))},e,t)}const XR=new WeakMap;function JR(e,t){const r=eb(t),n=ZR(r);for(const[o,...i]of e)n.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(n.add(o),r.set(o,...i))}const ZR=e=>{let t=XR.get(e);return t||(t=new WeakSet,XR.set(e,t)),t};function QR(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function eA(e){const t=Yg(()=>[]),r=Yg(function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)});return r.effect=e,r.INTERNAL_onInit=e=>{const n=Wg(e),o=n[1],i=n[3],a=Cg(n[6]),s=n[11],l=n[12],c=n[13],u=n[14],d=n[15],p=n[16],f=n[17],h=n[20],m=new Set;let g,b=0,v=!1,y=!1,x=!1;function S(){if(b)return;m.clear();let t=!0;const w=i=>{if(x)return e.get(i);if(i===r){const t=s(n,e,i);if(!bg(t)){if(!mg(i))throw new Error("no atom init");h(n,e,i,i.init)}return vg(t)}const a=u(n,e,i);try{return vg(a)}finally{C.d.set(i,a.n),o.get(i)?.t.add(r),t?m.add(i):o.has(i)&&(f(n,e,r),c(n,e),l(n,e))}};w.peek=e.get;const E=(o,...u)=>{const m=s(n,e,o);try{if(++b,o===r){if(!mg(o))throw new Error("atom not writable");const t=m.n,r=u[0];return h(n,e,o,r),f(n,e,o),void(t!==m.n&&(i.add(o),a.c?.(o),d(n,e,o)))}return p(n,e,o,u)}finally{t||(c(n,e),l(n,e)),--b}};E.recurse=(t,...o)=>{if(x){if(QR())throw new Error("set.recurse is not allowed in cleanup")}else try{return v=!0,f(n,e,r),E(t,...o)}finally{c(n,e),v=!1,y&&(y=!1,S())}};try{g?.();const e=r.effect(w,E);if("function"!=typeof e)return;g=()=>{if(!b)try{return t=!0,x=!0,e()}finally{t=!1,x=!1,g=void 0}}}finally{t=!1,m.forEach(t=>{C.d.set(t,s(n,e,t).n)}),f(n,e,r),c(n,e)}}const w=function(e,t){let r=tA.get(e);r||(r=new Set,tA.set(e,r),t.f.add(function(){for(const e of r)r.delete(e),e()}));return r}(e,a),C=s(n,e,r);C.v=void 0,Object.assign(e.get(t),[m,C,o]),a.c.add(r,function(){i.delete(r)}),a.m.add(r,function(){w.add(S),g&&w.delete(g)}),a.u.add(r,function(){w.delete(S),g&&w.add(g)}),a.c.add(r,function(){v?y=!0:w.add(S)})},QR()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const tA=new WeakMap;const rA=e=>{const{items:t,handler:r,model:n,handlerQueue:o}=e;void 0!==r&&void 0!==n&&o&&o.add(async()=>{await(async(e,t,r)=>{try{await t.toggleAlternatives(e,r)}catch(t){console.error(`Failed to toggle ${e.map(e=>e.id).join(", ")} from/to alternative`,t)}})(t,r,e.currentColumnIds)})};function nA(e,t){let r=null;const n=new Map,o=new Set;function i(o){let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!r?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}const oA=e=>7005!==e.qError?.qErrorCode,iA=(e,t)=>{if(!e)return;const r=e.qHyperCube.qDimensionInfo.filter(e=>void 0!==e.cId).filter(oA).map(({cId:e,qFallbackTitle:r})=>({id:e,title:r??"",alternative:t,type:"dimension"})),n=e.qHyperCube.qMeasureInfo.filter(e=>void 0!==e.cId).filter(oA).map(({cId:e,qFallbackTitle:r})=>({id:e,title:r??"",alternative:t,type:"measure"}));return[...r,...n]},aA=(e,t)=>{const r=[],n={};return e.forEach(e=>{n[e.id]=e}),Object.keys(t).forEach(e=>{const o=t[e],i=n[e];i&&(r[o]=i)}),r},sA=(e,t,r)=>{if(!r||((e,t)=>{const r=e.map(e=>e.id).sort(),n=Object.keys(t).sort();return r.join(",")!==n.join(",")})(e,r)){const t=(e=>{const t={};return e.forEach((e,r)=>{t[e.id]=r}),t})(e);return aA(e,t)}const n=t.map(e=>e.id),o=Object.keys(r).sort((e,t)=>r[e]-r[t]).filter(e=>n.includes(e)),i={...r};for(let e=0;e<n.length;e++){const t=o[e],a=n[e];t!==a&&(i[a]=r[t])}let a=0;const s=Object.entries(i).sort((e,t)=>e[1]-t[1]).map(([e])=>[e,a++]);return s.forEach(([e,t])=>{i[e]=t}),aA(e,i)},lA=Yg(),cA=Yg(),uA=Yg(),dA=Yg(e=>e(uA)?.translate??(e=>e)),pA=Yg(""),fA=Yg(e=>{const t=e(pA).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)}),hA=new WeakMap,mA={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},gA=YR(Yg(async e=>{const t=e(lA);if(t){if(hA.has(t))return hA.get(t);try{const e=await t.app.createSessionObject(mA);return hA.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}})),bA=Yg(),vA=eA((e,t)=>{const r=e(lA),n=e(gA);if(!r||!n)return;const o=async()=>{const e=await r.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await r.getEffectiveProperties();await n.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef.qDimensions??[])},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef.qMeasures??[])}]);const i=await n.getLayout();t(bA,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)})};return o(),r.Invalidated?.bind(o),()=>{r.Invalidated?.unbind(o)}}),yA=Yg(e=>e(bA)?.layout),xA=Yg(e=>e(bA)?.altLayout),SA=Yg(e=>e(bA)?.properties),wA=Yg(e=>void 0===e(yA)||void 0===e(SA)),CA=Yg(e=>{const t=e(bA)?.layout;return t?.qHyperCube.qDimensionInfo.filter(oA)??[]}),EA=Yg(e=>{const t=e(bA)?.layout;return t?.qHyperCube.qMeasureInfo.filter(oA)??[]}),RA=Yg(e=>{const t=e(xA);return iA(t,!0)}),AA=Yg(e=>{const t=e(yA);return iA(t,!1)}),IA=Yg(e=>{const t=e(SA),r=e(yA);if(!t||!r)return[];const n=e(RA),o=e(AA),i=r.qHyperCube.qColumnOrder??[],a=t.qHyperCubeDef.qLayoutExclude?.allColumnOrder??{};if(void 0===n||void 0===o)return[];const s=((e,t)=>e.length===t?e:Array.from(Array(t).keys()))(i,o.length),l=((e,t)=>e.length>0?e.map(e=>t[e]):t)(s,o),c=[...l,...n];return sA(c,l,a)}),kA=Yg(e=>{const t=e(IA),r=e(fA);return t.filter(r)}),PA=Yg(e=>e(kA).length),MA=Yg(e=>({sectionIndex:t,itemIndex:r})=>{const n=e(kA);if(void 0===r)return`columns-section-${t}`;const o=n?.[r];return o?.id??`missing-item-${t}-${r}`}),DA=nA(e=>Yg(t=>t(kA)[e]),(e,t)=>e===t),TA=Yg(e=>e(IA).map(e=>e.id)),OA=Yg(e=>{const t=e(IA),r={};return t.forEach(e=>{r[e.id]=e.type}),r});class qA{#e=[];#t=!1;#r=!1;#n;#o;#i;#a;constructor({onQueueCompleted:e}){this.#n=e}#s(){this.#o=void 0,this.#i=void 0,this.#a=void 0}pause(){this.#o&&(clearTimeout(this.#a),this.#i?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#o=e,this.#i=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#i;await(e=>new Promise(t=>{setTimeout(t,e)}))(e),t===this.#i&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#r=!0,this.#e=[],this.#i?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#r=!1;this.#e.length>0;)if(this.#o)await this.#o;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#r||await(this.#n?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const LA=Yg(null),NA=eA((e,t)=>{const r=e(lA),n=e(cA),o=new qA({onQueueCompleted:async()=>{if(!r||!n)return;const e=n.properties.qHyperCubeDef,t=Date.now();e.qDimensions.length&&Object.assign(e.qDimensions[0],{patchTimeStamp:t}),e.qMeasures.length&&Object.assign(e.qMeasures[0],{patchTimeStamp:t}),await r.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(n.properties.qHyperCubeDef)}],!0)}});t(LA,o);const i=()=>{o.pause()},a=()=>{o.continue(500)},s=()=>{o.abort()};return r?.Invalidated?.bind(i),r?.Validated?.bind(a),r?.Cancelled?.bind(s),r?.Closing?.bind(s),()=>{o.abort(),r?.Invalidated?.unbind(i),r?.Validated?.unbind(a),r?.Cancelled?.unbind(s),r?.Closing?.unbind(s)}}),jA=Yg(e=>{const t=[...e(CA),...e(EA)].map(e=>e.cId);return new Set(t)}),_A=Yg(new Set),zA=Yg(new Set),FA=Yg(e=>{const t=e(_A),r=e(zA);return e(jA).difference(r).union(t)}),$A=eA((e,t)=>{e(jA),t(_A,new Set),t(zA,new Set)}),HA=Yg(e=>e(FA),(e,t,r)=>{if("string"!=typeof r.id)return;const n=e(FA).has(r.id),o=new Set(e(zA)),i=new Set(e(_A));n?(o.add(r.id),i.delete(r.id)):(i.add(r.id),o.delete(r.id)),t(zA,o),t(_A,i),rA({items:[r],handler:e(cA),model:e(lA),currentColumnIds:e(TA),handlerQueue:e(LA)})}),BA=({props:e,children:t})=>(JR([[lA,e.args.model],[uA,e.args.apis],[cA,e.args.handler]]),sb(vA),sb(NA),sb($A),t);function VA(e,t){const r=new Set(e),n=new Set(t);return e===t||r.size===n.size&&Array.from(r).every(n.has.bind(n))}function WA(e){return"write"in e}const UA=new WeakMap,GA={},{read:KA,write:YA}=Yg(null);function XA(e,t,r){const[n,o,i,,a]=e,s=n.get(t);if(s)return s;if(r===e){let n=o.get(t);return n||(n=[eI(e,t,r),r],o.set(t,n)),n}const l=r??GA;let c=i.get(l);c||(c=new WeakMap,i.set(l,c));let u=c.get(t);if(!u){const[n,o]=a?XA(a,t,r):[t];u=[t.read===KA?n:eI(e,t,o),o],c.set(t,u)}return u}function JA(e){for(const t of e[5])t()}function ZA(e,t,r,n,o){if(r.read===KA&&WA(r)&&WA(t)&&r.write!==YA&&e!==n){const{write:i}=r;return t.write=QA(e,r.write.bind(r),n,o),()=>{t.write=i}}}function QA(e,t,r,n=r){return function(o,i,...a){return t(function(t){const[n]=XA(e,t,r);return o(n)},function(t,...o){const[a]=XA(e,t,r),s=ZA(e,a,t,r,n);try{return i(a,...o)}finally{null==s||s()}},...a)}}function eI(e,t,r){const n=Object.getOwnPropertyDescriptors(t);Object.keys(n).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>n[e].configurable=!0);const o=Object.getPrototypeOf(t),i=Object.create(o,n);return i.read!==KA&&(i.read=function(e,t,r){return function(n,o){return t(function(t){const[o]=XA(e,t,r);return n(o)},o)}}(e,t.read.bind(t),r)),WA(i)&&WA(t)&&i.write!==YA&&(i.write=QA(e,t.write.bind(t),r)),i}function tI({atoms:e=[],atomFamilies:t=[],parentStore:r,name:n}){const o=new WeakSet(e),i=UA.get(r),a=(null==i?void 0:i[3])??r,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],c=s[5],u=function(e){const t=e[3],r=[...Wg(t)],n=r[21],o=r[22],i=r[23],a={};let s,l;return r[21]=h(n),r[22]=p,r[23]=h(i),r[24]=function(e){return s??(s=m(e[0],c)),l??(l=[s,m(e[1],u),m(e[2]),g(e[3]),e[4],e[5],v(e[6]),h(e[7]),h(e[8]),h(e[9]),h(e[10]),d(s,e[11]),(t,...n)=>e[12](r,...n),(t,...n)=>e[13](r,...n),h(e[14]),h(e[15]),h(e[16]),h(e[17]),h(e[18]),h(e[19]),h(e[20]),h(e[21]),h(e[22]),h(e[23]),()=>e,e[25],(t,...n)=>e[26](r,...n),(t,...n)=>e[27](r,...n),e[28],...e.slice(25)]),l},Ug(...r);function c(t){const r=new WeakMap;return function(n){let o=r.get(n);if(o)return o;const i=t(n);if(!i)return;let a,s;return o=new Proxy(i,{get:(t,r)=>"d"===r?a??(a=m(i.d,function(t){return r=>t(XA(e,r)[0])})):"p"===r?s??(s=g(i.p)):Reflect.get(i,r)}),r.set(n,o),o}}function u(e){const t=new WeakMap;return function(r){let n=t.get(r);if(n)return n;const o=e(r);return o?(n={...o,d:g(o.d),t:g(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(r,n),n):void 0}}function d(e,t){const r=h(t);return function(t,n,o){const i=e.get(o);if(i)return i;const a=r(t,n,o);return e.set(o,a),e.get(o)}}function p(t,r,n,...i){const[a,s]=XA(e,n),l=ZA(e,a,n,s,e);try{return o(t,r,a,...i)}finally{null==l||l()}}function f(t,r){return function(n,...o){const[i]=XA(e,n);return(r?r(t):t)(i,...o)}}function h(t){return function(n,o,i,...a){const[s]=XA(e,i);return t(r,o,s,...a)}}function m(e,t){const r={get:f(e.get.bind(e),t),set:f(e.set.bind(e)),has:f(e.has.bind(e)),delete:f(e.delete.bind(e))};if("function"==typeof e.keys){const t=e,n=r;n.keys=t.keys.bind(t),n[Symbol.iterator]=t[Symbol.iterator].bind(t),Object.defineProperty(r,"size",{enumerable:!1,configurable:!0,get:()=>t.size})}return r}function g(t){return{get size(){return t.size},add:f(t.add.bind(t)),has:f(t.has.bind(t)),delete:f(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(f(e)),*[Symbol.iterator](){for(const r of t)yield XA(e,r)[0]}}}function b(t){if(!t)return;const r=f(t);return r.add=function(r,n){if(void 0===r)return t.add(void 0,n);const[o]=XA(e,r);return t.add(o,n)},r}function v(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>a[t]??(a[t]=b(e[t])),set(r){delete a[t],e[t]=r},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=u,Object.assign(u,{name:n}),UA.set(u,s);for(const t of new Set(e))l.set(t,[eI(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const r=e(t);l.has(r)||l.set(r,[eI(s,r,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!o.has(t)&&l.delete(t):l.set(t,[eI(s,t,s),s])});c.add(t)}return u}const rI=function(e,t){return function(r){const{atoms:n=[],atomFamilies:o=[],children:i,scope:a,name:s}=r,l=t(),c=Array.from(n,e=>Array.isArray(e)?e[0]:e);function u(){return[a??tI({atoms:c,atomFamilies:o,parentStore:l,name:s}),function(e){return l!==e.parentStore||!VA(c,e.atoms)||!VA(o,e.atomFamilies)||a!==e.providedScope}]}const[[d,p],f]=I(u);if(p({atoms:c,atomFamilies:o,parentStore:l,providedScope:a})){const e=UA.get(d);e&&JA(e),f(u)}return JR(Array.from(n).filter(Array.isArray),{store:d}),D(()=>{const e=UA.get(d);return()=>{e&&JA(e)}},[d]),w(e,{store:d,children:i})}}(tb,eb);var nI=Object.defineProperty,oI=Object.defineProperties,iI=Object.getOwnPropertyDescriptors,aI=Object.getOwnPropertySymbols,sI=Object.prototype.hasOwnProperty,lI=Object.prototype.propertyIsEnumerable,cI=(e,t,r)=>t in e?nI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uI=(e,t)=>{for(var r in t||(t={}))sI.call(t,r)&&cI(e,r,t[r]);if(aI)for(var r of aI(t))lI.call(t,r)&&cI(e,r,t[r]);return e},dI=(e,t)=>oI(e,iI(t));function pI(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function fI(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function hI(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const c=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex(e=>c(e,a.id)),o=e.findIndex(e=>c(e,s.id));if(-1===n||-1===o){if(fI(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const u=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of u)if(-1===f&&(f=t.findIndex(e=>c(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>c(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&fI(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return dI(uI({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return dI(uI({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&fI(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return dI(uI({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return dI(uI({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return dI(uI({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return dI(uI({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,pI)}const mI=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,gI=Yg(),bI=Yg(e=>e(gI)?.numberOfSections??0),vI=Yg(e=>e(gI)?.numberOfItemsInSection??[]),yI=Yg(e=>e(gI)?.keyExtractor??mI),xI=Yg(e=>e(gI)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),SI=Yg(e=>e(gI)?.onDragEnd),wI=Yg(e=>e(gI)?.onDragOver),CI=Yg(e=>e(gI)?.itemRenderer),EI=Yg(e=>e(gI)?.headerRenderer),RI=Yg(e=>e(gI)?.dragOverlayRenderer),AI=Yg(e=>e(gI)?.onClick),II=Yg(e=>{const t=e(bI),r=e(vI),n=e(yI),o={};for(let e=0;e<t;e++)o[e]=Array.from({length:r[e]},(t,r)=>n({sectionIndex:e,itemIndex:r}));return o}),kI=Yg(null),PI=Yg(e=>e(kI),(e,t,r)=>{if(null===r)return void t(kI,null);const n=e(kI);t(kI,{...n,...r})}),MI=nA(e=>Yg(null,(t,r,n)=>{let o;"over"===e?o=t(wI):"end"===e&&(o=t(SI),r(PI,null));const{source:i,target:a}=n.operation;if("start"===e)return void r(PI,{id:i.id,startSection:i.data.sectionKey,startIndex:i.data.itemIndex,startSectionIndex:i.data.sectionIndex});if(null===a)return void r(PI,{toIndex:void 0,toSectionIndex:void 0});const s=i.data.sectionIndex!==a.data.sectionIndex;let l;if(s){const e=hI(t(II),n)[a.data.sectionIndex].indexOf(i.id);l=-1!==e?e:a.sortable?.index??0}else l=a.sortable?.index??0;if("over"===e){const e=t(PI)?.startIndex;r(PI,{toIndex:!s&&void 0!==e&&l>e?l+1:l,toSectionIndex:a.data.sectionIndex})}o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t(PI)?.startSection??i.data.sectionKey,event:n})})),DI=[gI,bI,vI,yI,xI,SI,CI,EI,AI,PI],TI=[MI],OI=({props:e,children:t})=>{const r=lb(gI);return L(()=>{r(e)},[e,r]),t};var qI=Symbol.for("preact-signals");function LI(){if(FI>1)FI--;else{var e,t=!1;for(!function(){var e=VI;for(VI=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==zI;){var r=zI;for(zI=void 0,$I++;void 0!==r;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&YI(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if($I=0,FI--,t)throw e}}function NI(e){if(FI>0)return e();BI=++HI,FI++;try{return e()}finally{LI()}}var jI=void 0;function _I(e){var t=jI;jI=void 0;try{return e()}finally{jI=t}}var zI=void 0,FI=0,$I=0,HI=0,BI=0,VI=void 0,WI=0;function UI(e){if(void 0!==jI){var t=e.n;if(void 0===t||t.t!==jI)return t={i:0,S:e,p:jI.s,n:void 0,t:jI,e:void 0,x:void 0,r:t},void 0!==jI.s&&(jI.s.n=t),jI.s=t,e.n=t,32&jI.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=jI.s,t.n=void 0,jI.s.n=t,jI.s=t),t}}function GI(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function KI(e,t){return new GI(e,t)}function YI(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function XI(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function JI(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function ZI(e,t){GI.call(this,void 0),this.x=e,this.s=void 0,this.g=WI-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function QI(e,t){return new ZI(e,t)}function ek(e){var t=e.m;if(e.m=void 0,"function"==typeof t){FI++;var r=jI;jI=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,tk(e),t}finally{jI=r,LI()}}}function tk(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ek(e)}function rk(e){if(jI!==this)throw new Error("Out-of-order effect");JI(this),jI=e,this.f&=-2,8&this.f&&tk(this),LI()}function nk(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function ok(e,t){var r=new nk(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}GI.prototype.brand=qI,GI.prototype.h=function(){return!0},GI.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:_I(function(){var e;null==(e=t.W)||e.call(t)}))},GI.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&_I(function(){var e;null==(e=t.Z)||e.call(t)}))}},GI.prototype.subscribe=function(e){var t=this;return ok(function(){var r=t.value,n=jI;jI=void 0;try{e(r)}finally{jI=n}},{name:"sub"})},GI.prototype.valueOf=function(){return this.value},GI.prototype.toString=function(){return this.value+""},GI.prototype.toJSON=function(){return this.value},GI.prototype.peek=function(){var e=this;return _I(function(){return e.value})},Object.defineProperty(GI.prototype,"value",{get:function(){var e=UI(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if($I>100)throw new Error("Cycle detected");!function(e){0!==FI&&0===$I&&e.l!==BI&&(e.l=BI,VI={S:e,v:e.v,i:e.i,o:VI})}(this),this.v=e,this.i++,WI++,FI++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{LI()}}}}),ZI.prototype=new GI,ZI.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===WI)return!0;if(this.g=WI,this.f|=1,this.i>0&&!YI(this))return this.f&=-2,!0;var e=jI;try{XI(this),jI=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return jI=e,JI(this),this.f&=-2,!0},ZI.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}GI.prototype.S.call(this,e)},ZI.prototype.U=function(e){if(void 0!==this.t&&(GI.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},ZI.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(ZI.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=UI(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),nk.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},nk.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ek(this),XI(this),FI++;var e=jI;return jI=this,rk.bind(this,e)},nk.prototype.N=function(){2&this.f||(this.f|=2,this.u=zI,zI=this)},nk.prototype.d=function(){this.f|=8,1&this.f||tk(this)},nk.prototype.dispose=function(){this.d()};var ik,ak,sk,lk,ck,uk,dk,pk,fk,hk,mk,gk,bk,vk,yk,xk,Sk,wk,Ck,Ek,Rk=Object.create,Ak=Object.defineProperty,Ik=Object.defineProperties,kk=Object.getOwnPropertyDescriptor,Pk=Object.getOwnPropertyDescriptors,Mk=Object.getOwnPropertySymbols,Dk=Object.prototype.hasOwnProperty,Tk=Object.prototype.propertyIsEnumerable,Ok=e=>{throw TypeError(e)},qk=(e,t,r)=>t in e?Ak(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lk=(e,t)=>Ak(e,"name",{value:t,configurable:!0}),Nk=["class","method","getter","setter","accessor","field","value","get","set"],jk=e=>void 0!==e&&"function"!=typeof e?Ok("Function expected"):e,_k=(e,t,r,n,o)=>({kind:Nk[e],name:t,metadata:n,addInitializer:e=>r._?Ok("Already initialized"):o.push(jk(e||null))}),zk=(e,t)=>{return qk(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},Fk=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},$k=(e,t,r,n,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=Nk[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&kk(d<4?o:{get[r](){return Vk(this,i)},set[r](e){return Uk(this,i,e)}},r));d?f&&d<4&&Lk(i,(d>2?"set ":d>1?"get ":"")+r):Lk(o,r);for(var y=n.length-1;y>=0;y--)c=_k(d,r,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>Bk(o,e):e=>r in e},3^d&&(u.get=f?e=>(1^d?Vk:Gk)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(u.set=f?(e,t)=>Uk(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?jk(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?Ok("Object expected"):(jk(a=s.get)&&(v.get=a),jk(a=s.set)&&(v.set=a),jk(a=s.init)&&g.unshift(a));return d||zk(e,o),v&&Ak(o,r,v),f?4^d?i:v:o},Hk=(e,t,r)=>t.has(e)||Ok("Cannot "+r),Bk=(e,t)=>Object(t)!==t?Ok('Cannot use the "in" operator on this value'):e.has(t),Vk=(e,t,r)=>(Hk(e,t,"read from private field"),r?r.call(e):t.get(e)),Wk=(e,t,r)=>t.has(e)?Ok("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Uk=(e,t,r,n)=>(Hk(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Gk=(e,t,r)=>(Hk(e,t,"access private method"),r);function Kk(e,t){if(t){let r;return QI(()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)})}return QI(e)}function Yk(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,r)=>!Yk(e,t[r]))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some(r=>!Yk(e[r],t[r]));return!o}return!1}function Xk({get:e},t){return{init:e=>KI(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function Jk(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=Kk(e.bind(this)),r.set(this,t)),t.value}}function Zk(e=!0){return function(t,r){r.addInitializer(function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>Ik(e,Pk(t)))(((e,t)=>{for(var r in t||(t={}))Dk.call(t,r)&&qk(e,r,t[r]);if(Mk)for(var r of Mk(t))Tk.call(t,r)&&qk(e,r,t[r]);return e})({},n),{enumerable:e}))})}}function Qk(...e){const t=e.map(e=>ok(e));return()=>t.forEach(e=>e())}uk=[Xk],ck=[Xk],lk=[Xk],sk=[Zk()],ak=[Zk()],ik=[Zk()];var eP,tP=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Fk(dk,5,this),Wk(this,gk),Wk(this,pk,Fk(dk,8,this)),Fk(dk,11,this),Wk(this,bk,Fk(dk,12,this)),Fk(dk,15,this),Wk(this,Sk,Fk(dk,16,this)),Fk(dk,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Vk(this,gk,Ck)}get initial(){return Vk(this,gk,hk)}get previous(){return Vk(this,gk,yk)}set current(e){const t=_I(()=>Vk(this,gk,Ck));e&&t&&this.equals(t,e)||NI(()=>{Vk(this,gk,hk)||Uk(this,gk,e,mk),Uk(this,gk,t,xk),Uk(this,gk,e,Ek)})}reset(e=this.defaultValue){NI(()=>{Uk(this,gk,void 0,xk),Uk(this,gk,e,mk),Uk(this,gk,e,Ek)})}};function rP(e){return _I(()=>{const t={};for(const r in e)t[r]=e[r];return t})}dk=[,,,Rk(null)],pk=new WeakMap,gk=new WeakSet,bk=new WeakMap,Sk=new WeakMap,fk=$k(dk,20,"#initial",uk,gk,pk),hk=fk.get,mk=fk.set,vk=$k(dk,20,"#previous",ck,gk,bk),yk=vk.get,xk=vk.set,wk=$k(dk,20,"#current",lk,gk,Sk),Ck=wk.get,Ek=wk.set,$k(dk,2,"current",sk,tP),$k(dk,2,"initial",ak,tP),$k(dk,2,"previous",ik,tP),zk(dk,tP);eP=new WeakMap;var nP,oP,iP,aP,sP,lP=Object.create,cP=Object.defineProperty,uP=Object.getOwnPropertyDescriptor,dP=Object.getOwnPropertySymbols,pP=Object.prototype.hasOwnProperty,fP=Object.prototype.propertyIsEnumerable,hP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),mP=e=>{throw TypeError(e)},gP=Math.pow,bP=(e,t,r)=>t in e?cP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vP=["class","method","getter","setter","accessor","field","value","get","set"],yP=e=>void 0!==e&&"function"!=typeof e?mP("Function expected"):e,xP=(e,t,r,n,o)=>({kind:vP[e],name:t,metadata:n,addInitializer:e=>r._?mP("Already initialized"):o.push(yP(e||null))}),SP=(e,t,r,n,o,i)=>{for(var a,s,l,c,u=7&t,d=vP[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,uP(o,r)),h=n.length-1;h>=0;h--)(l=xP(u,r,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>r in e},c.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,yP(a)&&(f[d]=a);return f&&cP(o,r,f),o},wP=(e,t,r)=>t.has(e)||mP("Cannot "+r),CP=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},EP=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))pP.call(t,r)&&bP(e,r,t[r]);if(dP)for(var r of dP(t))fP.call(t,r)&&bP(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new CP((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return CP.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var RP,AP=class extends(iP=tP,oP=[Jk],nP=[Jk],iP){constructor(e){var t,r,n;super(CP.from(e),(e,t)=>CP.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(sP,5,this),t=this,n=0,(r=aP).has(t)?mP("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return CP.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=CP.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(wP(a=this,s=aP,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);NI(()=>{((e,t,r)=>{wP(e,t,"write to private field"),t.set(e,r)})(this,aP,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(CP.from(e)),this.velocity={x:0,y:0}}};function IP({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(gP(n,2)+gP(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}sP=(e=>{var t;return[,,,lP(null!=(t=null==e?void 0:e[hP("metadata")])?t:null)]})(iP),aP=new WeakMap,SP(sP,2,"delta",oP,AP),SP(sP,2,"direction",nP,AP),RP=sP,bP(AP,hP("metadata"),RP[3]);var kP,PP,MP,DP,TP=(e=>(e.Horizontal="x",e.Vertical="y",e))(TP||{}),OP=Object.values(TP),qP=Object.create,LP=Object.defineProperty,NP=Object.defineProperties,jP=Object.getOwnPropertyDescriptor,_P=Object.getOwnPropertyDescriptors,zP=Object.getOwnPropertySymbols,FP=Object.prototype.hasOwnProperty,$P=Object.prototype.propertyIsEnumerable,HP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),BP=e=>{throw TypeError(e)},VP=(e,t,r)=>t in e?LP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,WP=(e,t)=>{for(var r in t||(t={}))FP.call(t,r)&&VP(e,r,t[r]);if(zP)for(var r of zP(t))$P.call(t,r)&&VP(e,r,t[r]);return e},UP=(e,t)=>NP(e,_P(t)),GP=(e,t)=>LP(e,"name",{value:t,configurable:!0}),KP=(e,t)=>{var r={};for(var n in e)FP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&zP)for(var n of zP(e))t.indexOf(n)<0&&$P.call(e,n)&&(r[n]=e[n]);return r},YP=e=>{var t;return[,,,qP(null!=(t=null==e?void 0:e[HP("metadata")])?t:null)]},XP=["class","method","getter","setter","accessor","field","value","get","set"],JP=e=>void 0!==e&&"function"!=typeof e?BP("Function expected"):e,ZP=(e,t,r,n,o)=>({kind:XP[e],name:t,metadata:n,addInitializer:e=>r._?BP("Already initialized"):o.push(JP(e||null))}),QP=(e,t)=>VP(t,HP("metadata"),e[3]),eM=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},tM=(e,t,r,n,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=XP[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&jP(d<4?o:{get[r](){return oM(this,i)},set[r](e){return aM(this,i,e)}},r));d?f&&d<4&&GP(i,(d>2?"set ":d>1?"get ":"")+r):GP(o,r);for(var y=n.length-1;y>=0;y--)c=ZP(d,r,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>nM(o,e):e=>r in e},3^d&&(u.get=f?e=>(1^d?oM:sM)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(u.set=f?(e,t)=>aM(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?JP(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?BP("Object expected"):(JP(a=s.get)&&(v.get=a),JP(a=s.set)&&(v.set=a),JP(a=s.init)&&g.unshift(a));return d||QP(e,o),v&&LP(o,r,v),f?4^d?i:v:o},rM=(e,t,r)=>t.has(e)||BP("Cannot "+r),nM=(e,t)=>Object(t)!==t?BP('Cannot use the "in" operator on this value'):e.has(t),oM=(e,t,r)=>(rM(e,t,"read from private field"),r?r.call(e):t.get(e)),iM=(e,t,r)=>t.has(e)?BP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),aM=(e,t,r,n)=>(rM(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),sM=(e,t,r)=>(rM(e,t,"access private method"),r);function lM(e,t){return{plugin:e,options:t}}function cM(e){return t=>lM(e,t)}function uM(e){return"function"==typeof e?{plugin:e,options:void 0}:e}kP=[Xk];var dM=class{constructor(e,t){this.manager=e,this.options=t,iM(this,MP,eM(PP,8,this,!1)),eM(PP,11,this),iM(this,DP,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return _I(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=ok(e.bind(this));return oM(this,DP).add(t),t}destroy(){oM(this,DP).forEach(e=>e())}static configure(e){return lM(this,e)}};PP=YP(null),MP=new WeakMap,DP=new WeakMap,tM(PP,4,"disabled",kP,dM,MP),QP(PP,dM);var pM,fM=class extends dM{},hM=class{constructor(e){this.manager=e,this.instances=new Map,iM(this,pM,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(uM).reduce((e,t)=>{const r=e.find(({plugin:e})=>e===t.plugin);return r?(r.options=t.options,e):[...e,t]},[]),r=t.map(({plugin:e})=>e);for(const e of oM(this,pM))if(!r.includes(e)){if(e.prototype instanceof fM)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);aM(this,pM,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function mM(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}pM=new WeakMap;var gM,bM,vM,yM,xM,SM,wM,CM,EM,RM,AM,IM,kM=[],PM=class extends dM{constructor(e){super(e),iM(this,gM),iM(this,bM),this.computeCollisions=this.computeCollisions.bind(this),aM(this,bM,KI(kM)),this.destroy=Qk(()=>{const e=this.computeCollisions(),t=_I(()=>this.manager.dragOperation.position.current);if(e!==kM){const e=oM(this,gM);if(aM(this,gM,t),e&&t.x==e.x&&t.y==e.y)return}else aM(this,gM,void 0);oM(this,bM).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){_I(()=>{e?oM(this,bM).value=this.computeCollisions():aM(this,gM,void 0)})}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return kM;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=_I(()=>e({droppable:i,dragOperation:n}));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?kM:(s.sort(mM),s)}get collisions(){return oM(this,bM).value}};gM=new WeakMap,bM=new WeakMap,xM=[Xk],yM=[Xk],vM=[Xk];var MM=class e{constructor(e,t){iM(this,EM,eM(CM,8,this)),eM(CM,11,this),iM(this,RM),iM(this,AM,eM(CM,12,this)),eM(CM,15,this),iM(this,IM,eM(CM,16,this)),eM(CM,19,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;aM(this,RM,KI(n)),this.manager=t,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return s=e,null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}get id(){var t,r;const n=oM(this,RM).value;return null!=(r=null==(t=e.pendingIdChanges)?void 0:t.get(this))?r:n}set id(t){var r,n;t!==(null!=(n=null==(r=e.pendingIdChanges)?void 0:r.get(this))?n:oM(this,RM).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return sM(t=e,SM,wM).call(t)})),e.pendingIdChanges.set(this,t))}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};CM=YP(null),SM=new WeakSet,wM=function(){const e=MM.pendingIdChanges;MM.pendingIdChanges=null,e&&NI(()=>{for(const[t,r]of e)oM(t,RM).value=r})},EM=new WeakMap,RM=new WeakMap,AM=new WeakMap,IM=new WeakMap,tM(CM,4,"manager",xM,MM,EM),tM(CM,4,"data",yM,MM,AM),tM(CM,4,"disabled",vM,MM,IM),iM(MM,SM),QP(CM,MM),MM.pendingIdChanges=null;var DM,TM,OM,qM,LM,NM,jM,_M,zM,FM,$M,HM,BM,VM,WM,UM,GM,KM,YM,XM,JM,ZM,QM,eD,tD=MM,rD=class{constructor(){this.map=KI(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n&&n.id===e){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);for(const[n,o]of r)if(o===t&&n!==e){i.delete(n);break}i.set(e,t),this.map.value=i;const a=Qk(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},nD=class extends(jM=tD,NM=[Xk],LM=[Xk],qM=[Xk],OM=[Jk],TM=[Jk],DM=[Jk],jM){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i,plugins:a,effects:s}=r,l=KP(r,["modifiers","type","sensors","plugins","effects"]);super(UP(WP({},l),{effects:()=>{var e;return[...null!=(e=null==s?void 0:s())?e:[],()=>{const{manager:e,plugins:t}=this;if(e&&t)for(const r of t){const{plugin:t}=uM(r);e.registry.plugins.register(t)}}]}}),t),eM(_M,5,this),iM(this,zM,eM(_M,8,this)),eM(_M,11,this),iM(this,FM,eM(_M,12,this)),eM(_M,15,this),iM(this,$M,eM(_M,16,this,this.isDragSource?"dragging":"idle")),eM(_M,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=l.alignment,this.plugins=a}pluginConfig(e){if(this.plugins)for(const t of this.plugins){const r=uM(t);if(r.plugin===e)return r.options}}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};_M=YP(jM),zM=new WeakMap,FM=new WeakMap,$M=new WeakMap,tM(_M,4,"type",NM,nD,zM),tM(_M,4,"modifiers",LM,nD,FM),tM(_M,4,"status",qM,nD,$M),tM(_M,2,"isDropping",OM,nD),tM(_M,2,"isDragging",TM,nD),tM(_M,2,"isDragSource",DM,nD),QP(_M,nD);var oD=class extends(KM=tD,GM=[Xk],UM=[Xk],WM=[Xk],VM=[Xk],BM=[Xk],HM=[Jk],KM){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(KP(r,["accept","collisionDetector","collisionPriority","type"]),t),eM(YM,5,this),iM(this,XM,eM(YM,8,this)),eM(YM,11,this),iM(this,JM,eM(YM,12,this)),eM(YM,15,this),iM(this,ZM,eM(YM,16,this)),eM(YM,19,this),iM(this,QM,eM(YM,20,this)),eM(YM,23,this),iM(this,eD,eM(YM,24,this)),eM(YM,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};YM=YP(KM),XM=new WeakMap,JM=new WeakMap,ZM=new WeakMap,QM=new WeakMap,eD=new WeakMap,tM(YM,4,"accept",GM,oD,XM),tM(YM,4,"type",UM,oD,JM),tM(YM,4,"collisionDetector",WM,oD,ZM),tM(YM,4,"collisionPriority",VM,oD,QM),tM(YM,4,"shape",BM,oD,eD),tM(YM,2,"isDropTarget",HM,oD),QP(YM,oD);var iD=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},aD=class extends iD{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function sD(e,t=!0){let r=!1;return UP(WP({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var lD,cD,uD,dD,pD,fD,hD,mD,gD,bD=class extends fM{constructor(e){super(e);let t=[];this.destroy=Qk(()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())},()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;if(tD.pendingIdChanges)return;const i=sD({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;_I(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{r.enable()}))})})}},vD=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(vD||{}),yD=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(yD||{});hD=[Xk],fD=[Jk],pD=[Jk],dD=[Jk],uD=[Jk],cD=[Jk],lD=[Jk];var xD=class{constructor(){eM(mD,5,this),iM(this,gD,eM(mD,8,this,"idle")),eM(mD,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};mD=YP(null),gD=new WeakMap,tM(mD,4,"value",hD,xD,gD),tM(mD,2,"current",fD,xD),tM(mD,2,"idle",pD,xD),tM(mD,2,"initializing",dD,xD),tM(mD,2,"initialized",uD,xD),tM(mD,2,"dragging",cD,xD),tM(mD,2,"dropped",lD,xD),QP(mD,xD);var SD,wD=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return _I(()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=sD({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then(()=>n.defaultPrevented)})}start(e){return _I(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;NI(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)});const i=sD({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&NI(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1})})}),r)})}move(e){return _I(()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=sD({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l})})}stop(e={}){return _I(()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{n.status.set("dropped");const e=_I(()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)}),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=ok(()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())})}else this.manager.renderer.rendering.then(t)})};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,r)=>{e.resume=t,e.abort=r}),e}}),i?i.then(a).catch(()=>n.reset()):a()})}},CD=class extends dM{constructor(e,t){super(e,t),this.manager=e,this.options=t}},ED=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},RD=class{constructor(e){this.options=e,iM(this,SD)}set controller(e){aM(this,SD,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=oM(this,SD))||t.activate(e)}};SD=new WeakMap;var AD,ID,kD,PD,MD,DD,TD,OD,qD,LD,ND,jD,_D,zD,FD,$D,HD,BD,VD,WD=class extends dM{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},UD=class{constructor(e){this.draggables=new rD,this.droppables=new rD,this.plugins=new hM(e),this.sensors=new hM(e),this.modifiers=new hM(e)}register(e,t){if(e instanceof nD)return this.draggables.register(e.id,e);if(e instanceof oD)return this.droppables.register(e.id,e);if(e.prototype instanceof WD)return this.modifiers.register(e,t);if(e.prototype instanceof CD)return this.sensors.register(e,t);if(e.prototype instanceof dM)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof tD)return e instanceof nD?this.draggables.unregister(e.id,e):e instanceof oD?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof WD)return this.modifiers.unregister(e);if(e.prototype instanceof CD)return this.sensors.unregister(e);if(e.prototype instanceof dM)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};qD=[Jk],OD=[Xk],TD=[Xk],DD=[Xk],MD=[Xk],PD=[Xk],kD=[Jk],ID=[Jk],AD=[Jk];var GD=class{constructor(e){eM(_D,5,this),iM(this,LD),iM(this,ND),iM(this,jD,new tP(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new xD,iM(this,zD,eM(_D,8,this,!1)),eM(_D,11,this),iM(this,FD,eM(_D,12,this,null)),eM(_D,15,this),iM(this,$D,eM(_D,16,this,null)),eM(_D,19,this),iM(this,HD,eM(_D,20,this,null)),eM(_D,23,this),iM(this,BD,eM(_D,24,this,[])),eM(_D,27,this),this.position=new AP({x:0,y:0}),iM(this,VD,{x:0,y:0}),aM(this,LD,e)}get shape(){const{current:e,initial:t,previous:r}=oM(this,jD);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?oM(this,jD).current=e:oM(this,jD).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=oM(this,LD).registry.draggables.get(t);return r&&aM(this,ND,r),null!=(e=null!=r?r:oM(this,ND))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=oM(this,LD).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(UP(WP({},this.snapshot()),{transform:r}));return aM(this,VD,r),r}snapshot(){return _I(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:oM(this,VD),shape:this.shape?rP(this.shape):null,position:rP(this.position),status:rP(this.status),canceled:this.canceled}))}reset(){NI(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,oM(this,jD).reset(),this.position.reset({x:0,y:0}),aM(this,VD,{x:0,y:0}),this.modifiers=[]})}};_D=YP(null),LD=new WeakMap,ND=new WeakMap,jD=new WeakMap,zD=new WeakMap,FD=new WeakMap,$D=new WeakMap,HD=new WeakMap,BD=new WeakMap,VD=new WeakMap,tM(_D,2,"shape",qD,GD),tM(_D,4,"canceled",OD,GD,zD),tM(_D,4,"activatorEvent",TD,GD,FD),tM(_D,4,"sourceIdentifier",DD,GD,$D),tM(_D,4,"targetIdentifier",MD,GD,HD),tM(_D,4,"modifiers",PD,GD,BD),tM(_D,2,"source",kD,GD),tM(_D,2,"target",ID,GD),tM(_D,2,"transform",AD,GD),QP(_D,GD);var KD={get rendering(){return Promise.resolve()}};function YD(e,t){return"function"==typeof e?e(t):null!=e?e:t}var XD=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=YD(r.plugins,[]),o=YD(r.sensors,[]),i=YD(r.modifiers,[]),a=null!=(t=r.renderer)?t:KD,s=new aD(this),l=new UD(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new wD(this),this.dragOperation=new GD(this),this.collisionObserver=new PM(this),this.plugins=[bD,...n],this.modifiers=i,this.sensors=o;const{destroy:c}=this,u=Qk(()=>{var e,t,r;const n=_I(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of n)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:r}=uM(e);return new t(this,r)}))?r:o});this.destroy=()=>{u(),c()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},JD=e=>{throw TypeError(e)},ZD=(e,t,r)=>t.has(e)||JD("Cannot "+r),QD=(e,t,r)=>(ZD(e,t,"read from private field"),t.get(e)),eT=(e,t,r)=>t.has(e)?JD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),tT=(e,t,r,n)=>(ZD(e,t,"write to private field"),t.set(e,r),r),rT=(e,t,r)=>(ZD(e,t,"access private method"),r);function nT(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function oT(e,t){const r=e.getAnimations();let n=null;for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,o=(nT(r)?r.getKeyframes():[]).filter(t);o.length>0&&(n=[o[o.length-1],e])}return n}function iT(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function aT(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function sT(e){return"nodeType"in e}function lT(e){var t,r,n;return e?aT(e)?e:sT(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function cT(e){const{Document:t}=lT(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function uT(e){return!(!e||aT(e))&&(e instanceof lT(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function dT(e){return e instanceof lT(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function pT(e){return e?aT(e)?e.document:sT(e)?cT(e)?e:uT(e)||dT(e)?e.ownerDocument:document:document:document}function fT(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function hT(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:c}=e,u=null!=(n=c.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==c.documentElement;){if(!fT(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=u.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:u.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:u.innerHeight,b=r*g,v=r*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function mT(e){return{x:e.clientX,y:e.clientY}}var gT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function bT(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...bT(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...bT(o.document,t))}}catch(e){}return r}function vT(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function yT(){var e,t;const r=vT()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function xT(e){return!(!e||!sT(e))&&e instanceof lT(e).ShadowRoot}function ST(e){if(e&&sT(e)){let t=e.getRootNode();if(xT(t))return t;if(t instanceof Document)return t}return pT(e)}function wT(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function CT(e){return"value"in e}function ET(e){return"CANVAS"===e.tagName}function RT(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return RT(e,{x:t-o,y:r-i})}}return n}var AT=new WeakMap;var IT=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}const i=this.entries;return function(){for(const e of o){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o),i.delete(e)}}}};function kT(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function PT(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}(()=>{e.apply(a,i),o=r()},t-(r()-o))):(e.apply(a,i),o=r())}}var MT,DT=gT?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},TT=class extends DT{constructor(e){super(t=>{QD(this,MT)?e(t,this):tT(this,MT,!0)}),eT(this,MT,!1)}};MT=new WeakMap;var OT,qT,LT,NT,jT,_T,zT,FT,$T,HT,BT,VT=Array.from({length:100},(e,t)=>t/100),WT=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,eT(this,$T),this.disconnect=()=>{var e,t,r;tT(this,zT,!0),null==(e=QD(this,LT))||e.disconnect(),null==(t=QD(this,NT))||t.disconnect(),QD(this,jT).disconnect(),null==(r=QD(this,_T))||r.remove()},eT(this,OT,!0),eT(this,qT),eT(this,LT),eT(this,NT),eT(this,jT),eT(this,_T),eT(this,zT,!1),eT(this,FT,PT(()=>{var e,t,r;const{element:n}=this;if(null==(e=QD(this,NT))||e.disconnect(),QD(this,zT)||!QD(this,OT)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=hT(n,s),{top:c,left:u,bottom:d,right:p}=l,f=-Math.floor(c),h=-Math.floor(u),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,tT(this,NT,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:EP.intersectionRatio(r,hT(n)))&&QD(this,FT).call(this)},{threshold:VT,rootMargin:m,root:o})),QD(this,NT).observe(n),rT(this,$T,HT).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),tT(this,OT,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=hT(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(tT(this,_T,document.createElement("div")),QD(this,_T).style.background="rgba(0,0,0,0.15)",QD(this,_T).style.position="fixed",QD(this,_T).style.pointerEvents="none",o.body.appendChild(QD(this,_T))),tT(this,jT,new IntersectionObserver(t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,c=QD(this,OT);tT(this,OT,a),(s||l)&&(c&&!a?(null==(r=QD(this,NT))||r.disconnect(),this.callback(null),null==(n=QD(this,LT))||n.disconnect(),tT(this,LT,void 0),QD(this,_T)&&(QD(this,_T).style.visibility="hidden")):QD(this,FT).call(this),a&&!QD(this,LT)&&(tT(this,LT,new TT(QD(this,FT))),QD(this,LT).observe(e)))},{threshold:VT,root:o})),QD(this,OT)&&!r.skipInitial&&this.callback(this.boundingClientRect),QD(this,jT).observe(e)}};OT=new WeakMap,qT=new WeakMap,LT=new WeakMap,NT=new WeakMap,jT=new WeakMap,_T=new WeakMap,zT=new WeakMap,FT=new WeakMap,$T=new WeakSet,HT=function(){QD(this,zT)||(rT(this,$T,BT).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,QD(this,qT))||(this.callback(this.boundingClientRect),tT(this,qT,this.boundingClientRect)))},BT=function(){if(QD(this,_T)){const{top:e,left:t,width:r,height:n}=hT(this.element);QD(this,_T).style.overflow="hidden",QD(this,_T).style.visibility="visible",QD(this,_T).style.top=`${Math.floor(e)}px`,QD(this,_T).style.left=`${Math.floor(t)}px`,QD(this,_T).style.width=`${Math.floor(r)}px`,QD(this,_T).style.height=`${Math.floor(n)}px`}};var UT,GT,KT,YT,XT=new WeakMap,JT=new WeakMap;function ZT(e,t){let r=XT.get(e);if(!r){const t=new WT(e,t=>{const r=XT.get(e);r&&r.callbacks.forEach(e=>e(t))},{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),XT.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(XT.delete(e),r.disconnect())}}var QT=class{constructor(e,t,r){this.callback=t,eT(this,UT),eT(this,GT,!1),eT(this,KT),eT(this,YT,PT(e=>{if(!QD(this,GT)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of QD(this,KT))if(e.target.contains(t)){this.callback(QD(this,UT).boundingClientRect);break}},75));const n=function(e){const t=new Set;let r=kT(e);for(;r;)t.add(r),r=kT(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=ZT(n,t);r.add(e)}return()=>r.forEach(e=>e())}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!JT.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),JT.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=JT.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),JT.delete(n))}):()=>{}}(e,QD(this,YT));tT(this,KT,n),tT(this,UT,new WT(e,t,r)),this.disconnect=()=>{QD(this,GT)||(tT(this,GT,!0),o(),i(),QD(this,UT).disconnect())}}};function eO(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function tO(e){try{eO(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function rO(e){return!(!gT||!e)&&e===pT(e).scrollingElement}function nO(e){var t,r;const n=lT(e),o=rO(e)?function(e){var t,r,n,o;const{documentElement:i}=pT(e),a=lT(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,c=null!=(n=null==a?void 0:a.offsetTop)?n:0,u=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:c,left:u,right:u+s,bottom:c+l,width:s,height:l}}(e):iT(e),i=n.visualViewport,a=rO(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function oO(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=nO(e),{x:s,y:l}=null!=t?t:{x:0,y:0},c=!r&&a.current.y+l>0,u=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:c,bottom:u,left:d,right:p,x:d||p,y:c||u}}UT=new WeakMap,GT=new WeakMap,KT=new WeakMap,YT=new WeakMap;var iO=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},aO=new iO(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),sO=new iO(e=>setTimeout(e,50)),lO=new Map,cO=lO.clear.bind(lO);function uO(e,t=!1){if(!t)return dO(e);let r=lO.get(e);return r||(r=dO(e),lO.set(e,r),sO.schedule(cO),r)}function dO(e){return lT(e).getComputedStyle(e)}var pO={excludeElement:!0,escapeShadowDOM:!0};function fO(e,t=pO){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(cT(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&xT(a))return t(a.host);if(!uT(a))return dT(a)?t(a.parentElement):i;if(i.has(a))return i;const s=uO(a,!0);if(n&&a===e||function(e,t=uO(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&r.test(n)})}(a,s)&&i.add(a),function(e,t=uO(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function hO(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=kT(e);for(;n;){if(n===t)return r;const e=iT(n),{x:o,y:i}=mO(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=kT(n)}return r}function mO(e,t=iT(e)){const r=Math.round(t.width),n=Math.round(t.height);if(uT(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=uO(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function gO(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function bO(e){var t,r,n,o,i,a,s,l,c;const{scale:u,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(u),h=gO(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(c=null==h?void 0:h.z)?c:0,scaleX:g*w,scaleY:b*C}}var vO=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(vO||{}),yO={x:.2,y:.2},xO={x:10,y:10};function SO(e,t,r,n=25,o=yO,i=xO){const{x:a,y:s}=t,{rect:l,isTop:c,isBottom:u,isLeft:d,isRight:p}=nO(e),f=hO(e),h=bO(uO(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new EP(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return x>0&&(!c||g&&!u)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):x>0&&(!u||g&&!c)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),S>0&&(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):S>0&&(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function wO(e,{block:t="nearest",inline:r="nearest"}={}){if(!uT(e))return;const n=fO(e),o=[];for(const i of n){if(!uT(i))continue;const{top:n,left:a}=EO(e,i);let s=n,l=a;for(const e of o)s-=e.scrollTop,l-=e.scrollLeft;if("none"!==t){const r=s<i.scrollTop;r!==s+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop="center"===t?s-i.clientHeight/2+e.offsetHeight/2:r?s:s+e.offsetHeight-i.clientHeight)}if("none"!==r){const t=l<i.scrollLeft;t!==l+e.offsetWidth>i.scrollLeft+i.clientWidth&&(i.scrollLeft="center"===r?l-i.clientWidth/2+e.offsetWidth/2:t?l:l+e.offsetWidth-i.clientWidth)}o.push(i)}}function CO(e){let t=0,r=0,n=e;for(;n;){t+=n.offsetTop,r+=n.offsetLeft;const e=n.offsetParent;if(!uT(e))break;t+=e.clientTop,r+=e.clientLeft,n=e}return{top:t,left:r}}function EO(e,t){const r=CO(e),n=CO(t);return{top:r.top-n.top-t.clientTop,left:r.left-n.left-t.clientLeft}}function RO({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function AO(e,t=uO(e).translate,r=!0){if(r){const t=oT(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=gO(e);if(t)return t}}}if(t){const e=gO(t);if(e)return e}return{x:0,y:0,z:0}}var IO=new iO(e=>setTimeout(e,0)),kO=new Map,PO=kO.clear.bind(kO);function MO(e,t){const r=function(e){const t=e.ownerDocument;let r=kO.get(t);if(r)return r;r=t.getAnimations(),kO.set(t,r),IO.schedule(PO);const n=r.filter(t=>nT(t.effect)&&t.effect.target===e);return kO.set(e,n),r}(e).filter(e=>{var r,n;if(nT(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some(e=>{for(const r of t.properties)if(e[r])return!0})}}).map(e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0});if(r.length>0)return()=>r.forEach(e=>null==e?void 0:e())}var DO=class extends EP{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=hO(e),ignoreTransforms:s,getBoundingClientRect:l=iT}=t,c=MO(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||vT())&&t.contains(e)}),u=l(e);let d,{top:p,left:f,width:h,height:m}=u;const g=uO(e),b=bO(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){const r=e.getAnimations();if(!r.length)return null;let n,o,i,a=!1;for(const e of r){if("running"!==e.playState)continue;const t=nT(e.effect)?e.effect.getKeyframes():[],r=t[t.length-1];if(!r)continue;const{transform:s,translate:l,scale:c}=r;"string"==typeof s&&s&&(n=s,a=!0),"string"==typeof l&&l&&(o=l,a=!0),"string"==typeof c&&c&&(i=c,a=!0)}return a?bO({transform:null!=n?n:t.transform,translate:null!=o?o:t.translate,scale:null!=i?i:t.scale}):null}(e,g);null==c||c(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),c=n?e.width/n:e.width,u=o?e.height/o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(u,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),c=n?e.width*n:e.width,u=o?e.height*o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function TO(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var OO=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(TO(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(TO(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(TO(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function qO(e){return!!e&&(e instanceof lT(e).Element||sT(e)&&e.nodeType===Node.ELEMENT_NODE)}function LO(e){if(!e)return!1;const{KeyboardEvent:t}=lT(e.target);return e instanceof t}var NO={};function jO(e){const t=null==NO[e]?0:NO[e]+1;return NO[e]=t,`${e}-${t}`}var _O=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/CP.distance(t.shape.center,r),type:yD.PointerIntersection,priority:vD.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=CP.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:yD.ShapeIntersection,priority:vD.Normal}}return null})(e)},zO=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?EP.from(n.current.boundingRectangle).corners:void 0,a=EP.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+CP.distance(CP.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)},0),s=a/4;return{id:r.id,value:1/s,type:yD.Collision,priority:vD.Normal}},FO=Object.create,$O=Object.defineProperty,HO=Object.defineProperties,BO=Object.getOwnPropertyDescriptor,VO=Object.getOwnPropertyDescriptors,WO=Object.getOwnPropertySymbols,UO=Object.prototype.hasOwnProperty,GO=Object.prototype.propertyIsEnumerable,KO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),YO=e=>{throw TypeError(e)},XO=(e,t,r)=>t in e?$O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JO=(e,t)=>{for(var r in t||(t={}))UO.call(t,r)&&XO(e,r,t[r]);if(WO)for(var r of WO(t))GO.call(t,r)&&XO(e,r,t[r]);return e},ZO=(e,t)=>HO(e,VO(t)),QO=(e,t)=>$O(e,"name",{value:t,configurable:!0}),eq=(e,t)=>{var r={};for(var n in e)UO.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&WO)for(var n of WO(e))t.indexOf(n)<0&&GO.call(e,n)&&(r[n]=e[n]);return r},tq=e=>{var t;return[,,,FO(null!=(t=null==e?void 0:e[KO("metadata")])?t:null)]},rq=["class","method","getter","setter","accessor","field","value","get","set"],nq=e=>void 0!==e&&"function"!=typeof e?YO("Function expected"):e,oq=(e,t,r,n,o)=>({kind:rq[e],name:t,metadata:n,addInitializer:e=>r._?YO("Already initialized"):o.push(nq(e||null))}),iq=(e,t)=>XO(t,KO("metadata"),e[3]),aq=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},sq=(e,t,r,n,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=rq[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&BO(d<4?o:{get[r](){return uq(this,i)},set[r](e){return pq(this,i,e)}},r));d?f&&d<4&&QO(i,(d>2?"set ":d>1?"get ":"")+r):QO(o,r);for(var y=n.length-1;y>=0;y--)c=oq(d,r,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>cq(o,e):e=>r in e},3^d&&(u.get=f?e=>(1^d?uq:fq)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(u.set=f?(e,t)=>pq(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?nq(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?YO("Object expected"):(nq(a=s.get)&&(v.get=a),nq(a=s.set)&&(v.set=a),nq(a=s.init)&&g.unshift(a));return d||iq(e,o),v&&$O(o,r,v),f?4^d?i:v:o},lq=(e,t,r)=>t.has(e)||YO("Cannot "+r),cq=(e,t)=>Object(t)!==t?YO('Cannot use the "in" operator on this value'):e.has(t),uq=(e,t,r)=>(lq(e,t,"read from private field"),r?r.call(e):t.get(e)),dq=(e,t,r)=>t.has(e)?YO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),pq=(e,t,r,n)=>(lq(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),fq=(e,t,r)=>(lq(e,t,"access private method"),r),hq="button",mq="draggable",gq="dnd-kit-description",bq="dnd-kit-announcement",vq={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},yq={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function xq(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var Sq=["dragover","dragmove"],wq=class extends dM{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=gq,announcement:o=bq}={},announcements:i=yq,screenReaderInstructions:a=vq,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:jO(n),c=r?`${o}-${r}`:jO(o);let u,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>aO.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,Sq.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==u?void 0:u.isConnected)||(u=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(u)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(c),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){u&&d||y.add(v),xq(r)&&!vT()||r.hasAttribute("tabindex")||y.add(()=>r.setAttribute("tabindex","0")),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add(()=>r.setAttribute("role",hq)),r.hasAttribute("aria-roledescription")||y.add(()=>r.setAttribute("aria-roledescription",mq)),r.hasAttribute("aria-describedby")||y.add(()=>r.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add(()=>r.setAttribute(e,n))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add(()=>r.setAttribute("aria-disabled",e))}}y.size>0&&aO.schedule(x)}),this.destroy=()=>{super.destroy(),null==u||u.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var Cq,Eq,Rq,Aq,Iq,kq,Pq,Mq,Dq,Tq,Oq,qq,Lq,Nq=new Map,jq=class extends(Iq=fM,Aq=[Xk],Rq=[Jk],Eq=[Jk],Cq=[Jk],Iq){constructor(e,t){super(e,t),aq(Pq,5,this),dq(this,Dq),dq(this,kq,new Set),dq(this,Mq,aq(Pq,8,this,new Set)),aq(Pq,11,this),this.registerEffect(fq(this,Dq,Tq))}register(e){return uq(this,kq).add(e),()=>{uq(this,kq).delete(e)}}addRoot(e){return _I(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{_I(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return ST(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return ST(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};Pq=tq(Iq),kq=new WeakMap,Mq=new WeakMap,Dq=new WeakSet,Tq=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of uq(this,kq))t.push(fq(this,Dq,Oq).call(this,r,e));return()=>{for(const e of t)e()}},Oq=function(e,t){let r=Nq.get(e);r||(r=new Map,Nq.set(e,r));let n=r.get(t);if(!n){const o=cT(e)?fq(this,Dq,qq).call(this,e,r,t):fq(this,Dq,Lq).call(this,e,r,t);if(!o)return()=>{};n=o,r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},qq=function(e,t,r){var n;const o=e.createElement("style"),{nonce:i}=null!=(n=this.options)?n:{};i&&o.setAttribute("nonce",i),o.textContent=r,e.head.prepend(o);const a=new MutationObserver(t=>{for(const r of t)for(const t of Array.from(r.removedNodes))if(t===o)return void e.head.prepend(o)});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),o.remove(),t.delete(r),0===t.size&&Nq.delete(e)}}},Lq=function(e,t,r){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const n=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=n?n:{};if(!o)return null;const i=new o;return i.replaceSync(r),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var n;if(xT(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(r),0===t.size&&Nq.delete(e)}}},sq(Pq,4,"additionalRoots",Aq,jq,Mq),sq(Pq,2,"sourceRoot",Rq,jq),sq(Pq,2,"targetRoot",Eq,jq),sq(Pq,2,"roots",Cq,jq),iq(Pq,jq),jq.configure=cM(jq);var _q=jq,zq="data-dnd-",Fq=`${zq}dropping`,$q="--dnd-",Hq=`${zq}dragging`,Bq=`${zq}placeholder`,Vq=[Hq,Bq,"popover","aria-pressed","aria-grabbing"],Wq=["view-transition-name"],Uq=`\n :is(:root,:host) [${Hq}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${$q}top, 0px) !important;\n left: var(${$q}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${$q}width, auto);\n max-width: var(${$q}width, auto);\n height: var(${$q}height, auto);\n max-height: var(${$q}height, auto);\n transform: var(${$q}transform, none) !important;\n transition: var(${$q}transition) !important;\n }\n\n :is(:root,:host) [${Bq}] {\n transition: none;\n }\n\n :is(:root,:host) [${Bq}='hidden'] {\n visibility: hidden;\n }\n\n [${Hq}] * {\n pointer-events: none !important;\n }\n\n [${Hq}]:not([${Fq}]) {\n translate: var(${$q}translate) !important;\n }\n\n [${Hq}][style*='${$q}scale'] {\n scale: var(${$q}scale) !important;\n transform-origin: var(${$q}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${Hq}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${Hq}]::backdrop, [${zq}overlay]:not([${Hq}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function Gq(e,t="hidden"){return _I(()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${zq}${jO("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach((e,t)=>{const r=n[t];if(CT(e)&&CT(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),ET(e)&&ET(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}}),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),AT.set(a,i),r.push(()=>{AT.delete(a),n.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(Bq,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function Kq(e,t){return e===t||kT(e)===kT(t)}function Yq(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&qO(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>tO(t))}function Xq(e){return"TR"===e.tagName}var Jq,Zq,Qq,eL,tL,rL,nL,oL=250,iL="ease";var aL=class extends(Zq=dM,Jq=[Xk],Zq){constructor(e,t){super(e,t),dq(this,tL),dq(this,eL,aq(Qq,8,this)),aq(Qq,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(_q),n=null==r?void 0:r.register(Uq);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(fq(this,tL,rL).bind(this,r)),this.registerEffect(fq(this,tL,nL))}};Qq=tq(Zq),eL=new WeakMap,tL=new WeakSet,rL=function(e){const{overlay:t}=this;if(!t||!e)return;const r=ST(t);return r?e.addRoot(r):void 0},nL=function(){var e,t,r,n,o,i,a;const{state:s,manager:l,options:c}=this,{dragOperation:u}=l,{position:d,source:p,status:f}=u;if(f.idle)return s.current={},void(s.initial={});if(!p)return;const{element:h}=p,m=p.pluginConfig(aL),g=null!=(t=null!=(e=null==m?void 0:m.feedback)?e:null==c?void 0:c.feedback)?t:"default",b="function"==typeof g?g(p,l):g;if(!h||"none"===b||!f.initialized||f.initializing)return;const{initial:v}=s,y=null!=(r=this.overlay)?r:h,x=hO(y),S=hO(h),w=!Kq(h,y),C=new DO(h,{frameTransform:w?S:null,ignoreTransforms:!w}),E=S.scaleX/x.scaleX,R=S.scaleY/x.scaleY;let{width:A,height:I,top:k,left:P}=C;w&&(A/=E,I/=R);const M=new OO(y),D=uO(h),{transition:T,translate:O,boxSizing:q,paddingBlockStart:L,paddingBlockEnd:N,paddingInlineStart:j,paddingInlineEnd:_,borderInlineStartWidth:z,borderInlineEndWidth:F,borderBlockStartWidth:$,borderBlockEndWidth:H}=D,B=T.split(",").filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(","),V=bO(D),W=D.transform,U="clone"===b,G="content-box"===q,K=G?parseInt(j)+parseInt(_)+parseInt(z)+parseInt(F):0,Y=G?parseInt(L)+parseInt(N)+parseInt($)+parseInt(H):0,X="move"===b||this.overlay?null:Gq(p,U?"clone":"hidden"),J=_I(()=>LO(l.dragOperation.activatorEvent));if(!v.translate)if(this.overlay&&V)v.translate={x:V.x,y:V.y};else if("none"!==O){const e=gO(O);e&&(v.translate=e)}if(!v.transformOrigin){const e=_I(()=>d.current),t=P+(null!=(n=null==V?void 0:V.x)?n:0),r=k+(null!=(o=null==V?void 0:V.y)?o:0);v.transformOrigin={x:(e.x-t*x.scaleX-x.x)/(A*x.scaleX),y:(e.y-r*x.scaleY-x.y)/(I*x.scaleY)}}const{transformOrigin:Z}=v,Q=k*x.scaleY+x.y,ee=P*x.scaleX+x.x;if(!v.coordinates&&(v.coordinates={x:ee,y:Q},1!==E||1!==R)){const{scaleX:e,scaleY:t}=S,{x:r,y:n}=Z;v.coordinates.x+=(A*e-A)*r,v.coordinates.y+=(I*t-I)*n}v.dimensions||(v.dimensions={width:A,height:I}),v.frameTransform||(v.frameTransform=x);const te=v.coordinates.x-ee,re=v.coordinates.y-Q,ne=(v.dimensions.width*v.frameTransform.scaleX-A*x.scaleX)*Z.x,oe=(v.dimensions.height*v.frameTransform.scaleY-I*x.scaleY)*Z.y,ie={x:te/x.scaleX+ne,y:re/x.scaleY+oe},ae=P+ie.x,se=k+ie.y;y.setAttribute(Hq,"true");const le=_I(()=>u.transform),ce=null!=(i=v.translate)?i:{x:0,y:0},ue=le.x*x.scaleX+ce.x,de=le.y*x.scaleY+ce.y,pe=yT();if(M.set({width:A-K,height:I-Y,top:se+pe.y,left:ae+pe.x,translate:`${ue}px ${de}px 0`,transform:this.overlay?"none":W,transition:B?`${B}, translate 0ms linear`:"translate 0ms linear",scale:w?`${E} ${R}`:"","transform-origin":`${100*Z.x}% ${100*Z.y}%`},$q),X&&(h.insertAdjacentElement("afterend",X),null==c?void 0:c.rootElement)){("function"==typeof c.rootElement?c.rootElement(p):c.rootElement).appendChild(h)}let fe,he,me;eO(y)&&(y.hasAttribute("popover")||y.setAttribute("popover","manual"),tO(y),y.addEventListener("beforetoggle",Yq));const ge=(be={placeholder:X,element:h,feedbackElement:y,frameTransform:x,transformOrigin:Z,width:A,height:I,top:k,left:P,widthOffset:K,heightOffset:Y,delta:ie,styles:M,dragOperation:u,getTranslate:()=>s.current.translate,getElementMutationObserver:()=>fe,getSavedCellWidths:()=>me,setSavedCellWidths:e=>{me=e}},new ResizeObserver(()=>{var e,t,r;const n=new DO(be.placeholder,{frameTransform:be.frameTransform,ignoreTransforms:!0}),o=null!=(e=be.transformOrigin)?e:{x:1,y:1},i=(be.width-n.width)*o.x+be.delta.x,a=(be.height-n.height)*o.y+be.delta.y,s=yT();if(be.styles.set({width:n.width-be.widthOffset,height:n.height-be.heightOffset,top:be.top+a+s.y,left:be.left+i+s.x},$q),null==(t=be.getElementMutationObserver())||t.takeRecords(),Xq(be.element)&&Xq(be.placeholder)){const e=Array.from(be.element.cells),t=Array.from(be.placeholder.cells);be.getSavedCellWidths()||be.setSavedCellWidths(e.map(e=>e.style.width));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}const l=null!=(r=be.getTranslate())?r:{x:0,y:0},c=be.left+i+s.x+l.x,u=be.top+a+s.y+l.y,d=n.width-be.widthOffset,p=n.height-be.heightOffset,f=be.frameTransform;be.dragOperation.shape=new EP(c*f.scaleX+f.x,u*f.scaleY+f.y,d*f.scaleX,p*f.scaleY)}));var be;const ve=new DO(y);_I(()=>u.shape=ve);const ye=lT(y),xe=e=>{this.manager.actions.stop({event:e})},Se=wT(ye);J&&ye.addEventListener("resize",xe),"idle"===_I(()=>p.status)&&requestAnimationFrame(()=>p.status="dragging"),X&&(ge.observe(X),fe=function(e,t,r){const n=new MutationObserver(n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||Vq.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(TO(e)&&TO(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(Wq.includes(e)||e.startsWith($q))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(h,X,U),he=function(e,t,r){const n=new MutationObserver(n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void tO(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void tO(r)}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement("afterend",t),tO(r))});return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(h,X,y));const we=null==(a=l.dragOperation.source)?void 0:a.id,Ce=()=>{var e;if(!J||null==we)return;const t=l.registry.draggables.get(we),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;uT(r)&&r.focus()},Ee=()=>{var e;if(null==fe||fe.disconnect(),null==he||he.disconnect(),ge.disconnect(),ye.removeEventListener("resize",xe),eO(y)&&(y.removeEventListener("beforetoggle",Yq),y.removeAttribute("popover")),y.removeAttribute(Hq),M.reset(),me&&Xq(h)){const t=Array.from(h.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=me[r])?e:""}p.status="idle";const t=null!=s.current.translate,r=u.status.dragging;X&&(!r&&t||X.parentElement!==y.parentElement)&&y.isConnected&&X.replaceWith(y),null==X||X.remove()},Re=null==c?void 0:c.dropAnimation,Ae=this,Ie=Qk(()=>{var e,t,r;const{transform:n,status:o}=u;if((n.x||n.y||s.current.translate)&&o.dragging){const o=null!=(e=v.translate)?e:{x:0,y:0},i={x:n.x/x.scaleX+o.x,y:n.y/x.scaleY+o.y},a=s.current.translate,l=_I(()=>u.modifiers),d=_I(()=>{var e;return null==(e=u.shape)?void 0:e.current}),p=null==c?void 0:c.keyboardTransition,f=J&&!Se&&null!==p?`${null!=(t=null==p?void 0:p.duration)?t:250}ms ${null!=(r=null==p?void 0:p.easing)?r:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(M.set({transition:B?`${B}, translate ${f}`:`translate ${f}`,translate:`${i.x}px ${i.y}px 0`},$q),null==fe||fe.takeRecords(),d&&d!==ve&&a&&!l.length){const e=CP.delta(i,a);u.shape=EP.from(d.boundingRectangle).translate(e.x*x.scaleX,e.y*x.scaleY)}else u.shape=new DO(y);s.current.translate=i}},function(){if(u.status.dropped){this.dispose(),p.status="dropping";const e=void 0!==(null==m?void 0:m.dropAnimation)?m.dropAnimation:void 0!==Ae.dropAnimation?Ae.dropAnimation:Re;let t=s.current.translate;const r=null!=t;if(t||h===y||(t={x:0,y:0}),!t||null===e)return void Ee();l.renderer.rendering.then(()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=oL,easing:s=iL}=null!=i?i:{};tO(e.feedbackElement);const[,l]=null!=(t=oT(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const c=null!=(r=e.placeholder)?r:e.element,u={frameTransform:Kq(e.feedbackElement,c)?null:void 0},d=new DO(e.feedbackElement,u),p=null!=(n=gO(uO(e.feedbackElement).translate))?n:e.translate,f=new DO(c,u),h=EP.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},$q),e.feedbackElement.setAttribute(Fq,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),RO({element:e.feedbackElement,keyframes:ZO(JO(JO({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:wT(lT(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(Fq),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({source:p,element:h,feedbackElement:y,placeholder:X,translate:t,moved:r,transition:T,alignment:p.alignment,styles:M,animation:null!=e?e:void 0,getElementMutationObserver:()=>fe,cleanup:Ee,restoreFocus:Ce})})}});return()=>{Ee(),Ie()}},sq(Qq,4,"overlay",Jq,aL,eL),iq(Qq,aL),aL.configure=cM(aL);var sL,lL,cL,uL,dL,pL,fL,hL=aL,mL=!0;cL=[Xk],uL=vO.Forward,sL=[Xk],lL=vO.Reverse;var gL=class{constructor(){dq(this,pL,aq(dL,8,this,mL)),aq(dL,11,this),dq(this,fL,aq(dL,12,this,mL)),aq(dL,15,this)}isLocked(e){return e!==vO.Idle&&(null==e?this[vO.Forward]===mL&&this[vO.Reverse]===mL:this[e]===mL)}unlock(e){e!==vO.Idle&&(this[e]=false)}};dL=tq(null),pL=new WeakMap,fL=new WeakMap,sq(dL,4,uL,cL,gL,pL),sq(dL,4,lL,sL,gL,fL),iq(dL,gL);var bL,vL,yL,xL,SL,wL,CL=[vO.Forward,vO.Reverse],EL=class{constructor(){this.x=new gL,this.y=new gL}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},RL=class extends dM{constructor(e){super(e);const t=KI(new EL);let r=null;this.signal=t,ok(()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new EL);const{delta:o}=e.dragOperation.position;if(r){const e={x:AL(o.x,r.x),y:AL(o.y,r.y)},n=t.peek();NI(()=>{for(const t of OP)for(const r of CL)e[t]===r&&n[t].unlock(r);t.value=n})}r=o})}get current(){return this.signal.peek()}};function AL(e,t){return Math.sign(e-t)}var IL=class extends(vL=fM,bL=[Xk],vL){constructor(e){super(e),dq(this,xL,aq(yL,8,this,!1)),aq(yL,11,this),dq(this,SL),dq(this,wL,()=>{if(!uq(this,SL))return;const{element:e,by:t}=uq(this,SL);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{var r;if(this.disabled)return!1;const n=this.getScrollableElements();if(!n)return pq(this,SL,void 0),!1;const{position:o}=this.manager.dragOperation,i=null==o?void 0:o.current;if(i){const{by:o}=null!=e?e:{},a=o?{x:kL(o.x),y:kL(o.y)}:void 0,s=a?void 0:this.scrollIntentTracker.current;if(null==s?void 0:s.isLocked())return!1;for(const e of n){const n=oO(e,o);if(n.x||n.y){const{speed:n,direction:l}=SO(e,i,a,null==t?void 0:t.acceleration,null==t?void 0:t.threshold);if(s)for(const e of OP)s[e].isLocked(l[e])&&(n[e]=0,l[e]=0);if(l.x||l.y){const{x:t,y:i}=null!=o?o:l,a=t*n.x,s=i*n.y;if(a||s){const t=null==(r=uq(this,SL))?void 0:r.by;if(this.autoScrolling&&t){if(t.x&&!a||t.y&&!s)continue}return pq(this,SL,{element:e,by:{x:a,y:s}}),aO.schedule(uq(this,wL)),!0}}}}}return pq(this,SL,void 0),!1};let t=null,r=null;const n=Kk(()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=RT(ST(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t}),o=Kk(()=>{const t=n.value,{documentElement:o}=pT(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=fO(n,{excludeElement:!1});return r=e,e}}if(t){const e=fO(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null},Yk);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new RL(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&LO(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function kL(e){return e>0?vO.Forward:e<0?vO.Reverse:vO.Idle}yL=tq(vL),xL=new WeakMap,SL=new WeakMap,wL=new WeakMap,sq(yL,4,"autoScrolling",bL,IL,xL),iq(yL,IL);var PL=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),ML=class extends dM{constructor(e,t){super(e,t);const r=e.registry.plugins.get(IL);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=ok(()=>{var t,n,o;if(this.disabled)return;const{position:i,status:a}=e.dragOperation;if(a.dragging){const e={acceleration:null==(t=this.options)?void 0:t.acceleration,threshold:"number"==typeof(null==(n=this.options)?void 0:n.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(o=this.options)?void 0:o.threshold};if(r.scroll(void 0,e)){r.autoScrolling=!0;const t=setInterval(()=>PL.schedule(()=>r.scroll(void 0,e)),10);return()=>{clearInterval(t)}}r.autoScrolling=!1}})}};ML.configure=cM(ML);var DL,TL=ML,OL={capture:!0,passive:!0},qL=class extends fM{constructor(e){super(e),dq(this,DL),this.handleScroll=()=>{null==uq(this,DL)&&pq(this,DL,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),pq(this,DL,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=ok(()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,OL),()=>{o.removeEventListener("scroll",this.handleScroll,OL)}}})}};DL=new WeakMap;function LL(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var NL,jL=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),_L=class extends CD{constructor(e,t){super(e),this.manager=e,this.options=t,dq(this,NL,[]),this.listeners=new IT,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!qO(e.target))return;if(t.disabled)return;const{keyboardCodes:n=jL.keyboardCodes,preventActivation:o=jL.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=ok(()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{LO(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}});return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),wO(n);const{center:o}=new DO(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=pT(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];uq(this,NL).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=jL.keyboardCodes}=null!=r?r:{};if($L(e,[...n.end,...n.cancel])){e.preventDefault();const t=$L(e,n.cancel);return void this.handleEnd(e,t)}$L(e,n.up)?this.handleMove("up",e):$L(e,n.down)&&this.handleMove("down",e),$L(e,n.left)?this.handleMove("left",e):$L(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:jL.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(TL);!1===(null==e?void 0:e.disabled)&&(e.disable(),uq(this,NL).push(()=>{e.enable()}))}cleanup(){uq(this,NL).forEach(e=>e()),pq(this,NL,[])}destroy(){this.cleanup(),this.listeners.clear()}};NL=new WeakMap,_L.configure=cM(_L),_L.defaults=jL;var zL,FL=_L;function $L(e,t){return t.includes(e.code)}var HL,BL;zL=new WeakMap;HL=new WeakMap,BL=new WeakMap;var VL=class{};VL.Delay=class extends RD{constructor(){super(...arguments),dq(this,HL),dq(this,BL)}onEvent(e){switch(e.type){case"pointerdown":pq(this,BL,mT(e)),pq(this,HL,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!uq(this,BL))return;const{x:t,y:r}=mT(e);IP({x:t-uq(this,BL).x,y:r-uq(this,BL).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){uq(this,HL)&&(clearTimeout(uq(this,HL)),pq(this,BL,void 0),pq(this,HL,void 0))}},VL.Distance=class extends RD{constructor(){super(...arguments),dq(this,zL)}onEvent(e){switch(e.type){case"pointerdown":pq(this,zL,mT(e));break;case"pointermove":if(!uq(this,zL))return;const{x:t,y:r}=mT(e),n={x:t-uq(this,zL).x,y:r-uq(this,zL).y},{tolerance:o}=this.options;if(o&&IP(n,o))return void this.abort();IP(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){pq(this,zL,void 0)}};var WL,UL=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!qO(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new VL.Delay({value:250,tolerance:5})]:function(e){if(!qO(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new VL.Delay({value:200,tolerance:0})]:[new VL.Delay({value:200,tolerance:10}),new VL.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!qO(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),GL=class extends CD{constructor(e,t){super(e),this.manager=e,this.options=t,dq(this,WL,new Set),this.listeners=new IT,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=UL.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=ok(()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=lT(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(ZL(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()});return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!qO(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=UL.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=uT(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=hO(t.element),{x:s,y:l}=mT(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const c=this.activationConstraints(e,t,r);e.sensor=this;const u=new ED(c,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;const d=bT(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:YL,options:{capture:!0}}]);uq(this,WL).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=mT(e),n=hO(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,aO.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=pT(t.target).body;try{o.setPointerCapture(t.pointerId)}catch(e){return void this.handleCancel(t)}const i=qO(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:YL,options:{passive:!1}},{type:"click",listener:YL},{type:"contextmenu",listener:YL},{type:"keydown",listener:this.handleKeyDown}]);uq(this,WL).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){const{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},uq(this,WL).forEach(e=>e()),uq(this,WL).clear()}destroy(){this.cleanup(),this.listeners.clear()}};WL=new WeakMap,GL.configure=cM(GL),GL.defaults=UL;var KL=GL;function YL(e){e.preventDefault()}function XL(){}var JL=new WeakSet;function ZL(e){e&&!JL.has(e)&&(e.addEventListener("touchmove",XL,{capture:!1,passive:!1}),JL.add(e))}var QL,eN,tN,rN,nN,oN,iN,aN,sN,lN,cN,uN,dN,pN,fN,hN,mN={modifiers:[],plugins:[wq,TL,class extends dM{constructor(e,t){super(e,t),this.manager=e;const{cursor:r="grabbing"}=null!=t?t:{},n=e.registry.plugins.get(_q),o=null==n?void 0:n.register(`* { cursor: ${r} !important; }`);if(o){const e=this.destroy.bind(this);this.destroy=()=>{o(),e()}}}},hL,class extends dM{constructor(e){super(e),this.manager=e;const t=e.registry.plugins.get(_q),r=null==t?void 0:t.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=ok(()=>{const{dragOperation:e}=this.manager;if(e.status.initialized)return LL(),document.addEventListener("selectionchange",LL,{capture:!0}),()=>{document.removeEventListener("selectionchange",LL,{capture:!0})}}),r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}}}],sensors:[KL,FL]},gN=class extends XD{constructor(e={}){const t=YD(e.plugins,mN.plugins),r=YD(e.sensors,mN.sensors),n=YD(e.modifiers,mN.modifiers);super(ZO(JO({},e),{plugins:[qL,IL,_q,...t],sensors:r,modifiers:n}))}},bN=class extends(tN=nD,eN=[Xk],QL=[Xk],tN){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i}=r,a=eq(r,["element","effects","handle"]);super(JO({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(uM))?t:[...r.sensors]).map(e=>{const t=e instanceof CD?e:r.registry.register(e.plugin),n=e instanceof CD?void 0:e.options;return t.bind(this,n)});return function(){n.forEach(e=>e())}}]},a),t),dq(this,nN,aq(rN,8,this)),aq(rN,11,this),dq(this,oN,aq(rN,12,this)),aq(rN,15,this),this.element=n,this.handle=i}};rN=tq(tN),nN=new WeakMap,oN=new WeakMap,sq(rN,4,"handle",eN,bN,nN),sq(rN,4,"element",QL,bN,oN),iq(rN,bN);var vN=class extends(sN=oD,aN=[Xk],iN=[Xk],sN){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=eq(r,["element","effects"]);const{collisionDetector:a=_O}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new DO(r),o=_I(()=>this.shape);return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=KI(!1);super(ZO(JO({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new QT(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),dq(this,fN),dq(this,cN,aq(lN,8,this)),aq(lN,11,this),dq(this,hN,aq(lN,12,this)),aq(lN,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){pq(this,fN,e,pN)}get element(){var e;return null!=(e=this.proxy)?e:uq(this,fN,dN)}};function yN(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}lN=tq(sN),cN=new WeakMap,fN=new WeakSet,hN=new WeakMap,uN=sq(lN,20,"#element",aN,fN,cN),dN=uN.get,pN=uN.set,sq(lN,4,"proxy",iN,vN,hN),iq(lN,vN);var xN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?L:D;function SN(){const e=I(0)[1];return O(()=>{e(e=>e+1)},[e])}function wN(e,t=[],r=!1){const n=k(e);return n.current=e,function(e,t=!1){const r=k(e.peek()),n=k(!1),o=SN();return xN(()=>ok(()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?V(o):o()}}),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(A(()=>Kk(()=>n.current()),t),r)}function CN(e,t){const r=k(new Map),n=SN();return xN(()=>{if(e)return ok(()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=_I(()=>n[1]),c=e[s];l!==c&&(i=!0,r.current.set(s,c),a=null!=(o=null==t?void 0:t(s,l,c))&&o)}i&&(a?queueMicrotask(()=>V(n)):n())});r.current.clear()},[e]),A(()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e,[e])}function EN(e,t){e()}function RN(e){const t=k(e);return xN(()=>{t.current=e},[e]),t}function AN(e,t,r=D,n=Object.is){const o=k(e);r(()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))},[t,e])}function IN(e,t){const r=k(yN(e));xN(()=>{const n=yN(e);n!==r.current&&(r.current=n,t(n))})}var kN=Object.defineProperty,PN=Object.defineProperties,MN=Object.getOwnPropertyDescriptors,DN=Object.getOwnPropertySymbols,TN=Object.prototype.hasOwnProperty,ON=Object.prototype.propertyIsEnumerable,qN=(e,t,r)=>t in e?kN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,LN=P(new gN),NN=j(_(({children:e},t)=>{const[r,n]=I(0),o=k(null),i=k(null),a=A(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),z(()=>{e(),n(e=>e+1)})}}),[]);return xN(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,r]),F(t,()=>a),null})),jN=[void 0,Yk];function _N(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,c=((e,t)=>{var r={};for(var n in e)TN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&DN)for(var n of DN(e))t.indexOf(n)<0&&ON.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const u=k(null),{plugins:d,modifiers:p,sensors:f}=c,h=YD(d,mN.plugins),m=YD(f,mN.sensors),g=YD(p,mN.modifiers),b=RN(o),v=RN(i),y=RN(s),x=RN(a),S=RN(l),w=RN(n),C=function(e){const t=k(null);t.current||(t.current=e());return N(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new gN(c)});return D(()=>{if(!u.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=u.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",e=>{const r=b.current;r&&t(()=>r(e,C))}),r.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),r.addEventListener("dragover",e=>{const r=y.current;r&&t(()=>r(e,C))}),r.addEventListener("dragmove",e=>{const r=x.current;r&&t(()=>r(e,C))}),r.addEventListener("dragend",e=>{const r=S.current;r&&t(()=>r(e,C))}),r.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>n.forEach(e=>e())},[C]),AN(h,()=>C&&(C.plugins=h),...jN),AN(m,()=>C&&(C.sensors=m),...jN),AN(g,()=>C&&(C.modifiers=g),...jN),or.jsxs(LN.Provider,{value:C,children:[or.jsx(NN,{ref:u,children:r}),r]})}function zN(){return q(LN)}function FN(e){var t;const r=null!=(t=zN())?t:void 0,[n]=I(()=>e(r));return n.manager!==r&&(n.manager=r),xN(n.register,[r,n]),n}function $N({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=k(null),l=zN(),c=null!=(a=wN(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,u="function"==typeof i?i(c):i;D(()=>{if(!s.current||!l||u)return;const e=l.plugins.find(e=>e instanceof hL);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,u]),D(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof hL);return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0},[l,r]);const d=A(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?HN:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})},[l]);return or.jsx(LN.Provider,{value:d,children:w(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!c||u)return null;if("function"==typeof e)return or.jsx(BN,{source:c,children:e});return e}())})}function HN(){return()=>{}}function BN({children:e,source:t}){return e(CN(t))}var VN,WN,UN,GN,KN,YN=Object.create,XN=Object.defineProperty,JN=Object.getOwnPropertyDescriptor,ZN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),QN=e=>{throw TypeError(e)},ej=["class","method","getter","setter","accessor","field","value","get","set"],tj=e=>void 0!==e&&"function"!=typeof e?QN("Function expected"):e,rj=(e,t,r,n,o)=>({kind:ej[e],name:t,metadata:n,addInitializer:e=>r._?QN("Already initialized"):o.push(tj(e||null))}),nj=(e,t,r,n,o,i)=>{for(var a,s,l,c,u=7&t,d=ej[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,JN(o,r)),h=n.length-1;h>=0;h--)(l=rj(u,r,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>r in e},c.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,tj(a)&&(f[d]=a);return f&&XN(o,r,f),o},oj=(e,t,r)=>t.has(e)||QN("Cannot "+r),ij=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},aj=class extends(UN=tP,WN=[Jk],VN=[Jk],UN){constructor(e){var t,r,n;super(ij.from(e),(e,t)=>ij.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(KN,5,this),t=this,n=0,(r=GN).has(t)?QN("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return ij.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=ij.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(oj(a=this,s=GN,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);NI(()=>{((e,t,r)=>{oj(e,t,"write to private field"),t.set(e,r)})(this,GN,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(ij.from(e)),this.velocity={x:0,y:0}}};KN=(e=>{var t;return[,,,YN(null!=(t=null==e?void 0:e[ZN("metadata")])?t:null)]})(UN),GN=new WeakMap,nj(KN,2,"delta",WN,aj),nj(KN,2,"direction",VN,aj),((e,t)=>{((e,t,r)=>{t in e?XN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,ZN("metadata"),e[3])})(KN,aj);var sj=(e=>(e.Horizontal="x",e.Vertical="y",e))(sj||{});Object.values(sj);var lj=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/ij.distance(t.shape.center,r),type:yD.PointerIntersection,priority:vD.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=ij.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:yD.ShapeIntersection,priority:vD.Normal}}return null})(e)};function cj(e){const{collisionDetector:t,data:r,disabled:n,element:o,id:i,accept:a,type:s}=e,l=FN(t=>new vN(((e,t)=>PN(e,MN(t)))(((e,t)=>{for(var r in t||(t={}))TN.call(t,r)&&qN(e,r,t[r]);if(DN)for(var r of DN(t))ON.call(t,r)&&qN(e,r,t[r]);return e})({},e),{register:!1,element:yN(o)}),t)),c=CN(l);return AN(i,()=>l.id=i),IN(o,e=>l.element=e),AN(a,()=>l.accept=a,void 0,Yk),AN(t,()=>l.collisionDetector=null!=t?t:lj),AN(r,()=>r&&(l.data=r)),AN(n,()=>l.disabled=!0===n),AN(s,()=>l.type=s),{droppable:c,get isDropTarget(){return c.isDropTarget},ref:O(e=>{var t,r;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(r=l.manager)?void 0:r.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}function uj(e){const t=zN();D(()=>{if(!t)return;const r=Object.entries(e).reduce((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e},[]);return()=>r.forEach(e=>null==e?void 0:e())},[t,e])}const dj=e=>Array.from({length:e},(e,t)=>t),pj=({id:e,sectionIndex:t,itemIndex:r})=>or.jsx("span",{children:`${e}-${t}-${r}`}),fj=j(()=>{const e=sb(RI)??pj,{startSectionIndex:t,startIndex:r,id:n}=sb(PI)??{};return"number"!=typeof t||"number"!=typeof r||void 0===n?null:or.jsx($N,{dropAnimation:null,children:or.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:or.jsx(e,{id:n,sectionIndex:t,itemIndex:r})})})}),hj=({sectionIndex:e,itemIndex:t,isDragging:r})=>{const n=sb(PI),o=n?.toSectionIndex===e&&n.toIndex===t;return or.jsx("div",{"data-key":"drop-target-indicator","data-testid":"drop-target-indicator",style:{visibility:o&&!r?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},mj=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,gj=j(({sectionIndex:e})=>{const t=sb(vI)[e],r=sb(yI),n=sb(xI),o=null!==sb(PI),i=n(e),a=r({sectionIndex:e}),{ref:s,isDropTarget:l}=cj({id:a,type:"section",accept:"item",collisionPriority:vD.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:or.jsxs(Md,{ref:s,sx:{margin:"4px",outline:mj(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[or.jsx(Md,{sx:{position:"relative",top:"4px"},children:or.jsx(hj,{sectionIndex:e,itemIndex:0,isDragging:!1})}),or.jsxs(Md,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[or.jsx(Uu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:i.title}),or.jsx(Uu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:i.message})]})]})}),bj=j(({id:e,sectionIndex:t})=>{const r=sb(EI);return void 0===r?null:w(r,{id:e,sectionIndex:t})});var vj=Object.defineProperty,yj=Object.defineProperties,xj=Object.getOwnPropertyDescriptors,Sj=Object.getOwnPropertySymbols,wj=Object.prototype.hasOwnProperty,Cj=Object.prototype.propertyIsEnumerable,Ej=(e,t,r)=>t in e?vj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rj=(e,t)=>{for(var r in t||(t={}))wj.call(t,r)&&Ej(e,r,t[r]);if(Sj)for(var r of Sj(t))Cj.call(t,r)&&Ej(e,r,t[r]);return e},Aj=(e,t)=>yj(e,xj(t)),Ij=class extends WD{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return Aj(Rj({},e),{[t]:r})}};Ij.configure=cM(Ij);var kj=Ij,Pj=kj.configure({axis:"x",value:0});kj.configure({axis:"y",value:0});var Mj=class extends WD{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return Aj(Rj({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};Mj.configure=cM(Mj);var Dj=Object.create,Tj=Object.defineProperty,Oj=Object.defineProperties,qj=Object.getOwnPropertyDescriptor,Lj=Object.getOwnPropertyDescriptors,Nj=Object.getOwnPropertySymbols,jj=Object.prototype.hasOwnProperty,_j=Object.prototype.propertyIsEnumerable,zj=e=>{throw TypeError(e)},Fj=(e,t,r)=>t in e?Tj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$j=(e,t)=>{for(var r in t||(t={}))jj.call(t,r)&&Fj(e,r,t[r]);if(Nj)for(var r of Nj(t))_j.call(t,r)&&Fj(e,r,t[r]);return e},Hj=(e,t)=>Oj(e,Lj(t)),Bj=["class","method","getter","setter","accessor","field","value","get","set"],Vj=e=>void 0!==e&&"function"!=typeof e?zj("Function expected"):e,Wj=(e,t,r,n,o)=>({kind:Bj[e],name:t,metadata:n,addInitializer:e=>r._?zj("Already initialized"):o.push(Vj(e||null))}),Uj=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},Gj=(e,t,r,n,o,i)=>{for(var a,s,l,c,u,d=7&t,p=e.length+1,f=Bj[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,qj({get[r](){return Yj(this,i)},set[r](e){return Jj(this,i,e)}},r)),b=n.length-1;b>=0;b--)(c=Wj(d,r,l={},e[3],m)).static=false,c.private=false,u=c.access={has:e=>r in e},u.get=e=>e[r],u.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},c),l._=1,void 0===s?Vj(s)&&(g[f]=s):"object"!=typeof s||null===s?zj("Object expected"):(Vj(a=s.get)&&(g.get=a),Vj(a=s.set)&&(g.set=a),Vj(a=s.init)&&h.unshift(a));return g&&Tj(o,r,g),o},Kj=(e,t,r)=>t.has(e)||zj("Cannot "+r),Yj=(e,t,r)=>(Kj(e,t,"read from private field"),t.get(e)),Xj=(e,t,r)=>t.has(e)?zj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Jj=(e,t,r,n)=>(Kj(e,t,"write to private field"),t.set(e,r),r);function Zj(e){return e instanceof P_||e instanceof k_}var Qj=class extends dM{constructor(e){super(e);const t=ok(()=>{const{dragOperation:t}=e;if(LO(t.activatorEvent)&&Zj(t.source)&&t.status.initialized){const t=e.registry.plugins.get(IL);if(t)return t.disable(),()=>t.enable()}}),r=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!LO(e.nativeEvent))return;if(!Zj(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:c}=r,{center:u}=r.shape.current,d=[],p=[];NI(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==c?void 0:c.id)&&Zj(e)||!e.element)continue;let r=e.shape;const n=new DO(e.element,{getBoundingClientRect:e=>hT(e,void 0,.2)});n.height&&n.width&&(("down"==s&&u.y+10<n.center.y||"up"==s&&u.y-10>n.center.y||"left"==s&&u.x-10>n.center.x||"right"==s&&u.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push(()=>e.shape=r)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,zO);NI(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=r;if(!e||!Zj(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,c=g!==a||b!==s,u=c?l:null==t?void 0:t.element;if(!u)return;wO(u);const d=new DO(u);if(!d)return;const p=EP.delta(d,EP.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),c?n.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{r(),t()}}};var e_=Object.defineProperty,t_=Object.defineProperties,r_=Object.getOwnPropertyDescriptors,n_=Object.getOwnPropertySymbols,o_=Object.prototype.hasOwnProperty,i_=Object.prototype.propertyIsEnumerable,a_=(e,t,r)=>t in e?e_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s_=(e,t)=>{for(var r in t||(t={}))o_.call(t,r)&&a_(e,r,t[r]);if(n_)for(var r of n_(t))i_.call(t,r)&&a_(e,r,t[r]);return e},l_=(e,t)=>t_(e,r_(t));function c_(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function u_(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function d_(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const c=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex(e=>c(e,a.id)),o=e.findIndex(e=>c(e,s.id));if(-1===n||-1===o){if(u_(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const u=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of u)if(-1===f&&(f=t.findIndex(e=>c(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>c(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&u_(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return l_(s_({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return l_(s_({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&u_(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return l_(s_({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return l_(s_({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return l_(s_({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return l_(s_({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,c_)}var p_="__default__";function f_(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function h_(e,t){return e.index-t.index}function m_(e){return Array.from(e).sort(h_)}var g_,b_,v_,y_,x_,S_,w_,C_,E_=[Qj,class extends dM{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof P_){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(m_(r)));return t},r=[e.monitor.addEventListener("dragover",(e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!Zj(o)||!Zj(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),c=s?l:a.get(i.sortable.group);l&&c&&queueMicrotask(()=>{e.defaultPrevented||r.renderer.rendering.then(()=>{var n,u,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=m_(l),g=s?m:m_(c),b=null!=(u=o.sortable.group)?u:p_,v=null!=(d=i.sortable.group)?d:p_,y={[b]:m,[v]:g},x=d_(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),f_(f,S,h,w),NI(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),r.actions.setDropTarget(o.id).then(()=>r.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;Zj(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=m_(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(f_(r,i.index,a,o.index),NI(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of r)e()}}}],R_={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},A_=new class{constructor(){Wk(this,eP,new WeakMap)}get(e,t){var r;return e?null==(r=Vk(this,eP).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return Vk(this,eP).has(e)||Vk(this,eP).set(e,new Map),null==(n=Vk(this,eP).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=Vk(this,eP).get(e))?void 0:t.clear():void 0}};b_=[Xk],g_=[Xk];var I_=class{constructor(e,t){Xj(this,y_,Uj(v_,8,this)),Uj(v_,11,this),Xj(this,x_),Xj(this,S_),Xj(this,w_,Uj(v_,12,this)),Uj(v_,15,this),Xj(this,C_),this.register=()=>(NI(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{NI(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{NI(()=>{this.droppable.destroy(),this.draggable.destroy()})};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=R_,plugins:c}=r,u=((e,t)=>{var r={};for(var n in e)jj.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Nj)for(var n of Nj(e))t.indexOf(n)<0&&_j.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);const d=YD(c,E_);this.droppable=new P_(u,t,this),this.draggable=new k_(Hj($j({},u),{plugins:d,effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&A_.clear(this.manager),(null==n?void 0:n.dragging)&&A_.set(this.manager,this.id,_I(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:r}=this,n=Yj(this,S_),o=Yj(this,x_);e===n&&t===o||(Jj(this,S_,e),Jj(this,x_,t),this.animate())},()=>{var e,t;const{target:r}=this,{isDragSource:n}=this.draggable;"move"===(null!=(t=null==(e=this.draggable.pluginConfig(hL))?void 0:e.feedback)?t:"default")&&n&&(this.droppable.disabled=!r)},...n()],type:s,sensors:a}),t,this),Jj(this,C_,u.element),this.manager=t,this.index=i,Jj(this,S_,i),this.group=o,Jj(this,x_,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=A_.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=A_.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){_I(()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then(()=>{const{element:n}=this;if(!n)return;for(const e of n.getAnimations())!("transitionProperty"in e)||"transform"!==e.transitionProperty&&"translate"!==e.transitionProperty&&"scale"!==e.transitionProperty||e.cancel();const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=uO(n),l=AO(n,s,!1),c=AO(n,s);if(i||a){const r=wT(lT(n))?Hj($j({},t),{duration:0}):t;RO({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${c.x}px ${c.y}px ${c.z}`]},options:r}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){NI(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){NI(()=>{const t=Yj(this,C_),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),Jj(this,C_,e)})}get element(){var e,t;const r=Yj(this,C_);if(r)return null!=(t=null!=(e=AT.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set plugins(e){this.draggable.plugins=YD(e,E_)}set disabled(e){NI(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){NI(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:_O}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){NI(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};v_=[,,,Dj(null)],y_=new WeakMap,x_=new WeakMap,S_=new WeakMap,w_=new WeakMap,C_=new WeakMap,Gj(v_,4,"index",b_,I_,y_),Gj(v_,4,"group",g_,I_,w_),((e,t)=>{return Fj(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(v_,I_);var k_=class extends bN{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},P_=class extends vN{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},M_=Object.defineProperty,D_=Object.defineProperties,T_=Object.getOwnPropertyDescriptors,O_=Object.getOwnPropertySymbols,q_=Object.prototype.hasOwnProperty,L_=Object.prototype.propertyIsEnumerable,N_=(e,t,r)=>t in e?M_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j_=(e,t)=>{for(var r in t||(t={}))q_.call(t,r)&&N_(e,r,t[r]);if(O_)for(var r of O_(t))L_.call(t,r)&&N_(e,r,t[r]);return e};function __(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:c,disabled:u,modifiers:d,sensors:p,target:f,type:h,plugins:m}=e,g=j_(j_({},R_),e.transition),b=FN(t=>new I_(((e,t)=>D_(e,T_(t)))(j_({},e),{transition:g,register:!1,handle:yN(s),element:yN(a),target:yN(f)}),t)),v=CN(b,z_);return AN(o,()=>b.id=o),xN(()=>{NI(()=>{b.group=c,b.index=l})},[b,c,l]),AN(h,()=>b.type=h),AN(t,()=>b.accept=t,void 0,Yk),AN(i,()=>i&&(b.data=i)),AN(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},EN),IN(s,e=>b.handle=e),IN(a,e=>b.element=e),IN(f,e=>b.target=e),AN(u,()=>b.disabled=!0===u),AN(p,()=>b.sensors=p),AN(r,()=>b.collisionDetector=r),AN(n,()=>b.collisionPriority=n),AN(m,()=>b.plugins=m,void 0,Yk),AN(g,()=>b.transition=g,void 0,Yk),AN(d,()=>b.modifiers=d,void 0,Yk),AN(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:O(e=>{b.handle=null!=e?e:void 0},[b]),ref:O(e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:O(e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:O(e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function z_(e,t,r){return!("isDragSource"!==e||r||!t)}const F_=({id:e,itemIndex:t,sectionIndex:r})=>or.jsx("div",{children:`${r}:${t} - ${e}`}),$_=j(({id:e,itemIndex:t,sectionIndex:r})=>{const n=sb(AI),o=sb(CI),i=sb(vI).at(r)??0,a=sb(yI)({sectionIndex:r}),{ref:s,isDragging:l,handleRef:c}=__({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[Pj],plugins:[Qj],data:{id:e,sectionIndex:r,sectionKey:a,itemIndex:t}}),u=void 0!==n?()=>{n({id:e,itemIndex:t,sectionIndex:r})}:void 0,d=o??F_;return or.jsx(hf,{className:"section-item-container","data-testid":"section-item",onClick:u,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:or.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[or.jsx(hj,{isDragging:l,itemIndex:t,sectionIndex:r}),or.jsx(d,{id:e,itemIndex:t,sectionIndex:r,dragHandleRef:c}),t===i-1&&or.jsx(hj,{isDragging:!1,itemIndex:t+1,sectionIndex:r})]})})}),H_=j(({sectionIndex:e})=>{const t=sb(yI),r=sb(vI).at(e)??0,n=t({sectionIndex:e});return or.jsxs(Md,{className:"exploration-list",style:{overflow:"auto"},children:[or.jsx(Ep,{}),or.jsx(bj,{id:n,sectionIndex:e}),or.jsx(Ep,{}),or.jsx(gj,{sectionIndex:e}),or.jsx(tf,{sx:{padding:"2px 8px"},children:dj(r).map(r=>{const n=t({sectionIndex:e,itemIndex:r});return or.jsx($_,{id:n,itemIndex:r,sectionIndex:e},n)})})]},n)}),B_=[KL.configure({activationConstraints:[new VL.Distance({value:5})]}),FL],V_=j(()=>{const e=sb(bI),t=sb(yI),r=lb(MI("start")),n=lb(MI("over")),o=lb(MI("end"));return or.jsxs(_N,{sensors:B_,onDragEnd:e=>{o(e)},onDragOver:e=>{n(e)},onDragStart:e=>{r(e)},children:[or.jsx(Md,{style:{display:"flex",flexDirection:"column"},children:dj(e).map(e=>or.jsx(H_,{sectionIndex:e},t({sectionIndex:e})))}),or.jsx(fj,{})]})}),W_=j(e=>or.jsx(rI,{atoms:DI,atomFamilies:TI,children:or.jsx(OI,{props:e,children:or.jsx(V_,{})})})),U_="ChartExploration.Table.ColumnSectionEmpty.Title",G_="ChartExploration.Table.NoColumnsFound.Title",K_="#177fe6",Y_=Yg(e=>{const t=e(dA),r=e(pA).length>0,n=(e=>e?G_:U_)(r),o=(e=>e?"":"ChartExploration.Table.ColumnSectionEmpty.Message")(r);return()=>({title:t(n),message:""===o?"":t(o)})}),X_=Yg(e=>{const t=e(TA),r=e(HA);return 0===t.length?"disabled":0===r.size?"none":r.size===t.length?"all":"some"}),J_=Yg(null,(e,t)=>{const r=e(TA),n=e(HA),o="all"!==e(X_)&&"disabled"!==e(X_),i=[],a=new Set(e(_A)),s=new Set(e(zA));if(o){const t=new Set(r.filter(e=>!n.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!0,type:e(OA)[t]}))),i.forEach(e=>a.add(e.id)),i.forEach(e=>s.delete(e.id))}else{const t=new Set(r.filter(e=>n.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!1,type:e(OA)[t]}))),i.forEach(e=>a.delete(e.id)),i.forEach(e=>s.add(e.id))}t(_A,a),t(zA,s),rA({items:i,handler:e(cA),model:e(lA),currentColumnIds:e(TA),handlerQueue:e(LA)})}),Z_=({children:e})=>or.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),Q_=({children:e})=>{const t=k(null),r=sb(X_),[,n]=cb(J_),o=sb(dA);return or.jsxs(Md,{ref:t,"aria-label":o("Common.Columns"),className:"exploration-section-header",tabIndex:0,sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${K_} inset`}},children:[or.jsx(rp,{inputProps:{"aria-label":o("ChartExploration.Header.ToggleAll"),..."some"===r&&{"aria-checked":"mixed"}},disabled:"disabled"===r,checked:"all"===r,indeterminate:"some"===r,onChange:n,size:"small",style:{flexShrink:0,padding:9}}),or.jsx(Z_,{children:e})]})},ez=()=>{const e=sb(dA);return or.jsx(Q_,{children:e("Common.Columns")})},tz=_((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),rz=_((e,t)=>or.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[or.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),or.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]})),nz=_((e,t)=>or.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:or.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),oz=zc("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),iz=zc(nz)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${K_} inset`}})),az=({children:e})=>or.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),sz={dimension:tz,measure:rz},lz=({id:e,itemIndex:t})=>{const r=sb(DA(t)),[n,o]=cb(HA),i=sb(dA),a=S.useRef(null),s=S.useRef(null),l=S.useRef(null);if(!r)return null;const c=r.title,u=r.type,d=sz[u],p=!n.has(e);return or.jsxs(Md,{ref:a,className:"exploration-item",onClick:t=>{t.stopPropagation(),-1!==e&&o({id:e,isAlternative:p,type:u})},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:c,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${K_} inset`}},children:[or.jsxs(Md,{ref:s,className:"exploration-item-focus",component:"div",tabIndex:0,sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${K_} inset`}},children:[or.jsx(rp,{checked:n.has(e),"aria-label":i("ChartExploration.ListItem.Label",c),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0}}),or.jsx(Md,{children:or.jsx(d,{height:12,style:{opacity:1,marginRight:"8px"}})}),or.jsx(az,{children:c})]}),or.jsx(iz,{ref:l,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()}})]})},cz=()=>{const e=sb(PA),t=sb(Y_),r=sb(wA),n=sb(MA);return!r&&or.jsx(W_,{numberOfSections:1,numberOfItemsInSection:[e],keyExtractor:n,emptyTexts:t,headerRenderer:ez,itemRenderer:lz})},uz=_((e,t)=>or.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:or.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})})),dz=()=>{const[e,t]=cb(pA),r=sb(dA),n=S.useRef(null),o=sb(PA),i=O(e=>{t(e.target.value)},[t]),a=0===e.length||0===o?r("Common.Search.NoResultsAvailable"):r("ChartExploration.Table.Search.ResultsFound",o.toString());return or.jsxs(Md,{ref:n,style:{position:"sticky",top:0,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:0,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[or.jsx(oz,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:a}),or.jsx(hh,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":r("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:r("Common.Search"),onChange:i,startAdornment:or.jsx(Bp,{position:"start",children:or.jsx(uz,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},pz=e=>{const t=Cm();return or.jsx($c,{theme:t,children:or.jsx(tb,{children:or.jsx(BA,{props:e,children:or.jsxs(Md,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[or.jsx(dz,{}),or.jsx(cz,{})]})})})})},fz=e=>e.flags.isEnabled("VNA-655-STRAIGHT_TABLE_NEW_EXPLORATION")?{component:pz,classification:{tags:["exploration"],exclusive:!0}}:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};var hz=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(hz||{}),mz=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(mz||{}),gz=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(gz||{}),bz=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(bz||{});const vz=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,yz=e=>{if(!Array.isArray(e))return"";let t="{<";const r=[];if(e.forEach(e=>{let t,n=`[${e.field}]${e.exclude?"-":""}={`,o="}";switch(e.type){case gz.SEARCH:t=(e=>{let t="",r="";const n=e.options?.mode;if(!n)return"";switch(n){case hz.BEGINNING_OF_WORD:t="*^",r="*";break;case hz.ENDS_WITH:t="*";break;case hz.STARTS_WITH:r="*";break;case hz.MATCHES_EXACTLY:break;case hz.CONTAINS:default:t="*",r="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${r}"`:""})(e);break;case gz.CONDITION:t=(e=>{const{options:t}=e,r=t?.mode===mz.GENERAL,n=t?.modifier?.type===bz.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!n&&(!t.firstValue?.aggregator||!t.firstValue?.field)||n&&!t.firstValue?.fixedValue||r&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";r&&n?(i=`${t.conditionField?.aggregator}(${vz(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!r&&n?(i="",a=`${t.firstValue?.fixedValue}`,s=""):r||n?(i=`${t.conditionField?.aggregator}(${vz(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${vz(t.firstValue?.field)})`):(i=`${vz(e.field)}`,a=`${t.firstValue?.aggregator}(total ${vz(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let c="";if(o.length>1){if(!n&&(!t.secondValue?.aggregator||!t.secondValue?.field)||n&&!t.secondValue?.fixedValue)return"";let e,a;r&&n?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!r&&n?(e=`${t.secondValue?.fixedValue}`,a=""):r||n?(e=`${t.secondValue?.aggregator}(${vz(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${vz(t.secondValue?.field)})`,a=` and ${i}`),c=`${a}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case gz.CLEAR_SELECTION:t=`[${e.field}]=`,n="",o="";break;case gz.VALUES:default:t=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==t&&r.push(`${n}${t}${o}`)}),0===r.length)return;return t+=`${r.join(",")}>}`,t},xz=[];for(let e=0;e<256;++e)xz.push((e+256).toString(16).slice(1));const Sz=new Uint8Array(16);function wz(e,t,r){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const t=e.random??e.rng?.()??crypto.getRandomValues(Sz);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(xz[e[t+0]]+xz[e[t+1]]+xz[e[t+2]]+xz[e[t+3]]+"-"+xz[e[t+4]]+xz[e[t+5]]+"-"+xz[e[t+6]]+xz[e[t+7]]+"-"+xz[e[t+8]]+xz[e[t+9]]+"-"+xz[e[t+10]]+xz[e[t+11]]+xz[e[t+12]]+xz[e[t+13]]+xz[e[t+14]]+xz[e[t+15]]).toLowerCase()}(t)}(e)}const Cz=()=>crypto?.randomUUID?.()??wz(),Ez=({qDimensions:e,qMeasures:t})=>[...e.map(e=>({id:e.qDef.cId,isDimension:!0,def:e})),...t.map(e=>({id:e.qDef.cId,isDimension:!1,def:e}))],Rz=({previousColumns:e,nextColumns:t,qInterColumnSortOrder:r})=>{const n=new Map(e.map((e,t)=>[t,e.qDef.cId])),o=new Map(t.map((e,t)=>[e.qDef.cId,t]));return r.map(e=>{const t=n.get(e);return(void 0===t?void 0:o.get(t))??e})};class Az extends s{#c;constructor(e,t){super(e),this.#c=t}#u(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.keys(t).length;this.hcProperties.qLayoutExclude.allColumnOrder={...t,...Object.fromEntries(e.map((e,t)=>[e,r+t]))}}#d(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude.allColumnOrder=Object.fromEntries(r.map(([e],t)=>[e,t]))}#p(e,t){const r=this.hcProperties.qLayoutExclude.allColumnOrder??{},n={};for(const[o,i]of Object.entries(r))n[o===e?t:o]=i;this.hcProperties.qLayoutExclude.allColumnOrder=n}async addDimension(e,t=!1){const r=await this.addDimensions([e],t);return 0===r.length?void 0:r[0]}async addDimensions(e,t=!1){const r=await super.addDimensions(e,t);return this.#u(r.map(e=>e.qDef.cId)),r}async removeDimension(e,t=!1){const r=await this.removeDimensions([e],t);return 0===r.length?void 0:r[0]}async removeDimensions(e,t=!1){const r=await super.removeDimensions(e,t);return this.#d(r.map(e=>e.qDef.cId)),r}async replaceDimension(e,t){const r=this.getDimensions()[e].qDef.cId,n=await super.replaceDimension(e,t),o=n.qDef.cId;return this.#p(r,o),n}async addMeasure(e,t=!1){const r=await this.addMeasures([e],t);return 0===r.length?void 0:r[0]}async addMeasures(e,t=!1){const r=await super.addMeasures(e,t);return this.#u(r.map(e=>e.qDef.cId)),r}async removeMeasure(e,t=!1){const r=await this.removeMeasures([e],t);return 0===r.length?void 0:r[0]}async removeMeasures(e,t=!1){const r=await super.removeMeasures(e,t);return this.#d(r.map(e=>e.qDef.cId)),r}async replaceMeasure(e,t){const r=this.getMeasures()[e].qDef.cId,n=await super.replaceMeasure(e,t),o=n.qDef.cId;return this.#p(r,o),n}async#f(e){const t=this.getMeasure(e);if(t){const r=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);if(-1===r)return;await super.removeMeasure(r,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#h(e){const t=this.getMeasure(e);if(t){const r=this.getMeasures().findIndex(t=>t.qDef.cId===e);if(-1===r)return;await super.removeMeasure(r,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#m(e){const t=this.getDimension(e);if(t){const r=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===r)return;await super.removeDimension(r,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#g(e){const t=this.getDimension(e);if(t){const r=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===r)return;await super.removeDimension(r,!1),await super.addDimension(t,!0,this.getDimensions().length)}}async toggleAlternatives(e,t){for(const t of e)"dimension"===t.type?await(t.isAlternative?this.#m(t.id):this.#g(t.id)):await(t.isAlternative?this.#f(t.id):this.#h(t.id));this.updateColumnOrders(t)}updateColumnOrders(e){const t=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:r,nextAllColumnOrderById:n})=>{const o=Ez({qDimensions:e,qMeasures:t}),i=[...e,...t],a=new Map(n.map((e,t)=>[e,t])),s=o.toSorted((e,t)=>{const r=a.get(e.id),n=a.get(t.id);return void 0===r||void 0===n?0:r-n}),l=s.filter(e=>e.isDimension).map(e=>e.def),c=s.filter(e=>!e.isDimension).map(e=>e.def),u=[...l,...c],d=new Map(u.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:l,qMeasures:c,qInterColumnSortOrder:Rz({previousColumns:i,nextColumns:u,qInterColumnSortOrder:r}),qColumnOrder:s.map(e=>d.get(e.id)).filter(e=>void 0!==e)}})({qDimensions:this.hcProperties.qDimensions,qMeasures:this.hcProperties.qMeasures,qInterColumnSortOrder:this.hcProperties.qInterColumnSortOrder,nextAllColumnOrderById:e});this.hcProperties.qDimensions=t.qDimensions,this.hcProperties.qMeasures=t.qMeasures,this.hcProperties.qColumnOrder=t.qColumnOrder,this.hcProperties.qInterColumnSortOrder=t.qInterColumnSortOrder,this.hcProperties.qLayoutExclude.allColumnOrder=e.reduce((e,t,r)=>(e[t]=r,e),{})}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,r=Array.isArray(t)&&t.includes("$numeric"),n=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:n?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:Cz(),qTags:Array.isArray(t)?t:[],isNumeric:r};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=yz(o),i}addFilters(e){const t=[];for(const r of e)t.push(this.addFilterField(r));return t}#b(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=yz(t),t}removeFilters(e){if(0===e.length)return[];const t=[...e].sort((e,t)=>t-e),r=this.getFilters().filter((t,r)=>e.includes(r));for(const e of t)this.#b(e);return r}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#c.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const Iz=(e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;return e.splice(r,1),r};function kz(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function Pz(e){return e>0?0:1}function Mz(e){return e.translator.get("Visualizations.Descriptions.Column")}function Dz(e){return{measures:{min:Pz,max:1e3,description:()=>Mz(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;kz(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties,i=(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n;Iz(o,i)}},dimensions:{min:Pz,max:1e3,description:()=>Mz(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return kz(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;Iz(o,n)}}}}let Tz=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e.EditableDate="editableDate",e}({}),Oz=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const qz=e=>{switch(e?.type){case"url":return Tz.Link;case"image":return Tz.Image;case"indicator":return Tz.Indicator;case"miniChart":return Tz.MiniChart;default:return Tz.Text}},Lz=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),Nz=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>qz(e.qDef.representation)===Tz.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},jz=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:Lz({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>qz(e.qDef.representation)===Tz.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>qz(e.qDef.representation)===Tz.Link&&e.qDef.representation?.urlPosition===Oz.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>qz(e.qDef.representation)===Tz.Link&&e.qDef.representation?.urlPosition===Oz.Attribute},...Nz(r)}},_z=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[Tz.Image],i=!n?.("qMiniChartDef")&&t[Tz.MiniChart],a=!n?.("tableIndicators")&&t[Tz.Indicator],s=o&&t[Tz.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>qz(e.qDef.representation)===Tz.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var zz,Fz={};var $z,Hz=(zz||(zz=1,$z=Fz,(()=>{var e={370:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=n&&i(n)?n:[]):u=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{default:()=>ke});var o=r(370),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var c="".concat(" ","(").concat(" "),u="".concat(" ",")").concat(" ");function d(e){return c+e+u}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var c=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(n&&2===n.length){var u=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(u,f),b=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function w(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:f,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=g(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var u=g(0),p=g(1);return"If(Count(".concat(u,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:w,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return w(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(c);if(-1!==r){var n=t.indexOf(u);if(-1!==n)return t.substring(r+c.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=C({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(c),r=e.indexOf(u);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=l.OPTIONS.find(function(t){return t.value===e.decomposition});return t?l.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(l.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var I=i().bind(null,!0),k={},P=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function D(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}}),e}function q(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){q(e[n],t[n])||(r=!1)}),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!q(e[n],t[n]))return!1;return!0}return e===t}k.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?I({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);q(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(k.generate(a,i,s)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(q(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(k.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){D(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},k.apply=function(e,t){t.forEach(function(t){var r,n,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return R(e)}(n=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]}),I(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var u=O(e,t.from);P(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])})},k.clone=function(e){return I({},e)},k.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):I(e,t)};const L=k;var N="accumulation";function j(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function _(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var c=s(n,"qHyperCubeDef.qDimensions",[]),u=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:a}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,u,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(c,1),m=E.getDimComp(c,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(_(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(_(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=j(t,e);return i&&!i.disabled}}}};var $="movingAverage";function H(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function B(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var c=a;void 0===c&&(c=E.getNumDimensions({properties:o,layout:i}));var u=s(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,c),h=E.getAboveComp(n,c,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,c);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:i})){var v=E.getDimComp(u,1),y=E.getDimComp(u,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=H(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function G(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function K(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const X={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(K(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:l.OPTIONS},steps:{refFn:function(t){return"".concat(K(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=G(t,e);return i&&!i.disabled}}}};var J="difference";function Z(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===J)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var c=s(n,"qHyperCubeDef.qDimensions",[]),u=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:a}),d=E.getAboveComp(r,l,u),p="".concat(u," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(c,1),h=E.getDimComp(c,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(J))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===J)return r[n]}(t,e);return i&&!i.disabled}}}};var te="normalization";function re(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var c=s(n,"qHyperCubeDef.qDimensions",[]),u=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a,s){var l=ae(t),c=se(t,r,n),u=""===l&&""===c?"":l||c,d=le(o,i),p=ce(o,i,a),f=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(u," ").concat(d).concat(p," Aggr(").concat(u," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(u," ").concat(d).concat(p," Aggr(").concat(u," ").concat(e,", ").concat(f,"))")}(u,d,r.field,r.value,p,l,r.primaryDimension,r.ignoreNegative)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="library id deleted",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId",ge="qDef.qLabel",be="qDef.qLabelExpression",ve="qDef.base.qLabel",ye="qDef.base.qLabelExpression",xe="qDef.qAggrFunc",Se="qDef.base.qAggrFunc",we="qDef.base";const Ce={getExpression:function(e){var t=s(e,fe);return void 0!==t?t:s(e,pe)},getExpressionRef:function(e){return void 0!==s(e,fe)?fe:pe},getLibraryIdRef:function(e){return s(e,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},getLabelRef:function(e){return s(e,we)?ve:ge},getLabelExpressionRef:function(e){return s(e,we)?ye:be}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,me,s(e,he)),a(e,ve,s(e,ge)),a(e,ye,s(e,be)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,he,s(e,me)),a(e,ge,s(e,ve)),a(e,be,s(e,ye)),s(e,xe)&&s(e,Se)&&a(e,xe,s(e,Se)),delete e.qDef.base)},isValid:function(e){var t=s(e,fe),r=s(e,me);return void 0!==t||void 0!==r}};const Re=Ee;function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}var Ie={accumulation:F,movingAverage:W,difference:ee,normalization:ue,timeSeriesDecomposition:X};const ke={modifiers:Ie,apply:Me,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&Pe[e.id]&&Pe[e.id].masterItemSubscriber&&(Pe[e.id].masterItemSubscriber&&Pe[e.id].masterItemSubscriber.unsubscribe(),delete Pe[e.id])},hasActiveModifiers:Oe,getActiveModifier:qe,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Ie[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return Ie[e]&&Ie[e].isApplicable({properties:r,layout:n})})},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=je(e);Ve({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ye({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:Le};var Pe={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,l=!1;Pe[t.id]=Pe[t.id]||{isFirstTime:!0};var c=Pe[t.id].isFirstTime;if(Pe[t.id].isFirstTime=!1,r&&"object"===Ae(r))return De({model:t,properties:r});var u=t?t.layout:void 0,d=s(u,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(u,"qHyperCube.qMeasureInfo"),f=Pe[t.id].lastReloadTime;if(Pe[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:u})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Be({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:u,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ve({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:u,masterItem:a,isFirstTime:c})?t.getEffectiveProperties().then(function(e){var r=i()(!0,{},e);ze(r);var n=Xe(r);return We({model:t}).then(function(o){return Ue({libraryIds:n,model:t}).then(function(n){return h&&function(e){var t=e.properties;Ne(t).forEach(function(e){return function(e){var t=e.measure;if(Be({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(r++,"object"!==Ae(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&$e(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:r}),De({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(l)})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ae(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then(function(){var e=i()(!0,{},r);return Ne(r).forEach(function(e){return Te(e)}),Ke({oldProperties:e,newProperties:r,model:t})})}({model:t,properties:e})}):Promise.resolve(l)}function De(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,l=void 0!==a&&a,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),ze(n);var p=Xe(n);return Je({model:t,libraryIds:p,masterItem:c}).then(function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Ne(r)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:r}))return t.forEach(function(e){return Te(e)}),Promise.resolve();var l=o?void 0:Xe(r);return We({model:n,dimensionAndFieldList:a}).then(function(e){return Ue({libraryIds:l,model:n,libraryItemsProps:o}).then(function(n){t.forEach(function(t){var o=t.qDef.modifiers;n&&Ve({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(a++,"object"!==Ae(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ie[e.type].initModifier(e,t);var l=t.qLibraryId||u&&u.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ie[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||Le(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Le(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Fe(t)):Te(t)})})})}({measures:o,properties:n,model:t,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return l?Ke({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function Te(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&!Ie[e.type]})}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ve({modifiers:je(e),properties:r,layout:n})})}function qe(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ie[n.type]&&!n.disabled)return n}}function Le(e){var t=qe(e);return!t||Ie[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function _e(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function ze(e){Ne(e).forEach(function(e){return function(e){var t=qe(e);t&&(void 0!==t.outputExpression&&_e(t)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)})}function Fe(e){var t=je(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ae(t)&&(t.disabled||!Ie[t.type]&&_e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function $e(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Be(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&Ve({modifiers:je(t),properties:r,layout:n})}function Ve(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ae(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function We(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ue(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ge(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ke(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),Ge)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&s(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):function(e,t,r){if(!e)return Promise.resolve();var n=L.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(n,!0)):Promise.resolve()}(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ye(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=je(t);if(Ve({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ye({modifiers:n,properties:e})}}),s(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Pe[t.id].masterItemSubscriber=Pe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach(function(r){t[r]=s(e,r)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function u(){Object.keys(n).forEach(function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){n[e]={listener:t.layoutSubscribe(c),unbindCloseListnener:d(t,function(){return e=t.id,r(de),delete n[e],void u();var e}),enabled:!1,properties:l(t.layout)}}).catch(function(){})}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:a}),u(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()}),n={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Pe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in $z.default=n.default,n)-1===["default"].indexOf(Ze)&&($z[Ze]=n[Ze]);Object.defineProperty($z,"__esModule",{value:!0})})()),Fz),Bz=Zt(Hz);const Vz="TOTAL_OFF",Wz={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},Uz={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},Gz=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!Bz.hasActiveModifiers({measures:[e],properties:t.properties})||Bz.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),Kz={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:lg.Auto,translation:"Common.Auto"},{value:lg.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:lg.Pixels,translation:"Object.Table.Column.Pixels"},{value:lg.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:lg.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===lg.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===lg.Percentage}},Yz=e=>({...Wz,...e.flags.isEnabled("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?{columnExpression:{type:"items",grouped:!0,items:[{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}]}]}}:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}},...Uz,...Kz}),Xz=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},subTotalGroup:{type:"items",show:e.flags.isEnabled("TLV-2303-SUB-TOTALS")&&!e.anything.sense?.isUnsupportedFeature?.("totals"),items:[{uses:"divider"},{type:"string",component:"switch",translation:"properties.showSubTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:Vz,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Vz,translation:"properties.off"}},{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"Common.Label",defaultValue:()=>e.translator.get("properties.subTotals"),show:e=>e.qOtherTotalSpec?.qTotalMode!==Vz},{uses:"divider"}]},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}}),Jz=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:Gz(e)}},Zz=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:Xz(e)},presentation:{type:"items",translation:"properties.presentation",items:{...Yz(e),...jz(e)}}}}}),Qz=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:Jz(e)},presentation:{type:"items",translation:"properties.presentation",items:{...Yz(e),..._z(e,{[Tz.Image]:!0,[Tz.Indicator]:!0,[Tz.MiniChart]:!0})}}}}}),eF=e=>({...Zz(e),...Qz(e)}),tF=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...eF(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),rF=e=>({type:"items",items:[{ref:e,type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]}),nF=e=>rF("dimensionNullValues"===e?"nullValueRepresentation.dimensionText":"nullValueRepresentation.text"),oF={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},iF=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),aF=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),sF=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},lF=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>sF(e,!0))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...we(n).filter(e=>!a.includes(e)).map(e=>sF(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),cF=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],uF=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>sF(e,!1))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...cF.filter(e=>!i.includes(e)).map(e=>sF(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),dF=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:lF({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:uF({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:aF(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:aF(`${e}.background`,"properties.background",(t,r)=>{const n=r?Am.WHITE:Am.TRANSPARENT;return o(t,e,"backgroundColor")??n},a)}}}}),pF=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n,isNullValueText:o,translation:i})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{nullValueText:o?nF(e):void 0,content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:aF(`${e}.fontColor`,void 0,t=>n(t,e,"color")??t.color)}},background:aF(`${e}.background`,"properties.background",t=>n(t,e,"backgroundColor")??r??"transparent")}}}}),fF=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"subTotalValues":return e.object?.straightTableV2?.subTotal?.label?.value?.[r];case"nullValues":case"dimensionNullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},hF=e=>e.grid?.zebraStripes?.show,mF={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},gF=e=>e?.content?.hoverEffect,bF={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:gF,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:gF,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},vF=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,yF=e=>e.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),xF=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:dF({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:fF,disableNoneCallback:vF}),dimensionValueSection:dF({section:"dimensionValues",translator:t,flags:e,getThemeValue:fF}),measureValueSection:dF({section:"measureValues",translator:t,flags:e,getThemeValue:fF}),totalRowSection:dF({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:fF,disableNoneCallback:vF}),subTotalRowSection:e.isEnabled("TLV-2303-SUB-TOTALS")?dF({section:"subTotalValues",defaultFontStyle:["bold"],translation:"properties.subTotals",translator:t,flags:e,getThemeValue:fF,disableNoneCallback:vF}):void 0,...yF(e)?{dimensionNullSection:pF({section:"dimensionNullValues",fallbackBackground:Am.NULL_VALUE_BACKGROUND,getThemeValue:fF,isNullValueText:!0}),nullValues:pF({section:"nullValues",translation:"properties.pivot.measureNullValues",fallbackBackground:Am.NULL_VALUE_BACKGROUND,getThemeValue:fF,isNullValueText:!0})}:{nullValues:pF({section:"nullValues",fallbackBackground:Am.NULL_VALUE_BACKGROUND,getThemeValue:fF,isNullValueText:!1})},grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...mF},border:aF("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??Am.BORDER_MEDIUM),divider:aF("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??Am.BORDER_HEAVY)}}}},hoverEffectSection:bF,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:hF,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:hF,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:hF,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:hF,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),SF=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[xF(e),iF(e),{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1},e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")?void 0:nF()]},...oF}}),wF={uses:"sorting"},CF={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},EF=e=>({type:"items",component:"accordion",items:{data:tF(e),sorting:wF,addOns:CF,settings:SF(e)}});function RF(e){return{definition:EF(e),exploration:fz(e),data:Dz(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},migrate:{properties(t){const r=t.components?.find(e=>"theme"===e.key);return e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")&&r?.nullValues&&!r.dimensionNullValues?(r.dimensionNullValues={...r.nullValues},t):t}},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return Sv({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>mv({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:t=>new Az(t,e.translator),usePropertyHandler:"sn-table-data"}}}var AF,IF={exports:{}};
|
|
103
103
|
/*!
|
|
104
104
|
* CSSJanus. https://www.mediawiki.org/wiki/CSSJanus
|
|
105
105
|
*
|
|
@@ -118,4 +118,4 @@ function na(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldFo
|
|
|
118
118
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
119
|
* See the License for the specific language governing permissions and
|
|
120
120
|
* limitations under the License.
|
|
121
|
-
*/var fF=(dF||(dF=1,function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+u+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+r+"|"+u+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+u+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+c+v+"[^;}]+;?)","gi"),I=new RegExp("("+c+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),M=new RegExp(l+"(left)"+b+y+v,"gi"),D=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),O=new RegExp(l+"(right)"+x,"gi"),q=/(:dir\( *)ltr( *\))/g,L=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter(function(e){return e}),o=r.slice(6,10).filter(function(e){return e}),i=r[10]||"";return t+(o.length?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(A,"`NOFLIP_SINGLE`"),a=new n(I,"`NOFLIP_CLASS`"),s=new n(R,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(q,"$1`TMPLTR`$2").replace(L,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(O,"$1left").replace(w,"right")),r=r.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(M,"$1"+e).replace(D,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(V,Q).replace(W,te).replace(U,ne).replace(G,ne).replace(K,te).replace(Y,re).replace(X,re).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(pF,pF.exports)),pF.exports),hF=Zt(fF),mF="comm",gF="rule",bF="decl",vF=Math.abs,yF=String.fromCharCode;function xF(e){return e.trim()}function SF(e,t,r){return e.replace(t,r)}function wF(e,t){return 0|e.charCodeAt(t)}function CF(e,t,r){return e.slice(t,r)}function EF(e){return e.length}function RF(e,t){return t.push(e),e}var AF=1,IF=1,kF=0,PF=0,MF=0,DF="";function TF(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:AF,column:IF,length:a,return:"",siblings:s}}function OF(){return MF=PF>0?wF(DF,--PF):0,IF--,10===MF&&(IF=1,AF--),MF}function qF(){return MF=PF<kF?wF(DF,PF++):0,IF++,10===MF&&(IF=1,AF++),MF}function LF(){return wF(DF,PF)}function NF(){return PF}function jF(e,t){return CF(DF,e,t)}function _F(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function zF(e){return xF(jF(PF-1,HF(91===e?e+2:40===e?e+1:e)))}function FF(e){for(;(MF=LF())&&MF<33;)qF();return _F(e)>2||_F(MF)>3?"":" "}function $F(e,t){for(;--t&&qF()&&!(MF<48||MF>102||MF>57&&MF<65||MF>70&&MF<97););return jF(e,NF()+(t<6&&32==LF()&&32==qF()))}function HF(e){for(;qF();)switch(MF){case e:return PF;case 34:case 39:34!==e&&39!==e&&HF(MF);break;case 40:41===e&&HF(e);break;case 92:qF()}return PF}function BF(e,t){for(;qF()&&e+MF!==57&&(e+MF!==84||47!==LF()););return"/*"+jF(t,PF-1)+"*"+yF(47===e?e:qF())}function VF(e){for(;!_F(LF());)qF();return jF(e,PF)}function WF(e){return function(e){return DF="",e}(UF("",null,null,null,[""],e=function(e){return AF=IF=1,kF=EF(DF=e),PF=0,[]}(e),0,[0],e))}function UF(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y=0,x="",S=o,w=i,C=n,E=x;g;)switch(h=y,y=qF()){case 40:108!=h&&58==wF(E,d-1)?(v++,E+="("):E+=zF(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=zF(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=yF(y);break}E+=FF(h);break;case 92:E+=$F(NF()-1,7);continue;case 47:switch(LF()){case 42:case 47:RF(KF(BF(qF(),NF()),t,r,l),l),5!=_F(h||1)&&5!=_F(LF()||1)||!EF(E)||" "===CF(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=EF(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=yF(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=SF(E,/\f/g,"")),f>0&&(EF(E)-d||0===m)&&RF(f>32?YF(E+";",n,r,d-1,l):YF(SF(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(RF(C=GF(E,t,r,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)UF(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===wF(E,3))break;case 108:if(97===wF(E,2))break;default:u=0;case 100:case 109:case 115:}u?UF(e,C,C,n&&RF(GF(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,n?S:w):UF(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+EF(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==OF())continue;switch(E+=yF(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(EF(E)-1)*b,b=1;break;case 64:45===LF()&&(E+=zF(qF())),p=LF(),u=d=EF(x=E+=VF(NF())),y++;break;case 45:45===h&&2==EF(E)&&(m=0)}}return i}function GF(e,t,r,n,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=CF(e,p+1,p=vF(g=a[m])),x=e;v<h;++v)(x=xF(g>0?f[v]+" "+y:SF(y,/&\f/g,f[v])))&&(l[b++]=x);return TF(e,t,r,0===o?gF:s,l,c,u,d)}function KF(e,t,r,n){return TF(e,t,r,mF,yF(MF),CF(e,2,-2),0,n)}function YF(e,t,r,n,o){return TF(e,t,r,bF,CF(e,0,n),CF(e,n+1,-1),n,o)}function XF(e,t,r){switch(e.type){case"@import":case bF:case mF:return e.return=e.return||e.value;case gF:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===mF&&(e.children=e.value)})}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),XF);return EF(n)?e.return=e.value+"{"+n+"}":""}function JF(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===gF&&(!e.parent||"@media"===e.parent.type||e.parent.type===gF)){var o=hF.transform(XF(e));e.children=o?WF(o)[0].children:[],e.return=""}}Object.defineProperty(JF,"name",{value:"stylisRTLPlugin"});const ZF=QA(({options:e,...t})=>Wg(zm(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);class QF{#c={on:new Map,once:new Map};#u=10;#d(e){this.listenerCount(e)>this.#u&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#p(e,t,r){const n=this.#c[e].get(t)??new Set;n.add(r),this.#c[e].set(t,n),this.#d(t)}setMaxListeners(e){this.#u=e}on(e,t){this.#p("on",e,t)}once(e,t){this.#p("once",e,t)}off(e,t){this.#c.on.get(e)?.delete(t),this.#c.once.get(e)?.delete(t)}emit(e,...t){this.#c.on.get(e)?.forEach(e=>{e(...t)}),this.#c.once.get(e)?.forEach(e=>{e(...t)}),this.#c.once.delete(e)}listenerCount(e){return(this.#c.on.get(e)?.size??0)+(this.#c.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#c.on.clear(),this.#c.once.clear()):(this.#c.on.delete(e),this.#c.once.delete(e))}}const e$=Wg(()=>new QF);let t$=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),r$=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),n$=function(e){return e.A="ascending",e.D="descending",e}({}),o$=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const i$=[0,0],a$=e=>"number"==typeof e&&!Number.isNaN(+e),s$=e=>a$(e.qNum),l$=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),c$=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),u$=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},d$=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,c=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-c}:{color:l.color,t:c-.5}:a.gradient?{color:s.color,t:1-(.5+c/2)}:i.gradient?{color:l.color,t:c/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return ie(e.localPaletteColors[t].color??"").blend(ie(s.color??""),s.t)},p$=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort((e,t)=>e.value-t.value),e.limits=r.map(e=>({...e,value:c$(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:u$(n,t,r)}))),n},f$=(e,t,r,n)=>{const o=p$(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=d$(e,a,t);break}n=i}return r})(o,t);return a},h$=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!a$(e));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!a$(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},m$=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=h$(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!a$(t))return 0;let a=r&&a$(r)?Math.min(r,t):0;const s=n.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},g$=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=m$(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return u$(o,r.limitPaletteColorIndex,n);const a=c$(r.limitRange,t);return f$(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let c=l?.position||"right";return"rtl"===r&&(c="right"===c?"left":"right"),{color:a,iconKey:s,position:c}},b$=(ym().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),v$=4/3,y$="12px",x$="600",S$="Source Sans Pro, sans-serif",w$={height:"auto",fontSize:y$,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},C$={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:x$},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},E$=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,R$=(e,t)=>e.representation.type===vz.Image&&"fitHeight"===e.representation.imageSize?E$(t,e.representation):e.align,A$=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",I$=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},k$=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,P$=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",M$=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",D$=24,T$=Lc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),O$=Lc(Ad,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?A$(e,n):void 0})),q$=Lc(Ad,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${Jm}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${Jm}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),L$=Lc(Ad,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),N$=Lc(Ad,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),j$=Lc(Nu,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n})),_$=Wg(),z$=Wg(0),F$=Wg(0),$$=e=>parseInt(e??w$.fontSize,10)*v$,H$=4/3,B$=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function V$(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const W$=(e,t)=>e?{borderBottomColor:wm.DARK_MODE_BORDER,borderRightColor:wm.DARK_MODE_BORDER,borderLeftColor:wm.DARK_MODE_BORDER,borderTopColor:wm.DARK_MODE_BORDER}:{borderLeftColor:wm.BORDER_MEDIUM,borderRightColor:wm.BORDER_MEDIUM,borderTopColor:wm.BORDER_HEAVY,borderBottomColor:t?wm.BORDER_HEAVY:wm.BORDER_LIGHT},U$=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*H$+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},G$=e=>e.components?.find(e=>"theme"===e.key),K$=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:B$(r?.fontColor)?V$(wm.TEXT,t,r?.fontColor):i||wm.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...W$(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function Y$(e,t,r){const n=G$(e)?.header,o=K$("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=Rm(o.background??wm.WHITE,ig),o.activeBackground=Rm(o.background??wm.WHITE,ag),o}const X$=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in C$)(e)&&Object.assign(t,C$[e])),t};function J$(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&Im(i);a&&(n[r[t]]=a),o=i?X$(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=Cm(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const Z$=25e4,Q$=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,eH=5e6,tH=5e5;const rH={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:nH(e),value:nH(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}};function nH(e){try{return decodeURIComponent(e)}catch{return e}}function oH(e){if(!(this instanceof oH))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>rH.fromSearchString(t.search)}})}function iH(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}oH.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},oH.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=iH(t.key),t.value?r+=`=${iH(t.value)}`:r+=t.useEqualSign?"=":"";return r};var aH=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},sH=class{decode(e){let t="";const r=new aH(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}};const lH=e=>e>=0&&e<=1114111,cH=e=>e.match(/[\s]/);var uH=class extends sH{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!cH(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return lH(a)?String.fromCharCode(a):"�"}},dH=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},pH=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return dH.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return dH.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||dH.newInstanceIfNeeded(e,t,this._value)}},fH=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new pH);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const hH=(()=>{const e=[],t=[],r=new fH;let n,o,i;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})();var mH=class extends sH{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,hH.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=hH.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&lH(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&lH(n)?String.fromCharCode(n):null}},gH=class extends sH{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),lH(i))?String.fromCharCode(i):(e.reset(),null)}};let bH;"undefined"!=typeof document&&(bH=document.createElement("div"));const vH=Array.prototype.indexOf,yH=[",",".","_"," "],xH=[",",".","-","_"," "],SH={width:["%"],height:["%"]},wH={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},CH={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":wH.image,"background-color":wH.color,"border-color":wH.color,"border-image":wH.image,color:wH.color,icon:wH.image,"list-style-image":wH.image,"outline-color":wH.color},EH={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function RH(e,t,r){let n;if(t){if(vH)return vH.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function AH(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return bH.appendChild(r),t=bH.innerHTML,bH.removeChild(r),t}function IH(e,t,r){let n,o,i,a,s,l,c,u,d;for(e=PH(e).toLowerCase(),t=PH(t),i=0;i<EH.attr_name.length;i++)if(e.match(EH.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<EH.attr_val.length;i++)if(t.toLowerCase().match(EH.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=SH[e],n||(n=xH),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&RH(c,n)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return r||(o+='"'),o}function kH(e,t,r){let n,o,i,a,s,l,c,u,d,p;if(e=PH(e).toLowerCase(),t=PH(t),RH(e,EH.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<EH.css_val.length;n++)if(t.toLowerCase().indexOf(EH.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=CH[e],o||(o=wH.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&RH(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function PH(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new mH,new gH,new uH];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}const MH=[];for(let e=0;e<255;e++)MH[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const DH={html:e=>AH(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=kH(t,r[t],!0),i+=kH(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=IH(e,t[e],!0),o+=IH(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function TH(e,t){throw new Error(t)}var OH={canonicalize:PH,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?DH.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&TH(this,"Invalid parameter type"),DH.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&TH(this,"Invalid parameter type"),DH.attr(e)):void TH(this,"Invalid parameter type")},encodeForAttr:IH,encodeForAttr2:function(e){return IH("nonsens",e,!0)},encodeForCSS:kH,encodeForHref:function(e){PH(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new oH(e),r=oH.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+oH.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=yH),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),RH(o,t)>=0||null==MH[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:AH,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=PH(t).toLowerCase():TH(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:r=tH,maxByteSizeImage:n=eH}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=Q$.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const qH=(e,t)=>t.qAttrExps?.qValues?.[e],LH=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},NH=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!OH.isSafeDataURL(t))?{type:vz.Text,url:void 0,text:e,labelStructure:o}:{type:vz.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:LH(n,a),labelStructure:o,imageBox:i},jH=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:vz.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:vz.MiniChart,text:n,miniChart:a}},_H=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===yz.Attribute?void 0:r?.urlLabel},zH=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:vz.Link,url:OH.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:vz.Text,url:void 0,text:t,labelStructure:e}}},FH=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:c})=>{const u=xz(t),d=s(e);return u===vz.Image&&c[vz.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=qH(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),NH({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return NH({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=qH(r.imageLabel??-1,e)?.qText??n;return NH({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:vz.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):u===vz.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===yz.Attribute){const i=_H(r.url??-1,e,t);return zH({labelStructure:n,text:o||i||"",url:i})}if(i===yz.Dimension){const i=_H(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),zH({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:vz.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):u===vz.Indicator&&c[vz.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:vz.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):u===vz.MiniChart&&c[vz.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?jH(e,t,i,d):{type:vz.Text,url:void 0,text:d,labelStructure:a}},$H=Wg(e=>{const t=e(Lb),r=e(vb);return e(yb),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}}),HH=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),BH=({cId:e})=>e??cz(),VH=1e4;function WH(e,t){return[...t].reverse().find(t=>t*e<=VH)||Math.floor(VH/e)}function UH(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function GH(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function KH(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return a$(r?.qNum)}function YH(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const XH=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",JH=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=ie(r??""),i=ie(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?Rm(s,ig):void 0,c=s?Rm(s,ag):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:Cm(s),headerMenuHoverBackground:l,headerMenuActiveBackground:c}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:c}};const ZH=(e,t,r,n=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const r=e<n,o=(r?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,r,n,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:c,visibleDimInfoIdx:u,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===sg.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==u){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=u,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:I,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:M,qApprMaxGlyphCount:D,columnWidth:T,qLibraryId:O,headerColor:q}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:O,pageColIdx:c,qApprMaxGlyphCount:D,qReverseSort:M,columnWidth:T??{type:og.Auto},selectionColIdx:S,isActivelySorted:g,id:BH(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:HH(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:GH(e,f,c,d??-1),...!f&&{isTotalNumeric:KH(e,d??-1)},...YH(I,b,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?JH(q,r):void 0}}(e,o,t,r,n))},QH=(e,t,r,n)=>n?(e?r.nullValueRepresentation?.dimensionText??"-":r.nullValueRepresentation?.text)??t.qText??"-":(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",eB=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,tB={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},rB=Wg(e=>{const t=e(nB),r=e(pb),n=e($H),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>VH?{...t,rowsPerPage:WH(l,t.rowsPerPageOptions),page:0}:t}),nB=Wg(tB),oB=Wg(e=>{const t=e(pb),r=e(Lb),n=e($H);return Db(t,r)?{page:n.page||tB.page,rowsPerPage:n.rowsPerPage||tB.rowsPerPage,rowsPerPageOptions:tB.rowsPerPageOptions}:e(rB)},(e,t,r)=>{t(nB,e=>({...e,...r}))}),iB=!0,aB=e=>-1===e.qElemNumber||!!e.qIsTotalCell,sB=Wg(async e=>{const t=e(pb),r=e(Lb),n=e(Ob),{page:o,rowsPerPage:i}=e(oB),a=e($H),s=e(Fb),l=e(cb),c=e(hb),u=e(ub),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=UH(t,r),v=ZH(t,iB,n,u),y=l.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});c||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const S=x.at(0)?.qMatrix.map((e,r)=>{const o=[],i=e.some(aB);return v.forEach((a,s)=>{const c=e[s],u=QH(a.isDim,c,t,y),d=!a.isDim&&c.qIsNull,p=a.isDim&&eB(c,a.isDim),f=d||p?l$(u):s$(c);o[s]={id:cz(),...c,align:XH(f,a.bodyTextAlign,n,iB),rowIdx:r+h,colIdx:a.colIdx,pageRowIdx:r,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i,isTotalRow:i,isLastRow:r===m-1,isNumeric:f,isNull:(!d||!f)&&eB(c,a.isDim),representation:FH({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>d||p?u:c.qText,direction:n,enabledFeatures:{[vz.Image]:!0,[vz.Indicator]:!0,[vz.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),lB=sA(sB,e=>e),cB=Wg(e=>{const t=e(pb),r=e(Lb),n=e(Rb),o=e(Ob),i=e(ub),a=ZH(t,false,o,i),s=UH(t,r),l=t.qHyperCube.qSize.qcy,c=Math.min(Z$,l),u=l>Z$&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/c),paginationNeeded:u}}),uB={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},dB=Wg(),pB=Wg(e=>{const t=e(jb),r=e(dB);return r||(t?e(lB)??uB:e(cB))}),fB=Wg(e=>e(pB).totalsPosition),hB=Wg(e=>e(pB).columns),mB=Wg(e=>e(hB).length),gB=Wg(e=>e(pB).rows),bB=Wg(e=>e(pB).totalRowCount),vB=Wg(e=>e(pB).totalColumnCount),yB=Wg(e=>e(pB).paginationNeeded),xB=Wg(e=>{const t=e(Ub),r=e(Yb),n=e(pb),o=e(fB),i=e(gB),a=o.atTop,s=function(e,t,r,n){const o=G$(e)?.content,i=K$("content",t,o);i.background=t.background.color;const a=U$(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),u=t.getStyle("object","","straightTableV2.content.hover.color"),d=B$(l)||!!u,p=B$(s)||!!c,f=d||p;let h;h=B$(s)?V$(wm.HOVER,t,s):c||(d?"":wm.HOVER);const m=f?V$(Cm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=Y$(n,r,!a),c=function(e,t,r){const n=G$(e)?.content,o=K$("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=Y$(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:c}}),SB=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},wB=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=SB(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},CB=(e,t,r,n=wm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=wB(e,t,r);return Tm(i,o,a,n)??n},EB=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return y$}},RB=e=>e?.some(e=>"italic"===e)?"italic":"normal",AB=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?x$:"normal",IB=e=>!1===e?1:3,kB=e=>e?.some(e=>"underline"===e)?"underline":"none",PB=Wg(e=>{const t=e(Lb),r=e(jb),n=e(Yb),o=e(pb),i=e(xB),a=e(ub),{header:s,dimensionValues:l,measureValues:c,totalValues:u,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=G$(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=r?wm.WHITE:wm.TRANSPARENT,v=CB(n,s,"object.straightTableV2.dimension.label.name.backgroundColor",b),y=t?.maxLineCount??m?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),x=(g?f:void 0)??p;return{header:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??S$,fontSize:EB(s?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:RB(s?.fontStyle),fontWeight:AB(s?.fontStyle,x$),textDecoration:kB(s?.fontStyle),color:SB(n,s?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??wm.TEXT,background:v},headerMenuHoverBackground:Rm(v,ig),headerMenuActiveBackground:Rm(v,ag),dimension:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??S$,fontSize:EB(l?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:RB(l?.fontStyle),fontWeight:AB(l?.fontStyle,"normal"),textDecoration:kB(l?.fontStyle),color:SB(n,l?.fontColor)??SB(n,m?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??wm.TEXT,background:wB(n,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??wm.TRANSPARENT}},measure:{values:{fontFamily:c?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??S$,fontSize:EB(c?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:RB(c?.fontStyle),fontWeight:AB(c?.fontStyle,"normal"),textDecoration:kB(c?.fontStyle),color:SB(n,c?.fontColor)??SB(n,m?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??wm.TEXT,background:wB(n,c,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??wm.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??S$,fontSize:EB(u?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:RB(u?.fontStyle),fontWeight:AB(u?.fontStyle,x$),textDecoration:kB(u?.fontStyle),color:SB(n,u?.fontColor)??SB(n,m?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??wm.TEXT,background:CB(n,u,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??n.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??S$,fontSize:EB(d?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:RB(d?.fontStyle),fontWeight:AB(d?.fontStyle,x$),textDecoration:kB(d?.fontStyle),color:SB(n,d?.fontColor)??SB(n,m?.fontColor)??n.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??wm.TEXT,background:CB(n,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:RB(x?.fontStyle),fontWeight:AB(x?.fontStyle,"normal"),textDecoration:kB(x?.fontStyle),color:SB(n,x?.fontColor)??SB(n,m?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??wm.TEXT,background:SB(n,x?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??wm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:RB(p?.fontStyle),fontWeight:AB(p?.fontStyle,"normal"),textDecoration:kB(p?.fontStyle),color:SB(n,p?.fontColor)??SB(n,m?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??wm.TEXT,background:SB(n,p?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??wm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??IB(o.multiline?.wrapTextInCells),headerLineClamp:IB(o.multiline?.wrapTextInHeaders),border:SB(n,h?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?wm.DARK_MODE_BORDER:wm.BORDER_MEDIUM),divider:SB(n,h?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??wm.BORDER_HEAVY,hoverColors:{color:SB(n,m?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:SB(n,m?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:SB(n,h?.zebraStripes?.color?.odd),background:SB(n,h?.zebraStripes?.background?.odd)},even:{color:SB(n,h?.zebraStripes?.color?.even),background:SB(n,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===SB(n,x?.background),overrideDimNullValueColor:void 0===SB(n,x?.fontColor),overrideMeasNullValueBackground:void 0===SB(n,p?.background),overrideMeasNullValueColor:void 0===SB(n,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:Em(n),contentStaticLineCount:y}}),MB=Wg(e=>{const t=e(PB);return Math.max($$(t.header.fontSize)+8,32)}),DB=Wg(e=>{const t=e(PB),r=$$(t.totalRow.fontSize);return Math.max(r+9,24)}),TB=Wg(e=>{const t=e(PB),r=e(mb),n=e(gb);return Math.max(r>0?$$(t.dimension.values.fontSize):0,n>0?$$(t.measure.values.fontSize):0)}),OB=Wg(e=>{const t=e(PB),r=e(TB),n=(t.contentStaticLineCount||1)*r;return Math.max(n+9,24)}),qB=Wg(e=>{const t=e(PB),r=$$(t.subTotalRow.fontSize),n=(t.contentStaticLineCount||1)*r;return Math.max(n+9,24)}),LB=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:c},label:u,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(ng.PixelsMax,Math.max(ng.PixelsMin,f)),i-=n[a]};switch(s){case og.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?ng.PixelsDefault:+e)(l),h();break;case og.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?ng.PercentageDefault:+e)(c)/100*t,h();break;case og.FitToContent:e.representation?.type===vz.Image?o.push(a):(f=r(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case og.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{n[t]=Math.max(ng.AutoMinTable,e)})}return n},NB=Wg(e=>{const t=e(PB),r=e(pB).totalsPosition,n=e(xb),{measureText:o}=e(ZF({...t.header,fontWeight:x$})),{measureText:i}=e(ZF({...t.totalRow,fontWeight:x$})),{estimateWidth:a}=e(ZF(t.dimension.values)),{estimateWidth:s}=e(ZF(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,c,u,d,p)=>{let f;if(n){const t=4;let r=25;r+=t+24,c&&(r+=20+t),u&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=D$),t+=D$,t+=D$,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),jB=Wg(null),_B=Wg(e=>{const t=e(pB),r=e(Wb).width,n=e(F$),o=e(NB);return LB(t.columns,r-n,o)}),zB=Wg(e=>e(jB)??e(_B),(e,t,r)=>{t(jB,r)}),FB=bA(e=>{const t=e(e$);!1===e(_$)&&t.emit("done-adjusting-column-width")}),$B=bA((e,t)=>{e(pb),t(jB,null)}),HB=Wg(e=>e(zB).reduce((e,t)=>e+t,0)),BB=({children:e})=>(nb($B),nb(FB),e);function VB(e){const t=ym();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),bc({...t,direction:e})}const WB={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},UB={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},GB=Lc("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...WB},"&::-moz-range-track":{...WB},"&::-ms-track":{...WB},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...UB},"&::-moz-range-thumb":{...UB},"&::-ms-thumb":{...UB},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}})),KB=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:u,direction:d="ltr"})=>{const p=Km({translator:u.translator}),f=k({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!c,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};Um(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,ng.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:og.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{Pm(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{Pm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===tg.Left||e.key===tg.Right){Pm(e);const t=5,r=e.key===tg.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===tg.Space||e.key===tg.Enter?(Pm(e),s(e),l?.(!1),x()):e.key===tg.Esc&&(Pm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return or.jsx(GB,{style:b,hoverColor:o,isLastColumn:r,className:rg,"data-testid":rg,onMouseDown:e=>{Pm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:og.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Pm(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":ng.PixelsMin,"aria-valuemax":ng.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},YB=_((e,t)=>or.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:or.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),XB=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},JB=Lc(Ad,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"})),ZB=Lc(YB,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),QB=Lc(Hf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),eV=Lc(xp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),tV=Lc(Gf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),rV=Lc(Gf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"})),nV=Lc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),oV=Lc("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),iV=Lc(Hu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),aV=Lc(mf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),sV=_((e,t)=>or.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:or.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),lV=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?lV(t):t:e.parentElement?.children?.[0]},cV=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?cV(t):t},uV=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===tg.Down||t===tg.Up){const r=e=>t===tg.Down?lV(e):cV(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},dV=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(r)}}:{}}))})));let pV={};const fV=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:u})=>{const[d,p]=I(!1),f=S.useRef(null),h=O(e=>{e.stopPropagation(),p(!1)},[p]);return or.jsxs(or.Fragment,{children:[or.jsxs(rV,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),pV={}),a?.length&&(p(!0),pV[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:uV,children:[l?or.jsx(nV,{direction:c,isPagination:u}):null,or.jsxs(oV,{children:[or.jsx(aV,{direction:c,isPagination:u,children:or.jsx(o,{})}),or.jsx(iV,{variant:"body2",children:n})]}),a?.length?or.jsx(sV,{}):null]},t),a?.length?or.jsx(bV,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:dV(a,pV),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},hV=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&or.jsx(tV,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>or.jsx(fV,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),mV=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[hV({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?or.jsx(eV,{"data-testid":"group-divider",variant:"middle"}):void 0]),gV={appear:0,enter:0,exit:0},bV=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?or.jsx(QB,{className:Zm,open:t,anchorEl:e,onClose:r,transitionDuration:gV,MenuListProps:{id:Qm},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:mV({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,vV=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>O(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}},[e,t,r,n?.qStateName,o,i]),yV=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),xV=(e,t)=>e.some(e=>t[e]>0),SV={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},wV=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=I(null),[a,s]=I(SV);return Um(()=>{e||(s(SV),i(null))},[e]),D(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=yV(t,r),c=await n.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:xV(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:xV(["qSelected"],e),canSelectPossible:xV(["qOption"],e),canSelectAlternative:xV(["qAlternative"],e),canSelectExcluded:xV(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},CV=_((e,t)=>or.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:or.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),EV=_((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),RV=_((e,t)=>or.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:or.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})})),AV=_((e,t)=>or.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:or.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),IV=_((e,t)=>or.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:or.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),kV=_((e,t)=>or.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:or.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),PV=_((e,t)=>or.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:or.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),MV=_((e,t)=>or.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:or.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"})})),DV=_((e,t)=>or.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:or.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})})),TV=_((e,t)=>or.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:or.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),OV=_((e,t)=>or.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:or.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),qV=_((e,t)=>or.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:or.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),LV=_((e,t)=>or.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:or.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let NV=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const jV="/qListObjectDef",_V=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[NV.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:CV,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:AV,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:PV,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:T_,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[NV.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:MV,enabled:!0}]}]),!e.isLocked&&r[NV.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:LV,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(jV))},icon:DV,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(jV))},icon:qV,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(jV))},icon:TV,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(jV))},icon:OV,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(jV))},icon:EV,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:kV,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:IV,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[NV.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),u?.(c)},icon:RV,enabled:!0}]}]),f},zV=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:u,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=Ym})=>{const v=k(null),y=Km({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=wV({open:e,headerData:n,app:C,qStateName:u?.qStateName}),A=XB({model:f,headerData:n}),I=vV({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),P=O(e=>{e.stopPropagation(),t(!1)},[t]),M=O(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?or.jsxs(JB,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:Jm,onClick:!1===g?M:void 0,ref:v,isAccessibleHeader:g,children:[s?or.jsx(ZB,{height:b,className:Xm,"data-testid":Xm,isInteractionsActive:i.active??!1,children:or.jsx(YB,{})}):null,or.jsx(bV,{open:e,anchorEl:!1===g?v.current:r.current,onClose:P,menuGroups:_V({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},FV=e=>e.isDark?{background:e.color,borderColor:wm.DARK_MODE_BORDER,color:wm.DARK_MODE_TEXT,disabledColor:wm.DARK_MODE_DISABLED,iconColor:wm.DARK_MODE_TEXT}:{background:e.color,borderColor:wm.BORDER_MEDIUM,color:wm.TEXT,disabledColor:wm.DISABLED},$V=Lc(Ad,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`})),HV=Lc(Ih,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),BV=Lc(Nd,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)})),VV=Lc(Hu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),WV=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A(()=>FV(n.background),[n]);if(!r.active)return null;const a=o?or.jsx($V,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},UV=P({}),GV=()=>q(UV),KV=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(u)?0:-1,v=A(()=>FV(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=Km({translator:d}),S=A(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,r,n,o,i,a,s,l,c,u,x,p,f,h,m,v,b,y,g]);return or.jsx(UV.Provider,{value:S,children:e})};let YV=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),XV=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const JV=_((e,t)=>or.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:or.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),ZV=_((e,t)=>or.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:or.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),QV=_((e,t)=>or.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:or.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),eW={FirstPage:ZV,PreviousPage:JV,NextPage:sV,LastPage:QV,FirstPageRTL:QV,PreviousPageRTL:sV,NextPageRTL:JV,LastPageRTL:ZV},tW=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=GV(),c=r.concat("rtl"===n?"RTL":""),u=eW[c];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:u}},rW=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=GV(),o=0===e.page,{IconComponent:i,styledProps:a}=tW({type:YV.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||XV.FirstPage)?null:or.jsx(BV,{...a,disabled:!r.active,children:or.jsx(i,{height:Ym})})},nW=(e,t,r=!1)=>{r&&e.key===tg.Tab&&!e.shiftKey&&(Pm(e),km(e.target,t,!1))},oW=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=GV(),s=e.page>=r-1,{IconComponent:l,styledProps:c}=tW({type:YV.LastPage,disabledCondition:s,pageNumber:r-1}),u=t.enabled?e=>{nW(e,t,n)}:void 0;return o<=(a?.lastPage||XV.LastPage)?null:or.jsx(BV,{...c,onKeyDown:u,disabled:!i.active,children:or.jsx(l,{height:Ym})})},iW=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=GV(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=tW({type:YV.NextPage,disabledCondition:a,pageNumber:e.page+1}),c=!(o>XV.FirstPage&&o>XV.LastPage)&&t.enabled?e=>{nW(e,t,n)}:void 0;return or.jsx(BV,{...l,onKeyDown:c,disabled:!i.active,children:or.jsx(s,{height:Ym})})},aW=()=>{const{pageInfo:e,interactions:t}=GV(),r=0===e.page,{IconComponent:n,styledProps:o}=tW({type:YV.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return or.jsx(BV,{...o,disabled:!t.active,children:or.jsx(n,{height:Ym})})},sW=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=GV(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||XV.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return or.jsx(VV,{variant:"caption",dir:"ltr",children:s})},lW=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=GV(),c=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${c}`,f={tabIndex:s,id:`${d}-${c}`,"data-testid":d,"aria-labelledby":p};return or.jsxs(or.Fragment,{children:[or.jsxs(VV,{variant:"caption",id:p,children:[u,":"]}),or.jsx(HV,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},cW=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=GV();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||XV.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=or.jsx(or.Fragment,{children:e.rowsPerPageOptions.map(e=>or.jsx("option",{value:e,children:e},e))});return or.jsx(lW,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},uW=1e3,dW="…",pW=({totalPages:e,page:t})=>{const r=Math.min(e,uW),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-uW):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return or.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(or.jsx("option",{value:dW,disabled:!0,children:dW},"startMoreOptions")),o<e-1&&a.push(or.jsx("option",{value:dW,disabled:!0,children:dW},"endMoreOptions")),or.jsx(or.Fragment,{children:a})},fW=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=GV(),{page:i}=e;if(t<=(o?.selectPage||XV.SelectPage))return null;const a=or.jsx(pW,{totalPages:r,page:i});return or.jsx(lW,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var hW=j(e=>or.jsxs(KV,{...e,children:[or.jsx(cW,{}),or.jsx(fW,{}),or.jsx(sW,{}),or.jsx(rW,{}),or.jsx(aW,{}),or.jsx(iW,{}),or.jsx(oW,{})]}));const mW=e=>or.jsx(WV,{...e,children:or.jsx(hW,{...e})}),gW=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},bW=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},vW=e=>e.ctrlKey||e.metaKey,yW=e=>e.shiftKey&&vW(e),xW=e=>[tg.Left,tg.Right,tg.Up,tg.Down].includes(e),SW=e=>e.shiftKey&&xW(e.key),wW=e=>(e=>xW(e)||[tg.Home,tg.End,tg.PageUp,tg.PageDown].includes(e))(e.key)&&!yW(e),CW=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),gW(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},EW=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:c}=t;if(!(a||"key"in c&&SW(c)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const u=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&SW(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===tg.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,c,a);return gW(l,n,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},RW=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},AW=(e,t)=>{switch(t.type){case r$.Select:return CW(e,t.payload);case r$.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case r$.SelectMouseUp:return((e,t)=>RW(e.isSelectMultiValues||e.firstCell!==t.cell?e:CW(e,t)))(e,t.payload);case r$.SelectMultiAdd:return EW(e,t.payload);case r$.SelectMultiEnd:return RW(e);case r$.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case r$.Clear:return e.rows.size?{...e,rows:new Map}:e;case r$.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},IW=Wg(e=>{const t=e(Cb);return function(e,t){return Wg(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(pB).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},AW)}),kW=Wg(e=>e(e(IW)),(e,t,r)=>{t(e(IW),r)}),PW=QA(e=>Wg(t=>{const{colIdx:r,rows:n,api:o}=t(kW);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?t$.Disabled:n.has(e.qElemNumber)?t$.Selected:t$.Possible:t$.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),MW=Wg(e=>{const t=e(HB),r=e(Wb).width,n=e(F$);return t>0&&t+n<r}),DW=()=>{const[e,t]=I(!1);return YN({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?or.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},TW=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),OW=Wg(e=>{const t=e(mb),r=e($b);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,c=o?i:i-t,u=await r.getEffectiveProperties(),d=u.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=u.qHyperCubeDef.qMeasures.at(c)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${c}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),r.applyPatches(p,!0)}}),qW=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),LW=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),NW=e=>e.atTop?2:1,jW=(e,t)=>({top:e?NW(t):0,bottom:e&&t.atBottom?1:0}),_W=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],zW=e=>e?.setAttribute("tabIndex","0"),FW=e=>e?.setAttribute("tabIndex","-1"),$W=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(FW)},HW=e=>{e?.focus(),zW(e)},BW=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${rg}`);HW(t)},0)},VW=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{$W(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[c,u]=r;switch(e.key){case tg.Down:c<s&&c++;break;case tg.Up:c>a&&c--;break;case tg.Right:if(i)break;[c,u]="rtl"===n?qW({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):LW({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case tg.Left:if(i)break;[c,u]="rtl"===n?LW({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):qW({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case tg.Home:(vW(e)||i)&&(c=a),i||(u=0);break;case tg.End:(vW(e)||i)&&(c=s),i||(u=l);break;case tg.PageDown:c=Math.min(s,c+10);break;case tg.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,r,i,o),s=_W(t,a);return HW(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},WW=(e,t,r,n)=>{$W(t),r(e),n.enabled&&!n.active?n.focus?.():HW(_W(t,e))},UW=(e,t,r)=>{const n=e.currentTarget;if(!r.enabled||t.current||!n)return;const o=e.relatedTarget??document.activeElement,i=!!o&&n.contains(o),a=!!o?.closest(`.${Zm}`);i||a||((e=>{const t=e.querySelector(`.${o$.First}`),r=e.querySelector(`.${o$.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},GW=_((e,t)=>or.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:or.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),KW=Lc(Wh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...w$,...e,cursor:t.active?"pointer":"default",background:n,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}})),YW=Lc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:y$,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),XW=parseInt(y$,10)/2,JW=Lc("div")({position:"absolute",bottom:-XW,left:`calc(50% - ${XW}px)`}),ZW=Lc(sm)({position:"sticky",top:0,zIndex:1}),QW={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},eU=Lc(Ad)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),tU=Lc("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...QW,whiteSpace:"nowrap",display:r?"block":void 0}:{...QW,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),rU=Lc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),nU="cell-text",oU=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const a=nb(PB);return o?or.jsx(tU,{"data-testid":nU,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):or.jsx(tU,{"data-testid":nU,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},iU=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=nb(bb),l=nb(OW),c=nb(Ob),u=nb(Rb),d=nb(lb),p=nb(Xb),f=nb(ab),h=nb(zB)[t.pageColIdx],m=nb(Fb),g=k(null),b=k(null),v=(({column:e,columnWidth:t})=>{const r=nb(PB),{measureText:n}=Fm({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:x$});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,c=t-25,u=s?20:0,d=l?20:0;let p=n(e.label);return s&&p+u<=c&&(a=!0,p+=u,l&&p+d<=c&&(i=!0,p+=d)),!s&&l&&p+d<=c&&(i=!0,p+=d),p+24<=c&&(o=!0),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?or.jsx(CV,{height:y$,"data-testid":"head-cell-sort-ascending-icon"}):or.jsx(AV,{height:y$,"data-testid":"head-cell-sort-descending-icon"}),a=r?or.jsx(YW,{align:t,dir:o,children:i}):void 0,s=n?or.jsx(L$,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:or.jsx(GW,{height:y$,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return or.jsxs(q$,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:I$(t,i,c),children:[S,or.jsxs(O$,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,or.jsx(oU,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?or.jsxs(or.Fragment,{children:[or.jsx(zV,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[NV.Sorting]:!0,[NV.Searching]:!0,[NV.Selections]:!0,[NV.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:u,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:BW},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),or.jsx(T$,{ref:b,direction:c,isPagination:i}),or.jsx(T$,{ref:g,direction:c})]}):null]})},aU=_((e,t)=>or.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:or.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),sU=(e,t)=>e.isCyclic&&t,lU=({column:e})=>{const t=nb(PB),r=nb(Ob),n=nb(Fb),o=S.useRef(null),[i,a]=S.useState(!1),s=XB({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return or.jsxs(or.Fragment,{children:[or.jsx(j$,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:or.jsx(aU,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),or.jsx(bV,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:T_,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},cU=e=>e.isLocked,uU=({column:e})=>{const t=nb(ab),r=nb(bb),n=nb(PB);return or.jsx(j$,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=yV(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:or.jsx(GW,{height:16,"data-testid":"head-cell-lock-icon"})})},dU=({column:e,menuIconRef:t,open:r,setOpen:n})=>{const o=nb(PB);return or.jsx(j$,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:r,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),n(e=>!e)},ref:t,children:or.jsx(YB,{height:16})})},pU=({anchorRef:e,column:t,isPagination:r,listboxRef:n,open:o,setOpen:i})=>{const a=nb(ab),s=nb(Ob),l=nb(lb),c=nb(Rb),u=nb(Fb),d=nb(bb),p=nb(Xb),f=nb(OW);return or.jsx(zV,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[NV.Sorting]:!0,[NV.Searching]:!0,[NV.Selections]:!0,[NV.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),f?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:n},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:BW},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:r})},fU=Wg();fU.onMount=e=>{const t=new Map,r=new ResizeObserver(e=>{for(const r of e){const e=t.get(r.target);e&&e.current(r)}});return e({callbacks:t,observer:r}),()=>{t.clear(),r.disconnect()}};const hU=({ref:e,callback:t})=>{const r=nb(fU),n=k(t);n.current=t,L(()=>{const t=e.current;return void 0===r?()=>{}:(t&&(r.callbacks.set(t,n),r.observer.observe(t)),()=>{t&&(r.callbacks.delete(t),r.observer.unobserve(t))})},[e,n,r])},mU=Lc(Ad)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),gU=({children:e})=>{const t=S.useRef(null),[r,n]=I(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=A(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=O(e=>{const t=new Set,r=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)}),n(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return hU({ref:t,callback:i}),or.jsx(mU,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},bU=({children:e})=>e,vU=(e,t)=>!e.isLocked&&e.isDim&&t,yU=({column:e,open:t,setOpen:r})=>{const n=nb(PB),o=nb(bb),i=nb(Ob),a=nb(lb);nb(ab);const s=S.useRef(null),l=O(()=>{r(!1)},[r]),c=vV({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return or.jsx(j$,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:or.jsx(MV,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},xU=_((e,t)=>or.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:or.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),SU=_((e,t)=>or.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:or.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),wU=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?or.jsx(SU,{height:y$,"data-testid":"head-cell-sort-ascending-icon"}):or.jsx(xU,{height:y$,"data-testid":"head-cell-sort-descending-icon"});return r?or.jsx(JW,{children:n}):void 0},CU=0,EU=1,RU=2,AU=3,IU=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=nb(PB),c=nb(Ob),{measureText:u}=Fm(l.header),[d,p]=I(!1),f=k(null),h=k(null),m=k(null),g="number"==typeof a&&a>ng.PixelsMin+18;return or.jsxs(or.Fragment,{children:[or.jsxs(gU,{children:[or.jsx(bU,{prio:RU,minWidth:D$,children:cU(t)?or.jsx(uU,{column:t}):null},"Lock"),or.jsx(bU,{prio:EU,minWidth:D$,children:sU(t,s)?or.jsx(lU,{column:t}):null},"Cyclic"),or.jsx(bU,{ignore:!0,children:or.jsx(wU,{column:t})},"Sort"),or.jsx(bU,{minWidth:u(t.label)+8,children:or.jsx(N$,{justifyContent:t.headTextAlign,children:or.jsx(oU,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),or.jsx(bU,{prio:g?void 0:CU,minWidth:D$,children:d||vU(t,s)?or.jsx(yU,{open:d,setOpen:p,column:t}):null},"Search"),or.jsx(bU,{prio:AU,minWidth:D$,children:s?or.jsx(dU,{menuIconRef:m,column:t,open:r,setOpen:n}):null},"Menu")]}),s?or.jsxs(or.Fragment,{children:[or.jsx(T$,{ref:h,direction:c,isPagination:o}),or.jsx(T$,{ref:f,direction:c}),or.jsx(pU,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:r,setOpen:n})]}):null]})},kU=Lc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:r})=>({...t,background:e,color:r})),PU=()=>{},MU=({column:e,isPagination:t})=>{const r=nb(PB),n=nb(Ob),o=nb(MW),i=nb(fB),a=!1,s=nb(xb)?iU:IU;return or.jsx(kU,{className:"sn-table-cell",applicableStyle:{...r.header,...TW(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:P$(n,a,o),borderLeftWidth:M$(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??r.header.background,color:e.headerColor?.color??r.header.color,children:or.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:PU})})},DU=({isPagination:e})=>{const t=nb(hB),[r,n]=I();YN({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?or.jsx(AN,{children:or.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:or.jsx(MU,{column:o,isPagination:e})})}):null},TU=sA(Wg(async e=>{e(pb);const t=e($b);return t?.getEffectiveProperties()}),e=>e),OU=Wg(e=>e(TU)?.qHyperCubeDef),qU=[OL.configure({activationConstraints:[new PL.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],LU=eN.plugins.filter(e=>e!==sq),NU=(e,t,r)=>{const n=JSON.stringify(t),o=JSON.stringify(r);if(n!==o)return{qPath:e,qOp:"Replace",qValue:o}},jU=(e,t,r,n,o)=>{if(!e||!t||n===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:r,visibleColumnIds:n,sourceId:o,targetId:i})=>{const a=uz({qDimensions:e,qMeasures:t}),s=[...e,...t],l=n.findIndex(e=>e===o),c=n.findIndex(e=>e===i);if(l<0||c<0||l===c)return;const u=((e,t,r)=>{const n=[...e],[o]=n.splice(t,1);return n.splice(r,0,o),n})(n,l,c),d=new Map(u.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const r=d.get(e.id),n=d.get(t.id);return void 0===r||void 0===n?0:r-n}),f=p.filter(e=>e.isDimension).map(e=>e.def),h=p.filter(e=>!e.isDimension).map(e=>e.def),m=[...f,...h],g=new Map(m.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:f,qMeasures:h,qInterColumnSortOrder:dz({previousColumns:s,nextColumns:m,qInterColumnSortOrder:r}),qColumnOrder:u.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:r.map(e=>e.id),sourceId:n,targetId:o});if(!i)return;const a=[NU("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),NU("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),NU("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),NU("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},_U=({children:e})=>{const t=nb($b),r=nb(OU),n=nb(hB);return or.jsx(CN,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&jU(t,r,n,o,i)},sensors:qU,plugins:LU,children:e})};function zU(e,t){const r=k(!1);D(()=>{r.current?e():r.current=!0},t)}const FU=(e,t)=>{const r=nb(zb);D(()=>{const n=e.current;if(!n)return;const o=e=>{UW(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])},$U=Wg(i$),HU=QA(e=>Wg(t=>{const[r,n]=t($U);return 0===r&&n===e})),BU=()=>{const e=nb(sb);D(()=>{e.notifyIsDoneRendering()})};var VU={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const WU=Wg(e=>{const t=e(Xb),r=e(Ub);let n;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(VU).forEach(t=>{e.add(VU[t])})}(t),({keys:e,politeness:o="polite"})=>{const i=e.map(e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)}).join(" "),a=r.querySelector(`.${o$.First}`),s=r.querySelector(`.${o$.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;n===o$.First?(l=s,n=o$.Second):(l=a,n=o$.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}}),UU=(e,t)=>{const r=nb(WU),n=nb(Ub),o=nb(vB),i=nb(bB),a=nb(gB),s=nb(fB),[l,c]=ib($U),u=nb(wb),d=nb(zb);zU(()=>{const t=((e,t,r=!1)=>{const n=[NW(t),e[1]];return r?n:i$})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if($W(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=_W(t,e);r.current?(HW(s),r.current=!1):zW(s),n&&(a({keys:[s?.textContent??""]}),bW(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:r})},[a.length,i,o,t])},GU=e=>{Pm(e),vW(e)&&ug(e.currentTarget)},KU=e=>{wW(e.evt)&&(Pm(e.evt),VW(e))},YU=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!wW(t))return;Pm(t);const i=((e,t)=>[e.pageRowIdx+NW(t),e.pageColIdx])(n,r),a=jW(o,r),{nextCell:s,nextCellCoord:l}=VW({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:r$.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):bW(o,a,i)})({...e,nextCell:s})},XU=e=>{const{evt:t}=e;yW(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{Pm(e);const a=Math.ceil(t/r)-1;e.key===tg.Right&&n<a?(o(),i(n+1)):e.key===tg.Left&&n>0&&(o(),i(n-1))})(e):t.key===tg.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(Pm(e),t.blur?.(!0))})(e):xW(t.key)&&Pm(t)},JU=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(t$.Disabled))return void Pm(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case tg.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{Pm(e),t.isSelectable&&r&&n({type:r$.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case tg.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{Pm(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case tg.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(Pm(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case tg.C:GU(t);break;case tg.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(Pm(e),km(e.currentTarget,t,e.shiftKey))})(n);break;default:YU(n)}},ZU=e=>{const t=nb(_$),r=ob(z$),n=ob(F$),o=nb(e$),i=k();hU({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),D(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},QU=Lc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),eG=Lc(Yh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),tG=Lc(Oh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),rG=()=>or.jsxs(or.Fragment,{children:[or.jsx(QU,{className:o$.First,"data-testid":o$.First,"aria-live":"polite","aria-atomic":"true"}),or.jsx(QU,{className:o$.Second,"data-testid":o$.Second,"aria-live":"polite","aria-atomic":"true"})]}),nG=e=>{const t=k(new Map),r=k(null);D(()=>{r.current=e(t.current),t.current.forEach((e,t)=>{r.current?.observe(t)});const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}},[e,r,t]);const n=O((e,n)=>{t.current.set(e,n),r.current?.observe(e)},[t,r]),o=O(e=>{t.current.delete(e),r.current?.unobserve(e)},[r,t]);return A(()=>({addTask:n,removeTask:o}),[n,o])},oG=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),iG=()=>nG(oG),aG=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=nb(Cb),n=nb(zb),o=ob(kW);D(()=>{const i=()=>{o({type:r$.Reset})},a=()=>{o({type:r$.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}},[r,n,o,e,t])},sG=e=>{e.stopPropagation()},lG=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:sG,color:wm.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),cG=({href:e,text:t,interactions:r,color:n})=>or.jsx(Up,{...lG({href:e,text:t,interactions:r,color:n}),children:t}),uG=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),dG=window.cancelIdleCallback??(e=>{clearTimeout(e)}),pG="qDimensionInfo/0",fG="qMeasureInfo/0",hG="x",mG="y",gG=e=>({key:"bars",type:"box",data:{extract:{field:pG,props:{start:0,end:{field:fG}}}},settings:{major:{scale:hG},minor:{scale:mG},box:{maxWidthPx:8,fill:{fn:e}}}}),bG=e=>({key:"p",type:"point",data:{extract:{field:pG,props:{y:{field:fG}}}},settings:{x:{scale:hG},y:{scale:mG},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),vG=({qNum:e})=>void 0===e?0:Math.sign(e),yG=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=Am(e,t?.negative,r),a=Am(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:pG,props:{start:0,end:{field:fG,value:vG}}}},settings:{major:{scale:hG},minor:{scale:mG},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},xG=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=Am(e,t?.main,o),l=Am(e,t?.max,s),c=Am(e,t?.min,s),u=Am(e,t?.first,s),d=Am(e,t?.last,s);return e=>{const t=mG in e.datum?mG:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?c:e.data.items.at(0)===e.datum?u:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[gG(a)];case"dots":return[bG(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:pG,props:{v:{field:fG}}}},settings:{coordinates:{major:{scale:hG},minor:{scale:mG,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Am(e,n?.main,e.getDataColorSpecials().primary));return r?[t,bG(a)]:[t]}case"posNeg":return[yG(e,n)];default:return[]}},SG=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),wG=(e,t,r,n)=>({y:{data:{field:fG},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:pG}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),CG=U();CG.use(W),CG.renderer.prio(["canvas"]);const EG={resolve:()=>{},promise:{}},RG=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:c}=(e=>{const t=k(e.isDownloadedAsPDForImage?Nt():EG);return{addChartPromiseToQueue:O(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:O(()=>{if(null===t.current||null!==e.current)return;c();r.current=uG(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:c}=n;return CG.chart({element:e,data:{type:"q",key:"qHyperCube",data:SG(s)},settings:{scales:wG(a,l,c,i),components:xG(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,c,r,n,o,a,i,l]),safeCancelIdleCallback:O(()=>{null!==r.current&&dG(r.current),r.current=null,l()},[r,l])}},AG=e=>{const t=k(null),r=k(!1);return O(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(dG(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=uG(()=>{e.current?.update()},{timeout:2e3})):r.current=!1:r.current=!0},[e])},IG=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),c=k(null),{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:d}=RG({element:s,chart:l,requestId:c,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=O(e=>{e.isIntersecting?n():r()},[n,r]);D(()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}},[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{D(()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null}),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=AG(t);D(()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}},[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},kG=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=IG({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return or.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},PG=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},MG=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},DG=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=nb(Ob),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=or.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:r,objectFit:MG(s),objectPosition:PG(l),overflow:"hidden"}});return n?or.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?r:"100%",overflow:"hidden",display:"flex",justifyContent:c?E$(o,e):void 0},children:u}):u},TG=_((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),OG=_((e,t)=>or.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:or.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),qG=_((e,t)=>or.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[or.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),or.jsx("use",{fillRule:"evenodd"})]})),LG=_((e,t)=>or.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:or.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),NG=_((e,t)=>or.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:or.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),jG=_((e,t)=>or.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:or.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),_G=_((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M2 7.5h12v1H2z"})})),zG=_((e,t)=>or.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:or.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),FG=_((e,t)=>or.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:or.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),$G=_((e,t)=>or.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:or.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),HG=_((e,t)=>or.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:or.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),BG={m:_((e,t)=>or.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:or.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":$G,R:SU,S:xU,T:_((e,t)=>or.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:or.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),U:_((e,t)=>or.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:or.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),P:FG,Q:jG,"è":_((e,t)=>or.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:or.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":LG,"©":qG,"23F4":NG,2013:HG,"&":zG,add:TG,"minus-2":_G,dot:OG},VG=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&BG[t];return o&&or.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:or.jsx(o,{style:{height:e}})})},WG=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=nb(PB),o=nb(Ob),i=nb(Yb),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=g$(e,t,o,i),d=(e=>parseInt(e||y$,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=u||{};return l?or.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?p:void 0},children:["left"===h&&VG({size:d,iconKey:f,color:p}),or.jsx(oU,{isNumeric:!0,children:a}),"right"===h&&VG({size:d,iconKey:f,color:p})]}):VG({size:d,iconKey:f,color:p})},UG=(e,t,r)=>e.contentStaticLineCount?t*(r??e.grid.contentLineClamp):t,GG=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=nb(PB),c=nb(TB),u=nb(sb),d=nb(pb),p=nb(Yb),f=nb(Ob),h=nb(Rb),m=nb(wb);if(t.representation.type===vz.Image&&!t.representation.url?.trim())return null;if(t.representation.type===vz.Image)return or.jsx(DG,{representation:t.representation,textStyle:r,maxImageHeight:UG(l,c,o),wrapInContainer:!n});let g=t.representation.text;t.representation.type!==vz.Link||m||(g=or.jsx(cG,{href:t.representation.url,text:t.representation.text,interactions:h,color:r.cellForegroundColor}));const b="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==vz.Indicator||Number.isNaN(b)?t.representation.type===vz.MiniChart&&t.representation.miniChart&&!t.isNull?or.jsx(kG,{height:UG(l,c,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:u}):or.jsx(oU,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:g}):or.jsx(WG,{representation:t.representation,cellValue:b,paginationCellAlign:n?void 0:s})},KG=()=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:or.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),YG=Lc("div")({"& path":{stroke:"none !important"}}),XG=({children:e,cellSelectionState:t,hideTickIcon:r})=>t!==t$.Selected||r?e:or.jsxs(rU,{children:[e,or.jsx(YG,{children:or.jsx(KG,{})})]}),JG=e=>{const t=function(){const e=EN(),t=sN(()=>null==e?void 0:e.dragOperation.source,[e]),r=sN(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},ZG=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:r$.SelectMultiEnd})};r({type:r$.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:r$.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:r$.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),QG=e=>{const t=nb(yB),r=nb(fB),n=nb(WU),o=nb(Ub),i=nb(Ob),a=ob($U),s=ob(kW),l=nb(zb),c=nb(kb),u=nb(Cb),d=d=>{JU({evt:d,rootElement:o,selectionsAPI:u,cell:e,selectionDispatch:s,isSelectionsEnabled:c,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===tg.Shift&&t({type:r$.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;WW([s,a],t,r,n)})(e,o,a,l,r)};if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=ZG(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},eK=e=>{D(()=>()=>{PW.remove(e)},[e])},tK=(e,t,r,n)=>{if(!r.isNull)return e;const o=n?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=n?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=n?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},rK=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},nK=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return rK(t,e,n?"even":"odd")}return e},oK=(e,t)=>{const r=nb(PB),n=nb(PW(e)),o=nb(ub),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");eK(e);let a=t.isDim?r.dimension.values:r.measure.values;a=nK(a,r,e),a=i?r.subTotalRow:a,a=tK(a,r,e,t.isDim);const s=e.isNull||i&&t.isDim?a:J$(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,r){return t===t$.Selected?{...e,...r}:t===t$.Disabled?{...e,background:`${b$}, ${e.background}`}:e}(s,n,r.selectedColors);return{cellStyle:{...l,borderColor:r.grid.border},representationStyle:s,cellSelectionState:n}},iK=Lc(Fh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),aK=Lc(sm,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),sK=Lc(Wh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...w$,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),lK=Lc(Wh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...w$,...e,fontWeight:x$,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),cK=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=nb(Ob),a=nb(Rb),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=QG(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=oK(e,t),m=JG(t.id);return or.jsx(sK,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${eg}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:or.jsx(XG,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:or.jsx(GG,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:k$(i,e.align)})})})},uK=Wg(0),dK=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=nb(PB),i=nb(Ib),a=nb(uK),s=JG(e.id);return or.jsx(lK,{totalsStyle:{...o.totalRow,...TW(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${eg}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:or.jsx(oU,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},pK=()=>{const e=nb(fB),t=nb(hB),r=nb(gB),n=nb(Ub),o=nb(Ab),i=nb(Ob),a=ob($U),s=nb(wb),l=nb(zb);return or.jsx(sm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:r.length+1,c];return or.jsx(dK,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case tg.C:GU(r);break;case tg.Space:r.preventDefault();break;default:KU(e)}else Pm(r)})({evt:e,rootElement:n,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{WW(u,n,a,l)}},t.id)})})};var fK=j(pK);const hK=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=nb(gB),n=nb(fB),o=nb(hB),i=nb(PB),a=nb(OB),s=nb(qB),l=nb(pb),c=!!G$(l)?.content?.hoverEffect;aG({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=O(t=>new IntersectionObserver(e=>{e.forEach(e=>{const r=t.get(e.target);r?.(e)})},{root:e.current}),[e]);return nG(t)})(t),d=iG();return or.jsxs(iK,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?or.jsx(fK,{}):void 0,r.map((e,t)=>{const r=e.at(0)?.isTotalRow??!1;return or.jsx(aK,{hoverColors:i.grid.hoverColors,hover:c,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:r?s:a,children:o.map((t,r)=>{const{id:n}=t,o=e[r];return or.jsx(cK,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},n)})},`row-${t}`)}),n.atBottom?or.jsx(fK,{}):void 0]})};var mK=j(hK);const gK=(e,t)=>!!e?.skipHeader||!!t.hideHeader,bK=Wg(e=>{const t=e(pb),r=e(Fb);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}}),vK=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=nb(bK),s=nb(Ob),l=nb(Ab),c=nb(Xb),[u,d]=ib(zB);if(!l)return null;return or.jsx(KB,{columnWidth:u.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...u];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{FW(e);const t=e.closest(".sn-table-cell");HW(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},yK=e=>e.target?.getAttribute("class")?.includes(rg),xK=({isInteractionEnabled:e,column:t})=>{const[r,n]=I(!1),o=nb(OW),i=nb(_$);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||yK(t)||i||n(!0)},toggleSortOrder:r=>{e&&!yK(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var SK=class extends MD{constructor(e,t){super(e,t),this.boundingRectangle=OI(null),this.destroy=BI(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=VD(r)},i=()=>{n||(n=setTimeout(()=>{o(),n=void 0},25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,c=o.center.y-a/2,u=function(e,t,r){const n=uj({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new cP(l,c,s,a),r,n);return u}};SK.configure=KP(SK);const wK=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/lP.distance(r.shape.center,s),type:oD.Collision,priority:nD.Normal}:null},CK=[SK.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],EK=(e,t)=>{const r=nb(Ob),n=nb(ub),o=!nb(Mb)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return C_({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:CK,data:e,plugins:e=>[...e,Qq.configure({feedback:"clone"})],collisionDetector:wK({invert:"rtl"===r})})},RK=({column:e,columnIndex:t,columnsLength:r})=>{const n=nb(PB),o=nb(Ub),i=nb(Ob),a=nb(Rb),s=nb(hB),l=nb(fB),c=nb(zB)[t],u=ob($U),d=nb(HU(t)),p=nb(Mb),f=nb(zb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=xK({isInteractionEnabled:p,column:e}),v=ob(_$),{ref:y,isDragging:x}=EK(e,t),S=JG(e.id),w=nb(xb),C=w?iU:IU,E=e.isActivelySorted?n$[e.sortDirection]:void 0,R=h?Qm:void 0,A=h?"true":void 0,I=t===r-1,k=[0,e.pageColIdx],P={width:c,zIndex:s.length-t},M=d&&0===t&&!f.enabled&&p?0:-1;return or.jsxs(KW,{"data-dragging":x,ref:y,headerStyle:{...n.header,...TW(n,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground:e.headerColor?.background??n.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,color:e.headerColor?.color??n.header.color,interactions:a,style:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${eg}`,tabIndex:M,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case tg.C:GU(r);break;case tg.Enter:case tg.Space:n?.(r);break;default:KU(e)}else Pm(r)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&WW(r,t,n,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[or.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),or.jsx(vK,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},AK=()=>{const e=nb(hB),t=nb(PB),r=nb(pb),n=nb(Lb),o=ob(uK),i=nb(zB),a=k(null),s=gK(n,r);return D(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),or.jsx(tm,{style:{visibility:s?"collapse":void 0},children:or.jsx(ZW,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,r)=>or.jsx(RK,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var IK=j(AK);var kK=j(()=>{const e=nb(WU),[t,r]=ib(oB),{page:n,rowsPerPage:o}=t,i=nb(qb),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=nb(pB),p=nb(PB),f=nb($H),h=nb(pb),m=nb(Yb),g=nb(Wb),b=nb(Ub),v=nb(Lb),y=nb(Ob),x=nb(Rb),S=nb(Xb),w=nb(MW),C=ob(kW),E=nb(wb),R=nb(zb),A=k(!1),I=k(null),P=k(null),M=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=Db(h,v),q=T?f.scrollLeft??0:0,L=T?f.rowPartialHeight??0:0,N=O(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=O(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),_=O(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return(e=>{const t=nb(Ob),r=nb($H);D(()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth,{scrollLeft:o}=r;let i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&e.preventDefault()})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}},[e,t,r])})(I),FU(P,A),(()=>{const e=nb(Ub),t=nb(zb),r=nb($U);Um(()=>{const n=_W(e,r);t.active?HW(n):(n?.blur(),$W(e))},[t.active,e])})(),UU(A,n),D(()=>{const e=I.current;e&&(e.scrollLeft=q,e.scrollTop=L)},[t,s,q,L]),zU(()=>{C({type:r$.UpdatePageRows,payload:{pageRows:u}})},[u]),BU(),ZU(I),or.jsxs(_U,{children:[or.jsxs(eU,{ref:P,dir:y,onKeyDown:e=>{XU({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[or.jsx(rG,{}),or.jsxs(eG,{ref:I,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[or.jsxs(tG,{stickyHeader:!0,"aria-label":M,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[or.jsx(IK,{}),or.jsx(mK,{updateShouldRefocus:N,tableWrapperRef:P})]}),or.jsx(DW,{})]}),or.jsx(mW,{footerContainer:i,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),or.jsx(DU,{isPagination:!0})]})});const PK=Wg(0),MK=Wg(e=>{const t=e(fb);return Math.min(Z$,t)}),DK=Wg(e=>{const t=e(fb);return t===Z$?0:Math.floor(t/Z$)}),TK=Wg(e=>{const t=e(PK),r=e(DK);return Math.min(t,r)}),OK=Wg(e=>({page:e(TK),rowsPerPage:e(MK),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(DK);t(PK,Math.max(0,Math.min(r,n)))}),qK=Wg(null),LK=Wg(null),NK=Wg(e=>{const t=e(OK),r=e(fb);return Math.min(t.rowsPerPage,r-t.page*t.rowsPerPage)}),jK=Wg(null),_K=Wg(null),zK=Wg(e=>e(fB).atTop?2:1),FK=Wg(e=>e(fB).atTop?1:e(zK)+e(NK)),$K=Wg(e=>jW(Boolean(e(wb)),e(fB))),HK=Wg(e=>({firstBodyRowIdx:e(zK),totalsRowIdx:e(FK),allowedRows:e($K)})),BK=Wg(e=>({rootElement:e(Ub),totalsPosition:e(fB),rowCount:e(NK),colCount:e(mB),columnWidths:e(zB)})),VK=Wg(e=>({scrollToCell:e(jK),scrollableContainerElement:e(_K)})),WK=Wg(e=>({keyboard:e(zb),isInSelectionMode:e(wb),selectionsAPI:e(Cb),isSelectionsEnabled:e(kb)})),UK=Wg(e=>({direction:e(Ob),isInteractionEnabled:e(Mb),paginationNeeded:e(yB),announce:e(WU),shouldRefocusRef:e(qK)})),GK=10,KK=e=>e.atTop?2:1,YK=e=>{e.querySelectorAll(".sn-table-cell[tabindex='0']").forEach(e=>{e.setAttribute("tabIndex","-1")})},XK=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},JK=(e,[t,r],n,o)=>{const i=KK(n);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${r}"]`);if(n.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${r}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${r}"]`):e.querySelector(`.sn-table-totals-row [data-col="${r}"]`)},ZK=(e,t,r,n,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=r,d=c-KK(n),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,u),m=requestAnimationFrame(()=>{if(g())return;const e=((e,t)=>{if(!e||!t)return!1;const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom&&r.left>=n.left&&r.right<=n.right})(JK(t,r,n,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},QK=(e,t,r,n,o,i)=>e<i?[t,e+1]:t<n?[t+1,o]:[t,e],eY=(e,t,r,n,o,i)=>e>o?[t,e-1]:t>r?[t-1,i]:[t,e],tY=(e,[t,r],n,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,c=a.top,u=n-1-a.bottom,d=o-1;switch(e.key){case tg.Down:case tg.Up:t=((e,t,r,n)=>e===tg.Down&&t<n?t+1:e===tg.Up&&t>r?t-1:t)(e.key,t,c,u);break;case tg.Right:l||([t,r]=((e,t,r,n,o,i,a)=>"rtl"===a?eY(e,t,r,0,o,i):QK(e,t,0,n,o,i))(r,t,c,u,0,d,i));break;case tg.Left:l||([t,r]=((e,t,r,n,o,i,a)=>"rtl"===a?QK(e,t,0,n,o,i):eY(e,t,r,0,o,i))(r,t,c,u,0,d,i));break;case tg.Home:l?t=Math.max(c,t-GK):(vW(e)&&(t=c),r=0);break;case tg.End:l?t=Math.min(u,t+GK):(vW(e)&&(t=u),r=d);break;case tg.PageDown:t=Math.min(u,t+GK);break;case tg.PageUp:if(l)t=Math.max(c,t-GK);else{const e=s?KK(s):1,r=t-e;t=r>0&&r<=GK?e:Math.max(c,t-GK)}}return[t,r]},rY=[tg.Home,tg.End,tg.PageUp,tg.PageDown],nY=()=>{const e=k(!1),t=k(0),r=k(0),n=k(null),o=k(null),i=k(null),a=k(0),s=ob($U),l=ob(kW),c=nb(ub)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=nb(BK),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=nb(HK),{scrollToCell:v,scrollableContainerElement:y}=nb(VK),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=nb(WK),{direction:E,announce:R,isInteractionEnabled:I,paginationNeeded:P,shouldRefocusRef:M}=nb(UK),T=A(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let r=0;r<e.length;r++)t[r+1]=t[r]+(e[r]??0);return t})(h),[h]);D(()=>()=>{t.current+=1,r.current+=1,a.current+=1,n.current?.(),n.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const q=O((e,t,r,n)=>{const o=t=>{if(n&&!n())return void r?.(!1);const i=JK(u,e,d,p);if(i)return document.activeElement!==i&&XK(i),document.activeElement===i?void r?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void r?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):r?.(!1)};requestAnimationFrame(()=>{o(t)})},[u,d,p]),L=O((e,t)=>{const n=a.current+1;a.current=n;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==n)return;if(r.current!==t)return;if(u instanceof HTMLElement&&!u.isConnected)return;if(Date.now()>s||i>=5)return;const c=document.activeElement;c&&c!==document.body&&c!==document.documentElement||(i+=1,M&&(M.current=!0),o.current?.(),o.current=ZK(v,u,e,d,p,y,10,()=>a.current===n&&r.current===t,()=>{q(e,300,()=>{M&&(M.current=!1)},()=>a.current===n&&r.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[q,u,p,v,y,M,d]),N=O(()=>(M&&(M.current=!0),t.current+=1,t.current),[M]),j=O(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=O((e,r)=>{const n=o=>{t.current===e&&(i.current?.(),i.current=ZK(v,u,r,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=JK(u,r,d,p);i&&document.activeElement!==i&&XK(i),o>0?requestAnimationFrame(()=>{n(o-1)}):t.current===e&&M&&(M.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{n(300)})})},[u,d,p,v,M,y]),z=O((e,t)=>{if(!wW(e))return;Pm(e),j(),r.current+=1;const o=r.current;a.current+=1,n.current?.(),n.current=null;const i=((e,t)=>KK(t)+e+(t.atBottom?1:0))(p,d),l=tY(e,t,i,f,E,g,d);YK(u),s(l);const[,c]=l,[,h]=t;return c!==h&&((e,t,r)=>{if(!e)return;const n=t[r]??0,o=t[r+1]??n,{scrollLeft:i,clientWidth:a}=e;n<i?e.scrollLeft=n:o>i+a&&(e.scrollLeft=o-a)})(y,T,c),M&&(M.current=!0),n.current=ZK(v,u,l,d,p,y,10,()=>r.current===o,()=>{q(l,300,t=>{M&&(M.current=!1),t&&(e=>rY.includes(e))(e.key)&&L(l,o)},()=>r.current===o)}),l},[u,d,p,f,E,v,s,g,y,M,q,j,T,L]),F=O(e=>{e.key===tg.Esc?x.enabled&&!S&&(Pm(e),x.blur?.(!0)):xW(e.key)&&Pm(e)},[x,S]),$=O((e,t,r)=>{switch(e.key){case tg.C:Pm(e),I&&(e.ctrlKey||e.metaKey)&&ug(e.currentTarget);break;case tg.Enter:case tg.Space:if(!I)return void Pm(e);r?.(e);break;default:z(e,[0,t])}},[z,I]),H=O((t,n,o,i)=>{const a=[n+m,o];switch(t.key){case tg.Space:if(Pm(t),i.isSelectable&&C){e.current=!0;const r=N();l({type:r$.Select,payload:{cell:i,evt:t,announce:R}}),_(r,a)}break;case tg.Enter:if(Pm(t),e.current=!1,S){N(),s(i$),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),r.current+=1;const t=r.current;q(i$,300,()=>{M&&(M.current=!1)},()=>r.current===t)}break;case tg.Esc:if(e.current=!1,S){Pm(t);const e=N();w?.cancel(),_(e,a)}break;case tg.C:Pm(t),I&&(t.ctrlKey||t.metaKey)&&ug(t.currentTarget);break;case tg.Tab:{const e=t.shiftKey||!P;x.enabled&&S&&e&&(Pm(t),km(t.currentTarget,x,t.shiftKey));break}default:{const r=t.key===tg.Left||t.key===tg.Right,n=S||Boolean(w?.isModal())||e.current;if(r&&n){Pm(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:r$.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,P,I,N,_,s,v,y,q,M]),B=O(t=>{t.key===tg.Space&&(e.current=!1),t.key===tg.Shift&&l({type:r$.SelectMultiEnd})},[l]),V=O((e,t)=>{if(S)Pm(e);else{if(e.key!==tg.Space)return e.key===tg.C?(Pm(e),void(I&&(e.ctrlKey||e.metaKey)&&ug(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,I]),W=O(e=>{j(),r.current+=1;const t=r.current;YK(u),s(e),x.enabled&&x.focus?.(),q(e,2,r=>{r&&L(e,t)},()=>r.current===t)},[u,s,x,q,j,L]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:O(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:O((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:O(e=>{c&&W([b,e])},[W,b,c])}};var oY=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function iY(e,t){return e===t||!(!oY(e)||!oY(t))}function aY(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!iY(e[r],t[r]))return!1;return!0}function sY(e,t){var r;void 0===t&&(t=aY);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var lY="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function cY(e){cancelAnimationFrame(e.id)}function uY(e,t){var r=lY();var n={id:requestAnimationFrame(function o(){lY()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var dY=-1;function pY(e){if(void 0===e&&(e=!1),-1===dY||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),dY=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return dY}var fY=null;function hY(e){if(void 0===e&&(e=!1),null===fY||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?fY="positive-descending":(t.scrollLeft=1,fY=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),fY}return fY}var mY=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function gY(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,ru(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:ru(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=sY(function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=sY(function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:u(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=sY(function(e,t,r){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,c=i;if("rtl"===t)switch(hY()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&cY(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=uY(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Uc(t,e),t.getDerivedStateFromProps=function(e,t){return bY(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}},this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=pY();void 0!==n&&(n=Math.max(0,Math.min(n,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(hY()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&cY(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?mY:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],I=R[1],k=[];if(n>0&&g)for(var P=A;P<=I;P++)for(var M=C;M<=E;M++)k.push(w(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,M)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:Hr({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(c||u||"div",{children:k,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var bY=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},vY=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},yY=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},xY=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var c=a+1;c<=r;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},SY=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?wY(e,t,r,i,0,n):CY(e,t,r,Math.max(0,i),n)},wY=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=xY(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},CY=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&xY(e,t,n,r).offset<o;)n+=a,a*=2;return wY(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},EY=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=xY(e,t,r,i),c="column"===e?yY(t,i):vY(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);default:return o>=d&&o<=u?o:d>u||o<d?d:u}},RY=gY({getColumnOffset:function(e,t,r){return xY("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return SY("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=xY("column",e,t,n),s=r+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=xY("column",e,c,n).size;return c},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:vY,getEstimatedTotalWidth:yY,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return EY("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return EY("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return xY("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return SY("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=xY("row",e,t,n),s=r+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=xY("row",e,c,n).size;return c},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),AY=function(e,t){return e};function IY(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,ru(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:ru(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=sY(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=sY(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=sY(function(e,t,r){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(hY()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&cY(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=uY(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Uc(t,e),t.getDerivedStateFromProps=function(e,t){return kY(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?pY():0:l.scrollHeight>l.clientHeight?pY():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(hY()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&cY(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?AY:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],A=[];if(c>0)for(var I=E;I<=R;I++)A.push(w(t,{data:u,key:p(I,u),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var k=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:Hr({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var kY=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},PY=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=n(l);o[l]={offset:a,size:c},a+=c}r.lastMeasuredIndex=t}return o[t]},MY=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=PY(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},DY=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&PY(e,r,t).offset<n;)r+=i,i*=2;return MY(e,t,Math.min(r,o-1),Math.floor(r/2),n)},TY=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},OY=IY({getItemOffset:function(e,t,r){return PY(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:TY,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=PY(e,t,o),p=TY(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===r&&(r=n>=h-u&&n<=f+u?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?MY(e,t,o,0,r):DY(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=PY(e,t,n),d=r+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=PY(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function qY(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var LY=["style"],NY=["style"];function jY(e,t){var r=e.style,n=Br(e,LY),o=t.style,i=Br(t,NY);return!qY(r,o)&&!qY(n,i)}const _Y=Wg(0),zY=Wg(0),FY=Wg(0),$Y=Wg(e=>e(_Y)+e(zY)),HY=Wg(e=>{const t=e(Wb),r=e(yB),n=t.height-(r?41:0);return{width:t.width,height:n}}),BY=Wg(e=>{const t=e(HY),r=e(z$),n=e(F$);return{width:t.width-n,height:t.height-r}}),VY=Wg(e=>{const t=e(BY),r=e($Y),n=e(FY);return Math.min(t.height-r,n)}),WY=Wg(-1),UY=QA(e=>Wg(t=>t(WY)===e)),GY=({style:e})=>or.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var KY=S.memo(GY,jY);const YY=()=>{},XY=e=>{e.preventDefault()};const JY=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:c,onKeyDown:u,onKeyUp:d,onCellClick:p}=n,f=nb(UY(t)),h=ob(WY),m=nb(PB),g=nb(Ob),b=nb(Ib),v=nb(Mb),y=nb(MW),x=nb(ub),S=o[t]?.[e],{handleMouseDown:w,handleMouseOver:C,handleMouseUp:E,cellSelectionState:R}=function(e){const t="object"==typeof e,r=nb(kb),n=ob(kW),o=nb(PW(e));if(eK(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=ZG(XY,e,n,YY);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(S),A=((e,t,r,n)=>{const o=k(null),i=r&&!r.isNumeric,a=r?.isTotalRow??!1,s=O(r=>{const o=r.contentBoxSize.at(0)?.blockSize;o&&i&&n(o,e,t,a)},[a,t,n,e,i]);return hU({ref:o,callback:s}),o})(t,e,S,s),I=i[e]?.isDim?m.dimension.values:m.measure.values,P=JG(i[e].id);if("object"==typeof S){const n=((e,t,r,n,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS");let l=nK(o,i,e);l=s?i.subTotalRow:l,l=tK(l,i,e,t.isDim);const c=e.isNull||s&&t.isDim?l:J$(l,e.qAttrExps,t.qAttrExprInfoIDs);return n!==t$.Selected||s?n!==t$.Disabled||s?r?{...c,...i.grid.hoverColors}:c:{...c,color:r?i.grid.hoverColors?.color:c.color,background:`${b$}, ${r?i.grid.hoverColors?.background:c.background}`}:{...c,...i.selectedColors}})(S,i[e],a&&f,R,I,m,x),o={rowindex:t,columnindex:e},s=r=>{v&&p?.(t,e),w?.(r)},k=u?r=>{u(r,t,e,S)}:void 0;return or.jsx("div",{className:`sn-table-cell ${R} ${eg}`,tabIndex:-1,style:{...r,...n,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:S.isLastRow?"0px":"1px",borderRightWidth:P$(g,S.isLastColumn,y),borderLeftWidth:M$(g,S.isLastColumn,y),justifyContent:R$(S,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:S.align,opacity:P},onMouseDown:s,onMouseUp:E,onMouseOver:C,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:k,onKeyUp:d,title:b?S.representation.text:void 0,...o,children:or.jsx(XG,{cellSelectionState:R,hideTickIcon:!!S.isTotalRow,children:or.jsx(GG,{forwardRef:m.contentStaticLineCount||1===l?void 0:A,cell:S,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return or.jsx(KY,{style:{...r,...I,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:P}})};var ZY=j(JY,jY);const QY=sA(Wg(async e=>{const t=e(pb),r=e(Fb),n=e(OK).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(Z$,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),eX=Wg(e=>{const t=e(NK),r=e(BY),n=e(OB);return Math.min(t,Math.ceil(r.height/n))}),tX=Wg(e=>{const t=e(zB),r=e(BY);return t.reduce((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),rX=e=>{const t=k(e);return t.current=e,t},nX=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,oX=e=>-1===e.qElemNumber||!!e.qIsTotalCell,iX=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},aX=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},sX=(e,t,r,n,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,c)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,c)=>{const{qSize:u}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[],h=t.some(oX);return t.forEach((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w}=i[r],C=s.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),E=QH(m,e,a,C),R=!m&&e.qIsNull,A=m&&eB(e,m),I=R||A?l$(E):s$(e);f[r]={id:cz(),...e,align:XH(I,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h,isTotalRow:h,pageRowIdx:p,pageColIdx:r,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:r===u.qcx-1,isNumeric:I,isNull:(!R||!I)&&eB(e,m),representation:FH({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>R||A?E:e.qText,direction:c,enabledFeatures:{[vz.Image]:!0,[vz.Indicator]:!0,[vz.MiniChart]:!0}})},l(f[r],d,r)}),{row:f,pageRowIdx:p}})(r,l,c,e.qArea,u,n,o,i,a,s);r[p]=d})})},lX=({gridState:e,setEstimatedCellHeight:t})=>{const r=nb(pb),n=nb(Yb),o=nb(Fb),i=nb(cb),a=nb(Ob),s=nb(OK),l=nb(QY),c=nb(hB),u=nb(NK),d=nb(eX),p=nb(tX),f=k([]),h=O((e,n)=>{const o=Array.isArray(n)?n.slice(0,u):(e=>Array(e).fill(void 0))(u);return sX(e,s,o,c,r,i,t,a),f.current=o,o},[u,s,c,r,i,t,a]),[m,g]=I(()=>h(l??[]));Um(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const r=k(new Set),n=k(new Set),o=k(new Set),i=rX(e),a=rX(t),s=A(()=>({enqueue:e=>{const t=nX(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach(e=>{o.current.delete(nX(e))}),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}},75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}}),[i,a]);return s})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=O((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(aX(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}},[b]),y=O((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(iX(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};b.enqueue(t)}}},[b,s]);return D(()=>{if(void 0===l)return;const{qcx:t,qcy:n}=r.qHyperCube.qSize,o=e.current.overscanRowStartIndex,i=e.current.overscanColumnStartIndex,a=o+s.page*s.rowsPerPage,c=t-i,u=s.rowsPerPage-o,f=Math.min(100,c,t,p+5),h=Math.min(100,u,n,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,r,d,p,s,b,y,e,n]),{rowsInPage:m,loadRows:y,loadColumns:v}},cX=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},uX=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,dX=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=nb(PB),i=nb(zB),{estimateLineCount:a}=Fm(o.dimension.values),s=$$(o.dimension.values.fontSize),l=e||t||1===r;return O((e,t,o)=>{if(l||e.representation.type===vz.Image||e.isNumeric)return;const c=(e=>Math.max(0,e-24-1))(i[o]),u=e.representation.text?a({text:e.representation.text,maxWidth:c,isNumeric:!1}):1,d=Math.min(r,Math.max(1,u));n(d*s,t,o,e.isTotalRow??!1)},[l,i,a,r,s,n])},pX=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=nb($H);L(()=>{const i=e?n:((e,t)=>{const r=0===t?0:e/t;return Math.ceil(r)})(r.sumHeight,r.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},fX=({isSnapshot:e,gridRef:t})=>{const r=nb(PB),n=nb(NK),[o,i]=I(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=nb(TB),s=nb(OB),l=nb(qB),c=!!r.contentStaticLineCount,u=Math.max(8e6/n,s,l)-9,d=u+9,p=Math.max(1,Math.min(r.grid.contentLineClamp,Math.round(u/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:c});(({gridRef:e,setState:t})=>{const r=nb(pb),n=nb(OK),o=nb(zB),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;Um(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),Um(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:r})=>{const n=nb(OB),o=nb(qB);return O((i,a,s,l=!1)=>{z(()=>{e(e=>{const c=l?o:n,u=Math.max(c,i+9),d=Math.min(t,u),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!uX(p.get(s),d))return e;const f={...e},h=e.rowHeights.get(a);p.set(s,d);const m=void 0===h||d>=h?d:cX(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,r.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,n,o,r])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O((o,i,a,s)=>{e||t||1===r||n(o,i,a,s)},[e,t,r,n]))({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),g=dX({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=O(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return pX({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},hX=(e,t)=>{L(()=>()=>{t(0)},[e,t]);const r=O(e=>{const r=e.contentBoxSize.at(0)?.blockSize;void 0!==r&&t(r)},[t]);hU({ref:e,callback:r})};let mX=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const gX=({loadRows:e,loadColumns:t,gridState:r})=>{const n=nb($H),o=nb(pb),i=nb(OK),a=nb(NK);return O(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:c,overscanRowStopIndex:u,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o,i;return o=n>t?mX.Down:n<t?mX.Up:mX.None,i=r>e?mX.Right:r<e?mX.Left:mX.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(r.current,s,c);if(r.current.overscanColumnStartIndex=s,r.current.overscanColumnStopIndex=l,r.current.overscanRowStartIndex=c,r.current.overscanRowStopIndex=u,c>a)return;const b=s,v=c+i.page*i.rowsPerPage,y=l-s+1,x=u-c+1;if(n.visibleLeft=d,n.visibleWidth=p-d+1,n.visibleTop=f+i.page*i.rowsPerPage,n.visibleHeight=h-f+1,n.page=i.page,n.rowsPerPage=i.rowsPerPage,m===mX.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===mX.Up){const t=x+25,r=i.page*i.rowsPerPage,n=Math.max(r,v-25);e(b,n,y,t)}if(g===mX.Right){const e=o.qHyperCube.qSize.qcx-b,r=y+5,n=Math.min(e,r);t(b,v,n,x)}else if(g===mX.Left){const e=Math.max(0,b-5),r=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,r,x)}},[r,a,i.page,i.rowsPerPage,n,e,o.qHyperCube.qSize.qcx,t])};const bX=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},vX=(e,t)=>{if(!e||!t)return;const r=e.scrollHeight-e.clientHeight,n=Math.round(r*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==n&&(e.scrollTop=n)},yX={overflow:"hidden",willChange:"auto"},xX=_((e,t)=>{const{handleBodyKeyDown:r,handleBodyKeyUp:n,focusBodyCellOnClick:o}=nY(),i=nb(hB),a=nb(BY),s=ob(FY),l=nb(VY),c=nb($H),u=nb(pb),d=nb(Ob),p=nb(zB),f=nb(NK),h=nb(_K),m=ob(jK),g=k(null),b=k(null),v=k(null),y=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=k(0),S=!!G$(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=fX({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:I,loadRows:P,loadColumns:M}=lX({gridState:y,setEstimatedCellHeight:C}),T=gX({loadRows:P,loadColumns:M,gridState:y}),q=iG(),N=A(()=>({rowsInPage:I,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:q,onKeyDown:r,onKeyUp:n,onCellClick:o}),[I,i,S,R,w,q,r,n,o]);return L(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=ob(kW),{shouldRefocusRef:r}=nb(UK),n=nb(Ub),o=nb(LK);D(()=>{t({type:r$.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=O(()=>{r&&(r.current=n.contains(document.activeElement))},[r,n]);aG({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(I),F(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(v.current?.clientHeight??l)-l,n=Math.round(r*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[v,l,f]),D(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),vX(h,b.current)}),()=>{m(null)}),[h,m]),hX(v,s),or.jsx(RY,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:yX,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:N,onItemsRendered:T,itemKey:bX,className:"sn-table-body",direction:d,children:ZY})});var SX=j(xX);const wX=Wg(e=>{const t=e(BY),r=e(OB),n=e($Y),o=e(FY)+n,i=e(NK)*r+n;return o<2*t.height?o:i}),CX=({children:e})=>{const t=nb(HB),r=nb(wX);return or.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r},children:e})},EX=(e,t)=>{const r=k(null),n=nb(zB);L(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=O(r=>{const n=r.contentBoxSize.at(0)?.blockSize;n&&t(n+9,e)},[e,t]);return hU({ref:r,callback:o}),r},RX=Lc("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:r,applicableStyle:n,color:o})=>({...n,background:r,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),AX=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=r,l=nb(PB),c=nb(Ob),u=nb(Rb),d=nb(MW),p=ob(_$),f=nb(fB),h=nb(Mb),m=nb(zB)[e],g=nb(zb),b=nb(HU(e)),v=n[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=xK({isInteractionEnabled:h,column:v}),C=nb(xb),E=EX(e,i),R=n.length-1===e,A=C?iU:IU,{ref:I,isDragging:k}=EK(v,e),P=JG(v.id),M=b&&!g.enabled&&h?0:-1,D=a?t=>{a(t,e,S)}:void 0;return or.jsxs(RX,{"data-dragging":k,ref:I,className:`sn-table-cell ${eg}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...TW(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:P$(c,R,d),borderLeftWidth:M$(c,R,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:P},interactions:u,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:M,onKeyDown:D,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[or.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),or.jsx(vK,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},IX=e=>{const[t,r]=I(new Map);Um(()=>{r(new Map)},[e.length]);const n=O((e,t)=>{r(r=>uX(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:A(()=>cX(t),[t]),setMeasuredCellHeight:n}},kX=(e,t)=>{F(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},PX=e=>{const t=nb(Yb),r=nb(pb),n=nb(OK),o=nb(zB);Um(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},MX={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},DX=_((e,t)=>{const{columResizeHandler:r}=e,n=nb(hB),o=nb(BY),i=ob(_Y),a=S.useRef(null),s=k(null),l=nb(MB),c=nb(pb),u=nb(Lb),d=nb(Ob),p=nb(zB),{rowHeight:f,setMeasuredCellHeight:h}=IX(n),m=gK(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=nY();return kX(t,a),PX(a),hX(s,i),or.jsx(OY,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...MX,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:r,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:AX})});var TX=j(DX);const OX=_((e,t)=>{const{children:r,onScroll:n}=e,o=nb(Ob),i=nb(Pb),{width:a,height:s}=nb(HY),l=ob(_K),c=O(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return or.jsx("div",{"data-testid":"scrollable-container",ref:c,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:n,dir:o,tabIndex:-1,children:r})}),qX=({children:e})=>{const t=nb(Ob),r=nb(BY);return or.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:r.width,height:r.height},children:e})},LX=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=r,l=nb(PB),c=nb(pb),u=nb(Ob),d=nb(Ib),p=nb(Mb),f=nb(MW),h=EX(e,i),m=n[e].totalInfo,{totalsTextAlign:g,isTotalNumeric:b}=n[e],v=c.qHyperCube.qSize.qcx-1===e,y=JG(n[e].id),x=a?t=>{a(t,e)}:void 0;return or.jsx("div",{className:`sn-table-cell ${eg}`,tabIndex:-1,title:d?m:void 0,"data-col":e,onKeyDown:x,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...TW(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:P$(u,v,f),borderLeftWidth:M$(u,v,f),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:g,textAlign:g,boxSizing:"border-box",cursor:"default",opacity:y},children:or.jsx(oU,{forwardRef:b?void 0:h,isNumeric:b,children:m})})},NX=_((e,t)=>{const{totals:r}=e,n=nb(hB),o=nb(BY),i=ob(zY),a=k(null),s=k(null),l=nb(DB),c=nb(Ob),u=nb(pb),d=nb(zB),{rowHeight:p,setMeasuredCellHeight:f}=IX(n),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=nY();return kX(t,a),PX(a),hX(s,i),or.jsx(OY,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:MX,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:n,totals:r,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:c,children:LX})});var jX=j(NX);const _X=(e,t,r)=>{const n=nb(Ob),o=nb($H);return O(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,c=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,n),u=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=u,o.scrollLeft=c,r.current?.interpolatedScrollTo(Number.isNaN(u)?0:u,c),e.current?.scrollTo(c),t.current?.scrollTo(c)},[o,r,e,t,n])};var zX=j(()=>{const e=nb(fB),t=k(null),r=k(null),n=k(null),o=k(null),i=_X(r,n,o),a=O(()=>{t.current&&(t.current.scrollTop=0)},[t]);BU(),(e=>{const t=nb(mB),r=nb(OK),n=nb(Yb),o=nb(NK);D(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),D(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[r,o,n,e])})(t),ZU(t);const s=or.jsx(jX,{ref:n,totals:e},"totals");return or.jsxs(_U,{children:[or.jsx(OX,{ref:t,onScroll:i,children:or.jsxs(CX,{children:[or.jsxs(qX,{children:[or.jsx(TX,{ref:r,columResizeHandler:a}),e.atTop?s:null,or.jsx(SX,{ref:o}),e.atBottom?s:null]}),or.jsx(DW,{})]})}),or.jsx(DU,{isPagination:!1})]})});const FX=()=>{const e=nb(pb),t=nb(Wb),r=nb(Rb),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=nb(pB),s=nb(Yb),l=nb(Xb),c=nb(zb),[u,d]=ib(OK),p=k(null),f=k(!1),h=ob(qK),m=ob(LK);D(()=>{h(f)},[h]);const g=S.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=nY();return(()=>{const e=nb(Ub),{keyboard:t}=nb(WK),r=nb($U),n=nb(fB),o=nb(NK),{scrollToCell:i}=nb(VK),{shouldRefocusRef:a}=nb(UK),s=k({focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:e}),l=k(null),c=k(null);L(()=>{s.current={focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:e}},[r,n,o,i,e]),D(()=>{let e=!1;const{focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:u}=s.current;if("function"==typeof u.querySelector){if(t.active){const[t,a]=r,d=n.atTop?2:1;if(t>=d&&t<d+o){null!==c.current&&(cancelAnimationFrame(c.current),c.current=null),i?.(t-d,a);const r=t=>{if(e)return;const n=JK(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);n&&document.activeElement!==n&&XK(n),n&&document.activeElement===n||t>0&&(l.current=requestAnimationFrame(()=>{r(t-1)}))};l.current=requestAnimationFrame(()=>{e||r(5)})}else{const e=JK(u,r,n,o);XK(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),c.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const r=JK(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);r?.blur(),YK(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==c.current&&(cancelAnimationFrame(c.current),c.current=null)}}},[t.active,e,a])})(),FU(p,f),or.jsxs(eU,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[or.jsx(rG,{}),or.jsx(zX,{}),or.jsx(mW,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:u,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:c,translator:l,theme:s,interactions:r,rect:t,layout:e})]})};var $X=j(FX);const HX=e=>{const t=e.get(Fb),r=e.get(jb),n=e.get(db),i=e.get(Ob);o(()=>{n&&t&&(r?function(e){const t=e.get(Ob),r=e.get(Kb),n=VB(t);r.render(or.jsx(ki,{stylisPlugins:"rtl"===t?[JF]:void 0,children:or.jsx(jc,{theme:n,children:or.jsx(Jg,{store:e,children:or.jsx(BB,{children:or.jsx(kK,{})})})})}))}(e):function(e){const t=e.get(Ob),r=e.get(Kb),n=VB(t);r.render(or.jsx(S.StrictMode,{children:or.jsx(jc,{theme:n,children:or.jsx(Jg,{store:e,children:or.jsx(BB,{children:or.jsx($X,{})})})})}))}(e))},[n,r,e,t,i])};function BX(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),c={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},u=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,c),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,c),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,c,u);return{visibleRowStartIndex:u,visibleRowEndIndex:d,rowPartialHeight:p}}const VX=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},WX=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const UX=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||tB.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},GX=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=UH(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=BX(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:UX(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:c=0}=t,u=l*c,d=a-u,p=d+s-1,f=VX(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+u,visibleRowEndIndex:p+u};const g=n.y+n.height,b=(WX(h,m,g)?d:d+1)+u;let v=p+u;const y=VX(p,o),x=y?.getBoundingClientRect();return y&&x&&(WX(x,m,g)||(v=p-1+u)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:UX(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},KX={version:JSON.stringify("6.33.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var YX=e=>({properties:{initial:KX},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>bv({...e}),exportProperties:dv,exploration:Q_(e)});const XX=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),JX=e=>e.getStyle("object","straightTableV2","backgroundColor");function ZX(r){return{qae:YX(r),ext:uF(r),component(){const n=u(),i=e(()=>Kg(),[!1!==n.usePagination]);i.set(cb,r);const s=d();i.set(Ub,s),i.set(pb,n),i.set(ab,p()),i.set(Fb,f()),i.set(Rb,h()),i.set(Xb,m()),i.set(Cb,g()),i.set(Tb,t()),i.set(zb,b()),i.set(Wb,v()),i.set(lb,y());const x=Lm(n,s,XX,JX);i.set(Yb,x),i.set(db,Wm(x,n,r)),i.set(sb,zt()),(e=>{const t=e.get(Kb);o(()=>()=>{t.unmount()},[t])})(i),a?.((e,t)=>{const r=t.target,n=r?.closest(`.${eg}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{ug(n)}})}),(({store:e})=>{const t=e.get(pb),r=e.get(Fb),n=e.get(Ub),o=e.get(Vb),i=e.get(Lb),a=e.get(jb);l(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get($H),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=GX(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),c(()=>({getViewState:()=>GX(t,e.get($H),n,i,a)}),[t,e,n,a])})({store:i}),HX(i)}}}export{ZX as default};
|
|
121
|
+
*/var kF=(AF||(AF=1,function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+u+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+r+"|"+u+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+u+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+c+v+"[^;}]+;?)","gi"),I=new RegExp("("+c+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),M=new RegExp(l+"(left)"+b+y+v,"gi"),D=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),O=new RegExp(l+"(right)"+x,"gi"),q=/(:dir\( *)ltr( *\))/g,L=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter(function(e){return e}),o=r.slice(6,10).filter(function(e){return e}),i=r[10]||"";return t+(o.length?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(A,"`NOFLIP_SINGLE`"),a=new n(I,"`NOFLIP_CLASS`"),s=new n(R,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(q,"$1`TMPLTR`$2").replace(L,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(O,"$1left").replace(w,"right")),r=r.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(M,"$1"+e).replace(D,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(V,Q).replace(W,te).replace(U,ne).replace(G,ne).replace(K,te).replace(Y,re).replace(X,re).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(IF,IF.exports)),IF.exports),PF=Zt(kF),MF="comm",DF="rule",TF="decl",OF=Math.abs,qF=String.fromCharCode;function LF(e){return e.trim()}function NF(e,t,r){return e.replace(t,r)}function jF(e,t){return 0|e.charCodeAt(t)}function _F(e,t,r){return e.slice(t,r)}function zF(e){return e.length}function FF(e,t){return t.push(e),e}var $F=1,HF=1,BF=0,VF=0,WF=0,UF="";function GF(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:$F,column:HF,length:a,return:"",siblings:s}}function KF(){return WF=VF>0?jF(UF,--VF):0,HF--,10===WF&&(HF=1,$F--),WF}function YF(){return WF=VF<BF?jF(UF,VF++):0,HF++,10===WF&&(HF=1,$F++),WF}function XF(){return jF(UF,VF)}function JF(){return VF}function ZF(e,t){return _F(UF,e,t)}function QF(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function e$(e){return LF(ZF(VF-1,n$(91===e?e+2:40===e?e+1:e)))}function t$(e){for(;(WF=XF())&&WF<33;)YF();return QF(e)>2||QF(WF)>3?"":" "}function r$(e,t){for(;--t&&YF()&&!(WF<48||WF>102||WF>57&&WF<65||WF>70&&WF<97););return ZF(e,JF()+(t<6&&32==XF()&&32==YF()))}function n$(e){for(;YF();)switch(WF){case e:return VF;case 34:case 39:34!==e&&39!==e&&n$(WF);break;case 40:41===e&&n$(e);break;case 92:YF()}return VF}function o$(e,t){for(;YF()&&e+WF!==57&&(e+WF!==84||47!==XF()););return"/*"+ZF(t,VF-1)+"*"+qF(47===e?e:YF())}function i$(e){for(;!QF(XF());)YF();return ZF(e,VF)}function a$(e){return function(e){return UF="",e}(s$("",null,null,null,[""],e=function(e){return $F=HF=1,BF=zF(UF=e),VF=0,[]}(e),0,[0],e))}function s$(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y=0,x="",S=o,w=i,C=n,E=x;g;)switch(h=y,y=YF()){case 40:108!=h&&58==jF(E,d-1)?(v++,E+="("):E+=e$(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=e$(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=qF(y);break}E+=t$(h);break;case 92:E+=r$(JF()-1,7);continue;case 47:switch(XF()){case 42:case 47:FF(c$(o$(YF(),JF()),t,r,l),l),5!=QF(h||1)&&5!=QF(XF()||1)||!zF(E)||" "===_F(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=zF(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=qF(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=NF(E,/\f/g,"")),f>0&&(zF(E)-d||0===m)&&FF(f>32?u$(E+";",n,r,d-1,l):u$(NF(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(FF(C=l$(E,t,r,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)s$(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===jF(E,3))break;case 108:if(97===jF(E,2))break;default:u=0;case 100:case 109:case 115:}u?s$(e,C,C,n&&FF(l$(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,n?S:w):s$(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+zF(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==KF())continue;switch(E+=qF(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(zF(E)-1)*b,b=1;break;case 64:45===XF()&&(E+=e$(YF())),p=XF(),u=d=zF(x=E+=i$(JF())),y++;break;case 45:45===h&&2==zF(E)&&(m=0)}}return i}function l$(e,t,r,n,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=_F(e,p+1,p=OF(g=a[m])),x=e;v<h;++v)(x=LF(g>0?f[v]+" "+y:NF(y,/&\f/g,f[v])))&&(l[b++]=x);return GF(e,t,r,0===o?DF:s,l,c,u,d)}function c$(e,t,r,n){return GF(e,t,r,MF,qF(WF),_F(e,2,-2),0,n)}function u$(e,t,r,n,o){return GF(e,t,r,TF,_F(e,0,n),_F(e,n+1,-1),n,o)}function d$(e,t,r){switch(e.type){case"@import":case TF:case MF:return e.return=e.return||e.value;case DF:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===MF&&(e.children=e.value)})}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),d$);return zF(n)?e.return=e.value+"{"+n+"}":""}function p$(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===DF&&(!e.parent||"@media"===e.parent.type||e.parent.type===DF)){var o=PF.transform(d$(e));e.children=o?a$(o)[0].children:[],e.return=""}}Object.defineProperty(p$,"name",{value:"stylisRTLPlugin"});const f$=nA(({options:e,...t})=>Yg(Bm(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);class h${#v={on:new Map,once:new Map};#y=10;#x(e){this.listenerCount(e)>this.#y&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#S(e,t,r){const n=this.#v[e].get(t)??new Set;n.add(r),this.#v[e].set(t,n),this.#x(t)}setMaxListeners(e){this.#y=e}on(e,t){this.#S("on",e,t)}once(e,t){this.#S("once",e,t)}off(e,t){this.#v.on.get(e)?.delete(t),this.#v.once.get(e)?.delete(t)}emit(e,...t){this.#v.on.get(e)?.forEach(e=>{e(...t)}),this.#v.once.get(e)?.forEach(e=>{e(...t)}),this.#v.once.delete(e)}listenerCount(e){return(this.#v.on.get(e)?.size??0)+(this.#v.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#v.on.clear(),this.#v.once.clear()):(this.#v.on.delete(e),this.#v.once.delete(e))}}const m$=Yg(()=>new h$);let g$=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),b$=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),v$=function(e){return e.A="ascending",e.D="descending",e}({}),y$=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const x$=[0,0],S$=e=>"number"==typeof e&&!Number.isNaN(+e),w$=e=>S$(e.qNum),C$=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),E$=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),R$=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},A$=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,c=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-c}:{color:l.color,t:c-.5}:a.gradient?{color:s.color,t:1-(.5+c/2)}:i.gradient?{color:l.color,t:c/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return ie(e.localPaletteColors[t].color??"").blend(ie(s.color??""),s.t)},I$=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort((e,t)=>e.value-t.value),e.limits=r.map(e=>({...e,value:E$(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:R$(n,t,r)}))),n},k$=(e,t,r,n)=>{const o=I$(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=A$(e,a,t);break}n=i}return r})(o,t);return a},P$=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!S$(e));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!S$(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},M$=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=P$(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!S$(t))return 0;let a=r&&S$(r)?Math.min(r,t):0;const s=n.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},D$=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=M$(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return R$(o,r.limitPaletteColorIndex,n);const a=E$(r.limitRange,t);return k$(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let c=l?.position||"right";return"rtl"===r&&(c="right"===c?"left":"right"),{color:a,iconKey:s,position:c}},T$=(Cm().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),O$=4/3,q$="12px",L$="600",N$="Source Sans Pro, sans-serif",j$={height:"auto",fontSize:q$,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},_$={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:L$},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},z$=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,F$=(e,t)=>e.representation.type===Tz.Image&&"fitHeight"===e.representation.imageSize?z$(t,e.representation):e.align,$$=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",H$=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},B$=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,V$=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",W$=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",U$=24,G$=zc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),K$=zc(Md,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?$$(e,n):void 0})),Y$=zc(Md,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${tg}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${tg}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),X$=zc(Md,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),J$=zc(Md,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),Z$=zc(Fu,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n})),Q$=Yg(),eH=Yg(0),tH=Yg(0),rH=e=>parseInt(e??j$.fontSize,10)*O$,nH=4/3,oH=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function iH(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const aH=(e,t)=>e?{borderBottomColor:Am.DARK_MODE_BORDER,borderRightColor:Am.DARK_MODE_BORDER,borderLeftColor:Am.DARK_MODE_BORDER,borderTopColor:Am.DARK_MODE_BORDER}:{borderLeftColor:Am.BORDER_MEDIUM,borderRightColor:Am.BORDER_MEDIUM,borderTopColor:Am.BORDER_HEAVY,borderBottomColor:t?Am.BORDER_HEAVY:Am.BORDER_LIGHT},sH=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*nH+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},lH=e=>e.components?.find(e=>"theme"===e.key),cH=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:oH(r?.fontColor)?iH(Am.TEXT,t,r?.fontColor):i||Am.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...aH(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function uH(e,t,r){const n=lH(e)?.header,o=cH("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=Pm(o.background??Am.WHITE,cg),o.activeBackground=Pm(o.background??Am.WHITE,ug),o}const dH=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in _$)(e)&&Object.assign(t,_$[e])),t};function pH(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&Dm(i);a&&(n[r[t]]=a),o=i?dH(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=Im(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const fH=25e4,hH=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,mH=5e6,gH=5e5;const bH={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:vH(e),value:vH(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}};function vH(e){try{return decodeURIComponent(e)}catch{return e}}function yH(e){if(!(this instanceof yH))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>bH.fromSearchString(t.search)}})}function xH(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}yH.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},yH.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=xH(t.key),t.value?r+=`=${xH(t.value)}`:r+=t.useEqualSign?"=":"";return r};var SH=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},wH=class{decode(e){let t="";const r=new SH(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}};const CH=e=>e>=0&&e<=1114111,EH=e=>e.match(/[\s]/);var RH=class extends wH{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!EH(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return CH(a)?String.fromCharCode(a):"�"}},AH=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},IH=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return AH.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return AH.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||AH.newInstanceIfNeeded(e,t,this._value)}},kH=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new IH);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const PH=(()=>{const e=[],t=[],r=new kH;let n,o,i;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})();var MH=class extends wH{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,PH.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=PH.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&CH(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&CH(n)?String.fromCharCode(n):null}},DH=class extends wH{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),CH(i))?String.fromCharCode(i):(e.reset(),null)}};let TH;"undefined"!=typeof document&&(TH=document.createElement("div"));const OH=Array.prototype.indexOf,qH=[",",".","_"," "],LH=[",",".","-","_"," "],NH={width:["%"],height:["%"]},jH={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},_H={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":jH.image,"background-color":jH.color,"border-color":jH.color,"border-image":jH.image,color:jH.color,icon:jH.image,"list-style-image":jH.image,"outline-color":jH.color},zH={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function FH(e,t,r){let n;if(t){if(OH)return OH.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function $H(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return TH.appendChild(r),t=TH.innerHTML,TH.removeChild(r),t}function HH(e,t,r){let n,o,i,a,s,l,c,u,d;for(e=VH(e).toLowerCase(),t=VH(t),i=0;i<zH.attr_name.length;i++)if(e.match(zH.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<zH.attr_val.length;i++)if(t.toLowerCase().match(zH.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=NH[e],n||(n=LH),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&FH(c,n)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return r||(o+='"'),o}function BH(e,t,r){let n,o,i,a,s,l,c,u,d,p;if(e=VH(e).toLowerCase(),t=VH(t),FH(e,zH.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<zH.css_val.length;n++)if(t.toLowerCase().indexOf(zH.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=_H[e],o||(o=jH.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&FH(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function VH(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new MH,new DH,new RH];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}const WH=[];for(let e=0;e<255;e++)WH[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const UH={html:e=>$H(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=BH(t,r[t],!0),i+=BH(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=HH(e,t[e],!0),o+=HH(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function GH(e,t){throw new Error(t)}var KH={canonicalize:VH,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?UH.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&GH(this,"Invalid parameter type"),UH.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&GH(this,"Invalid parameter type"),UH.attr(e)):void GH(this,"Invalid parameter type")},encodeForAttr:HH,encodeForAttr2:function(e){return HH("nonsens",e,!0)},encodeForCSS:BH,encodeForHref:function(e){VH(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new yH(e),r=yH.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+yH.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=qH),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),FH(o,t)>=0||null==WH[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:$H,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=VH(t).toLowerCase():GH(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:r=gH,maxByteSizeImage:n=mH}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=hH.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const YH=(e,t)=>t.qAttrExps?.qValues?.[e],XH=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},JH=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!KH.isSafeDataURL(t))?{type:Tz.Text,url:void 0,text:e,labelStructure:o}:{type:Tz.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:XH(n,a),labelStructure:o,imageBox:i},ZH=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:Tz.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Tz.MiniChart,text:n,miniChart:a}},QH=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===Oz.Attribute?void 0:r?.urlLabel},eB=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Tz.Link,url:KH.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:Tz.Text,url:void 0,text:t,labelStructure:e}}},tB=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:c})=>{const u=qz(t),d=s(e);return u===Tz.Image&&c[Tz.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=YH(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),JH({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return JH({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=YH(r.imageLabel??-1,e)?.qText??n;return JH({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:Tz.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):u===Tz.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===Oz.Attribute){const i=QH(r.url??-1,e,t);return eB({labelStructure:n,text:o||i||"",url:i})}if(i===Oz.Dimension){const i=QH(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),eB({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:Tz.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):u===Tz.Indicator&&c[Tz.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:Tz.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):u===Tz.MiniChart&&c[Tz.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?ZH(e,t,i,d):{type:Tz.Text,url:void 0,text:d,labelStructure:a}},rB=Yg(e=>{const t=e(zb),r=e(wb);return e(Cb),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}}),nB=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),oB=({cId:e})=>e??Cz(),iB=1e4;function aB(e,t){return[...t].reverse().find(t=>t*e<=iB)||Math.floor(iB/e)}function sB(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function lB(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function cB(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return S$(r?.qNum)}function uB(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const dB=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",pB=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=ie(r??""),i=ie(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?Pm(s,cg):void 0,c=s?Pm(s,ug):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:Im(s),headerMenuHoverBackground:l,headerMenuActiveBackground:c}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:c}};const fB=(e,t,r,n=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const r=e<n,o=(r?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,r,n,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:c,visibleDimInfoIdx:u,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===dg.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==u){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=u,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:I,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:M,qApprMaxGlyphCount:D,columnWidth:T,qLibraryId:O,headerColor:q}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:O,pageColIdx:c,qApprMaxGlyphCount:D,qReverseSort:M,columnWidth:T??{type:lg.Auto},selectionColIdx:S,isActivelySorted:g,id:oB(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:nB(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:lB(e,f,c,d??-1),...!f&&{isTotalNumeric:cB(e,d??-1)},...uB(I,b,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?pB(q,r):void 0}}(e,o,t,r,n))},hB=(e,t,r,n)=>e?(n?r.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":r.nullValueRepresentation?.text??t.qText??"-",mB=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,gB={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},bB=Yg(e=>{const t=e(vB),r=e(gb),n=e(rB),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>iB?{...t,rowsPerPage:aB(l,t.rowsPerPageOptions),page:0}:t}),vB=Yg(gB),yB=Yg(e=>{const t=e(gb),r=e(zb),n=e(rB);return Lb(t,r)?{page:n.page||gB.page,rowsPerPage:n.rowsPerPage||gB.rowsPerPage,rowsPerPageOptions:gB.rowsPerPageOptions}:e(bB)},(e,t,r)=>{t(vB,e=>({...e,...r}))}),xB=!0,SB=e=>-1===e.qElemNumber||!!e.qIsTotalCell,wB=Yg(async e=>{const t=e(gb),r=e(zb),n=e(jb),{page:o,rowsPerPage:i}=e(yB),a=e(rB),s=e(Vb),l=e(fb),c=e(vb),u=e(hb),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=sB(t,r),v=fB(t,xB,n,u),y=l.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});c||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const S=x.at(0)?.qMatrix.map((e,r)=>{const o=[],i=e.some(SB);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&mB(c,a.isDim),p=u||d?hB(a.isDim,c,t,y):c.qText,f=u?C$(p):w$(c);o[s]={id:Cz(),...c,align:dB(f,a.bodyTextAlign,n,xB),rowIdx:r+h,colIdx:a.colIdx,pageRowIdx:r,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i,isTotalRow:i,isLastRow:r===m-1,isNumeric:f,isNull:(!u||!f)&&mB(c,a.isDim),representation:tB({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:n,enabledFeatures:{[Tz.Image]:!0,[Tz.Indicator]:!0,[Tz.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),CB=YR(wB,e=>e),EB=Yg(e=>{const t=e(gb),r=e(zb),n=e(Pb),o=e(jb),i=e(hb),a=fB(t,false,o,i),s=sB(t,r),l=t.qHyperCube.qSize.qcy,c=Math.min(fH,l),u=l>fH&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/c),paginationNeeded:u}}),RB={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},AB=Yg(),IB=Yg(e=>{const t=e($b),r=e(AB);return r||(t?e(CB)??RB:e(EB))}),kB=Yg(e=>e(IB).totalsPosition),PB=Yg(e=>e(IB).columns),MB=Yg(e=>e(PB).length),DB=Yg(e=>e(IB).rows),TB=Yg(e=>e(IB).totalRowCount),OB=Yg(e=>e(IB).totalColumnCount),qB=Yg(e=>e(IB).paginationNeeded),LB=Yg(e=>{const t=e(Xb),r=e(Qb),n=e(gb),o=e(kB),i=e(DB),a=o.atTop,s=function(e,t,r,n){const o=lH(e)?.content,i=cH("content",t,o);i.background=t.background.color;const a=sH(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),u=t.getStyle("object","","straightTableV2.content.hover.color"),d=oH(l)||!!u,p=oH(s)||!!c,f=d||p;let h;h=oH(s)?iH(Am.HOVER,t,s):c||(d?"":Am.HOVER);const m=f?iH(Im(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=uH(n,r,!a),c=function(e,t,r){const n=lH(e)?.content,o=cH("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=uH(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:c}}),NB=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},jB=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=NB(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},_B=(e,t,r,n=Am.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=jB(e,t,r);return Nm(i,o,a,n)??n},zB=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return q$}},FB=e=>e?.some(e=>"italic"===e)?"italic":"normal",$B=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?L$:"normal",HB=e=>!1===e?1:3,BB=e=>e?.some(e=>"underline"===e)?"underline":"none",VB=Yg(e=>{const t=e(zb),r=e($b),n=e(Qb),o=e(gb),i=e(LB),a=e(hb),{header:s,dimensionValues:l,measureValues:c,totalValues:u,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=lH(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=r?Am.WHITE:Am.TRANSPARENT,v=_B(n,s,"object.straightTableV2.dimension.label.name.backgroundColor",b),y=t?.maxLineCount??m?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),x=(g?f:void 0)??p;return{header:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??N$,fontSize:zB(s?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:FB(s?.fontStyle),fontWeight:$B(s?.fontStyle,L$),textDecoration:BB(s?.fontStyle),color:NB(n,s?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??Am.TEXT,background:v},headerMenuHoverBackground:Pm(v,cg),headerMenuActiveBackground:Pm(v,ug),dimension:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??N$,fontSize:zB(l?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:FB(l?.fontStyle),fontWeight:$B(l?.fontStyle,"normal"),textDecoration:BB(l?.fontStyle),color:NB(n,l?.fontColor)??NB(n,m?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??Am.TEXT,background:jB(n,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??Am.TRANSPARENT}},measure:{values:{fontFamily:c?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??N$,fontSize:zB(c?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:FB(c?.fontStyle),fontWeight:$B(c?.fontStyle,"normal"),textDecoration:BB(c?.fontStyle),color:NB(n,c?.fontColor)??NB(n,m?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??Am.TEXT,background:jB(n,c,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??Am.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??N$,fontSize:zB(u?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:FB(u?.fontStyle),fontWeight:$B(u?.fontStyle,L$),textDecoration:BB(u?.fontStyle),color:NB(n,u?.fontColor)??NB(n,m?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??Am.TEXT,background:_B(n,u,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??n.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??N$,fontSize:zB(d?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:FB(d?.fontStyle),fontWeight:$B(d?.fontStyle,L$),textDecoration:BB(d?.fontStyle),color:NB(n,d?.fontColor)??NB(n,m?.fontColor)??n.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??Am.TEXT,background:_B(n,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:FB(x?.fontStyle),fontWeight:$B(x?.fontStyle,"normal"),textDecoration:BB(x?.fontStyle),color:NB(n,x?.fontColor)??NB(n,m?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??Am.TEXT,background:NB(n,x?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??Am.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:FB(p?.fontStyle),fontWeight:$B(p?.fontStyle,"normal"),textDecoration:BB(p?.fontStyle),color:NB(n,p?.fontColor)??NB(n,m?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??Am.TEXT,background:NB(n,p?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??Am.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??HB(o.multiline?.wrapTextInCells),headerLineClamp:HB(o.multiline?.wrapTextInHeaders),border:NB(n,h?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?Am.DARK_MODE_BORDER:Am.BORDER_MEDIUM),divider:NB(n,h?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??Am.BORDER_HEAVY,hoverColors:{color:NB(n,m?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:NB(n,m?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:NB(n,h?.zebraStripes?.color?.odd),background:NB(n,h?.zebraStripes?.background?.odd)},even:{color:NB(n,h?.zebraStripes?.color?.even),background:NB(n,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===NB(n,x?.background),overrideDimNullValueColor:void 0===NB(n,x?.fontColor),overrideMeasNullValueBackground:void 0===NB(n,p?.background),overrideMeasNullValueColor:void 0===NB(n,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:km(n),contentStaticLineCount:y}}),WB=Yg(e=>{const t=e(VB);return Math.max(rH(t.header.fontSize)+8,32)}),UB=Yg(e=>{const t=e(VB),r=rH(t.totalRow.fontSize);return Math.max(r+9,24)}),GB=Yg(e=>{const t=e(VB),r=e(yb),n=e(xb);return Math.max(r>0?rH(t.dimension.values.fontSize):0,n>0?rH(t.measure.values.fontSize):0)}),KB=Yg(e=>{const t=e(VB),r=e(GB),n=(t.contentStaticLineCount||1)*r;return Math.max(n+9,24)}),YB=Yg(e=>{const t=e(VB),r=rH(t.subTotalRow.fontSize),n=(t.contentStaticLineCount||1)*r;return Math.max(n+9,24)}),XB=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:c},label:u,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(sg.PixelsMax,Math.max(sg.PixelsMin,f)),i-=n[a]};switch(s){case lg.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?sg.PixelsDefault:+e)(l),h();break;case lg.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?sg.PercentageDefault:+e)(c)/100*t,h();break;case lg.FitToContent:e.representation?.type===Tz.Image?o.push(a):(f=r(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case lg.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{n[t]=Math.max(sg.AutoMinTable,e)})}return n},JB=Yg(e=>{const t=e(VB),r=e(IB).totalsPosition,n=e(Eb),{measureText:o}=e(f$({...t.header,fontWeight:L$})),{measureText:i}=e(f$({...t.totalRow,fontWeight:L$})),{estimateWidth:a}=e(f$(t.dimension.values)),{estimateWidth:s}=e(f$(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,c,u,d,p)=>{let f;if(n){const t=4;let r=25;r+=t+24,c&&(r+=20+t),u&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=U$),t+=U$,t+=U$,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),ZB=Yg(null),QB=Yg(e=>{const t=e(IB),r=e(Yb).width,n=e(tH),o=e(JB);return XB(t.columns,r-n,o)}),eV=Yg(e=>e(ZB)??e(QB),(e,t,r)=>{t(ZB,r)}),tV=eA(e=>{const t=e(m$);!1===e(Q$)&&t.emit("done-adjusting-column-width")}),rV=eA((e,t)=>{e(gb),t(ZB,null)}),nV=Yg(e=>e(eV).reduce((e,t)=>e+t,0)),oV=({children:e})=>(sb(rV),sb(tV),e);function iV(e){const t=Cm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),yc({...t,direction:e})}const aV={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},sV={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},lV=zc("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...aV},"&::-moz-range-track":{...aV},"&::-ms-track":{...aV},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...sV},"&::-moz-range-thumb":{...sV},"&::-ms-thumb":{...sV},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}})),cV=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:u,direction:d="ltr"})=>{const p=Zm({translator:u.translator}),f=k({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!c,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};Xm(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,sg.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:lg.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{Om(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{Om(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===ig.Left||e.key===ig.Right){Om(e);const t=5,r=e.key===ig.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===ig.Space||e.key===ig.Enter?(Om(e),s(e),l?.(!1),x()):e.key===ig.Esc&&(Om(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return or.jsx(lV,{style:b,hoverColor:o,isLastColumn:r,className:ag,"data-testid":ag,onMouseDown:e=>{Om(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:lg.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Om(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":sg.PixelsMin,"aria-valuemax":sg.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},uV=_((e,t)=>or.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:or.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),dV=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},pV=zc(Md,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"})),fV=zc(uV,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),hV=zc(Uf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),mV=zc(Ep)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),gV=zc(Jf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),bV=zc(Jf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"})),vV=zc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),yV=zc("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),xV=zc(Uu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),SV=zc(yf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),wV=_((e,t)=>or.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:or.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),CV=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?CV(t):t:e.parentElement?.children?.[0]},EV=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?EV(t):t},RV=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===ig.Down||t===ig.Up){const r=e=>t===ig.Down?CV(e):EV(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},AV=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(r)}}:{}}))})));let IV={};const kV=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:u})=>{const[d,p]=I(!1),f=S.useRef(null),h=O(e=>{e.stopPropagation(),p(!1)},[p]);return or.jsxs(or.Fragment,{children:[or.jsxs(bV,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),IV={}),a?.length&&(p(!0),IV[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:RV,children:[l?or.jsx(vV,{direction:c,isPagination:u}):null,or.jsxs(yV,{children:[or.jsx(SV,{direction:c,isPagination:u,children:or.jsx(o,{})}),or.jsx(xV,{variant:"body2",children:n})]}),a?.length?or.jsx(wV,{}):null]},t),a?.length?or.jsx(TV,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:AV(a,IV),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},PV=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&or.jsx(gV,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>or.jsx(kV,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),MV=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[PV({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?or.jsx(mV,{"data-testid":"group-divider",variant:"middle"}):void 0]),DV={appear:0,enter:0,exit:0},TV=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?or.jsx(hV,{className:rg,open:t,anchorEl:e,onClose:r,transitionDuration:DV,MenuListProps:{id:ng},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:MV({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,OV=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>O(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}},[e,t,r,n?.qStateName,o,i]),qV=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),LV=(e,t)=>e.some(e=>t[e]>0),NV={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},jV=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=I(null),[a,s]=I(NV);return Xm(()=>{e||(s(NV),i(null))},[e]),D(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=qV(t,r),c=await n.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:LV(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:LV(["qSelected"],e),canSelectPossible:LV(["qOption"],e),canSelectAlternative:LV(["qAlternative"],e),canSelectExcluded:LV(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},_V=_((e,t)=>or.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:or.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),zV=_((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),FV=_((e,t)=>or.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:or.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})})),$V=_((e,t)=>or.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:or.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),HV=_((e,t)=>or.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:or.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),BV=_((e,t)=>or.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:or.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),VV=_((e,t)=>or.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:or.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),WV=_((e,t)=>or.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:or.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"})})),UV=_((e,t)=>or.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:or.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})})),GV=_((e,t)=>or.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:or.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),KV=_((e,t)=>or.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:or.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),YV=_((e,t)=>or.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:or.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),XV=_((e,t)=>or.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:or.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let JV=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const ZV="/qListObjectDef",QV=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[JV.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:_V,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:$V,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:VV,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:tz,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[JV.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:WV,enabled:!0}]}]),!e.isLocked&&r[JV.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:XV,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(ZV))},icon:UV,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(ZV))},icon:YV,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(ZV))},icon:GV,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(ZV))},icon:KV,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(ZV))},icon:zV,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:BV,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:HV,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[JV.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),u?.(c)},icon:FV,enabled:!0}]}]),f},eW=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:u,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=Qm})=>{const v=k(null),y=Zm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=jV({open:e,headerData:n,app:C,qStateName:u?.qStateName}),A=dV({model:f,headerData:n}),I=OV({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),P=O(e=>{e.stopPropagation(),t(!1)},[t]),M=O(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?or.jsxs(pV,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:tg,onClick:!1===g?M:void 0,ref:v,isAccessibleHeader:g,children:[s?or.jsx(fV,{height:b,className:eg,"data-testid":eg,isInteractionsActive:i.active??!1,children:or.jsx(uV,{})}):null,or.jsx(TV,{open:e,anchorEl:!1===g?v.current:r.current,onClose:P,menuGroups:QV({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},tW=e=>e.isDark?{background:e.color,borderColor:Am.DARK_MODE_BORDER,color:Am.DARK_MODE_TEXT,disabledColor:Am.DARK_MODE_DISABLED,iconColor:Am.DARK_MODE_TEXT}:{background:e.color,borderColor:Am.BORDER_MEDIUM,color:Am.TEXT,disabledColor:Am.DISABLED},rW=zc(Md,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`})),nW=zc(Dh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),oW=zc(Fd,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)})),iW=zc(Uu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),aW=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A(()=>tW(n.background),[n]);if(!r.active)return null;const a=o?or.jsx(rW,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},sW=_((e,t)=>or.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:or.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),lW=_((e,t)=>or.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:or.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),cW=P({}),uW=()=>q(cW),dW=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(u)?0:-1,v=A(()=>tW(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=Zm({translator:d}),S=A(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,r,n,o,i,a,s,l,c,u,x,p,f,h,m,v,b,y,g]);return or.jsx(cW.Provider,{value:S,children:e})},pW=({disabledCondition:e,pageNumber:t,type:r,footerStyle:n,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:n,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${r}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let fW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),hW=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const mW=()=>{const{direction:e,pageInfo:t,width:r,interactions:n,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=uW(),c=0===t.page,u=pW({type:fW.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:n,tabIndex:l});return r<=(o?.firstPage||hW.FirstPage)?null:or.jsx(oW,{...u,disabled:!n.active,children:"rtl"===e?or.jsx(lW,{height:Qm}):or.jsx(sW,{height:Qm})})},gW=(e,t,r=!1)=>{r&&e.key===ig.Tab&&!e.shiftKey&&(Om(e),Tm(e.target,t,!1))},bW=()=>{const{direction:e,pageInfo:t,keyboard:r,totalPages:n,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:c,translator:u,tabIndex:d}=uW(),p=t.page>=n-1,f=pW({type:fW.LastPage,disabledCondition:p,pageNumber:n-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=r.enabled?e=>{gW(e,r,o)}:void 0;return i<=(s?.lastPage||hW.LastPage)?null:or.jsx(oW,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?or.jsx(sW,{height:Qm}):or.jsx(lW,{height:Qm})})},vW=_((e,t)=>or.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:or.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),yW=()=>{const{direction:e,pageInfo:t,keyboard:r,totalPages:n,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=uW(),d=t.page>=n-1,p=pW({type:fW.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>hW.FirstPage&&i>hW.LastPage)&&r.enabled?e=>{gW(e,r,o)}:void 0;return or.jsx(oW,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?or.jsx(vW,{height:Qm}):or.jsx(wV,{height:Qm})})},xW=()=>{const{direction:e,pageInfo:t,interactions:r,footerStyle:n,handleChangePage:o,translator:i,tabIndex:a}=uW(),s=0===t.page,l=pW({type:fW.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:n,handleChangePage:o,translator:i,interactions:r,tabIndex:a});return or.jsx(oW,{...l,disabled:!r.active,children:"rtl"===e?or.jsx(wV,{height:Qm}):or.jsx(vW,{height:Qm})})},SW=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=uW(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||hW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return or.jsx(iW,{variant:"caption",dir:"ltr",children:s})},wW=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=uW(),c=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${c}`,f={tabIndex:s,id:`${d}-${c}`,"data-testid":d,"aria-labelledby":p};return or.jsxs(or.Fragment,{children:[or.jsxs(iW,{variant:"caption",id:p,children:[u,":"]}),or.jsx(nW,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},CW=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=uW();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||hW.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=or.jsx(or.Fragment,{children:e.rowsPerPageOptions.map(e=>or.jsx("option",{value:e,children:e},e))});return or.jsx(wW,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},EW=1e3,RW="…",AW=({totalPages:e,page:t})=>{const r=Math.min(e,EW),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-EW):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return or.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(or.jsx("option",{value:RW,disabled:!0,children:RW},"startMoreOptions")),o<e-1&&a.push(or.jsx("option",{value:RW,disabled:!0,children:RW},"endMoreOptions")),or.jsx(or.Fragment,{children:a})},IW=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=uW(),{page:i}=e;if(t<=(o?.selectPage||hW.SelectPage))return null;const a=or.jsx(AW,{totalPages:r,page:i});return or.jsx(wW,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var kW=j(e=>or.jsxs(dW,{...e,children:[or.jsx(CW,{}),or.jsx(IW,{}),or.jsx(SW,{}),or.jsx(mW,{}),or.jsx(xW,{}),or.jsx(yW,{}),or.jsx(bW,{})]}));const PW=e=>or.jsx(aW,{...e,children:or.jsx(kW,{...e})}),MW=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},DW=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},TW=e=>e.ctrlKey||e.metaKey,OW=e=>e.shiftKey&&TW(e),qW=e=>[ig.Left,ig.Right,ig.Up,ig.Down].includes(e),LW=e=>e.shiftKey&&qW(e.key),NW=e=>(e=>qW(e)||[ig.Home,ig.End,ig.PageUp,ig.PageDown].includes(e))(e.key)&&!OW(e),jW=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),MW(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},_W=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:c}=t;if(!(a||"key"in c&&LW(c)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const u=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&LW(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===ig.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,c,a);return MW(l,n,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},zW=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},FW=(e,t)=>{switch(t.type){case b$.Select:return jW(e,t.payload);case b$.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case b$.SelectMouseUp:return((e,t)=>zW(e.isSelectMultiValues||e.firstCell!==t.cell?e:jW(e,t)))(e,t.payload);case b$.SelectMultiAdd:return _W(e,t.payload);case b$.SelectMultiEnd:return zW(e);case b$.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case b$.Clear:return e.rows.size?{...e,rows:new Map}:e;case b$.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},$W=Yg(e=>{const t=e(Ib);return function(e,t){return Yg(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(IB).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},FW)}),HW=Yg(e=>e(e($W)),(e,t,r)=>{t(e($W),r)}),BW=nA(e=>Yg(t=>{const{colIdx:r,rows:n,api:o}=t(HW);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?g$.Disabled:n.has(e.qElemNumber)?g$.Selected:g$.Possible:g$.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),VW=Yg(e=>{const t=e(nV),r=e(Yb).width,n=e(tH);return t>0&&t+n<r}),WW=()=>{const[e,t]=I(!1);return uj({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?or.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},UW=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),GW=Yg(e=>{const t=e(yb),r=e(Wb);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,c=o?i:i-t,u=await r.getEffectiveProperties(),d=u.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=u.qHyperCubeDef.qMeasures.at(c)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${c}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),r.applyPatches(p,!0)}}),KW=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),YW=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),XW=e=>e.atTop?2:1,JW=(e,t)=>({top:e?XW(t):0,bottom:e&&t.atBottom?1:0}),ZW=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],QW=e=>e?.setAttribute("tabIndex","0"),eU=e=>e?.setAttribute("tabIndex","-1"),tU=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(eU)},rU=e=>{e?.focus(),QW(e)},nU=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${ag}`);rU(t)},0)},oU=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{tU(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[c,u]=r;switch(e.key){case ig.Down:c<s&&c++;break;case ig.Up:c>a&&c--;break;case ig.Right:if(i)break;[c,u]="rtl"===n?KW({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):YW({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case ig.Left:if(i)break;[c,u]="rtl"===n?YW({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):KW({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case ig.Home:(TW(e)||i)&&(c=a),i||(u=0);break;case ig.End:(TW(e)||i)&&(c=s),i||(u=l);break;case ig.PageDown:c=Math.min(s,c+10);break;case ig.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,r,i,o),s=ZW(t,a);return rU(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},iU=(e,t,r,n)=>{tU(t),r(e),n.enabled&&!n.active?n.focus?.():rU(ZW(t,e))},aU=(e,t,r)=>{const n=e.currentTarget;if(!r.enabled||t.current||!n)return;const o=e.relatedTarget??document.activeElement,i=!!o&&n.contains(o),a=!!o?.closest(`.${rg}`);i||a||((e=>{const t=e.querySelector(`.${y$.First}`),r=e.querySelector(`.${y$.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},sU=_((e,t)=>or.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:or.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),lU=zc(Yh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...j$,...e,cursor:t.active?"pointer":"default",background:n,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}})),cU=zc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:q$,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),uU=parseInt(q$,10)/2,dU=zc("div")({position:"absolute",bottom:-uU,left:`calc(50% - ${uU}px)`}),pU=zc(dm)({position:"sticky",top:0,zIndex:1}),fU={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},hU=zc(Md)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),mU=zc("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...fU,whiteSpace:"nowrap",display:r?"block":void 0}:{...fU,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),gU=zc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),bU="cell-text",vU=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const a=sb(VB);return o?or.jsx(mU,{"data-testid":bU,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):or.jsx(mU,{"data-testid":bU,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},yU=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=sb(Sb),l=sb(GW),c=sb(jb),u=sb(Pb),d=sb(pb),p=sb(ev),f=sb(ub),h=sb(eV)[t.pageColIdx],m=sb(Vb),g=k(null),b=k(null),v=(({column:e,columnWidth:t})=>{const r=sb(VB),{measureText:n}=Vm({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:L$});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,c=t-25,u=s?20:0,d=l?20:0;let p=n(e.label);return s&&p+u<=c&&(a=!0,p+=u,l&&p+d<=c&&(i=!0,p+=d)),!s&&l&&p+d<=c&&(i=!0,p+=d),p+24<=c&&(o=!0),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?or.jsx(_V,{height:q$,"data-testid":"head-cell-sort-ascending-icon"}):or.jsx($V,{height:q$,"data-testid":"head-cell-sort-descending-icon"}),a=r?or.jsx(cU,{align:t,dir:o,children:i}):void 0,s=n?or.jsx(X$,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:or.jsx(sU,{height:q$,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return or.jsxs(Y$,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:H$(t,i,c),children:[S,or.jsxs(K$,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,or.jsx(vU,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?or.jsxs(or.Fragment,{children:[or.jsx(eW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[JV.Sorting]:!0,[JV.Searching]:!0,[JV.Selections]:!0,[JV.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:u,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:nU},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),or.jsx(G$,{ref:b,direction:c,isPagination:i}),or.jsx(G$,{ref:g,direction:c})]}):null]})},xU=_((e,t)=>or.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:or.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),SU=(e,t)=>e.isCyclic&&t,wU=({column:e})=>{const t=sb(VB),r=sb(jb),n=sb(Vb),o=S.useRef(null),[i,a]=S.useState(!1),s=dV({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return or.jsxs(or.Fragment,{children:[or.jsx(Z$,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:or.jsx(xU,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),or.jsx(TV,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:tz,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},CU=e=>e.isLocked,EU=({column:e})=>{const t=sb(ub),r=sb(Sb),n=sb(VB);return or.jsx(Z$,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=qV(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:or.jsx(sU,{height:16,"data-testid":"head-cell-lock-icon"})})},RU=({column:e,menuIconRef:t,open:r,setOpen:n})=>{const o=sb(VB);return or.jsx(Z$,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:r,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),n(e=>!e)},ref:t,children:or.jsx(uV,{height:16})})},AU=({anchorRef:e,column:t,isPagination:r,listboxRef:n,open:o,setOpen:i})=>{const a=sb(ub),s=sb(jb),l=sb(pb),c=sb(Pb),u=sb(Vb),d=sb(Sb),p=sb(ev),f=sb(GW);return or.jsx(eW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[JV.Sorting]:!0,[JV.Searching]:!0,[JV.Selections]:!0,[JV.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),f?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:n},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:nU},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:r})},IU=Yg();IU.onMount=e=>{const t=new Map,r=new ResizeObserver(e=>{for(const r of e){const e=t.get(r.target);e&&e.current(r)}});return e({callbacks:t,observer:r}),()=>{t.clear(),r.disconnect()}};const kU=({ref:e,callback:t})=>{const r=sb(IU),n=k(t);n.current=t,L(()=>{const t=e.current;return void 0===r?()=>{}:(t&&(r.callbacks.set(t,n),r.observer.observe(t)),()=>{t&&(r.callbacks.delete(t),r.observer.unobserve(t))})},[e,n,r])},PU=zc(Md)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),MU=({children:e})=>{const t=S.useRef(null),[r,n]=I(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=A(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=O(e=>{const t=new Set,r=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)}),n(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return kU({ref:t,callback:i}),or.jsx(PU,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},DU=({children:e})=>e,TU=(e,t)=>!e.isLocked&&e.isDim&&t,OU=({column:e,open:t,setOpen:r})=>{const n=sb(VB),o=sb(Sb),i=sb(jb),a=sb(pb);sb(ub);const s=S.useRef(null),l=O(()=>{r(!1)},[r]),c=OV({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return or.jsx(Z$,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:or.jsx(WV,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},qU=_((e,t)=>or.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:or.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),LU=_((e,t)=>or.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:or.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),NU=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?or.jsx(LU,{height:q$,"data-testid":"head-cell-sort-ascending-icon"}):or.jsx(qU,{height:q$,"data-testid":"head-cell-sort-descending-icon"});return r?or.jsx(dU,{children:n}):void 0},jU=0,_U=1,zU=2,FU=3,$U=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=sb(VB),c=sb(jb),{measureText:u}=Vm(l.header),[d,p]=I(!1),f=k(null),h=k(null),m=k(null),g="number"==typeof a&&a>sg.PixelsMin+18;return or.jsxs(or.Fragment,{children:[or.jsxs(MU,{children:[or.jsx(DU,{prio:zU,minWidth:U$,children:CU(t)?or.jsx(EU,{column:t}):null},"Lock"),or.jsx(DU,{prio:_U,minWidth:U$,children:SU(t,s)?or.jsx(wU,{column:t}):null},"Cyclic"),or.jsx(DU,{ignore:!0,children:or.jsx(NU,{column:t})},"Sort"),or.jsx(DU,{minWidth:u(t.label)+8,children:or.jsx(J$,{justifyContent:t.headTextAlign,children:or.jsx(vU,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),or.jsx(DU,{prio:g?void 0:jU,minWidth:U$,children:d||TU(t,s)?or.jsx(OU,{open:d,setOpen:p,column:t}):null},"Search"),or.jsx(DU,{prio:FU,minWidth:U$,children:s?or.jsx(RU,{menuIconRef:m,column:t,open:r,setOpen:n}):null},"Menu")]}),s?or.jsxs(or.Fragment,{children:[or.jsx(G$,{ref:h,direction:c,isPagination:o}),or.jsx(G$,{ref:f,direction:c}),or.jsx(AU,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:r,setOpen:n})]}):null]})},HU=zc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:r})=>({...t,background:e,color:r})),BU=()=>{},VU=({column:e,isPagination:t})=>{const r=sb(VB),n=sb(jb),o=sb(VW),i=sb(kB),a=!1,s=sb(Eb)?yU:$U;return or.jsx(HU,{className:"sn-table-cell",applicableStyle:{...r.header,...UW(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:V$(n,a,o),borderLeftWidth:W$(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??r.header.background,color:e.headerColor?.color??r.header.color,children:or.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:BU})})},WU=({isPagination:e})=>{const t=sb(PB),[r,n]=I();uj({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?or.jsx($N,{children:or.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:or.jsx(VU,{column:o,isPagination:e})})}):null},UU=YR(Yg(async e=>{e(gb);const t=e(Wb);return t?.getEffectiveProperties()}),e=>e),GU=Yg(e=>e(UU)?.qHyperCubeDef),KU=[KL.configure({activationConstraints:[new VL.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],YU=mN.plugins.filter(e=>e!==wq),XU=(e,t,r)=>{const n=JSON.stringify(t),o=JSON.stringify(r);if(n!==o)return{qPath:e,qOp:"Replace",qValue:o}},JU=(e,t,r,n,o)=>{if(!e||!t||n===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:r,visibleColumnIds:n,sourceId:o,targetId:i})=>{const a=Ez({qDimensions:e,qMeasures:t}),s=[...e,...t],l=n.findIndex(e=>e===o),c=n.findIndex(e=>e===i);if(l<0||c<0||l===c)return;const u=((e,t,r)=>{const n=[...e],[o]=n.splice(t,1);return n.splice(r,0,o),n})(n,l,c),d=new Map(u.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const r=d.get(e.id),n=d.get(t.id);return void 0===r||void 0===n?0:r-n}),f=p.filter(e=>e.isDimension).map(e=>e.def),h=p.filter(e=>!e.isDimension).map(e=>e.def),m=[...f,...h],g=new Map(m.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:f,qMeasures:h,qInterColumnSortOrder:Rz({previousColumns:s,nextColumns:m,qInterColumnSortOrder:r}),qColumnOrder:u.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:r.map(e=>e.id),sourceId:n,targetId:o});if(!i)return;const a=[XU("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),XU("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),XU("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),XU("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},ZU=({children:e})=>{const t=sb(Wb),r=sb(GU),n=sb(PB);return or.jsx(_N,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&JU(t,r,n,o,i)},sensors:KU,plugins:YU,children:e})};function QU(e,t){const r=k(!1);D(()=>{r.current?e():r.current=!0},t)}const eG=(e,t)=>{const r=sb(Bb);D(()=>{const n=e.current;if(!n)return;const o=e=>{aU(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])},tG=Yg(x$),rG=nA(e=>Yg(t=>{const[r,n]=t(tG);return 0===r&&n===e})),nG=()=>{const e=sb(db);D(()=>{e.notifyIsDoneRendering()})};var oG={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const iG=Yg(e=>{const t=e(ev),r=e(Xb);let n;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(oG).forEach(t=>{e.add(oG[t])})}(t),({keys:e,politeness:o="polite"})=>{const i=e.map(e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)}).join(" "),a=r.querySelector(`.${y$.First}`),s=r.querySelector(`.${y$.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;n===y$.First?(l=s,n=y$.Second):(l=a,n=y$.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}}),aG=(e,t)=>{const r=sb(iG),n=sb(Xb),o=sb(OB),i=sb(TB),a=sb(DB),s=sb(kB),[l,c]=cb(tG),u=sb(Ab),d=sb(Bb);QU(()=>{const t=((e,t,r=!1)=>{const n=[XW(t),e[1]];return r?n:x$})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(tU(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=ZW(t,e);r.current?(rU(s),r.current=!1):QW(s),n&&(a({keys:[s?.textContent??""]}),DW(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:r})},[a.length,i,o,t])},sG=e=>{Om(e),TW(e)&&hg(e.currentTarget)},lG=e=>{NW(e.evt)&&(Om(e.evt),oU(e))},cG=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!NW(t))return;Om(t);const i=((e,t)=>[e.pageRowIdx+XW(t),e.pageColIdx])(n,r),a=JW(o,r),{nextCell:s,nextCellCoord:l}=oU({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:b$.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):DW(o,a,i)})({...e,nextCell:s})},uG=e=>{const{evt:t}=e;OW(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{Om(e);const a=Math.ceil(t/r)-1;e.key===ig.Right&&n<a?(o(),i(n+1)):e.key===ig.Left&&n>0&&(o(),i(n-1))})(e):t.key===ig.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(Om(e),t.blur?.(!0))})(e):qW(t.key)&&Om(t)},dG=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(g$.Disabled))return void Om(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case ig.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{Om(e),t.isSelectable&&r&&n({type:b$.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case ig.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{Om(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case ig.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(Om(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case ig.C:sG(t);break;case ig.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(Om(e),Tm(e.currentTarget,t,e.shiftKey))})(n);break;default:cG(n)}},pG=e=>{const t=sb(Q$),r=lb(eH),n=lb(tH),o=sb(m$),i=k();kU({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),D(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},fG=zc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),hG=zc(Qh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),mG=zc(jh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),gG=()=>or.jsxs(or.Fragment,{children:[or.jsx(fG,{className:y$.First,"data-testid":y$.First,"aria-live":"polite","aria-atomic":"true"}),or.jsx(fG,{className:y$.Second,"data-testid":y$.Second,"aria-live":"polite","aria-atomic":"true"})]}),bG=e=>{const t=k(new Map),r=k(null);D(()=>{r.current=e(t.current),t.current.forEach((e,t)=>{r.current?.observe(t)});const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}},[e,r,t]);const n=O((e,n)=>{t.current.set(e,n),r.current?.observe(e)},[t,r]),o=O(e=>{t.current.delete(e),r.current?.unobserve(e)},[r,t]);return A(()=>({addTask:n,removeTask:o}),[n,o])},vG=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),yG=()=>bG(vG),xG=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=sb(Ib),n=sb(Bb),o=lb(HW);D(()=>{const i=()=>{o({type:b$.Reset})},a=()=>{o({type:b$.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}},[r,n,o,e,t])},SG=e=>{e.stopPropagation()},wG=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:SG,color:Am.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),CG=({href:e,text:t,interactions:r,color:n})=>or.jsx(Xp,{...wG({href:e,text:t,interactions:r,color:n}),children:t}),EG=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),RG=window.cancelIdleCallback??(e=>{clearTimeout(e)}),AG="qDimensionInfo/0",IG="qMeasureInfo/0",kG="x",PG="y",MG=e=>({key:"bars",type:"box",data:{extract:{field:AG,props:{start:0,end:{field:IG}}}},settings:{major:{scale:kG},minor:{scale:PG},box:{maxWidthPx:8,fill:{fn:e}}}}),DG=e=>({key:"p",type:"point",data:{extract:{field:AG,props:{y:{field:IG}}}},settings:{x:{scale:kG},y:{scale:PG},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),TG=({qNum:e})=>void 0===e?0:Math.sign(e),OG=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=Mm(e,t?.negative,r),a=Mm(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:AG,props:{start:0,end:{field:IG,value:TG}}}},settings:{major:{scale:kG},minor:{scale:PG},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},qG=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=Mm(e,t?.main,o),l=Mm(e,t?.max,s),c=Mm(e,t?.min,s),u=Mm(e,t?.first,s),d=Mm(e,t?.last,s);return e=>{const t=PG in e.datum?PG:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?c:e.data.items.at(0)===e.datum?u:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[MG(a)];case"dots":return[DG(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:AG,props:{v:{field:IG}}}},settings:{coordinates:{major:{scale:kG},minor:{scale:PG,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Mm(e,n?.main,e.getDataColorSpecials().primary));return r?[t,DG(a)]:[t]}case"posNeg":return[OG(e,n)];default:return[]}},LG=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),NG=(e,t,r,n)=>({y:{data:{field:IG},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:AG}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),jG=U();jG.use(W),jG.renderer.prio(["canvas"]);const _G={resolve:()=>{},promise:{}},zG=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:c}=(e=>{const t=k(e.isDownloadedAsPDForImage?Nt():_G);return{addChartPromiseToQueue:O(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:O(()=>{if(null===t.current||null!==e.current)return;c();r.current=EG(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:c}=n;return jG.chart({element:e,data:{type:"q",key:"qHyperCube",data:LG(s)},settings:{scales:NG(a,l,c,i),components:qG(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,c,r,n,o,a,i,l]),safeCancelIdleCallback:O(()=>{null!==r.current&&RG(r.current),r.current=null,l()},[r,l])}},FG=e=>{const t=k(null),r=k(!1);return O(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(RG(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=EG(()=>{e.current?.update()},{timeout:2e3})):r.current=!1:r.current=!0},[e])},$G=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),c=k(null),{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:d}=zG({element:s,chart:l,requestId:c,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=O(e=>{e.isIntersecting?n():r()},[n,r]);D(()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}},[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{D(()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null}),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=FG(t);D(()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}},[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},HG=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=$G({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return or.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},BG=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},VG=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},WG=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=sb(jb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=or.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:r,objectFit:VG(s),objectPosition:BG(l),overflow:"hidden"}});return n?or.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?r:"100%",overflow:"hidden",display:"flex",justifyContent:c?z$(o,e):void 0},children:u}):u},UG=_((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),GG=_((e,t)=>or.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:or.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),KG=_((e,t)=>or.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[or.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),or.jsx("use",{fillRule:"evenodd"})]})),YG=_((e,t)=>or.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:or.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),XG=_((e,t)=>or.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:or.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),JG=_((e,t)=>or.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:or.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),ZG=_((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M2 7.5h12v1H2z"})})),QG=_((e,t)=>or.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:or.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),eK=_((e,t)=>or.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:or.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),tK=_((e,t)=>or.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:or.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),rK=_((e,t)=>or.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:or.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),nK={m:_((e,t)=>or.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:or.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":tK,R:LU,S:qU,T:_((e,t)=>or.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:or.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),U:_((e,t)=>or.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:or.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),P:eK,Q:JG,"è":_((e,t)=>or.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:or.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":YG,"©":KG,"23F4":XG,2013:rK,"&":QG,add:UG,"minus-2":ZG,dot:GG},oK=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&nK[t];return o&&or.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:or.jsx(o,{style:{height:e}})})},iK=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=sb(VB),o=sb(jb),i=sb(Qb),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=D$(e,t,o,i),d=(e=>parseInt(e||q$,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=u||{};return l?or.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?p:void 0},children:["left"===h&&oK({size:d,iconKey:f,color:p}),or.jsx(vU,{isNumeric:!0,children:a}),"right"===h&&oK({size:d,iconKey:f,color:p})]}):oK({size:d,iconKey:f,color:p})},aK=(e,t,r)=>e.contentStaticLineCount?t*(r??e.grid.contentLineClamp):t,sK=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=sb(VB),c=sb(GB),u=sb(db),d=sb(gb),p=sb(Qb),f=sb(jb),h=sb(Pb),m=sb(Ab);if(t.representation.type===Tz.Image&&!t.representation.url?.trim())return null;if(t.representation.type===Tz.Image)return or.jsx(WG,{representation:t.representation,textStyle:r,maxImageHeight:aK(l,c,o),wrapInContainer:!n});let g=t.representation.text;t.representation.type!==Tz.Link||m||t.isNull||(g=or.jsx(CG,{href:t.representation.url,text:t.representation.text,interactions:h,color:r.cellForegroundColor}));const b="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==Tz.Indicator||Number.isNaN(b)?t.representation.type===Tz.MiniChart&&t.representation.miniChart&&!t.isNull?or.jsx(HG,{height:aK(l,c,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:u}):or.jsx(vU,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:g}):or.jsx(iK,{representation:t.representation,cellValue:b,paginationCellAlign:n?void 0:s})},lK=()=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:or.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),cK=zc("div")({"& path":{stroke:"none !important"}}),uK=({children:e,cellSelectionState:t,hideTickIcon:r})=>t!==g$.Selected||r?e:or.jsxs(gU,{children:[e,or.jsx(cK,{children:or.jsx(lK,{})})]}),dK=e=>{const t=function(){const e=zN(),t=wN(()=>null==e?void 0:e.dragOperation.source,[e]),r=wN(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},pK=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:b$.SelectMultiEnd})};r({type:b$.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:b$.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:b$.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),fK=e=>{const t=sb(qB),r=sb(kB),n=sb(iG),o=sb(Xb),i=sb(jb),a=lb(tG),s=lb(HW),l=sb(Bb),c=sb(Tb),u=sb(Ib),d=d=>{dG({evt:d,rootElement:o,selectionsAPI:u,cell:e,selectionDispatch:s,isSelectionsEnabled:c,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===ig.Shift&&t({type:b$.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;iU([s,a],t,r,n)})(e,o,a,l,r)};if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=pK(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},hK=e=>{D(()=>()=>{BW.remove(e)},[e])},mK=(e,t,r,n)=>{if(!r.isNull)return e;const o=n?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=n?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=n?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},gK=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},bK=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return gK(t,e,n?"even":"odd")}return e},vK=(e,t)=>{const r=sb(VB),n=sb(BW(e)),o=sb(hb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");hK(e);let a=t.isDim?r.dimension.values:r.measure.values;a=bK(a,r,e),a=i?r.subTotalRow:a,a=mK(a,r,e,t.isDim);const s=e.isNull||i&&t.isDim?a:pH(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,r){return t===g$.Selected?{...e,...r}:t===g$.Disabled?{...e,background:`${T$}, ${e.background}`}:e}(s,n,r.selectedColors);return{cellStyle:{...l,borderColor:r.grid.border},representationStyle:s,cellSelectionState:n}},yK=zc(Vh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),xK=zc(dm,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),SK=zc(Yh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...j$,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),wK=zc(Yh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...j$,...e,fontWeight:L$,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),CK=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=sb(jb),a=sb(Pb),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=fK(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=vK(e,t),m=dK(t.id);return or.jsx(SK,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${og}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:or.jsx(uK,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:or.jsx(sK,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:B$(i,e.align)})})})},EK=Yg(0),RK=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=sb(VB),i=sb(Db),a=sb(EK),s=dK(e.id);return or.jsx(wK,{totalsStyle:{...o.totalRow,...UW(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${og}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:or.jsx(vU,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},AK=()=>{const e=sb(kB),t=sb(PB),r=sb(DB),n=sb(Xb),o=sb(Mb),i=sb(jb),a=lb(tG),s=sb(Ab),l=sb(Bb);return or.jsx(dm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:r.length+1,c];return or.jsx(RK,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case ig.C:sG(r);break;case ig.Space:r.preventDefault();break;default:lG(e)}else Om(r)})({evt:e,rootElement:n,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{iU(u,n,a,l)}},t.id)})})};var IK=j(AK);const kK=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=sb(DB),n=sb(kB),o=sb(PB),i=sb(VB),a=sb(KB),s=sb(YB),l=sb(gb),c=!!lH(l)?.content?.hoverEffect;xG({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=O(t=>new IntersectionObserver(e=>{e.forEach(e=>{const r=t.get(e.target);r?.(e)})},{root:e.current}),[e]);return bG(t)})(t),d=yG();return or.jsxs(yK,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?or.jsx(IK,{}):void 0,r.map((e,t)=>{const r=e.at(0)?.isTotalRow??!1;return or.jsx(xK,{hoverColors:i.grid.hoverColors,hover:c,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:r?s:a,children:o.map((t,r)=>{const{id:n}=t,o=e[r];return or.jsx(CK,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},n)})},`row-${t}`)}),n.atBottom?or.jsx(IK,{}):void 0]})};var PK=j(kK);const MK=(e,t)=>!!e?.skipHeader||!!t.hideHeader,DK=Yg(e=>{const t=e(gb),r=e(Vb);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}}),TK=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=sb(DK),s=sb(jb),l=sb(Mb),c=sb(ev),[u,d]=cb(eV);if(!l)return null;return or.jsx(cV,{columnWidth:u.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...u];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{eU(e);const t=e.closest(".sn-table-cell");rU(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},OK=e=>e.target?.getAttribute("class")?.includes(ag),qK=({isInteractionEnabled:e,column:t})=>{const[r,n]=I(!1),o=sb(GW),i=sb(Q$);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||OK(t)||i||n(!0)},toggleSortOrder:r=>{e&&!OK(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var LK=class extends WD{constructor(e,t){super(e,t),this.boundingRectangle=KI(null),this.destroy=ok(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=iT(r)},i=()=>{n||(n=setTimeout(()=>{o(),n=void 0},25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,c=o.center.y-a/2,u=function(e,t,r){const n=Rj({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new EP(l,c,s,a),r,n);return u}};LK.configure=cM(LK);const NK=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/CP.distance(r.shape.center,s),type:yD.Collision,priority:vD.Normal}:null},jK=[LK.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],_K=(e,t)=>{const r=sb(jb),n=sb(hb),o=!sb(qb)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return __({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:jK,data:e,plugins:e=>[...e,hL.configure({feedback:"clone"})],collisionDetector:NK({invert:"rtl"===r})})},zK=({column:e,columnIndex:t,columnsLength:r})=>{const n=sb(VB),o=sb(Xb),i=sb(jb),a=sb(Pb),s=sb(PB),l=sb(kB),c=sb(eV)[t],u=lb(tG),d=sb(rG(t)),p=sb(qb),f=sb(Bb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=qK({isInteractionEnabled:p,column:e}),v=lb(Q$),{ref:y,isDragging:x}=_K(e,t),S=dK(e.id),w=sb(Eb),C=w?yU:$U,E=e.isActivelySorted?v$[e.sortDirection]:void 0,R=h?ng:void 0,A=h?"true":void 0,I=t===r-1,k=[0,e.pageColIdx],P={width:c,zIndex:s.length-t},M=d&&0===t&&!f.enabled&&p?0:-1;return or.jsxs(lU,{"data-dragging":x,ref:y,headerStyle:{...n.header,...UW(n,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground:e.headerColor?.background??n.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,color:e.headerColor?.color??n.header.color,interactions:a,style:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${og}`,tabIndex:M,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case ig.C:sG(r);break;case ig.Enter:case ig.Space:n?.(r);break;default:lG(e)}else Om(r)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&iU(r,t,n,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[or.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),or.jsx(TK,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},FK=()=>{const e=sb(PB),t=sb(VB),r=sb(gb),n=sb(zb),o=lb(EK),i=sb(eV),a=k(null),s=MK(n,r);return D(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),or.jsx(im,{style:{visibility:s?"collapse":void 0},children:or.jsx(pU,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,r)=>or.jsx(zK,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var $K=j(FK);var HK=j(()=>{const e=sb(iG),[t,r]=cb(yB),{page:n,rowsPerPage:o}=t,i=sb(_b),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=sb(IB),p=sb(VB),f=sb(rB),h=sb(gb),m=sb(Qb),g=sb(Yb),b=sb(Xb),v=sb(zb),y=sb(jb),x=sb(Pb),S=sb(ev),w=sb(VW),C=lb(HW),E=sb(Ab),R=sb(Bb),A=k(!1),I=k(null),P=k(null),M=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=Lb(h,v),q=T?f.scrollLeft??0:0,L=T?f.rowPartialHeight??0:0,N=O(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=O(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),_=O(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return(e=>{const t=sb(jb),r=sb(rB);D(()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth,{scrollLeft:o}=r;let i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&e.preventDefault()})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}},[e,t,r])})(I),eG(P,A),(()=>{const e=sb(Xb),t=sb(Bb),r=sb(tG);Xm(()=>{const n=ZW(e,r);t.active?rU(n):(n?.blur(),tU(e))},[t.active,e])})(),aG(A,n),D(()=>{const e=I.current;e&&(e.scrollLeft=q,e.scrollTop=L)},[t,s,q,L]),QU(()=>{C({type:b$.UpdatePageRows,payload:{pageRows:u}})},[u]),nG(),pG(I),or.jsxs(ZU,{children:[or.jsxs(hU,{ref:P,dir:y,onKeyDown:e=>{uG({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[or.jsx(gG,{}),or.jsxs(hG,{ref:I,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[or.jsxs(mG,{stickyHeader:!0,"aria-label":M,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[or.jsx($K,{}),or.jsx(PK,{updateShouldRefocus:N,tableWrapperRef:P})]}),or.jsx(WW,{})]}),or.jsx(PW,{footerContainer:i,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),or.jsx(WU,{isPagination:!0})]})});const BK=Yg(0),VK=Yg(e=>{const t=e(bb);return Math.min(fH,t)}),WK=Yg(e=>{const t=e(bb);return t===fH?0:Math.floor(t/fH)}),UK=Yg(e=>{const t=e(BK),r=e(WK);return Math.min(t,r)}),GK=Yg(e=>({page:e(UK),rowsPerPage:e(VK),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(WK);t(BK,Math.max(0,Math.min(r,n)))}),KK=Yg(null),YK=Yg(null),XK=Yg(e=>{const t=e(GK),r=e(bb);return Math.min(t.rowsPerPage,r-t.page*t.rowsPerPage)}),JK=Yg(null),ZK=Yg(null),QK=Yg(e=>e(kB).atTop?2:1),eY=Yg(e=>e(kB).atTop?1:e(QK)+e(XK)),tY=Yg(e=>JW(Boolean(e(Ab)),e(kB))),rY=Yg(e=>({firstBodyRowIdx:e(QK),totalsRowIdx:e(eY),allowedRows:e(tY)})),nY=Yg(e=>({rootElement:e(Xb),totalsPosition:e(kB),rowCount:e(XK),colCount:e(MB),columnWidths:e(eV)})),oY=Yg(e=>({scrollToCell:e(JK),scrollableContainerElement:e(ZK)})),iY=Yg(e=>({keyboard:e(Bb),isInSelectionMode:e(Ab),selectionsAPI:e(Ib),isSelectionsEnabled:e(Tb)})),aY=Yg(e=>({direction:e(jb),isInteractionEnabled:e(qb),paginationNeeded:e(qB),announce:e(iG),shouldRefocusRef:e(KK)})),sY=10,lY=e=>e.atTop?2:1,cY=e=>{e.querySelectorAll(".sn-table-cell[tabindex='0']").forEach(e=>{e.setAttribute("tabIndex","-1")})},uY=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},dY=(e,[t,r],n,o)=>{const i=lY(n);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${r}"]`);if(n.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${r}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${r}"]`):e.querySelector(`.sn-table-totals-row [data-col="${r}"]`)},pY=(e,t,r,n,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=r,d=c-lY(n),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,u),m=requestAnimationFrame(()=>{if(g())return;const e=((e,t)=>{if(!e||!t)return!1;const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom&&r.left>=n.left&&r.right<=n.right})(dY(t,r,n,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},fY=(e,t,r,n,o,i)=>e<i?[t,e+1]:t<n?[t+1,o]:[t,e],hY=(e,t,r,n,o,i)=>e>o?[t,e-1]:t>r?[t-1,i]:[t,e],mY=(e,[t,r],n,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,c=a.top,u=n-1-a.bottom,d=o-1;switch(e.key){case ig.Down:case ig.Up:t=((e,t,r,n)=>e===ig.Down&&t<n?t+1:e===ig.Up&&t>r?t-1:t)(e.key,t,c,u);break;case ig.Right:l||([t,r]=((e,t,r,n,o,i,a)=>"rtl"===a?hY(e,t,r,0,o,i):fY(e,t,0,n,o,i))(r,t,c,u,0,d,i));break;case ig.Left:l||([t,r]=((e,t,r,n,o,i,a)=>"rtl"===a?fY(e,t,0,n,o,i):hY(e,t,r,0,o,i))(r,t,c,u,0,d,i));break;case ig.Home:l?t=Math.max(c,t-sY):(TW(e)&&(t=c),r=0);break;case ig.End:l?t=Math.min(u,t+sY):(TW(e)&&(t=u),r=d);break;case ig.PageDown:t=Math.min(u,t+sY);break;case ig.PageUp:if(l)t=Math.max(c,t-sY);else{const e=s?lY(s):1,r=t-e;t=r>0&&r<=sY?e:Math.max(c,t-sY)}}return[t,r]},gY=[ig.Home,ig.End,ig.PageUp,ig.PageDown],bY=()=>{const e=k(!1),t=k(0),r=k(0),n=k(null),o=k(null),i=k(null),a=k(0),s=lb(tG),l=lb(HW),c=sb(hb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=sb(nY),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=sb(rY),{scrollToCell:v,scrollableContainerElement:y}=sb(oY),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=sb(iY),{direction:E,announce:R,isInteractionEnabled:I,paginationNeeded:P,shouldRefocusRef:M}=sb(aY),T=A(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let r=0;r<e.length;r++)t[r+1]=t[r]+(e[r]??0);return t})(h),[h]);D(()=>()=>{t.current+=1,r.current+=1,a.current+=1,n.current?.(),n.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const q=O((e,t,r,n)=>{const o=t=>{if(n&&!n())return void r?.(!1);const i=dY(u,e,d,p);if(i)return document.activeElement!==i&&uY(i),document.activeElement===i?void r?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void r?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):r?.(!1)};requestAnimationFrame(()=>{o(t)})},[u,d,p]),L=O((e,t)=>{const n=a.current+1;a.current=n;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==n)return;if(r.current!==t)return;if(u instanceof HTMLElement&&!u.isConnected)return;if(Date.now()>s||i>=5)return;const c=document.activeElement;c&&c!==document.body&&c!==document.documentElement||(i+=1,M&&(M.current=!0),o.current?.(),o.current=pY(v,u,e,d,p,y,10,()=>a.current===n&&r.current===t,()=>{q(e,300,()=>{M&&(M.current=!1)},()=>a.current===n&&r.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[q,u,p,v,y,M,d]),N=O(()=>(M&&(M.current=!0),t.current+=1,t.current),[M]),j=O(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=O((e,r)=>{const n=o=>{t.current===e&&(i.current?.(),i.current=pY(v,u,r,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=dY(u,r,d,p);i&&document.activeElement!==i&&uY(i),o>0?requestAnimationFrame(()=>{n(o-1)}):t.current===e&&M&&(M.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{n(300)})})},[u,d,p,v,M,y]),z=O((e,t)=>{if(!NW(e))return;Om(e),j(),r.current+=1;const o=r.current;a.current+=1,n.current?.(),n.current=null;const i=((e,t)=>lY(t)+e+(t.atBottom?1:0))(p,d),l=mY(e,t,i,f,E,g,d);cY(u),s(l);const[,c]=l,[,h]=t;return c!==h&&((e,t,r)=>{if(!e)return;const n=t[r]??0,o=t[r+1]??n,{scrollLeft:i,clientWidth:a}=e;n<i?e.scrollLeft=n:o>i+a&&(e.scrollLeft=o-a)})(y,T,c),M&&(M.current=!0),n.current=pY(v,u,l,d,p,y,10,()=>r.current===o,()=>{q(l,300,t=>{M&&(M.current=!1),t&&(e=>gY.includes(e))(e.key)&&L(l,o)},()=>r.current===o)}),l},[u,d,p,f,E,v,s,g,y,M,q,j,T,L]),F=O(e=>{e.key===ig.Esc?x.enabled&&!S&&(Om(e),x.blur?.(!0)):qW(e.key)&&Om(e)},[x,S]),$=O((e,t,r)=>{switch(e.key){case ig.C:Om(e),I&&(e.ctrlKey||e.metaKey)&&hg(e.currentTarget);break;case ig.Enter:case ig.Space:if(!I)return void Om(e);r?.(e);break;default:z(e,[0,t])}},[z,I]),H=O((t,n,o,i)=>{const a=[n+m,o];switch(t.key){case ig.Space:if(Om(t),i.isSelectable&&C){e.current=!0;const r=N();l({type:b$.Select,payload:{cell:i,evt:t,announce:R}}),_(r,a)}break;case ig.Enter:if(Om(t),e.current=!1,S){N(),s(x$),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),r.current+=1;const t=r.current;q(x$,300,()=>{M&&(M.current=!1)},()=>r.current===t)}break;case ig.Esc:if(e.current=!1,S){Om(t);const e=N();w?.cancel(),_(e,a)}break;case ig.C:Om(t),I&&(t.ctrlKey||t.metaKey)&&hg(t.currentTarget);break;case ig.Tab:{const e=t.shiftKey||!P;x.enabled&&S&&e&&(Om(t),Tm(t.currentTarget,x,t.shiftKey));break}default:{const r=t.key===ig.Left||t.key===ig.Right,n=S||Boolean(w?.isModal())||e.current;if(r&&n){Om(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:b$.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,P,I,N,_,s,v,y,q,M]),B=O(t=>{t.key===ig.Space&&(e.current=!1),t.key===ig.Shift&&l({type:b$.SelectMultiEnd})},[l]),V=O((e,t)=>{if(S)Om(e);else{if(e.key!==ig.Space)return e.key===ig.C?(Om(e),void(I&&(e.ctrlKey||e.metaKey)&&hg(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,I]),W=O(e=>{j(),r.current+=1;const t=r.current;cY(u),s(e),x.enabled&&x.focus?.(),q(e,2,r=>{r&&L(e,t)},()=>r.current===t)},[u,s,x,q,j,L]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:O(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:O((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:O(e=>{c&&W([b,e])},[W,b,c])}};var vY=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function yY(e,t){return e===t||!(!vY(e)||!vY(t))}function xY(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!yY(e[r],t[r]))return!1;return!0}function SY(e,t){var r;void 0===t&&(t=xY);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var wY="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function CY(e){cancelAnimationFrame(e.id)}function EY(e,t){var r=wY();var n={id:requestAnimationFrame(function o(){wY()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var RY=-1;function AY(e){if(void 0===e&&(e=!1),-1===RY||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),RY=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return RY}var IY=null;function kY(e){if(void 0===e&&(e=!1),null===IY||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?IY="positive-descending":(t.scrollLeft=1,IY=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),IY}return IY}var PY=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function MY(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,au(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:au(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=SY(function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=SY(function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:u(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=SY(function(e,t,r){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,c=i;if("rtl"===t)switch(kY()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&CY(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=EY(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Xc(t,e),t.getDerivedStateFromProps=function(e,t){return DY(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}},this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=AY();void 0!==n&&(n=Math.max(0,Math.min(n,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(kY()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&CY(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?PY:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],I=R[1],k=[];if(n>0&&g)for(var P=A;P<=I;P++)for(var M=C;M<=E;M++)k.push(w(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,M)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:Hr({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(c||u||"div",{children:k,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var DY=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},TY=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},OY=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},qY=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var c=a+1;c<=r;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},LY=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?NY(e,t,r,i,0,n):jY(e,t,r,Math.max(0,i),n)},NY=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=qY(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},jY=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&qY(e,t,n,r).offset<o;)n+=a,a*=2;return NY(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},_Y=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=qY(e,t,r,i),c="column"===e?OY(t,i):TY(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);default:return o>=d&&o<=u?o:d>u||o<d?d:u}},zY=MY({getColumnOffset:function(e,t,r){return qY("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return LY("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=qY("column",e,t,n),s=r+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=qY("column",e,c,n).size;return c},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:TY,getEstimatedTotalWidth:OY,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return _Y("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return _Y("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return qY("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return LY("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=qY("row",e,t,n),s=r+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=qY("row",e,c,n).size;return c},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),FY=function(e,t){return e};function $Y(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,au(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:au(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=SY(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=SY(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=SY(function(e,t,r){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(kY()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&CY(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=EY(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Xc(t,e),t.getDerivedStateFromProps=function(e,t){return HY(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?AY():0:l.scrollHeight>l.clientHeight?AY():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(kY()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&CY(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?FY:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],A=[];if(c>0)for(var I=E;I<=R;I++)A.push(w(t,{data:u,key:p(I,u),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var k=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:Hr({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var HY=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},BY=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=n(l);o[l]={offset:a,size:c},a+=c}r.lastMeasuredIndex=t}return o[t]},VY=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=BY(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},WY=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&BY(e,r,t).offset<n;)r+=i,i*=2;return VY(e,t,Math.min(r,o-1),Math.floor(r/2),n)},UY=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},GY=$Y({getItemOffset:function(e,t,r){return BY(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:UY,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=BY(e,t,o),p=UY(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===r&&(r=n>=h-u&&n<=f+u?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?VY(e,t,o,0,r):WY(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=BY(e,t,n),d=r+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=BY(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function KY(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var YY=["style"],XY=["style"];function JY(e,t){var r=e.style,n=Br(e,YY),o=t.style,i=Br(t,XY);return!KY(r,o)&&!KY(n,i)}const ZY=Yg(0),QY=Yg(0),eX=Yg(0),tX=Yg(e=>e(ZY)+e(QY)),rX=Yg(e=>{const t=e(Yb),r=e(qB),n=t.height-(r?41:0);return{width:t.width,height:n}}),nX=Yg(e=>{const t=e(rX),r=e(eH),n=e(tH);return{width:t.width-n,height:t.height-r}}),oX=Yg(e=>{const t=e(nX),r=e(tX),n=e(eX);return Math.min(t.height-r,n)}),iX=Yg(-1),aX=nA(e=>Yg(t=>t(iX)===e)),sX=({style:e})=>or.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var lX=S.memo(sX,JY);const cX=Yg(e=>{const t=e(nX),r=e(KB),n=e(tX),o=e(eX)+n,i=e(XK)*r+n;return o<2*t.height?o:i}),uX=Yg(e=>e(cX)<=e(rX).height),dX=()=>{},pX=e=>{e.preventDefault()};const fX=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:c,onKeyDown:u,onKeyUp:d,onCellClick:p}=n,f=sb(aX(t)),h=lb(iX),m=sb(VB),g=sb(jb),b=sb(Db),v=sb(qb),y=sb(VW),x=sb(hb),S=sb(uX),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:A}=function(e){const t="object"==typeof e,r=sb(Tb),n=lb(HW),o=sb(BW(e));if(hK(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=pK(pX,e,n,dX);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),I=((e,t,r,n)=>{const o=k(null),i=r&&!r.isNumeric,a=r?.isTotalRow??!1,s=O(r=>{const o=r.contentBoxSize.at(0)?.blockSize;o&&i&&n(o,e,t,a)},[a,t,n,e,i]);return kU({ref:o,callback:s}),o})(t,e,w,s),P=i[e]?.isDim?m.dimension.values:m.measure.values,M=dK(i[e].id);if("object"==typeof w){const n=((e,t,r,n,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS");let l=bK(o,i,e);l=s?i.subTotalRow:l,l=mK(l,i,e,t.isDim);const c=e.isNull||s&&t.isDim?l:pH(l,e.qAttrExps,t.qAttrExprInfoIDs);return n!==g$.Selected||s?n!==g$.Disabled||s?r?{...c,...i.grid.hoverColors}:c:{...c,color:r?i.grid.hoverColors?.color:c.color,background:`${T$}, ${r?i.grid.hoverColors?.background:c.background}`}:{...c,...i.selectedColors}})(w,i[e],a&&f,A,P,m,x),o={rowindex:t,columnindex:e},s=r=>{v&&p?.(t,e),C?.(r)},k=u?r=>{u(r,t,e,w)}:void 0;return or.jsx("div",{className:`sn-table-cell ${A} ${og}`,tabIndex:-1,style:{...r,...n,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:V$(g,w.isLastColumn,y),borderLeftWidth:W$(g,w.isLastColumn,y),justifyContent:F$(w,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:M},onMouseDown:s,onMouseUp:R,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:k,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:or.jsx(uK,{cellSelectionState:A,hideTickIcon:!!w.isTotalRow,children:or.jsx(sK,{forwardRef:m.contentStaticLineCount||1===l?void 0:I,cell:w,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return or.jsx(lX,{style:{...r,...P,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:M}})};var hX=j(fX,JY);const mX=YR(Yg(async e=>{const t=e(gb),r=e(Vb),n=e(GK).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(fH,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),gX=Yg(e=>{const t=e(XK),r=e(nX),n=e(KB);return Math.min(t,Math.ceil(r.height/n))}),bX=Yg(e=>{const t=e(eV),r=e(nX);return t.reduce((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),vX=e=>{const t=k(e);return t.current=e,t},yX=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,xX=e=>-1===e.qElemNumber||!!e.qIsTotalCell,SX=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},wX=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},CX=(e,t,r,n,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,c)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,c)=>{const{qSize:u}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[],h=t.some(xX);return t.forEach((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w}=i[r],C=s.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),E=!m&&e.qIsNull,R=m&&mB(e,m),A=E||R?hB(m,e,a,C):e.qText,I=E?C$(A):w$(e);f[r]={id:Cz(),...e,align:dB(I,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h,isTotalRow:h,pageRowIdx:p,pageColIdx:r,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:r===u.qcx-1,isNumeric:I,isNull:(!E||!I)&&mB(e,m),representation:tB({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>A,direction:c,enabledFeatures:{[Tz.Image]:!0,[Tz.Indicator]:!0,[Tz.MiniChart]:!0}})},l(f[r],d,r)}),{row:f,pageRowIdx:p}})(r,l,c,e.qArea,u,n,o,i,a,s);r[p]=d})})},EX=({gridState:e,setEstimatedCellHeight:t})=>{const r=sb(gb),n=sb(Qb),o=sb(Vb),i=sb(fb),a=sb(jb),s=sb(GK),l=sb(mX),c=sb(PB),u=sb(XK),d=sb(gX),p=sb(bX),f=k([]),h=O((e,n)=>{const o=Array.isArray(n)?n.slice(0,u):(e=>Array(e).fill(void 0))(u);return CX(e,s,o,c,r,i,t,a),f.current=o,o},[u,s,c,r,i,t,a]),[m,g]=I(()=>h(l??[]));Xm(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const r=k(new Set),n=k(new Set),o=k(new Set),i=vX(e),a=vX(t),s=A(()=>({enqueue:e=>{const t=yX(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach(e=>{o.current.delete(yX(e))}),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}},75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}}),[i,a]);return s})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=O((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(wX(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}},[b]),y=O((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(SX(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};b.enqueue(t)}}},[b,s]);return D(()=>{if(void 0===l)return;const{qcx:t,qcy:n}=r.qHyperCube.qSize,o=e.current.overscanRowStartIndex,i=e.current.overscanColumnStartIndex,a=o+s.page*s.rowsPerPage,c=t-i,u=s.rowsPerPage-o,f=Math.min(100,c,t,p+5),h=Math.min(100,u,n,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,r,d,p,s,b,y,e,n]),{rowsInPage:m,loadRows:y,loadColumns:v}},RX=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},AX=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,IX=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=sb(VB),i=sb(eV),{estimateLineCount:a}=Vm(o.dimension.values),s=rH(o.dimension.values.fontSize),l=e||t||1===r;return O((e,t,o)=>{if(l||e.representation.type===Tz.Image||e.isNumeric)return;const c=(e=>Math.max(0,e-24-1))(i[o]),u=e.representation.text?a({text:e.representation.text,maxWidth:c,isNumeric:!1}):1,d=Math.min(r,Math.max(1,u));n(d*s,t,o,e.isTotalRow??!1)},[l,i,a,r,s,n])},kX=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=sb(rB);L(()=>{const i=e?n:((e,t)=>{const r=0===t?0:e/t;return Math.ceil(r)})(r.sumHeight,r.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},PX=({isSnapshot:e,gridRef:t})=>{const r=sb(VB),n=sb(XK),[o,i]=I(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=sb(GB),s=sb(KB),l=sb(YB),c=!!r.contentStaticLineCount,u=Math.max(8e6/n,s,l)-9,d=u+9,p=Math.max(1,Math.min(r.grid.contentLineClamp,Math.round(u/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:c});(({gridRef:e,setState:t})=>{const r=sb(gb),n=sb(GK),o=sb(eV),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;Xm(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),Xm(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:r})=>{const n=sb(KB),o=sb(YB);return O((i,a,s,l=!1)=>{z(()=>{e(e=>{const c=l?o:n,u=Math.max(c,i+9),d=Math.min(t,u),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!AX(p.get(s),d))return e;const f={...e},h=e.rowHeights.get(a);p.set(s,d);const m=void 0===h||d>=h?d:RX(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,r.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,n,o,r])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O((o,i,a,s)=>{e||t||1===r||n(o,i,a,s)},[e,t,r,n]))({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),g=IX({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=O(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return kX({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},MX=(e,t)=>{L(()=>()=>{t(0)},[e,t]);const r=O(e=>{const r=e.contentBoxSize.at(0)?.blockSize;void 0!==r&&t(r)},[t]);kU({ref:e,callback:r})};let DX=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const TX=({loadRows:e,loadColumns:t,gridState:r})=>{const n=sb(rB),o=sb(gb),i=sb(GK),a=sb(XK);return O(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:c,overscanRowStopIndex:u,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o,i;return o=n>t?DX.Down:n<t?DX.Up:DX.None,i=r>e?DX.Right:r<e?DX.Left:DX.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(r.current,s,c);if(r.current.overscanColumnStartIndex=s,r.current.overscanColumnStopIndex=l,r.current.overscanRowStartIndex=c,r.current.overscanRowStopIndex=u,c>a)return;const b=s,v=c+i.page*i.rowsPerPage,y=l-s+1,x=u-c+1;if(n.visibleLeft=d,n.visibleWidth=p-d+1,n.visibleTop=f+i.page*i.rowsPerPage,n.visibleHeight=h-f+1,n.page=i.page,n.rowsPerPage=i.rowsPerPage,m===DX.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===DX.Up){const t=x+25,r=i.page*i.rowsPerPage,n=Math.max(r,v-25);e(b,n,y,t)}if(g===DX.Right){const e=o.qHyperCube.qSize.qcx-b,r=y+5,n=Math.min(e,r);t(b,v,n,x)}else if(g===DX.Left){const e=Math.max(0,b-5),r=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,r,x)}},[r,a,i.page,i.rowsPerPage,n,e,o.qHyperCube.qSize.qcx,t])};const OX=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},qX=(e,t)=>{if(!e||!t)return;const r=e.scrollHeight-e.clientHeight,n=Math.round(r*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==n&&(e.scrollTop=n)},LX={overflow:"hidden",willChange:"auto"},NX=_((e,t)=>{const{handleBodyKeyDown:r,handleBodyKeyUp:n,focusBodyCellOnClick:o}=bY(),i=sb(PB),a=sb(nX),s=lb(eX),l=sb(oX),c=sb(rB),u=sb(gb),d=sb(jb),p=sb(eV),f=sb(XK),h=sb(ZK),m=lb(JK),g=k(null),b=k(null),v=k(null),y=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=k(0),S=!!lH(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=PX({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:I,loadRows:P,loadColumns:M}=EX({gridState:y,setEstimatedCellHeight:C}),T=TX({loadRows:P,loadColumns:M,gridState:y}),q=yG(),N=A(()=>({rowsInPage:I,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:q,onKeyDown:r,onKeyUp:n,onCellClick:o}),[I,i,S,R,w,q,r,n,o]);return L(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=lb(HW),{shouldRefocusRef:r}=sb(aY),n=sb(Xb),o=sb(YK);D(()=>{t({type:b$.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=O(()=>{r&&(r.current=n.contains(document.activeElement))},[r,n]);xG({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(I),F(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(v.current?.clientHeight??l)-l,n=Math.round(r*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[v,l,f]),D(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),qX(h,b.current)}),()=>{m(null)}),[h,m]),MX(v,s),or.jsx(zY,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:LX,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:N,onItemsRendered:T,itemKey:OX,className:"sn-table-body",direction:d,children:hX})});var jX=j(NX);const _X=({children:e})=>{const t=sb(nV),r=sb(cX);return or.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r},children:e})},zX=(e,t)=>{const r=k(null),n=sb(eV);L(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=O(r=>{const n=r.contentBoxSize.at(0)?.blockSize;n&&t(n+9,e)},[e,t]);return kU({ref:r,callback:o}),r},FX=zc("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:r,applicableStyle:n,color:o})=>({...n,background:r,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),$X=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=r,l=sb(VB),c=sb(jb),u=sb(Pb),d=sb(VW),p=lb(Q$),f=sb(kB),h=sb(qb),m=sb(eV)[e],g=sb(Bb),b=sb(rG(e)),v=n[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=qK({isInteractionEnabled:h,column:v}),C=sb(Eb),E=zX(e,i),R=n.length-1===e,A=C?yU:$U,{ref:I,isDragging:k}=_K(v,e),P=dK(v.id),M=b&&!g.enabled&&h?0:-1,D=a?t=>{a(t,e,S)}:void 0;return or.jsxs(FX,{"data-dragging":k,ref:I,className:`sn-table-cell ${og}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...UW(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:V$(c,R,d),borderLeftWidth:W$(c,R,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:P},interactions:u,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:M,onKeyDown:D,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[or.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),or.jsx(TK,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},HX=e=>{const[t,r]=I(new Map);Xm(()=>{r(new Map)},[e.length]);const n=O((e,t)=>{r(r=>AX(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:A(()=>RX(t),[t]),setMeasuredCellHeight:n}},BX=(e,t)=>{F(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},VX=e=>{const t=sb(Qb),r=sb(gb),n=sb(GK),o=sb(eV);Xm(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},WX={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},UX=_((e,t)=>{const{columResizeHandler:r}=e,n=sb(PB),o=sb(nX),i=lb(ZY),a=S.useRef(null),s=k(null),l=sb(WB),c=sb(gb),u=sb(zb),d=sb(jb),p=sb(eV),{rowHeight:f,setMeasuredCellHeight:h}=HX(n),m=MK(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=bY();return BX(t,a),VX(a),MX(s,i),or.jsx(GY,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...WX,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:r,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:$X})});var GX=j(UX);const KX=_((e,t)=>{const{children:r,onScroll:n}=e,o=sb(jb),i=sb(Ob),{width:a,height:s}=sb(rX),l=lb(ZK),c=O(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return or.jsx("div",{"data-testid":"scrollable-container",ref:c,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:n,dir:o,tabIndex:-1,children:r})}),YX=({children:e})=>{const t=sb(jb),r=sb(nX);return or.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:r.width,height:r.height},children:e})},XX=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=r,l=sb(VB),c=sb(gb),u=sb(jb),d=sb(Db),p=sb(qb),f=sb(VW),h=sb(uX),m=zX(e,i),g=n[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=n[e],y=c.qHyperCube.qSize.qcx-1===e,x=dK(n[e].id),S=a?t=>{a(t,e)}:void 0;return or.jsx("div",{className:`sn-table-cell ${og}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...UW(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:V$(u,y,f),borderLeftWidth:W$(u,y,f),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:h&&o.atBottom||o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:b,textAlign:b,boxSizing:"border-box",cursor:"default",opacity:x},children:or.jsx(vU,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},JX=_((e,t)=>{const{totals:r}=e,n=sb(PB),o=sb(nX),i=lb(QY),a=k(null),s=k(null),l=sb(UB),c=sb(jb),u=sb(gb),d=sb(eV),{rowHeight:p,setMeasuredCellHeight:f}=HX(n),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=bY();return BX(t,a),VX(a),MX(s,i),or.jsx(GY,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:WX,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:n,totals:r,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:c,children:XX})});var ZX=j(JX);const QX=(e,t,r)=>{const n=sb(jb),o=sb(rB);return O(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,c=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,n),u=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=u,o.scrollLeft=c,r.current?.interpolatedScrollTo(Number.isNaN(u)?0:u,c),e.current?.scrollTo(c),t.current?.scrollTo(c)},[o,r,e,t,n])};var eJ=j(()=>{const e=sb(kB),t=k(null),r=k(null),n=k(null),o=k(null),i=QX(r,n,o),a=O(()=>{t.current&&(t.current.scrollTop=0)},[t]);nG(),(e=>{const t=sb(MB),r=sb(GK),n=sb(Qb),o=sb(XK);D(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),D(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[r,o,n,e])})(t),pG(t);const s=or.jsx(ZX,{ref:n,totals:e},"totals");return or.jsxs(ZU,{children:[or.jsx(KX,{ref:t,onScroll:i,children:or.jsxs(_X,{children:[or.jsxs(YX,{children:[or.jsx(GX,{ref:r,columResizeHandler:a}),e.atTop?s:null,or.jsx(jX,{ref:o}),e.atBottom?s:null]}),or.jsx(WW,{})]})}),or.jsx(WU,{isPagination:!1})]})});const tJ=()=>{const e=sb(gb),t=sb(Yb),r=sb(Pb),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=sb(IB),s=sb(Qb),l=sb(ev),c=sb(Bb),[u,d]=cb(GK),p=k(null),f=k(!1),h=lb(KK),m=lb(YK);D(()=>{h(f)},[h]);const g=S.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=bY();return(()=>{const e=sb(Xb),{keyboard:t}=sb(iY),r=sb(tG),n=sb(kB),o=sb(XK),{scrollToCell:i}=sb(oY),{shouldRefocusRef:a}=sb(aY),s=k({focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:e}),l=k(null),c=k(null);L(()=>{s.current={focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:e}},[r,n,o,i,e]),D(()=>{let e=!1;const{focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:u}=s.current;if("function"==typeof u.querySelector){if(t.active){const[t,a]=r,d=n.atTop?2:1;if(t>=d&&t<d+o){null!==c.current&&(cancelAnimationFrame(c.current),c.current=null),i?.(t-d,a);const r=t=>{if(e)return;const n=dY(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);n&&document.activeElement!==n&&uY(n),n&&document.activeElement===n||t>0&&(l.current=requestAnimationFrame(()=>{r(t-1)}))};l.current=requestAnimationFrame(()=>{e||r(5)})}else{const e=dY(u,r,n,o);uY(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),c.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const r=dY(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);r?.blur(),cY(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==c.current&&(cancelAnimationFrame(c.current),c.current=null)}}},[t.active,e,a])})(),eG(p,f),or.jsxs(hU,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[or.jsx(gG,{}),or.jsx(eJ,{}),or.jsx(PW,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:u,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:c,translator:l,theme:s,interactions:r,rect:t,layout:e})]})};var rJ=j(tJ);const nJ=e=>{const t=e.get(Vb),r=e.get($b),n=e.get(mb),i=e.get(jb);o(()=>{n&&t&&(r?function(e){const t=e.get(jb),r=e.get(Zb),n=iV(t);r.render(or.jsx(ki,{stylisPlugins:"rtl"===t?[p$]:void 0,children:or.jsx($c,{theme:n,children:or.jsx(tb,{store:e,children:or.jsx(oV,{children:or.jsx(HK,{})})})})}))}(e):function(e){const t=e.get(jb),r=e.get(Zb),n=iV(t);r.render(or.jsx(S.StrictMode,{children:or.jsx($c,{theme:n,children:or.jsx(tb,{store:e,children:or.jsx(oV,{children:or.jsx(rJ,{})})})})}))}(e))},[n,r,e,t,i])};function oJ(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),c={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},u=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,c),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,c),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,c,u);return{visibleRowStartIndex:u,visibleRowEndIndex:d,rowPartialHeight:p}}const iJ=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},aJ=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const sJ=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||gB.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},lJ=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=sB(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=oJ(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:sJ(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:c=0}=t,u=l*c,d=a-u,p=d+s-1,f=iJ(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+u,visibleRowEndIndex:p+u};const g=n.y+n.height,b=(aJ(h,m,g)?d:d+1)+u;let v=p+u;const y=iJ(p,o),x=y?.getBoundingClientRect();return y&&x&&(aJ(x,m,g)||(v=p-1+u)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:sJ(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},cJ={version:JSON.stringify("6.34.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var uJ=e=>({properties:{initial:cJ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>Sv({...e}),exportProperties:mv,exploration:fz(e)});const dJ=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),pJ=e=>e.getStyle("object","straightTableV2","backgroundColor");function fJ(r){return{qae:uJ(r),ext:RF(r),component(){const n=u(),i=e(()=>Zg(),[!1!==n.usePagination]);i.set(fb,r);const s=d();i.set(Xb,s),i.set(gb,n),i.set(ub,p()),i.set(Vb,f()),i.set(Pb,h()),i.set(ev,m()),i.set(Ib,g()),i.set(Nb,t()),i.set(Bb,b()),i.set(Yb,v()),i.set(pb,y());const x=zm(n,s,dJ,pJ);i.set(Qb,x),i.set(mb,Ym(x,n,r)),i.set(db,zt()),(e=>{const t=e.get(Zb);o(()=>()=>{t.unmount()},[t])})(i),a?.((e,t)=>{const r=t.target,n=r?.closest(`.${og}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{hg(n)}})}),(({store:e})=>{const t=e.get(gb),r=e.get(Vb),n=e.get(Xb),o=e.get(Kb),i=e.get(zb),a=e.get($b);l(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get(rB),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=lJ(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),c(()=>({getViewState:()=>lJ(t,e.get(rB),n,i,a)}),[t,e,n,a])})({store:i}),nJ(i)}}}export{fJ as default};
|