@nebula.js/sn-table 3.13.2 → 3.14.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.
@@ -1,12 +1,12 @@
1
1
  /*
2
- * @nebula.js/sn-table v3.13.2
2
+ * @nebula.js/sn-table v3.14.0
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,I,M,P,L,D,k,O,T,_,q,N,F,j,z,H,$,B;return{setters:[function(e){t=e.useState,r=e.useEffect,n=e.useTheme,o=e.useMemo,i=e.onContextMenu,a=e.useOptions,l=e.usePromise,s=e.onTakeSnapshot,u=e.useImperativeHandle,c=e.useElement,d=e.useStaleLayout,p=e.useApp,f=e.useModel,m=e.useInteractionState,h=e.useTranslator,g=e.useSelections,b=e.useKeyboard,v=e.useRect,y=e.useEmbed},function(e){x=e,S=e.default,E=e.useState,C=e.useMemo,w=e.useEffect,R=e.useContext,A=e.createElement,I=e.Children,M=e.isValidElement,P=e.cloneElement,L=e.useReducer,D=e.createContext,k=e.useRef,O=e.useCallback,T=e.forwardRef,_=e.memo,q=e.useLayoutEffect,N=e.PureComponent,F=e.startTransition,j=e.useImperativeHandle},function(e){z=e.default,H=e},function(e){$=e.default},function(e){B=e.default}],execute:function(){function W(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function G(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&W(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function V(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){V(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}e("default",(function(e){return{qae:vk(),ext:Kb(e),component(){var t;const r=c(),n=pk(r),o=d(),l=p(),s=f(),u=m(),x=h(),S=g(),E=b(),{freeResize:C}=a(),w=v(),R=null!=o&&null!==(t=o.snapshotData)&&void 0!==t&&t.content&&!C?{...w,...o.snapshotData.content.size}:w,A=Rk(o),I=y(),M=oh(o,r,Ak,Ik),P=fk(o.qHyperCube,s),L=Xb(o.qHyperCube,s),D=gk(M,o);null==i||i(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${vh}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{Mh(n)}})})),wk({layout:o,viewService:A,model:s,rootElement:r,contentRect:w}),hk({app:l,layout:o,model:s,rect:R,theme:M,keyboard:E,translator:x,interactions:u,selectionsAPI:S,changeSortOrder:P,rootElement:r,embed:I,reactRoot:n,applyColumnWidths:L,isFontLoaded:D,viewService:A,env:e}),dk({app:l,model:s,rootElement:r,layout:o,interactions:u,translator:x,selectionsAPI:S,theme:M,changeSortOrder:P,keyboard:E,rect:R,embed:I,reactRoot:n,applyColumnWidths:L,isFontLoaded:D,viewService:A,env:e})}}}));var K={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},X="qcm-color";function J(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:X,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===X){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=Y({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(K[x.toLowerCase()]){a=x.toLowerCase();var w=K[a];m=w.r,h=w.g,g=w.b,b="number"==typeof K[a].a?K[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function Z(e){var t,r,n=0,o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function Q(e){if(W(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?G(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function ee(e,t){return W(e)?"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(", "),")"):ee(J(e),t)}function te(e){return W(e)?1===e.a?Q(e):ee(e):te(J(e))}var re=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ne(e){return.2126*re(e.r)+.7152*re(e.g)+.0722*re(e.b)}var oe=1/.7;function ie(){var e=J.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]);return l+=e,l=Math.max(0,Math.min(l,100)),"hsla(".concat(o,", ").concat(i,", ").concat(l,", ").concat(a,")")},o=function(e){return ie(Math.min(t.r*e,255),Math.min(t.g*e,255),Math.min(t.b*e,255),t.a)};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:J(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=J.apply(void 0,arguments);return e.invalid||ne(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=Q(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=ee(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=te(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(W(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?G(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=Z(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=Z(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getShiftedColor:function(e){var r=void 0===e||Number.isNaN(+e)?1:e,o=.299*t.r+.587*t.g+.114*t.b,i=t.g<126?1:1+t.g/512;return ie(n(20*(o*i<220?.8+1/(o+1)*4:-(.8+o/255*1))*r))},getBrightenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o(Math.pow(oe,e))},getDarkenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o(Math.pow(.7,e))}}}function ae(e,t){if(e&&t){var r=ne(e),n=ne(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var le,se,ue=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],ce=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function de(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ce:ue}var pe=function(){if(se)return le;se=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return le=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},le}();function fe(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function me(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function he(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(pe);var ge=1/.7,be="\\s*([+-]?\\d+)\\s*",ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xe=/^#([0-9a-f]{3,8})$/,Se=new RegExp(`^rgb\\(${be},${be},${be}\\)$`),Ee=new RegExp(`^rgb\\(${ye},${ye},${ye}\\)$`),Ce=new RegExp(`^rgba\\(${be},${be},${be},${ve}\\)$`),we=new RegExp(`^rgba\\(${ye},${ye},${ye},${ve}\\)$`),Re=new RegExp(`^hsl\\(${ve},${ye},${ye}\\)$`),Ae=new RegExp(`^hsla\\(${ve},${ye},${ye},${ve}\\)$`),Ie={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Me(){return this.rgb().formatHex()}function Pe(){return this.rgb().formatRgb()}function Le(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=xe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?De(t):3===r?new _e(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ke(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ke(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Se.exec(e))?new _e(t[1],t[2],t[3],1):(t=Ee.exec(e))?new _e(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ce.exec(e))?ke(t[1],t[2],t[3],t[4]):(t=we.exec(e))?ke(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Re.exec(e))?He(t[1],t[2]/100,t[3]/100,1):(t=Ae.exec(e))?He(t[1],t[2]/100,t[3]/100,t[4]):Ie.hasOwnProperty(e)?De(Ie[e]):"transparent"===e?new _e(NaN,NaN,NaN,0):null}function De(e){return new _e(e>>16&255,e>>8&255,255&e,1)}function ke(e,t,r,n){return n<=0&&(e=t=r=NaN),new _e(e,t,r,n)}function Oe(e){return e instanceof he||(e=Le(e)),e?new _e((e=e.rgb()).r,e.g,e.b,e.opacity):new _e}function Te(e,t,r,n){return 1===arguments.length?Oe(e):new _e(e,t,r,null==n?1:n)}function _e(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function qe(){return`#${ze(this.r)}${ze(this.g)}${ze(this.b)}`}function Ne(){const e=Fe(this.opacity);return`${1===e?"rgb(":"rgba("}${je(this.r)}, ${je(this.g)}, ${je(this.b)}${1===e?")":`, ${e})`}`}function Fe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function je(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ze(e){return((e=je(e))<16?"0":"")+e.toString(16)}function He(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Be(e,t,r,n)}function $e(e){if(e instanceof Be)return new Be(e.h,e.s,e.l,e.opacity);if(e instanceof he||(e=Le(e)),!e)return new Be;if(e instanceof Be)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Be(a,l,s,e.opacity)}function Be(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function We(e){return(e=(e||0)%360)<0?e+360:e}function Ge(e){return Math.max(0,Math.min(1,e||0))}function Ve(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}fe(he,Le,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Me,formatHex:Me,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return $e(this).formatHsl()},formatRgb:Pe,toString:Pe}),fe(_e,Te,me(he,{brighter(e){return e=null==e?ge:Math.pow(ge,e),new _e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _e(je(this.r),je(this.g),je(this.b),Fe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qe,formatHex:qe,formatHex8:function(){return`#${ze(this.r)}${ze(this.g)}${ze(this.b)}${ze(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ne,toString:Ne})),fe(Be,(function(e,t,r,n){return 1===arguments.length?$e(e):new Be(e,t,r,null==n?1:n)}),me(he,{brighter(e){return e=null==e?ge:Math.pow(ge,e),new Be(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Be(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new _e(Ve(e>=240?e-240:e+120,o,n),Ve(e,o,n),Ve(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Be(We(this.h),Ge(this.s),Ge(this.l),Fe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Fe(this.opacity);return`${1===e?"hsl(":"hsla("}${We(this.h)}, ${100*Ge(this.s)}%, ${100*Ge(this.l)}%${1===e?")":`, ${e})`}`}}));const Ue=Math.PI/180,Ye=180/Math.PI,Ke=4/29,Xe=6/29,Je=3*Xe*Xe;function Ze(e){if(e instanceof Qe)return new Qe(e.l,e.a,e.b,e.opacity);if(e instanceof ot)return it(e);e instanceof _e||(e=Oe(e));var t,r,n=nt(e.r),o=nt(e.g),i=nt(e.b),a=et((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=et((.4360747*n+.3850649*o+.1430804*i)/.96422),r=et((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Qe(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Qe(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function et(e){return e>.008856451679035631?Math.pow(e,1/3):e/Je+Ke}function tt(e){return e>Xe?e*e*e:Je*(e-Ke)}function rt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ot(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function it(e){if(isNaN(e.h))return new Qe(e.l,0,0,e.opacity);var t=e.h*Ue;return new Qe(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}fe(Qe,(function(e,t,r,n){return 1===arguments.length?Ze(e):new Qe(e,t,r,null==n?1:n)}),me(he,{brighter(e){return new Qe(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Qe(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new _e(rt(3.1338561*(t=.96422*tt(t))-1.6168667*(e=1*tt(e))-.4906146*(r=.82521*tt(r))),rt(-.9787684*t+1.9161415*e+.033454*r),rt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),fe(ot,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ot)return new ot(e.h,e.c,e.l,e.opacity);if(e instanceof Qe||(e=Ze(e)),0===e.a&&0===e.b)return new ot(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ye;return new ot(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ot(e,t,r,null==n?1:n)}),me(he,{brighter(e){return new ot(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ot(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return it(this).rgb()}}));var at=e=>()=>e;function lt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):at(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?lt:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):at(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Te(e)).r,(t=Te(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=lt(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var st,ut="center",ct="bottom";function dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function pt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function ft(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ht)):void 0===t&&(t=mt);for(var r,n,o,i,a,l=new vt(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new vt(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(bt)}function mt(e){return e.children}function ht(e){return Array.isArray(e)?e[1]:null}function gt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function bt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function vt(e){this.data=e,this.depth=this.height=0,this.parent=null}function yt(){return yt=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},yt.apply(null,arguments)}function xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function St(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}[{key:"NoDataExist",alignment:ut,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:ut,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:ut,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:ut},{key:"DataRangeIncludingZero",alignment:ct},{key:"LimitedData",alignment:ct},{key:"NegativeOrZeroValues",alignment:ct}].reduce((function(e,t){return e[t.key]=t,e}),{}),vt.prototype=ft.prototype={constructor:vt,count:function(){return this.eachAfter(pt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return ft(this).eachBefore(gt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},st=function(e){
7
+ System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,I,M,P,D,L,k,O,_,T,q,N,F,j,z,H,B,$;return{setters:[function(e){t=e.useState,r=e.useEffect,n=e.useTheme,o=e.useMemo,i=e.onContextMenu,a=e.useOptions,l=e.usePromise,s=e.onTakeSnapshot,u=e.useImperativeHandle,c=e.useElement,d=e.useStaleLayout,p=e.useApp,f=e.useModel,m=e.useInteractionState,h=e.useTranslator,g=e.useSelections,b=e.useKeyboard,v=e.useRect,y=e.useEmbed},function(e){x=e,S=e.default,E=e.useState,C=e.useMemo,w=e.useEffect,R=e.useContext,A=e.createElement,I=e.Children,M=e.isValidElement,P=e.cloneElement,D=e.useReducer,L=e.createContext,k=e.useRef,O=e.useCallback,_=e.forwardRef,T=e.memo,q=e.useLayoutEffect,N=e.PureComponent,F=e.startTransition,j=e.useImperativeHandle},function(e){z=e.default,H=e},function(e){B=e.default},function(e){$=e.default}],execute:function(){function W(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function V(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&W(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function G(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}e("default",(function(e){return{qae:LL(),ext:Zg(e),component(){var t;const r=c(),n=RL(r),o=d(),l=p(),s=f(),u=m(),x=h(),S=g(),E=b(),{freeResize:C}=a(),w=v(),R=null!=o&&null!==(t=o.snapshotData)&&void 0!==t&&t.content&&!C?{...w,...o.snapshotData.content.size}:w,A=FL(o),I=y(),M=lm(o,r,jL,zL),P=AL(o.qHyperCube,s),D=Qg(o.qHyperCube,s),L=PL(M,o);null==i||i(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${Sm}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{Lm(n)}})})),NL({layout:o,viewService:A,model:s,rootElement:r,contentRect:w}),ML({app:l,layout:o,model:s,rect:R,theme:M,keyboard:E,translator:x,interactions:u,selectionsAPI:S,changeSortOrder:P,rootElement:r,embed:I,reactRoot:n,applyColumnWidths:D,isFontLoaded:L,viewService:A,env:e}),wL({app:l,model:s,rootElement:r,layout:o,interactions:u,translator:x,selectionsAPI:S,theme:M,changeSortOrder:P,keyboard:E,rect:R,embed:I,reactRoot:n,applyColumnWidths:D,isFontLoaded:L,viewService:A,env:e})}}}));var K={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},X="qcm-color";function J(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:X,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===X){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=Y({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(K[x.toLowerCase()]){a=x.toLowerCase();var w=K[a];m=w.r,h=w.g,g=w.b,b="number"==typeof K[a].a?K[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function Z(e){var t,r,n=0,o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function Q(e){if(W(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?V(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function ee(e,t){return W(e)?"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(", "),")"):ee(J(e),t)}function te(e){return W(e)?1===e.a?Q(e):ee(e):te(J(e))}var re=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ne(e){return.2126*re(e.r)+.7152*re(e.g)+.0722*re(e.b)}function oe(){var e=J.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:J(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=J.apply(void 0,arguments);return e.invalid||ne(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=Q(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=ee(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=te(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(W(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?V(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=Z(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=Z(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return oe(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return oe(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function ie(e,t){if(e&&t){var r=ne(e),n=ne(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var ae,le,se=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],ue=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function ce(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ue:se}var de=function(){if(le)return ae;le=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return ae=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},ae}();function pe(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function fe(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function me(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(de);var he=1/.7,ge="\\s*([+-]?\\d+)\\s*",be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ye=/^#([0-9a-f]{3,8})$/,xe=new RegExp(`^rgb\\(${ge},${ge},${ge}\\)$`),Se=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),Ee=new RegExp(`^rgba\\(${ge},${ge},${ge},${be}\\)$`),Ce=new RegExp(`^rgba\\(${ve},${ve},${ve},${be}\\)$`),we=new RegExp(`^hsl\\(${be},${ve},${ve}\\)$`),Re=new RegExp(`^hsla\\(${be},${ve},${ve},${be}\\)$`),Ae={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ie(){return this.rgb().formatHex()}function Me(){return this.rgb().formatRgb()}function Pe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ye.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?De(t):3===r?new _e(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Le(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Le(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=xe.exec(e))?new _e(t[1],t[2],t[3],1):(t=Se.exec(e))?new _e(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ee.exec(e))?Le(t[1],t[2],t[3],t[4]):(t=Ce.exec(e))?Le(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=we.exec(e))?ze(t[1],t[2]/100,t[3]/100,1):(t=Re.exec(e))?ze(t[1],t[2]/100,t[3]/100,t[4]):Ae.hasOwnProperty(e)?De(Ae[e]):"transparent"===e?new _e(NaN,NaN,NaN,0):null}function De(e){return new _e(e>>16&255,e>>8&255,255&e,1)}function Le(e,t,r,n){return n<=0&&(e=t=r=NaN),new _e(e,t,r,n)}function ke(e){return e instanceof me||(e=Pe(e)),e?new _e((e=e.rgb()).r,e.g,e.b,e.opacity):new _e}function Oe(e,t,r,n){return 1===arguments.length?ke(e):new _e(e,t,r,null==n?1:n)}function _e(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Te(){return`#${je(this.r)}${je(this.g)}${je(this.b)}`}function qe(){const e=Ne(this.opacity);return`${1===e?"rgb(":"rgba("}${Fe(this.r)}, ${Fe(this.g)}, ${Fe(this.b)}${1===e?")":`, ${e})`}`}function Ne(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function je(e){return((e=Fe(e))<16?"0":"")+e.toString(16)}function ze(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Be(e,t,r,n)}function He(e){if(e instanceof Be)return new Be(e.h,e.s,e.l,e.opacity);if(e instanceof me||(e=Pe(e)),!e)return new Be;if(e instanceof Be)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Be(a,l,s,e.opacity)}function Be(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function $e(e){return(e=(e||0)%360)<0?e+360:e}function We(e){return Math.max(0,Math.min(1,e||0))}function Ve(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}pe(me,Pe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ie,formatHex:Ie,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return He(this).formatHsl()},formatRgb:Me,toString:Me}),pe(_e,Oe,fe(me,{brighter(e){return e=null==e?he:Math.pow(he,e),new _e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _e(Fe(this.r),Fe(this.g),Fe(this.b),Ne(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Te,formatHex:Te,formatHex8:function(){return`#${je(this.r)}${je(this.g)}${je(this.b)}${je(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:qe,toString:qe})),pe(Be,(function(e,t,r,n){return 1===arguments.length?He(e):new Be(e,t,r,null==n?1:n)}),fe(me,{brighter(e){return e=null==e?he:Math.pow(he,e),new Be(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Be(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new _e(Ve(e>=240?e-240:e+120,o,n),Ve(e,o,n),Ve(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Be($e(this.h),We(this.s),We(this.l),Ne(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ne(this.opacity);return`${1===e?"hsl(":"hsla("}${$e(this.h)}, ${100*We(this.s)}%, ${100*We(this.l)}%${1===e?")":`, ${e})`}`}}));const Ge=Math.PI/180,Ue=180/Math.PI,Ye=4/29,Ke=6/29,Xe=3*Ke*Ke;function Je(e){if(e instanceof Ze)return new Ze(e.l,e.a,e.b,e.opacity);if(e instanceof nt)return ot(e);e instanceof _e||(e=ke(e));var t,r,n=rt(e.r),o=rt(e.g),i=rt(e.b),a=Qe((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Qe((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Qe((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ze(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ze(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Qe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Xe+Ye}function et(e){return e>Ke?e*e*e:Xe*(e-Ye)}function tt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ot(e){if(isNaN(e.h))return new Ze(e.l,0,0,e.opacity);var t=e.h*Ge;return new Ze(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}pe(Ze,(function(e,t,r,n){return 1===arguments.length?Je(e):new Ze(e,t,r,null==n?1:n)}),fe(me,{brighter(e){return new Ze(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ze(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new _e(tt(3.1338561*(t=.96422*et(t))-1.6168667*(e=1*et(e))-.4906146*(r=.82521*et(r))),tt(-.9787684*t+1.9161415*e+.033454*r),tt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),pe(nt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof nt)return new nt(e.h,e.c,e.l,e.opacity);if(e instanceof Ze||(e=Je(e)),0===e.a&&0===e.b)return new nt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ue;return new nt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new nt(e,t,r,null==n?1:n)}),fe(me,{brighter(e){return new nt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new nt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ot(this).rgb()}}));var it=e=>()=>e;function at(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):it(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?at:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):it(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Oe(e)).r,(t=Oe(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=at(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var lt,st="center",ut="bottom";function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function dt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function pt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=mt)):void 0===t&&(t=ft);for(var r,n,o,i,a,l=new bt(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new bt(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(gt)}function ft(e){return e.children}function mt(e){return Array.isArray(e)?e[1]:null}function ht(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function gt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function bt(e){this.data=e,this.depth=this.height=0,this.parent=null}function vt(){return vt=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},vt.apply(null,arguments)}function yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}[{key:"NoDataExist",alignment:st,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:st,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:st,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:st},{key:"DataRangeIncludingZero",alignment:ut},{key:"LimitedData",alignment:ut},{key:"NegativeOrZeroValues",alignment:ut}].reduce((function(e,t){return e[t.key]=t,e}),{}),bt.prototype=pt.prototype={constructor:bt,count:function(){return this.eachAfter(dt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return pt(this).eachBefore(ht)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},lt=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},st({exports:{}});var Et={exports:{}};function Ct(){}function wt(){}wt.resetWarningCache=Ct;Et.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wt,resetWarningCache:Ct};return r.PropTypes=r,r}();var Rt=xt(Et.exports);function At(e){if(e.type)return e;if("#"===e.charAt(0))return At(function(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(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(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."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function It(e,t){return e=At(e),t=function(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)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(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(", "),")")}(e)}function Mt(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Pt(e,t){return Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pt(e,t)}function Lt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pt(e,t)}function Dt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const kt={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},Ot={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...kt,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Tt=12,_t=14,qt=16,Nt=24,Ft=3,jt=300,zt=400,Ht=600,$t=700,Bt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};It(Ot.GREYSCALE_0,.05),It(Ot.GREEN_PALE,.5),It(Ot.BLUE_PALE,.5),It(Ot.GREEN_PALE,.5),It(Ot.BLUE_PALE,.5),It(Ot.GREEN_PALE,.5),It(Ot.BLUE_PALE,.5);var Wt;function Gt(){return Gt=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},Gt.apply(null,arguments)}It(Ot.GREEN_PALE,.5),It(Ot.BLUE_PALE,.5),It(Ot.GREEN_PALE,.5),It(Ot.BLUE_PALE,.5);var Vt,Ut=function(e){return x.createElement("svg",Gt({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Wt||(Wt=x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Yt(){return Yt=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},Yt.apply(null,arguments)}var Kt=function(e){return x.createElement("svg",Yt({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Vt||(Vt=x.createElement("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.345z"})))};function Xt({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var Jt=(e={})=>S.createElement(Xt,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.createElement("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"}))),Zt=(e={})=>S.createElement(Xt,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Qt=(e={})=>S.createElement(Xt,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),er=(e={})=>S.createElement(Xt,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.createElement("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"}))),tr=({className:e})=>S.createElement(Xt,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.createElement("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"}),S.createElement("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"}))))));var rr={black:"#000",white:"#fff"};var nr={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"};var or={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var ir={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"};var ar={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var lr={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"};var sr={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"};var ur={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function cr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var dr="$$material";function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pr.apply(this,arguments)}function fr(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function mr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var hr=Object.freeze({__proto__:null,default:mr}),gr=function(){return gr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gr.apply(this,arguments)};function br(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var vr=xt((function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),yr="-ms-",xr="-moz-",Sr="-webkit-",Er="comm",Cr="rule",wr="decl",Rr="@keyframes",Ar=Math.abs,Ir=String.fromCharCode,Mr=Object.assign;function Pr(e){return e.trim()}function Lr(e,t){return(e=t.exec(e))?e[0]:e}function Dr(e,t,r){return e.replace(t,r)}function kr(e,t,r){return e.indexOf(t,r)}function Or(e,t){return 0|e.charCodeAt(t)}function Tr(e,t,r){return e.slice(t,r)}function _r(e){return e.length}function qr(e){return e.length}function Nr(e,t){return t.push(e),e}function Fr(e,t){return e.filter((function(e){return!Lr(e,t)}))}var jr=1,zr=1,Hr=0,$r=0,Br=0,Wr="";function Gr(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:jr,column:zr,length:a,return:"",siblings:l}}function Vr(e,t){return Mr(Gr("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ur(e){for(;e.root;)e=Vr(e.root,{children:[e]});Nr(e,e.siblings)}function Yr(){return Br=$r<Hr?Or(Wr,$r++):0,zr++,10===Br&&(zr=1,jr++),Br}function Kr(){return Or(Wr,$r)}function Xr(){return $r}function Jr(e,t){return Tr(Wr,e,t)}function Zr(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 Qr(e){return Pr(Jr($r-1,rn(91===e?e+2:40===e?e+1:e)))}function en(e){for(;(Br=Kr())&&Br<33;)Yr();return Zr(e)>2||Zr(Br)>3?"":" "}function tn(e,t){for(;--t&&Yr()&&!(Br<48||Br>102||Br>57&&Br<65||Br>70&&Br<97););return Jr(e,Xr()+(t<6&&32==Kr()&&32==Yr()))}function rn(e){for(;Yr();)switch(Br){case e:return $r;case 34:case 39:34!==e&&39!==e&&rn(Br);break;case 40:41===e&&rn(e);break;case 92:Yr()}return $r}function nn(e,t){for(;Yr()&&e+Br!==57&&(e+Br!==84||47!==Kr()););return"/*"+Jr(t,$r-1)+"*"+Ir(47===e?e:Yr())}function on(e){for(;!Zr(Kr());)Yr();return Jr(e,$r)}function an(e){return function(e){return Wr="",e}(ln("",null,null,null,[""],e=function(e){return jr=zr=1,Hr=_r(Wr=e),$r=0,[]}(e),0,[0],e))}function ln(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=Yr()){case 40:if(108!=m&&58==Or(C,d-1)){-1!=kr(C+=Dr(Qr(v),"&","&\f"),"&\f",Ar(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Qr(v);break;case 9:case 10:case 13:case 32:C+=en(m);break;case 92:C+=tn(Xr()-1,7);continue;case 47:switch(Kr()){case 42:case 47:Nr(un(nn(Yr(),Xr()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=_r(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Dr(C,/\f/g,"")),f>0&&_r(C)-d&&Nr(f>32?cn(C+";",n,r,d-1,s):cn(Dr(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(Nr(E=sn(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)ln(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Or(C,3)?100:p){case 100:case 108:case 109:case 115:ln(e,E,E,n&&Nr(sn(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:ln(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+_r(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(Br=$r>0?Or(Wr,--$r):0,zr--,10===Br&&(zr=1,jr--),Br))continue;switch(C+=Ir(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(_r(C)-1)*b,b=1;break;case 64:45===Kr()&&(C+=Qr(Yr())),p=Kr(),c=d=_r(y=C+=on(Xr())),v++;break;case 45:45===m&&2==_r(C)&&(h=0)}}return i}function sn(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=qr(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Tr(e,p+1,p=Ar(g=a[h])),x=e;v<m;++v)(x=Pr(g>0?f[v]+" "+y:Dr(y,/&\f/g,f[v])))&&(s[b++]=x);return Gr(e,t,r,0===o?Cr:l,s,u,c,d)}function un(e,t,r,n){return Gr(e,t,r,Er,Ir(Br),Tr(e,2,-2),0,n)}function cn(e,t,r,n,o){return Gr(e,t,r,wr,Tr(e,0,n),Tr(e,n+1,-1),n,o)}function dn(e,t,r){switch(function(e,t){return 45^Or(e,0)?(((t<<2^Or(e,0))<<2^Or(e,1))<<2^Or(e,2))<<2^Or(e,3):0}(e,t)){case 5103:return Sr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Sr+e+e;case 4789:return xr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Sr+e+xr+e+yr+e+e;case 5936:switch(Or(e,t+11)){case 114:return Sr+e+yr+Dr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Sr+e+yr+Dr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Sr+e+yr+Dr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Sr+e+yr+e+e;case 6165:return Sr+e+yr+"flex-"+e+e;case 5187:return Sr+e+Dr(e,/(\w+).+(:[^]+)/,Sr+"box-$1$2"+yr+"flex-$1$2")+e;case 5443:return Sr+e+yr+"flex-item-"+Dr(e,/flex-|-self/g,"")+(Lr(e,/flex-|baseline/)?"":yr+"grid-row-"+Dr(e,/flex-|-self/g,""))+e;case 4675:return Sr+e+yr+"flex-line-pack"+Dr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Sr+e+yr+Dr(e,"shrink","negative")+e;case 5292:return Sr+e+yr+Dr(e,"basis","preferred-size")+e;case 6060:return Sr+"box-"+Dr(e,"-grow","")+Sr+e+yr+Dr(e,"grow","positive")+e;case 4554:return Sr+Dr(e,/([^-])(transform)/g,"$1"+Sr+"$2")+e;case 6187:return Dr(Dr(Dr(e,/(zoom-|grab)/,Sr+"$1"),/(image-set)/,Sr+"$1"),e,"")+e;case 5495:case 3959:return Dr(e,/(image-set\([^]*)/,Sr+"$1$`$1");case 4968:return Dr(Dr(e,/(.+:)(flex-)?(.*)/,Sr+"box-pack:$3"+yr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Sr+e+e;case 4200:if(!Lr(e,/flex-|baseline/))return yr+"grid-column-align"+Tr(e,t)+e;break;case 2592:case 3360:return yr+Dr(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Lr(e.props,/grid-\w+-end/)}))?~kr(e+(r=r[t].value),"span",0)?e:yr+Dr(e,"-start","")+e+yr+"grid-row-span:"+(~kr(r,"span",0)?Lr(r,/\d+/):+Lr(r,/\d+/)-+Lr(e,/\d+/))+";":yr+Dr(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Lr(e.props,/grid-\w+-start/)}))?e:yr+Dr(Dr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Dr(e,/(.+)-inline(.+)/,Sr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_r(e)-1-t>6)switch(Or(e,t+1)){case 109:if(45!==Or(e,t+4))break;case 102:return Dr(e,/(.+:)(.+)-([^]+)/,"$1"+Sr+"$2-$3$1"+xr+(108==Or(e,t+3)?"$3":"$2-$3"))+e;case 115:return~kr(e,"stretch",0)?dn(Dr(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Dr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return yr+r+":"+n+l+(o?yr+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===Or(e,t+6))return Dr(e,":",":"+Sr)+e;break;case 6444:switch(Or(e,45===Or(e,14)?18:11)){case 120:return Dr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Sr+(45===Or(e,14)?"inline-":"")+"box$3$1"+Sr+"$2$3$1"+yr+"$2box$3")+e;case 100:return Dr(e,":",":"+yr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Dr(e,"scroll-","scroll-snap-")+e}return e}function pn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function fn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case wr:return e.return=e.return||e.value;case Er:return"";case Rr:return e.return=e.value+"{"+pn(e.children,n)+"}";case Cr:if(!_r(e.value=e.props.join(",")))return""}return _r(r=pn(e.children,n))?e.return=e.value+"{"+r+"}":""}function mn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case wr:return void(e.return=dn(e.value,e.length,r));case Rr:return pn([Vr(e,{value:Dr(e.value,"@","@"+Sr)})],n);case Cr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Lr(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ur(Vr(e,{props:[Dr(t,/:(read-\w+)/,":-moz-$1")]})),Ur(Vr(e,{props:[t]})),Mr(e,{props:Fr(r,n)});break;case"::placeholder":Ur(Vr(e,{props:[Dr(t,/:(plac\w+)/,":"+Sr+"input-$1")]})),Ur(Vr(e,{props:[Dr(t,/:(plac\w+)/,":-moz-$1")]})),Ur(Vr(e,{props:[Dr(t,/:(plac\w+)/,yr+"input-$1")]})),Ur(Vr(e,{props:[t]})),Mr(e,{props:Fr(r,n)})}return""}))}}var hn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},gn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",bn="active",vn="data-styled-version",yn="6.1.13",xn="/*!sc*/\n",Sn="undefined"!=typeof window&&"HTMLElement"in window,En=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),Cn={},wn=Object.freeze([]),Rn=Object.freeze({});function An(e,t,r){return void 0===r&&(r=Rn),e.theme!==r.theme&&e.theme||t||r.theme}var In=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Mn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Pn=/(^-|-$)/g;function Ln(e){return e.replace(Mn,"-").replace(Pn,"")}var Dn=/(a)(d)/gi,kn=function(e){return String.fromCharCode(e+(e>25?39:97))};function On(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=kn(t%52)+r;return(kn(t%52)+r).replace(Dn,"$1-$2")}var Tn,_n=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},qn=function(e){return _n(5381,e)};function Nn(e){return On(qn(e)>>>0)}function Fn(e){return"string"==typeof e&&!0}var jn="function"==typeof Symbol&&Symbol.for,zn=jn?Symbol.for("react.memo"):60115,Hn=jn?Symbol.for("react.forward_ref"):60112,$n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Wn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Gn=((Tn={})[Hn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Tn[zn]=Wn,Tn);function Vn(e){return("type"in(t=e)&&t.type.$$typeof)===zn?Wn:"$$typeof"in e?Gn[e.$$typeof]:$n;var t}var Un=Object.defineProperty,Yn=Object.getOwnPropertyNames,Kn=Object.getOwnPropertySymbols,Xn=Object.getOwnPropertyDescriptor,Jn=Object.getPrototypeOf,Zn=Object.prototype;function Qn(e,t,r){if("string"!=typeof t){if(Zn){var n=Jn(t);n&&n!==Zn&&Qn(e,n,r)}var o=Yn(t);Kn&&(o=o.concat(Kn(t)));for(var i=Vn(e),a=Vn(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Bn||r&&r[s]||a&&s in a||i&&s in i)){var u=Xn(t,s);try{Un(e,s,u)}catch(e){}}}}return e}function eo(e){return"function"==typeof e}function to(e){return"object"==typeof e&&"styledComponentId"in e}function ro(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function no(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function oo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function io(e,t,r){if(void 0===r&&(r=!1),!r&&!oo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=io(e[n],t[n]);else if(oo(t))for(var n in t)e[n]=io(e[n],t[n]);return e}function ao(e,t){Object.defineProperty(e,"toString",{value:t})}function lo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var so=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw lo(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(xn);return t},e}(),uo=new Map,co=new Map,po=1,fo=function(e){if(uo.has(e))return uo.get(e);for(;co.has(po);)po++;var t=po++;return uo.set(e,t),co.set(t,e),t},mo=function(e,t){po=t+1,uo.set(e,t),co.set(t,e)},ho="style[".concat(gn,"][").concat(vn,'="').concat(yn,'"]'),go=new RegExp("^".concat(gn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),bo=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},vo=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(xn),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(go);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(mo(c,u),bo(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},yo=function(e){for(var t=document.querySelectorAll(ho),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(gn)!==bn&&(vo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var xo=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(gn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(gn,bn),n.setAttribute(vn,yn);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},So=function(){function e(e){this.element=xo(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw lo(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Eo=function(){function e(e){this.element=xo(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Co=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),wo=Sn,Ro={isServer:!Sn,useCSSOMInjection:!En},Ao=function(){function e(e,t,r){void 0===e&&(e=Rn),void 0===t&&(t={});var n=this;this.options=gr(gr({},Ro),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Sn&&wo&&(wo=!1,yo(this)),ao(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return co.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(gn,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(xn)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return fo(e)},e.prototype.rehydrate=function(){!this.server&&Sn&&yo(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(gr(gr({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Co(r):t?new So(r):new Eo(r)}(this.options),new so(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(fo(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(fo(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(fo(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Io=/&/g,Mo=/^\s*\/\/.*$/gm;function Po(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Po(e.children,t)),e}))}function Lo(e){var t,r,n,o=void 0===e?Rn:e,i=o.options,a=void 0===i?Rn:i,l=o.plugins,s=void 0===l?wn:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Cr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Io,r).replace(n,u))})),a.prefix&&c.push(mn),c.push(fn);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(Mo,""),u=an(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Po(u,a.namespace));var d,p=[];return pn(u,function(e){var t=qr(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||lo(15),_n(e,t.name)}),5381).toString():"",d}var Do=new Ao,ko=Lo(),Oo=S.createContext({shouldForwardProp:void 0,styleSheet:Do,stylis:ko});Oo.Consumer;var To=S.createContext(void 0);function _o(){return R(Oo)}function qo(e){var t=E(e.stylisPlugins),r=t[0],n=t[1],o=_o().styleSheet,i=C((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=C((function(){return Lo({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);w((function(){vr(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var l=C((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return S.createElement(Oo.Provider,{value:l},S.createElement(To.Provider,{value:a},e.children))}var No=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ko);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ao(this,(function(){throw lo(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=ko),this.name+e.hash},e}(),Fo=function(e){return e>="A"&&e<="Z"};function jo(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Fo(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var zo=function(e){return null==e||!1===e||""===e},Ho=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!zo(i)&&(Array.isArray(i)&&i.isCss||eo(i)?n.push("".concat(jo(o),":"),i,";"):oo(i)?n.push.apply(n,br(br(["".concat(o," {")],Ho(i),!1),["}"],!1)):n.push("".concat(jo(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in hn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function $o(e,t,r,n){return zo(e)?[]:to(e)?[".".concat(e.styledComponentId)]:eo(e)?!eo(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:$o(e(t),t,r,n):e instanceof No?r?(e.inject(r,n),[e.getName(n)]):[e]:oo(e)?Ho(e):Array.isArray(e)?Array.prototype.concat.apply(wn,e.map((function(e){return $o(e,t,r,n)}))):[e.toString()];var o}function Bo(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(eo(r)&&!to(r))return!1}return!0}var Wo=qn(yn),Go=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Bo(e),this.componentId=t,this.baseHash=_n(Wo,t),this.baseStyle=r,Ao.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=ro(n,this.staticRulesId);else{var o=no($o(this.rules,e,t,r)),i=On(_n(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=ro(n,i),this.staticRulesId=i}else{for(var l=_n(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=no($o(c,e,t,r));l=_n(l,d+u),s+=d}}if(s){var p=On(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=ro(n,p)}}return n},e}(),Vo=S.createContext(void 0);Vo.Consumer;var Uo={};new Set;function Yo(e,t,r){var n=to(e),o=e,i=!Fn(e),a=t.attrs,l=void 0===a?wn:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Ln(e);Uo[r]=(Uo[r]||0)+1;var n="".concat(r,"-").concat(Nn(yn+r+Uo[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Fn(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Ln(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new Go(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=S.useContext(Vo),c=_o(),d=e.shouldForwardProp||c.shouldForwardProp,p=An(t,u,i)||Rn,f=function(e,t,r){for(var n,o=gr(gr({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=eo(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?ro(o[l],a[l]):"style"===l?gr(gr({},o[l]),a[l]):a[l]}return t.className&&(o.className=ro(o.className,t.className)),o}(n,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var r=_o();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=ro(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[Fn(m)&&!In.has(m)?"class":"className"]=v,h.ref=r,A(m,h)}(y,e,t)}v.displayName=d;var y=S.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=n?ro(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)io(e,o[n],!0);return e}({},o.defaultProps,e):e}}),ao(y,(function(){return".".concat(y.styledComponentId)})),i&&Qn(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Ko(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Xo=function(e){return Object.assign(e,{isCss:!0})};function Jo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(eo(e)||oo(e))return Xo($o(Ko(wn,br([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?$o(n):Xo($o(Ko(n,t)))}function Zo(e,t,r){if(void 0===r&&(r=Rn),!t)throw lo(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Jo.apply(void 0,br([n],o,!1)))};return n.attrs=function(n){return Zo(e,t,gr(gr({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Zo(e,t,gr(gr({},r),n))},n}var Qo=function(e){return Zo(Yo,e)},ei=Qo;In.forEach((function(e){ei[e]=Qo(e)}));var ti=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Bo(e),Ao.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(no($o(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Ao.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function ri(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=no(Jo.apply(void 0,br([e],t,!1))),o=Nn(n);return new No(o,n)}function ni(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}ni.propTypes={children:Rt.node,injectFirst:Rt.bool};const oi=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Jo.apply(void 0,br([e],t,!1)),o="sc-global-".concat(Nn(JSON.stringify(n))),i=new ti(n,o),a=function(e){var t=_o(),r=S.useContext(Vo),n=S.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Cn,r,o);else{var l=gr(gr({},t),{theme:An(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return S.memo(a)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));var ii=oi;
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},lt({exports:{}});var St={exports:{}};function Et(){}function Ct(){}Ct.resetWarningCache=Et;St.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ct,resetWarningCache:Et};return r.PropTypes=r,r}();var wt=yt(St.exports);function Rt(e){if(e.type)return e;if("#"===e.charAt(0))return Rt(function(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(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(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."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function At(e,t){return e=Rt(e),t=function(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)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(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(", "),")")}(e)}function It(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Mt(e,t){return Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mt(e,t)}function Pt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mt(e,t)}function Dt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Lt={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},kt={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Lt,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Ot=12,_t=14,Tt=16,qt=24,Nt=3,Ft=300,jt=400,zt=600,Ht=700,Bt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};At(kt.GREYSCALE_0,.05),At(kt.GREEN_PALE,.5),At(kt.BLUE_PALE,.5),At(kt.GREEN_PALE,.5),At(kt.BLUE_PALE,.5),At(kt.GREEN_PALE,.5),At(kt.BLUE_PALE,.5);var $t;function Wt(){return Wt=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},Wt.apply(null,arguments)}At(kt.GREEN_PALE,.5),At(kt.BLUE_PALE,.5),At(kt.GREEN_PALE,.5),At(kt.BLUE_PALE,.5);var Vt,Gt=function(e){return x.createElement("svg",Wt({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),$t||($t=x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Ut(){return Ut=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},Ut.apply(null,arguments)}var Yt=function(e){return x.createElement("svg",Ut({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Vt||(Vt=x.createElement("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.345z"})))};function Kt({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var Xt=(e={})=>S.createElement(Kt,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.createElement("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"}))),Jt=(e={})=>S.createElement(Kt,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Zt=(e={})=>S.createElement(Kt,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Qt=(e={})=>S.createElement(Kt,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.createElement("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"}))),er=({className:e})=>S.createElement(Kt,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.createElement("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"}),S.createElement("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"}))))));var tr={black:"#000",white:"#fff"};var rr={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"};var nr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var or={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"};var ir={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var ar={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"};var lr={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"};var sr={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function ur(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var cr="$$material";function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dr.apply(this,arguments)}function pr(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function fr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var mr=Object.freeze({__proto__:null,default:fr}),hr=function(){return hr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hr.apply(this,arguments)};function gr(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var br=yt((function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),vr="-ms-",yr="-moz-",xr="-webkit-",Sr="comm",Er="rule",Cr="decl",wr="@keyframes",Rr=Math.abs,Ar=String.fromCharCode,Ir=Object.assign;function Mr(e){return e.trim()}function Pr(e,t){return(e=t.exec(e))?e[0]:e}function Dr(e,t,r){return e.replace(t,r)}function Lr(e,t,r){return e.indexOf(t,r)}function kr(e,t){return 0|e.charCodeAt(t)}function Or(e,t,r){return e.slice(t,r)}function _r(e){return e.length}function Tr(e){return e.length}function qr(e,t){return t.push(e),e}function Nr(e,t){return e.filter((function(e){return!Pr(e,t)}))}var Fr=1,jr=1,zr=0,Hr=0,Br=0,$r="";function Wr(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Fr,column:jr,length:a,return:"",siblings:l}}function Vr(e,t){return Ir(Wr("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Gr(e){for(;e.root;)e=Vr(e.root,{children:[e]});qr(e,e.siblings)}function Ur(){return Br=Hr<zr?kr($r,Hr++):0,jr++,10===Br&&(jr=1,Fr++),Br}function Yr(){return kr($r,Hr)}function Kr(){return Hr}function Xr(e,t){return Or($r,e,t)}function Jr(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 Zr(e){return Mr(Xr(Hr-1,tn(91===e?e+2:40===e?e+1:e)))}function Qr(e){for(;(Br=Yr())&&Br<33;)Ur();return Jr(e)>2||Jr(Br)>3?"":" "}function en(e,t){for(;--t&&Ur()&&!(Br<48||Br>102||Br>57&&Br<65||Br>70&&Br<97););return Xr(e,Kr()+(t<6&&32==Yr()&&32==Ur()))}function tn(e){for(;Ur();)switch(Br){case e:return Hr;case 34:case 39:34!==e&&39!==e&&tn(Br);break;case 40:41===e&&tn(e);break;case 92:Ur()}return Hr}function rn(e,t){for(;Ur()&&e+Br!==57&&(e+Br!==84||47!==Yr()););return"/*"+Xr(t,Hr-1)+"*"+Ar(47===e?e:Ur())}function nn(e){for(;!Jr(Yr());)Ur();return Xr(e,Hr)}function on(e){return function(e){return $r="",e}(an("",null,null,null,[""],e=function(e){return Fr=jr=1,zr=_r($r=e),Hr=0,[]}(e),0,[0],e))}function an(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=Ur()){case 40:if(108!=m&&58==kr(C,d-1)){-1!=Lr(C+=Dr(Zr(v),"&","&\f"),"&\f",Rr(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Zr(v);break;case 9:case 10:case 13:case 32:C+=Qr(m);break;case 92:C+=en(Kr()-1,7);continue;case 47:switch(Yr()){case 42:case 47:qr(sn(rn(Ur(),Kr()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=_r(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Dr(C,/\f/g,"")),f>0&&_r(C)-d&&qr(f>32?un(C+";",n,r,d-1,s):un(Dr(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(qr(E=ln(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)an(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===kr(C,3)?100:p){case 100:case 108:case 109:case 115:an(e,E,E,n&&qr(ln(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:an(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+_r(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(Br=Hr>0?kr($r,--Hr):0,jr--,10===Br&&(jr=1,Fr--),Br))continue;switch(C+=Ar(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(_r(C)-1)*b,b=1;break;case 64:45===Yr()&&(C+=Zr(Ur())),p=Yr(),c=d=_r(y=C+=nn(Kr())),v++;break;case 45:45===m&&2==_r(C)&&(h=0)}}return i}function ln(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Tr(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Or(e,p+1,p=Rr(g=a[h])),x=e;v<m;++v)(x=Mr(g>0?f[v]+" "+y:Dr(y,/&\f/g,f[v])))&&(s[b++]=x);return Wr(e,t,r,0===o?Er:l,s,u,c,d)}function sn(e,t,r,n){return Wr(e,t,r,Sr,Ar(Br),Or(e,2,-2),0,n)}function un(e,t,r,n,o){return Wr(e,t,r,Cr,Or(e,0,n),Or(e,n+1,-1),n,o)}function cn(e,t,r){switch(function(e,t){return 45^kr(e,0)?(((t<<2^kr(e,0))<<2^kr(e,1))<<2^kr(e,2))<<2^kr(e,3):0}(e,t)){case 5103:return xr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xr+e+e;case 4789:return yr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xr+e+yr+e+vr+e+e;case 5936:switch(kr(e,t+11)){case 114:return xr+e+vr+Dr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xr+e+vr+Dr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xr+e+vr+Dr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return xr+e+vr+e+e;case 6165:return xr+e+vr+"flex-"+e+e;case 5187:return xr+e+Dr(e,/(\w+).+(:[^]+)/,xr+"box-$1$2"+vr+"flex-$1$2")+e;case 5443:return xr+e+vr+"flex-item-"+Dr(e,/flex-|-self/g,"")+(Pr(e,/flex-|baseline/)?"":vr+"grid-row-"+Dr(e,/flex-|-self/g,""))+e;case 4675:return xr+e+vr+"flex-line-pack"+Dr(e,/align-content|flex-|-self/g,"")+e;case 5548:return xr+e+vr+Dr(e,"shrink","negative")+e;case 5292:return xr+e+vr+Dr(e,"basis","preferred-size")+e;case 6060:return xr+"box-"+Dr(e,"-grow","")+xr+e+vr+Dr(e,"grow","positive")+e;case 4554:return xr+Dr(e,/([^-])(transform)/g,"$1"+xr+"$2")+e;case 6187:return Dr(Dr(Dr(e,/(zoom-|grab)/,xr+"$1"),/(image-set)/,xr+"$1"),e,"")+e;case 5495:case 3959:return Dr(e,/(image-set\([^]*)/,xr+"$1$`$1");case 4968:return Dr(Dr(e,/(.+:)(flex-)?(.*)/,xr+"box-pack:$3"+vr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xr+e+e;case 4200:if(!Pr(e,/flex-|baseline/))return vr+"grid-column-align"+Or(e,t)+e;break;case 2592:case 3360:return vr+Dr(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Pr(e.props,/grid-\w+-end/)}))?~Lr(e+(r=r[t].value),"span",0)?e:vr+Dr(e,"-start","")+e+vr+"grid-row-span:"+(~Lr(r,"span",0)?Pr(r,/\d+/):+Pr(r,/\d+/)-+Pr(e,/\d+/))+";":vr+Dr(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Pr(e.props,/grid-\w+-start/)}))?e:vr+Dr(Dr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Dr(e,/(.+)-inline(.+)/,xr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_r(e)-1-t>6)switch(kr(e,t+1)){case 109:if(45!==kr(e,t+4))break;case 102:return Dr(e,/(.+:)(.+)-([^]+)/,"$1"+xr+"$2-$3$1"+yr+(108==kr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Lr(e,"stretch",0)?cn(Dr(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Dr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return vr+r+":"+n+l+(o?vr+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===kr(e,t+6))return Dr(e,":",":"+xr)+e;break;case 6444:switch(kr(e,45===kr(e,14)?18:11)){case 120:return Dr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+xr+(45===kr(e,14)?"inline-":"")+"box$3$1"+xr+"$2$3$1"+vr+"$2box$3")+e;case 100:return Dr(e,":",":"+vr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Dr(e,"scroll-","scroll-snap-")+e}return e}function dn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function pn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Cr:return e.return=e.return||e.value;case Sr:return"";case wr:return e.return=e.value+"{"+dn(e.children,n)+"}";case Er:if(!_r(e.value=e.props.join(",")))return""}return _r(r=dn(e.children,n))?e.return=e.value+"{"+r+"}":""}function fn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Cr:return void(e.return=cn(e.value,e.length,r));case wr:return dn([Vr(e,{value:Dr(e.value,"@","@"+xr)})],n);case Er:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Pr(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Gr(Vr(e,{props:[Dr(t,/:(read-\w+)/,":-moz-$1")]})),Gr(Vr(e,{props:[t]})),Ir(e,{props:Nr(r,n)});break;case"::placeholder":Gr(Vr(e,{props:[Dr(t,/:(plac\w+)/,":"+xr+"input-$1")]})),Gr(Vr(e,{props:[Dr(t,/:(plac\w+)/,":-moz-$1")]})),Gr(Vr(e,{props:[Dr(t,/:(plac\w+)/,vr+"input-$1")]})),Gr(Vr(e,{props:[t]})),Ir(e,{props:Nr(r,n)})}return""}))}}var mn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",gn="active",bn="data-styled-version",vn="6.1.13",yn="/*!sc*/\n",xn="undefined"!=typeof window&&"HTMLElement"in window,Sn=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),En={},Cn=Object.freeze([]),wn=Object.freeze({});function Rn(e,t,r){return void 0===r&&(r=wn),e.theme!==r.theme&&e.theme||t||r.theme}var An=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),In=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Mn=/(^-|-$)/g;function Pn(e){return e.replace(In,"-").replace(Mn,"")}var Dn=/(a)(d)/gi,Ln=function(e){return String.fromCharCode(e+(e>25?39:97))};function kn(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Ln(t%52)+r;return(Ln(t%52)+r).replace(Dn,"$1-$2")}var On,_n=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Tn=function(e){return _n(5381,e)};function qn(e){return kn(Tn(e)>>>0)}function Nn(e){return"string"==typeof e&&!0}var Fn="function"==typeof Symbol&&Symbol.for,jn=Fn?Symbol.for("react.memo"):60115,zn=Fn?Symbol.for("react.forward_ref"):60112,Hn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bn={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},Wn=((On={})[zn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},On[jn]=$n,On);function Vn(e){return("type"in(t=e)&&t.type.$$typeof)===jn?$n:"$$typeof"in e?Wn[e.$$typeof]:Hn;var t}var Gn=Object.defineProperty,Un=Object.getOwnPropertyNames,Yn=Object.getOwnPropertySymbols,Kn=Object.getOwnPropertyDescriptor,Xn=Object.getPrototypeOf,Jn=Object.prototype;function Zn(e,t,r){if("string"!=typeof t){if(Jn){var n=Xn(t);n&&n!==Jn&&Zn(e,n,r)}var o=Un(t);Yn&&(o=o.concat(Yn(t)));for(var i=Vn(e),a=Vn(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Bn||r&&r[s]||a&&s in a||i&&s in i)){var u=Kn(t,s);try{Gn(e,s,u)}catch(e){}}}}return e}function Qn(e){return"function"==typeof e}function eo(e){return"object"==typeof e&&"styledComponentId"in e}function to(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ro(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function no(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function oo(e,t,r){if(void 0===r&&(r=!1),!r&&!no(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=oo(e[n],t[n]);else if(no(t))for(var n in t)e[n]=oo(e[n],t[n]);return e}function io(e,t){Object.defineProperty(e,"toString",{value:t})}function ao(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var lo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw ao(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(yn);return t},e}(),so=new Map,uo=new Map,co=1,po=function(e){if(so.has(e))return so.get(e);for(;uo.has(co);)co++;var t=co++;return so.set(e,t),uo.set(t,e),t},fo=function(e,t){co=t+1,so.set(e,t),uo.set(t,e)},mo="style[".concat(hn,"][").concat(bn,'="').concat(vn,'"]'),ho=new RegExp("^".concat(hn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),go=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},bo=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(yn),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(ho);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(fo(c,u),go(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},vo=function(e){for(var t=document.querySelectorAll(mo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(hn)!==gn&&(bo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var yo=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(hn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(hn,gn),n.setAttribute(bn,vn);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},xo=function(){function e(e){this.element=yo(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw ao(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),So=function(){function e(e){this.element=yo(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Eo=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Co=xn,wo={isServer:!xn,useCSSOMInjection:!Sn},Ro=function(){function e(e,t,r){void 0===e&&(e=wn),void 0===t&&(t={});var n=this;this.options=hr(hr({},wo),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&xn&&Co&&(Co=!1,vo(this)),io(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return uo.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(hn,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(yn)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return po(e)},e.prototype.rehydrate=function(){!this.server&&xn&&vo(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(hr(hr({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Eo(r):t?new xo(r):new So(r)}(this.options),new lo(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(po(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(po(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(po(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Ao=/&/g,Io=/^\s*\/\/.*$/gm;function Mo(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Mo(e.children,t)),e}))}function Po(e){var t,r,n,o=void 0===e?wn:e,i=o.options,a=void 0===i?wn:i,l=o.plugins,s=void 0===l?Cn:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Er&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Ao,r).replace(n,u))})),a.prefix&&c.push(fn),c.push(pn);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(Io,""),u=on(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Mo(u,a.namespace));var d,p=[];return dn(u,function(e){var t=Tr(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||ao(15),_n(e,t.name)}),5381).toString():"",d}var Do=new Ro,Lo=Po(),ko=S.createContext({shouldForwardProp:void 0,styleSheet:Do,stylis:Lo});ko.Consumer;var Oo=S.createContext(void 0);function _o(){return R(ko)}function To(e){var t=E(e.stylisPlugins),r=t[0],n=t[1],o=_o().styleSheet,i=C((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=C((function(){return Po({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);w((function(){br(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var l=C((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return S.createElement(ko.Provider,{value:l},S.createElement(Oo.Provider,{value:a},e.children))}var qo=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Lo);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,io(this,(function(){throw ao(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Lo),this.name+e.hash},e}(),No=function(e){return e>="A"&&e<="Z"};function Fo(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;No(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var jo=function(e){return null==e||!1===e||""===e},zo=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!jo(i)&&(Array.isArray(i)&&i.isCss||Qn(i)?n.push("".concat(Fo(o),":"),i,";"):no(i)?n.push.apply(n,gr(gr(["".concat(o," {")],zo(i),!1),["}"],!1)):n.push("".concat(Fo(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in mn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ho(e,t,r,n){return jo(e)?[]:eo(e)?[".".concat(e.styledComponentId)]:Qn(e)?!Qn(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ho(e(t),t,r,n):e instanceof qo?r?(e.inject(r,n),[e.getName(n)]):[e]:no(e)?zo(e):Array.isArray(e)?Array.prototype.concat.apply(Cn,e.map((function(e){return Ho(e,t,r,n)}))):[e.toString()];var o}function Bo(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Qn(r)&&!eo(r))return!1}return!0}var $o=Tn(vn),Wo=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Bo(e),this.componentId=t,this.baseHash=_n($o,t),this.baseStyle=r,Ro.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=to(n,this.staticRulesId);else{var o=ro(Ho(this.rules,e,t,r)),i=kn(_n(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=to(n,i),this.staticRulesId=i}else{for(var l=_n(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=ro(Ho(c,e,t,r));l=_n(l,d+u),s+=d}}if(s){var p=kn(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=to(n,p)}}return n},e}(),Vo=S.createContext(void 0);Vo.Consumer;var Go={};new Set;function Uo(e,t,r){var n=eo(e),o=e,i=!Nn(e),a=t.attrs,l=void 0===a?Cn:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Pn(e);Go[r]=(Go[r]||0)+1;var n="".concat(r,"-").concat(qn(vn+r+Go[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Nn(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Pn(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new Wo(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=S.useContext(Vo),c=_o(),d=e.shouldForwardProp||c.shouldForwardProp,p=Rn(t,u,i)||wn,f=function(e,t,r){for(var n,o=hr(hr({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Qn(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?to(o[l],a[l]):"style"===l?hr(hr({},o[l]),a[l]):a[l]}return t.className&&(o.className=to(o.className,t.className)),o}(n,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var r=_o();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=to(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[Nn(m)&&!An.has(m)?"class":"className"]=v,h.ref=r,A(m,h)}(y,e,t)}v.displayName=d;var y=S.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=n?to(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)oo(e,o[n],!0);return e}({},o.defaultProps,e):e}}),io(y,(function(){return".".concat(y.styledComponentId)})),i&&Zn(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Yo(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Ko=function(e){return Object.assign(e,{isCss:!0})};function Xo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Qn(e)||no(e))return Ko(Ho(Yo(Cn,gr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ho(n):Ko(Ho(Yo(n,t)))}function Jo(e,t,r){if(void 0===r&&(r=wn),!t)throw ao(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Xo.apply(void 0,gr([n],o,!1)))};return n.attrs=function(n){return Jo(e,t,hr(hr({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Jo(e,t,hr(hr({},r),n))},n}var Zo=function(e){return Jo(Uo,e)},Qo=Zo;An.forEach((function(e){Qo[e]=Zo(e)}));var ei=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Bo(e),Ro.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(ro(Ho(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Ro.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function ti(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ro(Xo.apply(void 0,gr([e],t,!1))),o=qn(n);return new qo(o,n)}function ri(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}ri.propTypes={children:wt.node,injectFirst:wt.bool};const ni=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Xo.apply(void 0,gr([e],t,!1)),o="sc-global-".concat(qn(JSON.stringify(n))),i=new ei(n,o),a=function(e){var t=_o(),r=S.useContext(Vo),n=S.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,En,r,o);else{var l=hr(hr({},t),{theme:Rn(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return S.memo(a)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));var oi=ni;
10
10
  /**
11
11
  * @mui/styled-engine-sc v6.0.0-alpha.24
12
12
  *
@@ -14,7 +14,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
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 ai(e,t){let r;return r=t?ei(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ei(e),r}oi.propTypes={defaultTheme:Rt.object,styles:Rt.oneOfType([Rt.array,Rt.string,Rt.object,Rt.func])};const li=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var si=Object.freeze({__proto__:null,GlobalStyles:ii,StyledEngineProvider:ni,ThemeContext:Vo,css:Jo,default:ai,internal_processStyles:li,keyframes:ri});function ui(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 ci(e){if(!ui(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=ci(e[r])})),t}function di(e,t,r={clone:!0}){const n=r.clone?yt({},e):e;return ui(e)&&ui(t)&&Object.keys(t).forEach((o=>{ui(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ui(e[o])?n[o]=di(e[o],t[o],r):r.clone?n[o]=ui(t[o])?ci(t[o]):t[o]:n[o]=t[o]})),n}var pi,fi=Object.freeze({__proto__:null,default:di,isPlainObject:ui}),mi={exports:{}},hi={},gi=Symbol.for("react.element"),bi=Symbol.for("react.portal"),vi=Symbol.for("react.fragment"),yi=Symbol.for("react.strict_mode"),xi=Symbol.for("react.profiler"),Si=Symbol.for("react.provider"),Ei=Symbol.for("react.context"),Ci=Symbol.for("react.server_context"),wi=Symbol.for("react.forward_ref"),Ri=Symbol.for("react.suspense"),Ai=Symbol.for("react.suspense_list"),Ii=Symbol.for("react.memo"),Mi=Symbol.for("react.lazy"),Pi=Symbol.for("react.offscreen");function Li(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case gi:switch(e=e.type){case vi:case xi:case yi:case Ri:case Ai:return e;default:switch(e=e&&e.$$typeof){case Ci:case Ei:case wi:case Mi:case Ii:case Si:return e;default:return t}}case bi:return t}}}pi=Symbol.for("react.module.reference"),hi.ContextConsumer=Ei,hi.ContextProvider=Si,hi.Element=gi,hi.ForwardRef=wi,hi.Fragment=vi,hi.Lazy=Mi,hi.Memo=Ii,hi.Portal=bi,hi.Profiler=xi,hi.StrictMode=yi,hi.Suspense=Ri,hi.SuspenseList=Ai,hi.isAsyncMode=function(){return!1},hi.isConcurrentMode=function(){return!1},hi.isContextConsumer=function(e){return Li(e)===Ei},hi.isContextProvider=function(e){return Li(e)===Si},hi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===gi},hi.isForwardRef=function(e){return Li(e)===wi},hi.isFragment=function(e){return Li(e)===vi},hi.isLazy=function(e){return Li(e)===Mi},hi.isMemo=function(e){return Li(e)===Ii},hi.isPortal=function(e){return Li(e)===bi},hi.isProfiler=function(e){return Li(e)===xi},hi.isStrictMode=function(e){return Li(e)===yi},hi.isSuspense=function(e){return Li(e)===Ri},hi.isSuspenseList=function(e){return Li(e)===Ai},hi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===vi||e===xi||e===yi||e===Ri||e===Ai||e===Pi||"object"==typeof e&&null!==e&&(e.$$typeof===Mi||e.$$typeof===Ii||e.$$typeof===Si||e.$$typeof===Ei||e.$$typeof===wi||e.$$typeof===pi||void 0!==e.getModuleId)},hi.typeOf=Li,mi.exports=hi;var Di=mi.exports;const ki=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Oi(e){const t=`${e}`.match(ki);return t&&t[1]||""}function Ti(e,t=""){return e.displayName||e.name||Oi(e)||t}function _i(e,t,r){const n=Ti(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var qi=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ti(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Di.ForwardRef:return _i(e,e.render,"ForwardRef");case Di.Memo:return _i(e,e.type,"memo");default:return}}},getFunctionName:Oi});function Ni(e){if("string"!=typeof e)throw new Error(mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Fi=Object.freeze({__proto__:null,default:Ni});function ji(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function zi(e){return e&&e.ownerDocument||document}function Hi(e){return zi(e).defaultView||window}function $i(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Bi="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function Wi(e){const t=x.useRef(e);return Bi((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function Gi(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{$i(e,t)}))}),e)}const Vi={};const Ui=[];let Yi=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function Ki(){const e=function(e,t){const r=x.useRef(Vi);return r.current===Vi&&(r.current=e(t)),r}(Yi.create).current;return function(e){x.useEffect(e,Ui)}(e.disposeEffect),e}let Xi=!0,Ji=!1;const Zi=new Yi,Qi={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 ea(e){e.metaKey||e.altKey||e.ctrlKey||(Xi=!0)}function ta(){Xi=!1}function ra(){"hidden"===this.visibilityState&&Ji&&(Xi=!0)}function na(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Xi||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Qi[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function oa(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ea,!0),t.addEventListener("mousedown",ta,!0),t.addEventListener("pointerdown",ta,!0),t.addEventListener("touchstart",ta,!0),t.addEventListener("visibilitychange",ra,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!na(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Ji=!0,Zi.start(100,(()=>{Ji=!1})),t.current=!1,!0)},ref:e}}function ia(e,t){const r=yt({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=yt({},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]=yt({},i),Object.keys(o).forEach((e=>{r[n][e]=ia(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function aa(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const la=e=>e;var sa=(()=>{let e=la;return{configure(t){e=t},generate:t=>e(t),reset(){e=la}}})();const ua={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 ca(e,t,r="Mui"){const n=ua[t];return n?`${r}-${n}`:`${sa.generate(e)}-${t}`}function da(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ca(e,t,r)})),n}function pa(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var fa=Object.freeze({__proto__:null,default:pa});function ma(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=ma(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ha(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ma(e))&&(n&&(n+=" "),n+=t);return n}const ga=["values","unit","step"];function ba(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Mt(e,ga),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)=>yt({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return yt({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var va={borderRadius:4};function ya(e,t){return t?di(e,t,{clone:!1}):e}const xa={xs:0,sm:600,md:900,lg:1200,xl:1536},Sa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xa[e]}px)`};function Ea(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Sa;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Sa;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||xa).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ca(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:Ca(e,r)||n,t&&(o=t(o,n,e)),o}function Ra(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=Ca(e.theme,n)||{};return Ea(e,i,(e=>{let n=wa(a,o,e);return e===n&&"string"==typeof e&&(n=wa(a,o,`${t}${"default"===e?"":Ni(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Aa={m:"margin",p:"padding"},Ia={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ma={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Pa=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Ma[e])return[e];e=Ma[e]}const[t,r]=e.split(""),n=Aa[t],o=Ia[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),La=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Da=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ka(e,t,r,n){var o;const i=null!=(o=Ca(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 Oa(e){return ka(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 _a(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)),{})}(Pa(r),n);return Ea(e,e[r],o)}function qa(e,t){const r=Oa(e.theme);return Object.keys(e).map((n=>_a(e,t,n,r))).reduce(ya,{})}function Na(e){return qa(e,La)}function Fa(e){return qa(e,Da)}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]?ya(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function za(e){return"number"!=typeof e?e:`${e}px solid`}function Ha(e,t){return Ra({prop:e,themeKey:"borders",transform:t})}Na.propTypes={},Na.filterProps=La,Fa.propTypes={},Fa.filterProps=Da;const $a=Ha("border",za),Ba=Ha("borderTop",za),Wa=Ha("borderRight",za),Ga=Ha("borderBottom",za),Va=Ha("borderLeft",za),Ua=Ha("borderColor"),Ya=Ha("borderTopColor"),Ka=Ha("borderRightColor"),Xa=Ha("borderBottomColor"),Ja=Ha("borderLeftColor"),Za=Ha("outline",za),Qa=Ha("outlineColor"),el=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ka(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ta(t,e)});return Ea(e,e.borderRadius,r)}return null};el.propTypes={},el.filterProps=["borderRadius"],ja($a,Ba,Wa,Ga,Va,Ua,Ya,Ka,Xa,Ja,el,Za,Qa);const tl=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ka(e.theme,"spacing",8),r=e=>({gap:Ta(t,e)});return Ea(e,e.gap,r)}return null};tl.propTypes={},tl.filterProps=["gap"];const rl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ka(e.theme,"spacing",8),r=e=>({columnGap:Ta(t,e)});return Ea(e,e.columnGap,r)}return null};rl.propTypes={},rl.filterProps=["columnGap"];const nl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ka(e.theme,"spacing",8),r=e=>({rowGap:Ta(t,e)});return Ea(e,e.rowGap,r)}return null};nl.propTypes={},nl.filterProps=["rowGap"];function ol(e,t){return"grey"===t?t:e}ja(tl,rl,nl,Ra({prop:"gridColumn"}),Ra({prop:"gridRow"}),Ra({prop:"gridAutoFlow"}),Ra({prop:"gridAutoColumns"}),Ra({prop:"gridAutoRows"}),Ra({prop:"gridTemplateColumns"}),Ra({prop:"gridTemplateRows"}),Ra({prop:"gridTemplateAreas"}),Ra({prop:"gridArea"}));function il(e){return e<=1&&0!==e?100*e+"%":e}ja(Ra({prop:"color",themeKey:"palette",transform:ol}),Ra({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ol}),Ra({prop:"backgroundColor",themeKey:"palette",transform:ol}));const al=Ra({prop:"width",transform:il}),ll=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])||xa[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:il(t)}};return Ea(e,e.maxWidth,t)}return null};ll.filterProps=["maxWidth"];const sl=Ra({prop:"minWidth",transform:il}),ul=Ra({prop:"height",transform:il}),cl=Ra({prop:"maxHeight",transform:il}),dl=Ra({prop:"minHeight",transform:il});Ra({prop:"size",cssProperty:"width",transform:il}),Ra({prop:"size",cssProperty:"height",transform:il});ja(al,ll,sl,ul,cl,dl,Ra({prop:"boxSizing"}));var pl={border:{themeKey:"borders",transform:za},borderTop:{themeKey:"borders",transform:za},borderRight:{themeKey:"borders",transform:za},borderBottom:{themeKey:"borders",transform:za},borderLeft:{themeKey:"borders",transform:za},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:za},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:el},color:{themeKey:"palette",transform:ol},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ol},backgroundColor:{themeKey:"palette",transform:ol},p:{style:Fa},pt:{style:Fa},pr:{style:Fa},pb:{style:Fa},pl:{style:Fa},px:{style:Fa},py:{style:Fa},padding:{style:Fa},paddingTop:{style:Fa},paddingRight:{style:Fa},paddingBottom:{style:Fa},paddingLeft:{style:Fa},paddingX:{style:Fa},paddingY:{style:Fa},paddingInline:{style:Fa},paddingInlineStart:{style:Fa},paddingInlineEnd:{style:Fa},paddingBlock:{style:Fa},paddingBlockStart:{style:Fa},paddingBlockEnd:{style:Fa},m:{style:Na},mt:{style:Na},mr:{style:Na},mb:{style:Na},ml:{style:Na},mx:{style:Na},my:{style:Na},margin:{style:Na},marginTop:{style:Na},marginRight:{style:Na},marginBottom:{style:Na},marginLeft:{style:Na},marginX:{style:Na},marginY:{style:Na},marginInline:{style:Na},marginInlineStart:{style:Na},marginInlineEnd:{style:Na},marginBlock:{style:Na},marginBlockStart:{style:Na},marginBlockEnd:{style:Na},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:tl},rowGap:{style:nl},columnGap:{style:rl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:il},maxWidth:{style:ll},minWidth:{transform:il},height:{transform:il},maxHeight:{transform:il},minHeight:{transform:il},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const fl=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ca(r,l)||{};if(u)return u(o);return Ea(o,t,(t=>{let r=wa(c,s,t);return t===r&&"string"==typeof t&&(r=wa(c,s,`${e}${"default"===t?"":Ni(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:pl;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=ya(s,e(r,o,i,a));else{const e=Ea({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=ya(s,e):s[r]=t({sx:o,theme:i})}else s=ya(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();fl.filterProps=["sx"];var ml=fl;function hl(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:{}}const gl=["breakpoints","palette","spacing","shape"];function bl(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Mt(e,gl),l=ba(r),s=function(e=8){if(e.mui)return e;const t=Oa({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=di({breakpoints:l,direction:"ltr",components:{},palette:yt({mode:"light"},n),spacing:s,shape:yt({},va,i)},a);return u.applyStyles=hl,u=t.reduce(((e,t)=>di(e,t)),u),u.unstable_sxConfig=yt({},pl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ml({sx:e,theme:this})},u}function vl(e=null){const t=x.useContext(Vo);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const yl=bl();function xl(e=yl){return vl(e)}var Sl={exports:{}},El={},Cl=S,wl=Symbol.for("react.element"),Rl=Symbol.for("react.fragment"),Al=Object.prototype.hasOwnProperty,Il=Cl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ml={key:!0,ref:!0,__self:!0,__source:!0};function Pl(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Al.call(t,n)&&!Ml.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:wl,type:e,key:i,ref:a,props:o,_owner:Il.current}}El.Fragment=Rl,El.jsx=Pl,El.jsxs=Pl,Sl.exports=El;var Ll=Sl.exports;function Dl({styles:e,themeId:t,defaultTheme:r={}}){const n=xl(r),o="function"==typeof e?e(t&&n[t]||n):e;return Ll.jsx(ii,{styles:o})}const kl=["sx"];function Ol(e){const{sx:t}=e,r=Mt(e,kl),{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:pl;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 ui(r)?yt({},n,r):n}:yt({},n,t),yt({},o,{sx:i})}const Tl=["className","component"];const _l=["ownerState"],ql=["variants"],Nl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Fl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const jl=bl(),zl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Hl({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function $l(e){return e?(t,r)=>r[e]:null}function Bl(e,t){let{ownerState:r}=t,n=Mt(t,_l);const o="function"==typeof e?e(yt({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Bl(e,yt({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Mt(o,ql);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(yt({ownerState:r},n)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(yt({ownerState:r},n)):e.style))})),t}return o}function Wl({props:e,name:t,defaultTheme:r,themeId:n}){let o=xl(r);n&&(o=o[n]||o);const i=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?ia(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function Gl(e,t=0,r=1){return pa(e,t,r)}function Vl(e){if(e.type)return e;if("#"===e.charAt(0))return Vl(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let 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(mr(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(mr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Ul(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 Yl(e){let t="hsl"===(e=Vl(e)).type||"hsla"===e.type?Vl(function(e){e=Vl(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Ul({type:l,values:s})}(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 Kl(e,t){return e=Vl(e),t=Gl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ul(e)}function Xl(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 Jl(e){if(!Xl(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Jl(e[r])})),t}function Zl(e,t,r={clone:!0}){const n=r.clone?yt({},e):e;return Xl(e)&&Xl(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Xl(t[o])&&o in e&&Xl(e[o])?n[o]=Zl(e[o],t[o],r):r.clone?n[o]=Xl(t[o])?Jl(t[o]):t[o]:n[o]=t[o])})),n}function Ql(e){if("string"!=typeof e)throw new Error(cr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function es(e){return e&&e.ownerDocument||document}function ts(e){return es(e).defaultView||window}var rs="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;let ns=0;const os=x["useId".toString()];function is(e){if(void 0!==os){const t=os();return null!=e?e:t}return function(e){const[t,r]=x.useState(e),n=e||t;return x.useEffect((()=>{null==t&&(ns+=1,r(`mui-${ns}`))}),[t]),n}(e)}function as({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 ls(e){const t=x.useRef(e);return rs((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function ss(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class us{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new us}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let cs=!0,ds=!1;const ps=new us,fs={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 ms(e){e.metaKey||e.altKey||e.ctrlKey||(cs=!0)}function hs(){cs=!1}function gs(){"hidden"===this.visibilityState&&ds&&(cs=!0)}function bs(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return cs||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!fs[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function vs(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ms,!0),t.addEventListener("mousedown",hs,!0),t.addEventListener("pointerdown",hs,!0),t.addEventListener("touchstart",hs,!0),t.addEventListener("visibilitychange",gs,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!bs(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ds=!0,ps.start(100,(()=>{ds=!1})),t.current=!1,!0)},ref:e}}function ys(e,t){const r=yt({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=yt({},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]=yt({},i),Object.keys(o).forEach((e=>{r[n][e]=ys(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const xs=e=>e;var Ss=(()=>{let e=xs;return{configure(t){e=t},generate:t=>e(t),reset(){e=xs}}})();const Es={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 Cs(e,t,r="Mui"){const n=Es[t];return n?`${r}-${n}`:`${Ss.generate(e)}-${t}`}function ws(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Cs(e,t,r)})),n}const Rs=["mode","contrastThreshold","tonalOffset"],As={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:rr.white,default:rr.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}},Is={text:{primary:rr.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:rr.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 Ms(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=function(e,t){if(e=Vl(e),t=Gl(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 Ul(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Vl(e),t=Gl(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 Ul(e)}(e.main,i)))}function Ps(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=fr(e,Rs),i=e.primary||function(e="light"){return"dark"===e?{main:ir[200],light:ir[50],dark:ir[400]}:{main:ir[700],light:ir[400],dark:ir[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:or[200],light:or[50],dark:or[400]}:{main:or[500],light:or[300],dark:or[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:nr[500],light:nr[300],dark:nr[700]}:{main:nr[700],light:nr[400],dark:nr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ar[400],light:ar[300],dark:ar[700]}:{main:ar[700],light:ar[500],dark:ar[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:lr[400],light:lr[300],dark:lr[700]}:{main:lr[800],light:lr[500],dark:lr[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:sr[400],light:sr[300],dark:sr[700]}:{main:"#ed6c02",light:sr[500],dark:sr[900]}}(t);function d(e){const t=function(e,t){const r=Yl(e),n=Yl(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Is.text.primary)>=r?Is.text.primary:As.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=pr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(cr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(cr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ms(e,"light",o,n),Ms(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Is,light:As};return Zl(pr({common:pr({},rr),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:ur,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Ls=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ds={textTransform:"uppercase"},ks='"Roboto", "Helvetica", "Arial", sans-serif';function Os(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=ks,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=fr(r,Ls),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return pr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===ks?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Ds),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ds),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zl(pr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Ts(...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(",")}var _s=["none",Ts(0,2,1,-1,0,1,1,0,0,1,3,0),Ts(0,3,1,-2,0,2,2,0,0,1,5,0),Ts(0,3,3,-2,0,3,4,0,0,1,8,0),Ts(0,2,4,-1,0,4,5,0,0,1,10,0),Ts(0,3,5,-1,0,5,8,0,0,1,14,0),Ts(0,3,5,-1,0,6,10,0,0,1,18,0),Ts(0,4,5,-2,0,7,10,1,0,2,16,1),Ts(0,5,5,-3,0,8,10,1,0,3,14,2),Ts(0,5,6,-3,0,9,12,1,0,3,16,2),Ts(0,6,6,-3,0,10,14,1,0,4,18,3),Ts(0,6,7,-4,0,11,15,1,0,4,20,3),Ts(0,7,8,-4,0,12,17,2,0,5,22,4),Ts(0,7,8,-4,0,13,19,2,0,5,24,4),Ts(0,7,9,-4,0,14,21,2,0,5,26,4),Ts(0,8,9,-5,0,15,22,2,0,6,28,5),Ts(0,8,10,-5,0,16,24,2,0,6,30,5),Ts(0,8,11,-5,0,17,26,2,0,6,32,5),Ts(0,9,11,-5,0,18,28,2,0,7,34,6),Ts(0,9,12,-6,0,19,29,2,0,7,36,6),Ts(0,10,13,-6,0,20,31,3,0,8,38,7),Ts(0,10,13,-6,0,21,33,3,0,8,40,7),Ts(0,10,14,-6,0,22,35,3,0,8,42,7),Ts(0,11,14,-7,0,23,36,3,0,9,44,8),Ts(0,11,15,-7,0,24,38,3,0,9,46,8)];const qs=["duration","easing","delay"],Ns={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)"},Fs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function js(e){return`${Math.round(e)}ms`}function zs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Hs(e){const t=pr({},Ns,e.easing),r=pr({},Fs,e.duration);return pr({getAutoHeightDuration:zs,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return fr(n,qs),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:js(o)} ${i} ${"string"==typeof a?a:js(a)}`)).join(",")}},e,{easing:t,duration:r})}var $s={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Bs=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ws(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=fr(e,Bs);if(e.vars)throw new Error(cr(18));const l=Ps(n),s=bl(e);let u=Zl(s,{mixins:(c=s.breakpoints,d=r,pr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:_s.slice(),typography:Os(l,i),transitions:Hs(o),zIndex:pr({},$s),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Zl(u,a),u=t.reduce(((e,t)=>Zl(e,t)),u),u.unstable_sxConfig=pr({},pl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ml({sx:e,theme:this})},u}var Gs=Ws();function Vs(){const e=xl(Gs);return e[dr]||e}function Us({props:e,name:t}){return Wl({props:e,name:t,defaultTheme:Gs,themeId:dr})}const Ys=e=>Fl(e)&&"classes"!==e,Ks=Fl,Xs=function(e={}){const{themeId:t,defaultTheme:r=jl,rootShouldForwardProp:n=Fl,slotShouldForwardProp:o=Fl}=e,i=e=>ml(yt({},e,{theme:Hl(yt({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{li(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=$l(zl(s))}=a,p=Mt(a,Nl),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Fl;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=ai(e,yt({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||ui(e)?n=>Bl(e,yt({},n,{theme:Hl({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=Hl(yt({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Bl(r,yt({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Hl(yt({},e,{defaultTheme:r,themeId:t}));return Bl({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},yt({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:dr,defaultTheme:Gs,rootShouldForwardProp:Ys});var Js=Xs;var Zs=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Qs(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=Qs(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function eu(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Qs(e))&&(n&&(n+=" "),n+=t);return n}function tu(e){return Cs("MuiSvgIcon",e)}ws("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ru=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],nu=Js("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Ql(r.color)}`],t[`fontSize${Ql(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,m;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==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,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==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),ou=x.forwardRef((function(e,t){const r=Us({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=fr(r,ru),f=x.isValidElement(n)&&"svg"===n.type,m=pr({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return aa({root:["root","inherit"!==t&&`color${Ql(t)}`,`fontSize${Ql(r)}`]},tu,n)})(m);return Ll.jsxs(nu,pr({as:a,className:eu(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?Ll.jsx("title",{children:c}):null]}))}));ou.muiName="SvgIcon";var iu=ou;var au,lu={},su=Symbol.for("react.element"),uu=Symbol.for("react.portal"),cu=Symbol.for("react.fragment"),du=Symbol.for("react.strict_mode"),pu=Symbol.for("react.profiler"),fu=Symbol.for("react.provider"),mu=Symbol.for("react.context"),hu=Symbol.for("react.server_context"),gu=Symbol.for("react.forward_ref"),bu=Symbol.for("react.suspense"),vu=Symbol.for("react.suspense_list"),yu=Symbol.for("react.memo"),xu=Symbol.for("react.lazy"),Su=Symbol.for("react.offscreen");
17
+ function ii(e,t){let r;return r=t?Qo(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Qo(e),r}ni.propTypes={defaultTheme:wt.object,styles:wt.oneOfType([wt.array,wt.string,wt.object,wt.func])};const ai=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var li=Object.freeze({__proto__:null,GlobalStyles:oi,StyledEngineProvider:ri,ThemeContext:Vo,css:Xo,default:ii,internal_processStyles:ai,keyframes:ti});function si(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 ui(e){if(!si(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=ui(e[r])})),t}function ci(e,t,r={clone:!0}){const n=r.clone?vt({},e):e;return si(e)&&si(t)&&Object.keys(t).forEach((o=>{si(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&si(e[o])?n[o]=ci(e[o],t[o],r):r.clone?n[o]=si(t[o])?ui(t[o]):t[o]:n[o]=t[o]})),n}var di,pi=Object.freeze({__proto__:null,default:ci,isPlainObject:si}),fi={exports:{}},mi={},hi=Symbol.for("react.element"),gi=Symbol.for("react.portal"),bi=Symbol.for("react.fragment"),vi=Symbol.for("react.strict_mode"),yi=Symbol.for("react.profiler"),xi=Symbol.for("react.provider"),Si=Symbol.for("react.context"),Ei=Symbol.for("react.server_context"),Ci=Symbol.for("react.forward_ref"),wi=Symbol.for("react.suspense"),Ri=Symbol.for("react.suspense_list"),Ai=Symbol.for("react.memo"),Ii=Symbol.for("react.lazy"),Mi=Symbol.for("react.offscreen");function Pi(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case hi:switch(e=e.type){case bi:case yi:case vi:case wi:case Ri:return e;default:switch(e=e&&e.$$typeof){case Ei:case Si:case Ci:case Ii:case Ai:case xi:return e;default:return t}}case gi:return t}}}di=Symbol.for("react.module.reference"),mi.ContextConsumer=Si,mi.ContextProvider=xi,mi.Element=hi,mi.ForwardRef=Ci,mi.Fragment=bi,mi.Lazy=Ii,mi.Memo=Ai,mi.Portal=gi,mi.Profiler=yi,mi.StrictMode=vi,mi.Suspense=wi,mi.SuspenseList=Ri,mi.isAsyncMode=function(){return!1},mi.isConcurrentMode=function(){return!1},mi.isContextConsumer=function(e){return Pi(e)===Si},mi.isContextProvider=function(e){return Pi(e)===xi},mi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===hi},mi.isForwardRef=function(e){return Pi(e)===Ci},mi.isFragment=function(e){return Pi(e)===bi},mi.isLazy=function(e){return Pi(e)===Ii},mi.isMemo=function(e){return Pi(e)===Ai},mi.isPortal=function(e){return Pi(e)===gi},mi.isProfiler=function(e){return Pi(e)===yi},mi.isStrictMode=function(e){return Pi(e)===vi},mi.isSuspense=function(e){return Pi(e)===wi},mi.isSuspenseList=function(e){return Pi(e)===Ri},mi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===bi||e===yi||e===vi||e===wi||e===Ri||e===Mi||"object"==typeof e&&null!==e&&(e.$$typeof===Ii||e.$$typeof===Ai||e.$$typeof===xi||e.$$typeof===Si||e.$$typeof===Ci||e.$$typeof===di||void 0!==e.getModuleId)},mi.typeOf=Pi,fi.exports=mi;var Di=fi.exports;const Li=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ki(e){const t=`${e}`.match(Li);return t&&t[1]||""}function Oi(e,t=""){return e.displayName||e.name||ki(e)||t}function _i(e,t,r){const n=Oi(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Ti=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Oi(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Di.ForwardRef:return _i(e,e.render,"ForwardRef");case Di.Memo:return _i(e,e.type,"memo");default:return}}},getFunctionName:ki});function qi(e){if("string"!=typeof e)throw new Error(fr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ni=Object.freeze({__proto__:null,default:qi});function Fi(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function ji(e){return e&&e.ownerDocument||document}function zi(e){return ji(e).defaultView||window}function Hi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Bi="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function $i(e){const t=x.useRef(e);return Bi((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function Wi(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Hi(e,t)}))}),e)}const Vi={};const Gi=[];let Ui=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function Yi(){const e=function(e,t){const r=x.useRef(Vi);return r.current===Vi&&(r.current=e(t)),r}(Ui.create).current;return function(e){x.useEffect(e,Gi)}(e.disposeEffect),e}let Ki=!0,Xi=!1;const Ji=new Ui,Zi={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 Qi(e){e.metaKey||e.altKey||e.ctrlKey||(Ki=!0)}function ea(){Ki=!1}function ta(){"hidden"===this.visibilityState&&Xi&&(Ki=!0)}function ra(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ki||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Zi[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function na(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Qi,!0),t.addEventListener("mousedown",ea,!0),t.addEventListener("pointerdown",ea,!0),t.addEventListener("touchstart",ea,!0),t.addEventListener("visibilitychange",ta,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ra(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Xi=!0,Ji.start(100,(()=>{Xi=!1})),t.current=!1,!0)},ref:e}}function oa(e,t){const r=vt({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=vt({},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]=vt({},i),Object.keys(o).forEach((e=>{r[n][e]=oa(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function ia(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const aa=e=>e;var la=(()=>{let e=aa;return{configure(t){e=t},generate:t=>e(t),reset(){e=aa}}})();const sa={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 ua(e,t,r="Mui"){const n=sa[t];return n?`${r}-${n}`:`${la.generate(e)}-${t}`}function ca(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ua(e,t,r)})),n}function da(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var pa=Object.freeze({__proto__:null,default:da});function fa(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=fa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ma(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=fa(e))&&(n&&(n+=" "),n+=t);return n}const ha=["values","unit","step"];function ga(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=It(e,ha),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)=>vt({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return vt({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var ba={borderRadius:4};function va(e,t){return t?ci(e,t,{clone:!1}):e}const ya={xs:0,sm:600,md:900,lg:1200,xl:1536},xa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ya[e]}px)`};function Sa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||xa;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||xa;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||ya).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ea(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 Ca(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ea(e,r)||n,t&&(o=t(o,n,e)),o}function wa(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=Ea(e.theme,n)||{};return Sa(e,i,(e=>{let n=Ca(a,o,e);return e===n&&"string"==typeof e&&(n=Ca(a,o,`${t}${"default"===e?"":qi(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Ra={m:"margin",p:"padding"},Aa={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ia={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ma=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Ia[e])return[e];e=Ia[e]}const[t,r]=e.split(""),n=Ra[t],o=Aa[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Pa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Da=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function La(e,t,r,n){var o;const i=null!=(o=Ea(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 ka(e){return La(e,"spacing",8)}function Oa(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 _a(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Oa(t,r),e)),{})}(Ma(r),n);return Sa(e,e[r],o)}function Ta(e,t){const r=ka(e.theme);return Object.keys(e).map((n=>_a(e,t,n,r))).reduce(va,{})}function qa(e){return Ta(e,Pa)}function Na(e){return Ta(e,Da)}function Fa(...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]?va(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ja(e){return"number"!=typeof e?e:`${e}px solid`}function za(e,t){return wa({prop:e,themeKey:"borders",transform:t})}qa.propTypes={},qa.filterProps=Pa,Na.propTypes={},Na.filterProps=Da;const Ha=za("border",ja),Ba=za("borderTop",ja),$a=za("borderRight",ja),Wa=za("borderBottom",ja),Va=za("borderLeft",ja),Ga=za("borderColor"),Ua=za("borderTopColor"),Ya=za("borderRightColor"),Ka=za("borderBottomColor"),Xa=za("borderLeftColor"),Ja=za("outline",ja),Za=za("outlineColor"),Qa=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=La(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Oa(t,e)});return Sa(e,e.borderRadius,r)}return null};Qa.propTypes={},Qa.filterProps=["borderRadius"],Fa(Ha,Ba,$a,Wa,Va,Ga,Ua,Ya,Ka,Xa,Qa,Ja,Za);const el=e=>{if(void 0!==e.gap&&null!==e.gap){const t=La(e.theme,"spacing",8),r=e=>({gap:Oa(t,e)});return Sa(e,e.gap,r)}return null};el.propTypes={},el.filterProps=["gap"];const tl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=La(e.theme,"spacing",8),r=e=>({columnGap:Oa(t,e)});return Sa(e,e.columnGap,r)}return null};tl.propTypes={},tl.filterProps=["columnGap"];const rl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=La(e.theme,"spacing",8),r=e=>({rowGap:Oa(t,e)});return Sa(e,e.rowGap,r)}return null};rl.propTypes={},rl.filterProps=["rowGap"];function nl(e,t){return"grey"===t?t:e}Fa(el,tl,rl,wa({prop:"gridColumn"}),wa({prop:"gridRow"}),wa({prop:"gridAutoFlow"}),wa({prop:"gridAutoColumns"}),wa({prop:"gridAutoRows"}),wa({prop:"gridTemplateColumns"}),wa({prop:"gridTemplateRows"}),wa({prop:"gridTemplateAreas"}),wa({prop:"gridArea"}));function ol(e){return e<=1&&0!==e?100*e+"%":e}Fa(wa({prop:"color",themeKey:"palette",transform:nl}),wa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nl}),wa({prop:"backgroundColor",themeKey:"palette",transform:nl}));const il=wa({prop:"width",transform:ol}),al=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])||ya[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:ol(t)}};return Sa(e,e.maxWidth,t)}return null};al.filterProps=["maxWidth"];const ll=wa({prop:"minWidth",transform:ol}),sl=wa({prop:"height",transform:ol}),ul=wa({prop:"maxHeight",transform:ol}),cl=wa({prop:"minHeight",transform:ol});wa({prop:"size",cssProperty:"width",transform:ol}),wa({prop:"size",cssProperty:"height",transform:ol});Fa(il,al,ll,sl,ul,cl,wa({prop:"boxSizing"}));var dl={border:{themeKey:"borders",transform:ja},borderTop:{themeKey:"borders",transform:ja},borderRight:{themeKey:"borders",transform:ja},borderBottom:{themeKey:"borders",transform:ja},borderLeft:{themeKey:"borders",transform:ja},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ja},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qa},color:{themeKey:"palette",transform:nl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nl},backgroundColor:{themeKey:"palette",transform:nl},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:qa},mt:{style:qa},mr:{style:qa},mb:{style:qa},ml:{style:qa},mx:{style:qa},my:{style:qa},margin:{style:qa},marginTop:{style:qa},marginRight:{style:qa},marginBottom:{style:qa},marginLeft:{style:qa},marginX:{style:qa},marginY:{style:qa},marginInline:{style:qa},marginInlineStart:{style:qa},marginInlineEnd:{style:qa},marginBlock:{style:qa},marginBlockStart:{style:qa},marginBlockEnd:{style:qa},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:el},rowGap:{style:rl},columnGap:{style:tl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ol},maxWidth:{style:al},minWidth:{transform:ol},height:{transform:ol},maxHeight:{transform:ol},minHeight:{transform:ol},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const pl=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ea(r,l)||{};if(u)return u(o);return Sa(o,t,(t=>{let r=Ca(c,s,t);return t===r&&"string"==typeof t&&(r=Ca(c,s,`${e}${"default"===t?"":qi(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:dl;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=va(s,e(r,o,i,a));else{const e=Sa({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=va(s,e):s[r]=t({sx:o,theme:i})}else s=va(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();pl.filterProps=["sx"];var fl=pl;function ml(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:{}}const hl=["breakpoints","palette","spacing","shape"];function gl(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=It(e,hl),l=ga(r),s=function(e=8){if(e.mui)return e;const t=ka({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=ci({breakpoints:l,direction:"ltr",components:{},palette:vt({mode:"light"},n),spacing:s,shape:vt({},ba,i)},a);return u.applyStyles=ml,u=t.reduce(((e,t)=>ci(e,t)),u),u.unstable_sxConfig=vt({},dl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fl({sx:e,theme:this})},u}function bl(e=null){const t=x.useContext(Vo);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const vl=gl();function yl(e=vl){return bl(e)}var xl={exports:{}},Sl={},El=S,Cl=Symbol.for("react.element"),wl=Symbol.for("react.fragment"),Rl=Object.prototype.hasOwnProperty,Al=El.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Il={key:!0,ref:!0,__self:!0,__source:!0};function Ml(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Rl.call(t,n)&&!Il.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Cl,type:e,key:i,ref:a,props:o,_owner:Al.current}}Sl.Fragment=wl,Sl.jsx=Ml,Sl.jsxs=Ml,xl.exports=Sl;var Pl=xl.exports;function Dl({styles:e,themeId:t,defaultTheme:r={}}){const n=yl(r),o="function"==typeof e?e(t&&n[t]||n):e;return Pl.jsx(oi,{styles:o})}const Ll=["sx"];function kl(e){const{sx:t}=e,r=It(e,Ll),{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:dl;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 si(r)?vt({},n,r):n}:vt({},n,t),vt({},o,{sx:i})}const Ol=["className","component"];const _l=["ownerState"],Tl=["variants"],ql=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Nl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Fl=gl(),jl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function zl({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Hl(e){return e?(t,r)=>r[e]:null}function Bl(e,t){let{ownerState:r}=t,n=It(t,_l);const o="function"==typeof e?e(vt({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Bl(e,vt({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=It(o,Tl);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(vt({ownerState:r},n)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(vt({ownerState:r},n)):e.style))})),t}return o}function $l({props:e,name:t,defaultTheme:r,themeId:n}){let o=yl(r);n&&(o=o[n]||o);const i=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?oa(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function Wl(e,t=0,r=1){return da(e,t,r)}function Vl(e){if(e.type)return e;if("#"===e.charAt(0))return Vl(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let 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(fr(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(fr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Gl(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 Ul(e){let t="hsl"===(e=Vl(e)).type||"hsla"===e.type?Vl(function(e){e=Vl(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Gl({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Yl(e,t){return e=Vl(e),t=Wl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Gl(e)}function Kl(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 Xl(e){if(!Kl(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Xl(e[r])})),t}function Jl(e,t,r={clone:!0}){const n=r.clone?vt({},e):e;return Kl(e)&&Kl(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Kl(t[o])&&o in e&&Kl(e[o])?n[o]=Jl(e[o],t[o],r):r.clone?n[o]=Kl(t[o])?Xl(t[o]):t[o]:n[o]=t[o])})),n}function Zl(e){if("string"!=typeof e)throw new Error(ur(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ql(e){return e&&e.ownerDocument||document}function es(e){return Ql(e).defaultView||window}var ts="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;let rs=0;const ns=x["useId".toString()];function os(e){if(void 0!==ns){const t=ns();return null!=e?e:t}return function(e){const[t,r]=x.useState(e),n=e||t;return x.useEffect((()=>{null==t&&(rs+=1,r(`mui-${rs}`))}),[t]),n}(e)}function is({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 as(e){const t=x.useRef(e);return ts((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function ls(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class ss{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ss}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let us=!0,cs=!1;const ds=new ss,ps={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 fs(e){e.metaKey||e.altKey||e.ctrlKey||(us=!0)}function ms(){us=!1}function hs(){"hidden"===this.visibilityState&&cs&&(us=!0)}function gs(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return us||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!ps[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function bs(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",fs,!0),t.addEventListener("mousedown",ms,!0),t.addEventListener("pointerdown",ms,!0),t.addEventListener("touchstart",ms,!0),t.addEventListener("visibilitychange",hs,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!gs(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(cs=!0,ds.start(100,(()=>{cs=!1})),t.current=!1,!0)},ref:e}}function vs(e,t){const r=vt({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=vt({},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]=vt({},i),Object.keys(o).forEach((e=>{r[n][e]=vs(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const ys=e=>e;var xs=(()=>{let e=ys;return{configure(t){e=t},generate:t=>e(t),reset(){e=ys}}})();const Ss={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 Es(e,t,r="Mui"){const n=Ss[t];return n?`${r}-${n}`:`${xs.generate(e)}-${t}`}function Cs(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Es(e,t,r)})),n}const ws=["mode","contrastThreshold","tonalOffset"],Rs={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:tr.white,default:tr.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}},As={text:{primary:tr.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:tr.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 Is(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=function(e,t){if(e=Vl(e),t=Wl(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 Gl(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Vl(e),t=Wl(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 Gl(e)}(e.main,i)))}function Ms(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=pr(e,ws),i=e.primary||function(e="light"){return"dark"===e?{main:or[200],light:or[50],dark:or[400]}:{main:or[700],light:or[400],dark:or[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:nr[200],light:nr[50],dark:nr[400]}:{main:nr[500],light:nr[300],dark:nr[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:rr[500],light:rr[300],dark:rr[700]}:{main:rr[700],light:rr[400],dark:rr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ir[400],light:ir[300],dark:ir[700]}:{main:ir[700],light:ir[500],dark:ir[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ar[400],light:ar[300],dark:ar[700]}:{main:ar[800],light:ar[500],dark:ar[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:lr[400],light:lr[300],dark:lr[700]}:{main:"#ed6c02",light:lr[500],dark:lr[900]}}(t);function d(e){const t=function(e,t){const r=Ul(e),n=Ul(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,As.text.primary)>=r?As.text.primary:Rs.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=dr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(ur(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(ur(12,t?` (${t})`:"",JSON.stringify(e.main)));return Is(e,"light",o,n),Is(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:As,light:Rs};return Jl(dr({common:dr({},tr),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:sr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Ps=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ds={textTransform:"uppercase"},Ls='"Roboto", "Helvetica", "Arial", sans-serif';function ks(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Ls,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=pr(r,Ps),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return dr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Ls?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Ds),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ds),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jl(dr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Os(...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(",")}var _s=["none",Os(0,2,1,-1,0,1,1,0,0,1,3,0),Os(0,3,1,-2,0,2,2,0,0,1,5,0),Os(0,3,3,-2,0,3,4,0,0,1,8,0),Os(0,2,4,-1,0,4,5,0,0,1,10,0),Os(0,3,5,-1,0,5,8,0,0,1,14,0),Os(0,3,5,-1,0,6,10,0,0,1,18,0),Os(0,4,5,-2,0,7,10,1,0,2,16,1),Os(0,5,5,-3,0,8,10,1,0,3,14,2),Os(0,5,6,-3,0,9,12,1,0,3,16,2),Os(0,6,6,-3,0,10,14,1,0,4,18,3),Os(0,6,7,-4,0,11,15,1,0,4,20,3),Os(0,7,8,-4,0,12,17,2,0,5,22,4),Os(0,7,8,-4,0,13,19,2,0,5,24,4),Os(0,7,9,-4,0,14,21,2,0,5,26,4),Os(0,8,9,-5,0,15,22,2,0,6,28,5),Os(0,8,10,-5,0,16,24,2,0,6,30,5),Os(0,8,11,-5,0,17,26,2,0,6,32,5),Os(0,9,11,-5,0,18,28,2,0,7,34,6),Os(0,9,12,-6,0,19,29,2,0,7,36,6),Os(0,10,13,-6,0,20,31,3,0,8,38,7),Os(0,10,13,-6,0,21,33,3,0,8,40,7),Os(0,10,14,-6,0,22,35,3,0,8,42,7),Os(0,11,14,-7,0,23,36,3,0,9,44,8),Os(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ts=["duration","easing","delay"],qs={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)"},Ns={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fs(e){return`${Math.round(e)}ms`}function js(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function zs(e){const t=dr({},qs,e.easing),r=dr({},Ns,e.duration);return dr({getAutoHeightDuration:js,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return pr(n,Ts),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Fs(o)} ${i} ${"string"==typeof a?a:Fs(a)}`)).join(",")}},e,{easing:t,duration:r})}var Hs={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Bs=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function $s(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=pr(e,Bs);if(e.vars)throw new Error(ur(18));const l=Ms(n),s=gl(e);let u=Jl(s,{mixins:(c=s.breakpoints,d=r,dr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:_s.slice(),typography:ks(l,i),transitions:zs(o),zIndex:dr({},Hs),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Jl(u,a),u=t.reduce(((e,t)=>Jl(e,t)),u),u.unstable_sxConfig=dr({},dl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fl({sx:e,theme:this})},u}var Ws=$s();function Vs(){const e=yl(Ws);return e[cr]||e}function Gs({props:e,name:t}){return $l({props:e,name:t,defaultTheme:Ws,themeId:cr})}const Us=e=>Nl(e)&&"classes"!==e,Ys=Nl,Ks=function(e={}){const{themeId:t,defaultTheme:r=Fl,rootShouldForwardProp:n=Nl,slotShouldForwardProp:o=Nl}=e,i=e=>fl(vt({},e,{theme:zl(vt({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ai(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Hl(jl(s))}=a,p=It(a,ql),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Nl;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=ii(e,vt({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||si(e)?n=>Bl(e,vt({},n,{theme:zl({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=zl(vt({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Bl(r,vt({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=zl(vt({},e,{defaultTheme:r,themeId:t}));return Bl({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},vt({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:cr,defaultTheme:Ws,rootShouldForwardProp:Us});var Xs=Ks;var Js=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Zs(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=Zs(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Qs(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zs(e))&&(n&&(n+=" "),n+=t);return n}function eu(e){return Es("MuiSvgIcon",e)}Cs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ru=Xs("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Zl(r.color)}`],t[`fontSize${Zl(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,m;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==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,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==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),nu=x.forwardRef((function(e,t){const r=Gs({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=pr(r,tu),f=x.isValidElement(n)&&"svg"===n.type,m=dr({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return ia({root:["root","inherit"!==t&&`color${Zl(t)}`,`fontSize${Zl(r)}`]},eu,n)})(m);return Pl.jsxs(ru,dr({as:a,className:Qs(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?Pl.jsx("title",{children:c}):null]}))}));nu.muiName="SvgIcon";var ou=nu;var iu,au={},lu=Symbol.for("react.element"),su=Symbol.for("react.portal"),uu=Symbol.for("react.fragment"),cu=Symbol.for("react.strict_mode"),du=Symbol.for("react.profiler"),pu=Symbol.for("react.provider"),fu=Symbol.for("react.context"),mu=Symbol.for("react.server_context"),hu=Symbol.for("react.forward_ref"),gu=Symbol.for("react.suspense"),bu=Symbol.for("react.suspense_list"),vu=Symbol.for("react.memo"),yu=Symbol.for("react.lazy"),xu=Symbol.for("react.offscreen");
18
18
  /**
19
19
  * @license React
20
20
  * react-is.production.min.js
@@ -23,7 +23,7 @@ function ai(e,t){let r;return r=t?ei(e).withConfig({displayName:t.label,shouldFo
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */function Eu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case su:switch(e=e.type){case cu:case pu:case du:case bu:case vu:return e;default:switch(e=e&&e.$$typeof){case hu:case mu:case gu:case xu:case yu:case fu:return e;default:return t}}case uu:return t}}}au=Symbol.for("react.module.reference"),lu.ContextConsumer=mu,lu.ContextProvider=fu,lu.Element=su,lu.ForwardRef=gu,lu.Fragment=cu,lu.Lazy=xu,lu.Memo=yu,lu.Portal=uu,lu.Profiler=pu,lu.StrictMode=du,lu.Suspense=bu,lu.SuspenseList=vu,lu.isAsyncMode=function(){return!1},lu.isConcurrentMode=function(){return!1},lu.isContextConsumer=function(e){return Eu(e)===mu},lu.isContextProvider=function(e){return Eu(e)===fu},lu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===su},lu.isForwardRef=function(e){return Eu(e)===gu},lu.isFragment=function(e){return Eu(e)===cu},lu.isLazy=function(e){return Eu(e)===xu},lu.isMemo=function(e){return Eu(e)===yu},lu.isPortal=function(e){return Eu(e)===uu},lu.isProfiler=function(e){return Eu(e)===pu},lu.isStrictMode=function(e){return Eu(e)===du},lu.isSuspense=function(e){return Eu(e)===bu},lu.isSuspenseList=function(e){return Eu(e)===vu},lu.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===cu||e===pu||e===du||e===bu||e===vu||e===Su||"object"==typeof e&&null!==e&&(e.$$typeof===xu||e.$$typeof===yu||e.$$typeof===fu||e.$$typeof===mu||e.$$typeof===gu||e.$$typeof===au||void 0!==e.getModuleId)},lu.typeOf=Eu;var Cu=!1,wu=S.createContext(null),Ru="unmounted",Au="exited",Iu="entering",Mu="entered",Pu="exiting",Lu=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=Au,n.appearStatus=Iu):o=Mu:o=t.unmountOnExit||t.mountOnEnter?Ru:Au,n.state={status:o},n.nextCallback=null,n}Lt(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ru?{status:Au}: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!==Iu&&r!==Mu&&(t=Iu):r!==Iu&&r!==Mu||(t=Pu)}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===Iu){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Au&&this.setState({status:Ru})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[z.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||Cu?this.safeSetState({status:Mu},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Iu},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Mu},(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:z.findDOMNode(this);t&&!Cu?(this.props.onExit(n),this.safeSetState({status:Pu},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Au},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Au},(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:z.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===Ru)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=Mt(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(wu.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function Du(){}Lu.contextType=wu,Lu.propTypes={},Lu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Du,onEntering:Du,onEntered:Du,onExit:Du,onExiting:Du,onExited:Du},Lu.UNMOUNTED=Ru,Lu.EXITED=Au,Lu.ENTERING=Iu,Lu.ENTERED=Mu,Lu.EXITING=Pu;var ku=Lu;function Ou(e,t){var r=Object.create(null);return e&&I.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&M(e)?t(e):e}(e)})),r}function Tu(e,t,r){return null!=r[t]?r[t]:e.props[t]}function _u(e,t,r){var n=Ou(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 l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(M(a)){var l=i in t,s=i in n,u=t[i],c=M(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&M(u)&&(o[i]=P(a,{onExited:r.bind(null,a),in:u.props.in,exit:Tu(a,"exit",e),enter:Tu(a,"enter",e)})):o[i]=P(a,{in:!1}):o[i]=P(a,{onExited:r.bind(null,a),in:!0,exit:Tu(a,"exit",e),enter:Tu(a,"enter",e)})}})),o}var qu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Nu=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Dt(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Lt(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,Ou(r.children,(function(e){return P(e,{onExited:n.bind(null,e),in:!0,appear:Tu(e,"appear",r),enter:Tu(e,"enter",r),exit:Tu(e,"exit",r)})}))):_u(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Ou(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=yt({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Mt(e,["component","childFactory"]),o=this.state.contextValue,i=qu(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(wu.Provider,{value:o},i):S.createElement(wu.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);Nu.propTypes={},Nu.defaultProps={component:"div",childFactory:function(e){return e}};var Fu=Nu;const ju=e=>e.scrollTop;function zu(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 Cs("MuiPaper",e)}ws("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 $u=["className","component","elevation","square","variant"],Bu=Js("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 pr({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&&pr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Kl("#fff",Zs(t.elevation))}, ${Kl("#fff",Zs(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var Wu=x.forwardRef((function(e,t){const r=Us({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=fr(r,$u),u=pr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return aa({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Hu,o)})(u);return Ll.jsx(Bu,pr({as:o,ownerState:u,className:eu(c.root,n),ref:t},s))}));function Gu(e){return"string"==typeof e}function Vu(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 Uu(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 Yu=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ku(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Mt(e,Yu),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=ha(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=yt({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=yt({},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=Vu(yt({},o,n)),l=Uu(n),s=Uu(o),u=t(a),c=ha(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=yt({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=yt({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(yt({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Gu(e)?t:yt({},t,{ownerState:yt({},t.ownerState,r)})}(r,yt({},s,{ref:Gi(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Xu=ws("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Ju=["center","classes","className"];let Zu,Qu,ec,tc,rc=e=>e;const nc=ri(Zu||(Zu=rc`
26
+ */function Su(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case lu:switch(e=e.type){case uu:case du:case cu:case gu:case bu:return e;default:switch(e=e&&e.$$typeof){case mu:case fu:case hu:case yu:case vu:case pu:return e;default:return t}}case su:return t}}}iu=Symbol.for("react.module.reference"),au.ContextConsumer=fu,au.ContextProvider=pu,au.Element=lu,au.ForwardRef=hu,au.Fragment=uu,au.Lazy=yu,au.Memo=vu,au.Portal=su,au.Profiler=du,au.StrictMode=cu,au.Suspense=gu,au.SuspenseList=bu,au.isAsyncMode=function(){return!1},au.isConcurrentMode=function(){return!1},au.isContextConsumer=function(e){return Su(e)===fu},au.isContextProvider=function(e){return Su(e)===pu},au.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===lu},au.isForwardRef=function(e){return Su(e)===hu},au.isFragment=function(e){return Su(e)===uu},au.isLazy=function(e){return Su(e)===yu},au.isMemo=function(e){return Su(e)===vu},au.isPortal=function(e){return Su(e)===su},au.isProfiler=function(e){return Su(e)===du},au.isStrictMode=function(e){return Su(e)===cu},au.isSuspense=function(e){return Su(e)===gu},au.isSuspenseList=function(e){return Su(e)===bu},au.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===uu||e===du||e===cu||e===gu||e===bu||e===xu||"object"==typeof e&&null!==e&&(e.$$typeof===yu||e.$$typeof===vu||e.$$typeof===pu||e.$$typeof===fu||e.$$typeof===hu||e.$$typeof===iu||void 0!==e.getModuleId)},au.typeOf=Su;var Eu=!1,Cu=S.createContext(null),wu="unmounted",Ru="exited",Au="entering",Iu="entered",Mu="exiting",Pu=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=Ru,n.appearStatus=Au):o=Iu:o=t.unmountOnExit||t.mountOnEnter?wu:Ru,n.state={status:o},n.nextCallback=null,n}Pt(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===wu?{status:Ru}: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!==Au&&r!==Iu&&(t=Au):r!==Au&&r!==Iu||(t=Mu)}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===Au){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ru&&this.setState({status:wu})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[z.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||Eu?this.safeSetState({status:Iu},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Au},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Iu},(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:z.findDOMNode(this);t&&!Eu?(this.props.onExit(n),this.safeSetState({status:Mu},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ru},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ru},(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:z.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===wu)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=It(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Cu.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function Du(){}Pu.contextType=Cu,Pu.propTypes={},Pu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Du,onEntering:Du,onEntered:Du,onExit:Du,onExiting:Du,onExited:Du},Pu.UNMOUNTED=wu,Pu.EXITED=Ru,Pu.ENTERING=Au,Pu.ENTERED=Iu,Pu.EXITING=Mu;var Lu=Pu;function ku(e,t){var r=Object.create(null);return e&&I.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&M(e)?t(e):e}(e)})),r}function Ou(e,t,r){return null!=r[t]?r[t]:e.props[t]}function _u(e,t,r){var n=ku(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 l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(M(a)){var l=i in t,s=i in n,u=t[i],c=M(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&M(u)&&(o[i]=P(a,{onExited:r.bind(null,a),in:u.props.in,exit:Ou(a,"exit",e),enter:Ou(a,"enter",e)})):o[i]=P(a,{in:!1}):o[i]=P(a,{onExited:r.bind(null,a),in:!0,exit:Ou(a,"exit",e),enter:Ou(a,"enter",e)})}})),o}var Tu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},qu=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Dt(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Pt(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,ku(r.children,(function(e){return P(e,{onExited:n.bind(null,e),in:!0,appear:Ou(e,"appear",r),enter:Ou(e,"enter",r),exit:Ou(e,"exit",r)})}))):_u(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=ku(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=vt({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=It(e,["component","childFactory"]),o=this.state.contextValue,i=Tu(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(Cu.Provider,{value:o},i):S.createElement(Cu.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);qu.propTypes={},qu.defaultProps={component:"div",childFactory:function(e){return e}};var Nu=qu;const Fu=e=>e.scrollTop;function ju(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 zu(e){return Es("MuiPaper",e)}Cs("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 Hu=["className","component","elevation","square","variant"],Bu=Xs("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 dr({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&&dr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Yl("#fff",Js(t.elevation))}, ${Yl("#fff",Js(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var $u=x.forwardRef((function(e,t){const r=Gs({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=pr(r,Hu),u=dr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return ia({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},zu,o)})(u);return Pl.jsx(Bu,dr({as:o,ownerState:u,className:Qs(c.root,n),ref:t},s))}));function Wu(e){return"string"==typeof e}function Vu(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 Gu(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 Uu=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Yu(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=It(e,Uu),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=ma(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=vt({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=vt({},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=Vu(vt({},o,n)),l=Gu(n),s=Gu(o),u=t(a),c=ma(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=vt({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=vt({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(vt({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Wu(e)?t:vt({},t,{ownerState:vt({},t.ownerState,r)})}(r,vt({},s,{ref:Wi(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Ku=Cs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Xu=["center","classes","className"];let Ju,Zu,Qu,ec,tc=e=>e;const rc=ti(Ju||(Ju=tc`
27
27
  0% {
28
28
  transform: scale(0);
29
29
  opacity: 0.1;
@@ -33,7 +33,7 @@ function ai(e,t){let r;return r=t?ei(e).withConfig({displayName:t.label,shouldFo
33
33
  transform: scale(1);
34
34
  opacity: 0.3;
35
35
  }
36
- `)),oc=ri(Qu||(Qu=rc`
36
+ `)),nc=ti(Zu||(Zu=tc`
37
37
  0% {
38
38
  opacity: 1;
39
39
  }
@@ -41,7 +41,7 @@ function ai(e,t){let r;return r=t?ei(e).withConfig({displayName:t.label,shouldFo
41
41
  100% {
42
42
  opacity: 0;
43
43
  }
44
- `)),ic=ri(ec||(ec=rc`
44
+ `)),oc=ti(Qu||(Qu=tc`
45
45
  0% {
46
46
  transform: scale(1);
47
47
  }
@@ -53,7 +53,7 @@ function ai(e,t){let r;return r=t?ei(e).withConfig({displayName:t.label,shouldFo
53
53
  100% {
54
54
  transform: scale(1);
55
55
  }
56
- `)),ac=Js("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),lc=Js((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=x.useState(!1),p=eu(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=eu(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),x.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Ll.jsx("span",{className:p,style:f,children:Ll.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(tc||(tc=rc`
56
+ `)),ic=Xs("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ac=Xs((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=x.useState(!1),p=Qs(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Qs(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),x.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Pl.jsx("span",{className:p,style:f,children:Pl.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(ec||(ec=tc`
57
57
  opacity: 0;
58
58
  position: absolute;
59
59
 
@@ -96,9 +96,9 @@ function ai(e,t){let r;return r=t?ei(e).withConfig({displayName:t.label,shouldFo
96
96
  animation-iteration-count: infinite;
97
97
  animation-delay: 200ms;
98
98
  }
99
- `),Xu.rippleVisible,nc,550,(({theme:e})=>e.transitions.easing.easeInOut),Xu.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Xu.child,Xu.childLeaving,oc,550,(({theme:e})=>e.transitions.easing.easeInOut),Xu.childPulsate,ic,(({theme:e})=>e.transitions.easing.easeInOut));var sc=x.forwardRef((function(e,t){const r=Us({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=fr(r,Ju),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=x.useRef(0),f=x.useRef(null),m=x.useRef(null);x.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=x.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,Ll.jsx(lc,{classes:{ripple:eu(o.ripple,Xu.ripple),rippleVisible:eu(o.rippleVisible,Xu.rippleVisible),ripplePulsate:eu(o.ripplePulsate,Xu.ripplePulsate),child:eu(o.child,Xu.child),childLeaving:eu(o.childLeaving,Xu.childLeaving),childPulsate:eu(o.childPulsate,Xu.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.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 l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h]),b=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ll.jsx(ac,pr({className:eu(Xu.root,o.root,i),ref:m},a,{children:Ll.jsx(Fu,{component:null,exit:!0,children:l})}))}));function uc(e){return Cs("MuiButtonBase",e)}var cc=ws("MuiButtonBase",["root","disabled","focusVisible"]);const dc=["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"],pc=Js("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"},[`&.${cc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fc=x.forwardRef((function(e,t){const r=Us({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:M=0,TouchRippleProps:P,touchRippleRef:L,type:D}=r,k=fr(r,dc),O=x.useRef(null),T=x.useRef(null),_=ss(T,L),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=vs(),[z,H]=x.useState(!1);s&&z&&H(!1),x.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[$,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!s;function G(e,t,r=c){return ls((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}x.useEffect((()=>{z&&d&&!u&&$&&T.current.pulsate()}),[u,d,z,$]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=G("start",I),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=ls((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=ls((e=>{d&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=ls((e=>{d&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(k.href||k.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===D?"button":D,le.disabled=s):(k.href||k.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=ss(t,j,O),ue=pr({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=aa({root:["root",t&&"disabled",r&&"focusVisible"]},uc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Ll.jsxs(pc,pr({as:ae,className:eu(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:M,type:D},le,k,{children:[i,W?Ll.jsx(sc,pr({ref:_,center:o},P)):null]}))}));var mc=fc;function hc(e){return Cs("MuiTypography",e)}ws("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bc=Js("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${Ql(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>pr({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}))),vc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xc=x.forwardRef((function(e,t){const r=Us({props:e,name:"MuiTypography"}),n=(e=>yc[e]||e)(r.color),o=Ol(pr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=vc}=o,f=fr(o,gc),m=pr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||vc[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return aa({root:["root",i,"inherit"!==e.align&&`align${Ql(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},hc,a)})(m);return Ll.jsx(bc,pr({as:h,ref:t,ownerState:m,className:eu(g.root,a)},f))}));var Sc=xc;const Ec=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Cc(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ec)).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 wc(){return!0}function Rc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Cc,isEnabled:a=wc,open:l}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),m=x.useRef(null),h=Gi(t.ref,m),g=x.useRef(null);x.useEffect((()=>{l&&m.current&&(f.current=!r)}),[r,l]),x.useEffect((()=>{if(!l||!m.current)return;const e=zi(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),x.useEffect((()=>{if(!l||!m.current)return;const e=zi(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ll.jsxs(x.Fragment,{children:[Ll.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Ll.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Ac=x.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=Gi(x.isValidElement(r)?r.ref:null,t);if(Bi((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Bi((()=>{if(i&&!o)return $i(t,i),()=>{$i(t,null)}}),[t,i,o]),o){if(x.isValidElement(r)){const e={ref:l};return x.cloneElement(r,e)}return Ll.jsx(x.Fragment,{children:r})}return Ll.jsx(x.Fragment,{children:i?H.createPortal(r,i):i})}));function Ic(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mc(e){return parseInt(Hi(e).getComputedStyle(e).paddingRight,10)||0}function Pc(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&&Ic(e,o)}))}function Lc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Dc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=zi(e);return t.body===e?Hi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(zi(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Mc(n)+e}px`;const t=zi(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Mc(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=zi(n).body;else{const t=n.parentElement,r=Hi(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 kc=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&&Ic(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);Pc(t,e.mount,e.modalRef,n,!0);const o=Lc(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=Lc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Dc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Lc(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&&Ic(e.modalRef,t),Pc(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&&Ic(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Oc(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=kc,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),m=x.useRef(null),h=Gi(m,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=Wi((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||zi(f.current).body;o.add(S(),e),m.current&&E()})),w=x.useCallback((()=>o.isTopModal(S())),[o]),R=Wi((e=>{f.current=e,e&&(c&&w()?E():m.current&&Ic(m.current,y))})),A=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{A()}),[A]),x.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const I=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Vu(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=yt({},r,t);return yt({role:"presentation"},n,{onKeyDown:I(n),ref:h})},getBackdropProps:(e={})=>yt({"aria-hidden":!0},e,{onClick:M(e),open:c}),getTransitionProps:()=>({onEnter:ji((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ji((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const Tc=["onChange","maxRows","minRows","style","value"];function _c(e){return parseInt(e,10)||0}const qc={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Nc(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Fc=x.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=Mt(e,Tc),{current:s}=x.useRef(null!=a),u=x.useRef(null),c=Gi(t,u),d=x.useRef(null),p=x.useRef(0),[f,m]=x.useState({outerHeightStyle:0}),h=x.useCallback((()=>{const t=u.current,r=Hi(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=_c(r.paddingBottom)+_c(r.paddingTop),s=_c(r.borderBottomWidth)+_c(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},b=x.useCallback((()=>{const e=h();Nc(e)||m((t=>g(t,e)))}),[h]);Bi((()=>{const e=()=>{p.current=0,(()=>{const e=h();Nc(e)||H.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=u.current,n=Hi(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),Bi((()=>{b()})),x.useEffect((()=>{p.current=0}),[a]);return Ll.jsxs(x.Fragment,{children:[Ll.jsx("textarea",yt({value:a,onChange:e=>{p.current=0,s||b(),r&&r(e)},ref:c,rows:o,style:yt({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Ll.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:yt({},qc,i,{paddingTop:0,paddingBottom:0})})]})}));function jc({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)),{})}var zc=x.createContext(void 0);function Hc(){return x.useContext(zc)}function $c(e){return Ll.jsx(Dl,pr({},e,{defaultTheme:Gs,themeId:dr}))}function Bc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Wc(e,t=!1){return e&&(Bc(e.value)&&""!==e.value||t&&Bc(e.defaultValue)&&""!==e.defaultValue)}function Gc(e){return Cs("MuiInputBase",e)}var Vc=ws("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Uc=["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"],Yc=(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${Ql(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Kc=(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]},Xc=Js("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Yc})((({theme:e,ownerState:t})=>pr({},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",[`&.${Vc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&pr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Jc=Js("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Kc})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=pr({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 pr({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] + .${Vc.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},[`&.${Vc.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"})})),Zc=Ll.jsx($c,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Qc=x.forwardRef((function(e,t){var r;const n=Us({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:I,onKeyDown:M,onKeyUp:P,placeholder:L,readOnly:D,renderSuffix:k,rows:O,slotProps:T={},slots:_={},startAdornment:q,type:N="text",value:F}=n,j=fr(n,Uc),z=null!=b.value?b.value:F,{current:H}=x.useRef(null!=z),$=x.useRef(),B=x.useCallback((e=>{}),[]),W=ss($,v,b.ref,B),[G,V]=x.useState(!1),U=Hc(),Y=jc({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:G,x.useEffect((()=>{!U&&d&&G&&(V(!1),w&&w())}),[U,d,G,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=x.useCallback((e=>{Wc(e)?K&&K():X&&X()}),[K,X]);rs((()=>{H&&J({value:z})}),[z,J,H]);x.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=pr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Fc);x.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=pr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return aa({root:["root",`color${Ql(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Ql(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Gc,t)})(ee),re=_.root||s.Root||Xc,ne=T.root||u.root||{},oe=_.input||s.Input||Jc;return Q=pr({},Q,null!=(r=T.input)?r:u.input),Ll.jsxs(x.Fragment,{children:[!p&&Zc,Ll.jsxs(re,pr({},ne,!Gu(re)&&{ownerState:pr({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),A&&A(e)}},j,{className:eu(te.root,ne.className,l,D&&"MuiInputBase-readOnly"),children:[q,Ll.jsx(zc.Provider,{value:null,children:Ll.jsx(oe,pr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:C,placeholder:L,readOnly:D,required:Y.required,rows:O,value:z,onKeyDown:M,onKeyUp:P,type:N},Q,!Gu(oe)&&{as:Z,ownerState:pr({},ee,Q.ownerState)},{ref:W,className:eu(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||$.current;if(null==t)throw new Error(cr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),f,k?k(pr({},Y,{startAdornment:q})):null]}))]})}));var ed=Qc;function td(e){return Cs("MuiInput",e)}var rd=pr({},Vc,ws("MuiInput",["root","underline","input"]));function nd(e){return Cs("MuiOutlinedInput",e)}var od=pr({},Vc,ws("MuiOutlinedInput",["root","notchedOutline","input"]));function id(e){return Cs("MuiFilledInput",e)}var ad=pr({},Vc,ws("MuiFilledInput",["root","underline","input"])),ld=function(e,t){function r(r,n){return Ll.jsx(iu,pr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=iu.muiName,x.memo(x.forwardRef(r))}(Ll.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"],ud={entering:{opacity:1},entered:{opacity:1}},cd=x.forwardRef((function(e,t){const r=Vs(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=ku}=e,v=fr(e,sd),y=x.useRef(null),S=ss(y,a.ref,t),E=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{ju(e);const n=zu({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),A=E(m),I=E((e=>{const t=zu({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),M=E(f);return Ll.jsx(b,pr({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,pr({style:pr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},ud[e],h,a.props.style),ref:S},t))}))}));var dd=cd;function pd(e){return Cs("MuiBackdrop",e)}ws("MuiBackdrop",["root","invisible"]);const fd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],md=Js("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>pr({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"}))),hd=x.forwardRef((function(e,t){var r,n,o;const i=Us({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=dd,transitionDuration:g}=i,b=fr(i,fd),v=pr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return aa({root:["root",r&&"invisible"]},pd,t)})(v),x=null!=(r=f.root)?r:c.root;return Ll.jsx(h,pr({in:p,timeout:g},b,{children:Ll.jsx(md,pr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:eu(y.root,l,null==x?void 0:x.className),ownerState:pr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var gd=hd;var bd=ws("MuiBox",["root"]);const vd=Ws(),yd=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ai("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ml);return x.forwardRef((function(e,a){const l=xl(r),s=Ol(e),{className:u,component:c="div"}=s,d=Mt(s,Tl);return Ll.jsx(i,yt({as:c,ref:a,className:ha(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:dr,defaultTheme:vd,defaultClassName:bd.root,generateClassName:Ss.generate});var xd=yd;function Sd(e){return Cs("MuiButton",e)}var Ed=ws("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Cd=x.createContext({});var wd=x.createContext(void 0);const Rd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ad=e=>pr({},"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}}),Id=Js(mc,{shouldForwardProp:e=>Ys(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ql(r.color)}`],t[`size${Ql(r.size)}`],t[`${r.variant}Size${Ql(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 pr({},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":pr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Kl(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})`:Kl(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})`:Kl(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":pr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ed.focusVisible}`]:pr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ed.disabled}`]:pr({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 ${Kl(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"},[`&.${Ed.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ed.disabled}`]:{boxShadow:"none"}})),Md=Js("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Ql(r.size)}`]]}})((({ownerState:e})=>pr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ad(e)))),Pd=Js("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Ql(r.size)}`]]}})((({ownerState:e})=>pr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ad(e)))),Ld=x.forwardRef((function(e,t){const r=x.useContext(Cd),n=x.useContext(wd),o=Us({props:ys(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,y=fr(o,Rd),S=pr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return pr({},a,aa({root:["root",i,`${i}${Ql(t)}`,`size${Ql(o)}`,`${i}Size${Ql(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Ql(o)}`],endIcon:["endIcon",`iconSize${Ql(o)}`]},Sd,a))})(S),C=g&&Ll.jsx(Md,{className:E.startIcon,ownerState:S,children:g}),w=p&&Ll.jsx(Pd,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return Ll.jsxs(Id,pr({ownerState:S,className:eu(r.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:eu(E.focusVisible,f),ref:t,type:b},y,{classes:E,children:[C,i,w]}))}));var Dd=Ld;function kd(e){return Cs("MuiModal",e)}ws("MuiModal",["root","hidden","backdrop"]);const Od=["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"],Td=Js("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})=>pr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),_d=Js(gd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),qd=x.forwardRef((function(e,t){var r,n,o,i,a,l;const s=Us({name:"MuiModal",props:e}),{BackdropComponent:u=_d,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:M,slotProps:P,slots:L}=s,D=fr(s,Od),k=pr({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=Oc(pr({},k,{rootRef:t})),z=pr({},k,{exited:F}),H=(e=>{const{open:t,exited:r,classes:n}=e;return aa({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},kd,n)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const B=null!=(r=null!=(n=null==L?void 0:L.root)?n:g.Root)?r:Td,W=null!=(o=null!=(i=null==L?void 0:L.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==P?void 0:P.root)?a:b.root,V=null!=(l=null==P?void 0:P.backdrop)?l:b.backdrop,U=Ku({elementType:B,externalSlotProps:G,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:h},ownerState:z,className:eu(d,null==G?void 0:G.className,null==H?void 0:H.root,!z.open&&z.exited&&(null==H?void 0:H.hidden))}),Y=Ku({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(pr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:eu(null==V?void 0:V.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:z});return A||M||j&&!F?Ll.jsx(Ac,{ref:q,container:m,disablePortal:E,children:Ll.jsxs(B,pr({},U,{children:[!R&&u?Ll.jsx(W,pr({},Y)):null,Ll.jsx(Rc,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:M,children:x.cloneElement(f,$)})]}))}):null}));var Nd=qd;function Fd(e){return Cs("MuiDivider",e)}var jd=ws("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const zd=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Hd=Js("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})=>pr({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)`:Kl(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})=>pr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>pr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>pr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>pr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),$d=Js("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>pr({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)`}))),Bd=x.forwardRef((function(e,t){const r=Us({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=fr(r,zd),m=pr({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return aa({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Fd,n)})(m);return Ll.jsx(Hd,pr({as:a,className:eu(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Ll.jsx($d,{className:h.wrapper,ownerState:m,children:o}):null}))}));Bd.muiSkipListHighlight=!0;var Wd=Bd;const Gd=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Vd=Js(Xc,{shouldForwardProp:e=>Ys(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Yc(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return pr({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}},[`&.${ad.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ad.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ad.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ad.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(.${ad.disabled}, .${ad.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ad.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&pr({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}))})),Ud=Js(Jc,{name:"MuiFilledInput",slot:"Input",overridesResolver:Kc})((({theme:e,ownerState:t})=>pr({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}))),Yd=x.forwardRef((function(e,t){var r,n,o,i;const a=Us({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=fr(a,Gd),g=pr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return pr({},t,aa({root:["root",!r&&"underline"],input:["input"]},id,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Zl(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:Vd,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Ud;return Ll.jsx(ed,pr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Yd.muiName="Input";var Kd=Yd;const Xd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Jd(e){return`scale(${e}, ${e**2})`}const Zd={entering:{opacity:1,transform:Jd(1)},entered:{opacity:1,transform:"none"}},Qd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ep=x.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=ku}=e,g=fr(e,Xd),b=x.useRef(),v=x.useRef(),y=Vs(),S=x.useRef(null),E=ss(S,o.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{ju(e);const{duration:r,delay:n,easing:o}=zu({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(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:Qd?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),A=C(s),I=C(p),M=C((e=>{const{duration:t,delay:r,easing:n}=zu({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(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:Qd?o:.666*o,delay:Qd?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Jd(.75),c&&c(e)})),P=C(d);return x.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Ll.jsx(h,pr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:M,onExited:P,onExiting:I,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>x.cloneElement(o,pr({style:pr({opacity:0,transform:Jd(.75),visibility:"exited"!==e||a?void 0:"hidden"},Zd[e],f,o.props.style),ref:E},t))}))}));ep.muiSupportAuto=!0;var tp=ep;const rp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],np=Js(Xc,{shouldForwardProp:e=>Ys(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Yc(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})`),pr({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"},[`&.${rd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rd.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(.${rd.disabled}, .${rd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${rd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),op=Js(Jc,{name:"MuiInput",slot:"Input",overridesResolver:Kc})({}),ip=x.forwardRef((function(e,t){var r,n,o,i;const a=Us({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=fr(a,rp),b=(e=>{const{classes:t,disableUnderline:r}=e;return pr({},t,aa({root:["root",!r&&"underline"],input:["input"]},td,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Zl(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:np,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:op;return Ll.jsx(ed,pr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));ip.muiName="Input";var ap=ip;function lp(e){return Cs("MuiLink",e)}var sp=ws("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const up={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var cp=({theme:e,ownerState:t})=>{const r=(e=>up[e]||e)(t.color),n=Ca(e,`palette.${r}`,!1)||t.color,o=Ca(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Kl(n,.4)};const dp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],pp=Js(Sc,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ql(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>pr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&pr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:cp({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"},[`&.${sp.focusVisible}`]:{outline:"auto"}}))),fp=x.forwardRef((function(e,t){const r=Us({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=fr(r,dp),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=vs(),[b,v]=x.useState(!1),y=ss(t,g),S=pr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return aa({root:["root",`underline${Ql(o)}`,"button"===r&&"button",n&&"focusVisible"]},lp,t)})(S);return Ll.jsx(pp,pr({color:o,className:eu(E.root,n),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),l&&l(e)},ref:y,ownerState:S,variant:c,sx:[...Object.keys(up).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var mp=fp;var hp=x.createContext({});function gp(e){return Cs("MuiList",e)}ws("MuiList",["root","padding","dense","subheader"]);const bp=["children","className","component","dense","disablePadding","subheader"],vp=Js("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})=>pr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var yp=x.forwardRef((function(e,t){const r=Us({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=fr(r,bp),c=x.useMemo((()=>({dense:a})),[a]),d=pr({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return aa({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},gp,t)})(d);return Ll.jsx(hp.Provider,{value:c,children:Ll.jsxs(vp,pr({as:i,className:eu(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function xp(e){return Cs("MuiListItemIcon",e)}var Sp=ws("MuiListItemIcon",["root","alignItemsFlexStart"]);const Ep=["className"],Cp=Js("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})=>pr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var wp=x.forwardRef((function(e,t){const r=Us({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=fr(r,Ep),i=pr({},r,{alignItems:x.useContext(hp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return aa({root:["root","flex-start"===t&&"alignItemsFlexStart"]},xp,r)})(i);return Ll.jsx(Cp,pr({className:eu(a.root,n),ownerState:i,ref:t},o))}));var Rp=ws("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Ap=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ip(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Mp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Pp(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 Lp(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Pp(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Dp=x.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=fr(e,Ap),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});rs((()=>{n&&p.current.focus()}),[n]),x.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(es(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=ss(p,t);let h=-1;x.Children.forEach(i,((e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=x.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),x.cloneElement(e,t)}return e}));return Ll.jsx(yp,pr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=es(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Lp(t,n,s,l,Ip);else if("ArrowUp"===r)e.preventDefault(),Lp(t,n,s,l,Mp);else if("Home"===r)e.preventDefault(),Lp(t,null,s,l,Ip);else if("End"===r)e.preventDefault(),Lp(t,null,s,l,Mp);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Pp(n,o);o.previousKeyMatched&&(s||Lp(t,n,!1,l,Ip,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function kp(e){return Cs("MuiPopover",e)}ws("MuiPopover",["root","paper"]);const Op=["onEntering"],Tp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_p=["slotProps"];function qp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Np(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Fp(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function jp(e){return"function"==typeof e?e():e}const zp=Js(Nd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hp=Js(Wu,{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});var $p=x.forwardRef((function(e,t){var r,n,o;const i=Us({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=tp,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=fr(i.TransitionProps,Op),I=fr(i,Tp),M=null!=(r=null==y?void 0:y.paper)?r:b,P=x.useRef(),L=ss(P,M.ref),D=pr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),k=(e=>{const{classes:t}=e;return aa({root:["root"],paper:["paper"]},kp,t)})(D),O=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=jp(l),t=(e&&1===e.nodeType?e:es(P.current).body).getBoundingClientRect();return{top:t.top+qp(t,s.vertical),left:t.left+Np(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=x.useCallback((e=>({vertical:qp(e,S.vertical),horizontal:Np(e,S.horizontal)})),[S.horizontal,S.vertical]),_=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Fp(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=ts(jp(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Fp(r)}}),[l,c,O,T,h]),[q,N]=x.useState(g),F=x.useCallback((()=>{const e=P.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);x.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);x.useEffect((()=>{g&&F()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),x.useEffect((()=>{if(!g)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=ts(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=f||(l?es(jp(l)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:zp,$=null!=(o=null==v?void 0:v.paper)?o:Hp,B=Ku({elementType:$,externalSlotProps:pr({},M,{style:q?M.style:pr({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:D,className:eu(k.paper,null==M?void 0:M.className)}),W=Ku({elementType:H,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:D,className:eu(k.root,p)}),{slotProps:G}=W,V=fr(W,_p);return Ll.jsx(H,pr({},V,!Gu(H)&&{slotProps:G,disableScrollLock:R},{children:Ll.jsx(E,pr({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},A,{children:Ll.jsx($,pr({},B,{children:d}))}))}))}));function Bp(e){return Cs("MuiMenu",e)}ws("MuiMenu",["root","paper","list"]);const Wp=["onEntering"],Gp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Vp={vertical:"top",horizontal:"right"},Up={vertical:"top",horizontal:"left"},Yp=Js($p,{shouldForwardProp:e=>Ys(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kp=Js(Hp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Xp=Js(Dp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Jp=x.forwardRef((function(e,t){var r,n;const o=Us({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=fr(o.TransitionProps,Wp),S=fr(o,Gp),E=Vs(),C="rtl"===E.direction,w=pr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return aa({root:["root"],paper:["paper"],list:["list"]},Bp,t)})(w),A=i&&!s&&d,I=x.useRef(null);let M=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===M)&&(M=t))}));const P=null!=(r=b.paper)?r:Kp,L=null!=(n=v.paper)?n:p,D=Ku({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),k=Ku({elementType:P,externalSlotProps:L,ownerState:w,className:R.paper});return Ll.jsx(Yp,pr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Vp:Up,slots:{paper:P,root:b.root},slotProps:{root:D,paper:k},open:d,ref:t,transitionDuration:m,TransitionProps:pr({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},y),ownerState:w},S,{classes:f,children:Ll.jsx(Xp,pr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:I,autoFocus:i&&(-1===M||s),autoFocusItem:A,variant:g},u,{className:eu(R.list,u.className),children:a}))}))}));function Zp(e){return Cs("MuiMenuItem",e)}var Qp=ws("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const ef=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],tf=Js(mc,{shouldForwardProp:e=>Ys(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})=>pr({},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"}},[`&.${Qp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kl(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}))`:Kl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kl(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})`:Kl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jd.inset}`]:{marginLeft:52},[`& .${Rp.root}`]:{marginTop:0,marginBottom:0},[`& .${Rp.inset}`]:{paddingLeft:36},[`& .${Sp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&pr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Sp.root} svg`]:{fontSize:"1.25rem"}}))));var rf=x.forwardRef((function(e,t){const r=Us({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=fr(r,ef),f=x.useContext(hp),m=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=x.useRef(null);rs((()=>{n&&h.current&&h.current.focus()}),[n]);const g=pr({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return pr({},a,aa({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Zp,a))})(r),v=ss(h,t);let y;return r.disabled||(y=void 0!==c?c:-1),Ll.jsx(hp.Provider,{value:m,children:Ll.jsx(tf,pr({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:eu(b.focusVisible,s),className:eu(b.root,d)},p,{ownerState:g,classes:b}))})}));function nf(e){return Cs("MuiNativeSelect",e)}var of=ws("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const af=["className","disabled","error","IconComponent","inputRef","variant"],lf=({ownerState:e,theme:t})=>pr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":pr({},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"},[`&.${of.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}}),sf=Js("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ys,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${of.multiple}`]:t.multiple}]}})(lf),uf=({ownerState:e,theme:t})=>pr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${of.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),cf=Js("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ql(r.variant)}`],r.open&&t.iconOpen]}})(uf),df=x.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=fr(e,af),u=pr({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return aa({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ql(r)}`,i&&"iconOpen",n&&"disabled"]},nf,t)})(u);return Ll.jsxs(x.Fragment,{children:[Ll.jsx(sf,pr({ownerState:u,className:eu(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:Ll.jsx(cf,{as:i,ownerState:u,className:c.icon})]})}));var pf,ff=df;const mf=["children","classes","className","label","notched"],hf=Js("fieldset",{shouldForwardProp:Ys})({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%"}),gf=Js("legend",{shouldForwardProp:Ys})((({ownerState:e,theme:t})=>pr({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&&pr({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 bf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vf=Js(Xc,{shouldForwardProp:e=>Ys(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Yc})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return pr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${od.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${od.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${od.focused} .${od.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${od.error} .${od.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${od.disabled} .${od.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&pr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),yf=Js((function(e){const{className:t,label:r,notched:n}=e,o=fr(e,mf),i=null!=r&&""!==r,a=pr({},e,{notched:n,withLabel:i});return Ll.jsx(hf,pr({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ll.jsx(gf,{ownerState:a,children:i?Ll.jsx("span",{children:r}):pf||(pf=Ll.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}})),xf=Js(Jc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Kc})((({theme:e,ownerState:t})=>pr({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}))),Sf=x.forwardRef((function(e,t){var r,n,o,i,a;const l=Us({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=fr(l,bf),b=(e=>{const{classes:t}=e;return pr({},t,aa({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nd,t))})(l),v=Hc(),y=jc({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=pr({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),E=null!=(r=null!=(n=m.root)?n:s.Root)?r:vf,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:xf;return Ll.jsx(ed,pr({slots:{root:E,input:C},renderSuffix:e=>Ll.jsx(yf,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Ll.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:pr({},b,{notchedOutline:null})}))}));Sf.muiName="Input";var Ef=Sf;function Cf(e){return Cs("MuiSelect",e)}var wf,Rf=ws("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Af=["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"],If=Js("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Rf.select}`]:t.select},{[`&.${Rf.select}`]:t[r.variant]},{[`&.${Rf.error}`]:t.error},{[`&.${Rf.multiple}`]:t.multiple}]}})(lf,{[`&.${Rf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Mf=Js("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ql(r.variant)}`],r.open&&t.iconOpen]}})(uf),Pf=Js("input",{shouldForwardProp:e=>Ks(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 Lf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Df(e){return null==e||"string"==typeof e&&!e.trim()}const kf=x.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:I,renderValue:M,SelectDisplayProps:P={},tabIndex:L,value:D,variant:k="standard"}=e,O=fr(e,Af),[T,_]=as({controlled:D,default:c,name:"Select"}),[q,N]=as({controlled:A,default:u,name:"Select"}),F=x.useRef(null),j=x.useRef(null),[z,H]=x.useState(null),{current:$}=x.useRef(null!=A),[B,W]=x.useState(),G=ss(t,h),V=x.useCallback((e=>{j.current=e,e&&H(e)}),[]),U=null==z?void 0:z.parentNode;x.useImperativeHandle(G,(()=>({focus:()=>{j.current.focus()},node:F.current,value:T})),[T]),x.useEffect((()=>{u&&q&&z&&!$&&(W(a?null:U.clientWidth),j.current.focus())}),[z,a]),x.useEffect((()=>{i&&j.current.focus()}),[i]),x.useEffect((()=>{if(!g)return;const e=es(j.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),$||(W(a?null:U.clientWidth),N(e))},K=x.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==r&&(_(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),E(o,e)}v||Y(!1,t)}},J=null!==z&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Wc({value:T})||p)&&(M?Z=M(T):te=!0);const re=K.map((e=>{if(!x.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(cr(2));t=T.some((t=>Lf(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Lf(T,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&&$&&z&&(oe=U.clientWidth),ne=void 0!==L?L:d?null:0;const ie=P.id||(y?`mui-component-select-${y}`:void 0),ae=pr({},e,{variant:k,value:T,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return aa({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ql(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Cf,t)})(ae),se=pr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=is();return Ll.jsxs(x.Fragment,{children:[Ll.jsx(If,pr({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:y}}),S(e))},onFocus:w},P,{ownerState:ae,className:eu(P.className,le.select,s),id:ie,children:Df(Z)?wf||(wf=Ll.jsx("span",{className:"notranslate",children:"​"})):Z})),Ll.jsx(Pf,pr({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),Ll.jsx(Mf,{as:m,className:le.icon,ownerState:ae}),Ll.jsx(Jp,pr({id:`menu-${y||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:pr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:pr({},b.slotProps,{paper:pr({},se,{style:pr({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var Of=kf;const Tf=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],_f=["root"],qf={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ys(e)&&"variant"!==e,slot:"Root"},Nf=Js(ap,qf)(""),Ff=Js(Ef,qf)(""),jf=Js(Kd,qf)(""),zf=x.forwardRef((function(e,t){const r=Us({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=ld,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=fr(r,Tf),A=b?ff:Of,I=jc({props:r,muiFormControl:Hc(),states:["variant","error"]}),M=I.variant||w,P=pr({},r,{variant:M,classes:i}),L=(e=>{const{classes:t}=e;return t})(P),D=fr(L,_f),k=d||{standard:Ll.jsx(Nf,{ownerState:P}),outlined:Ll.jsx(Ff,{label:f,ownerState:P}),filled:Ll.jsx(jf,{ownerState:P})}[M],O=ss(t,k.ref);return Ll.jsx(x.Fragment,{children:x.cloneElement(k,pr({inputComponent:A,inputProps:pr({children:o,error:I.error,IconComponent:u,variant:M,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:pr({id:c},C)},p,{classes:p?Zl(D,p.classes):D},d?d.props.inputProps:{})},g&&b&&"outlined"===M?{notched:!0}:{},{ref:O,className:eu(k.props.className,a,L.root)},!d&&{variant:M},R))})}));zf.muiName="Select";var Hf=zf,$f=(e={})=>S.createElement(Xt,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:Ot.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Bf={MuiAccordion:{styleOverrides:{root:{backgroundColor:Ot.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Ot.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(Ut,{"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 ${Ot.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Ot.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Ot.MISC_FOCUS_BORDER}`,borderRadius:Ft,backgroundColor:Ot.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 ${Ot.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Ot.WHITE,color:Ot.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Ft},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ot.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Ot.GREYSCALE_0_15,backgroundColor:Ot.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Ot.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ot.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Ot.GREEN_PALE},"&:active":{backgroundColor:Ot.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ot.GREEN_PALE,boxShadow:`0 0 0 3px ${Kl(Ot.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Ot.BLUE_PALE},"&:active":{backgroundColor:Ot.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ot.BLUE_PALE,boxShadow:`0 0 0 3px ${Kl(Ot.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ft,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Ot.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ot.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Ot.GREYSCALE_0_15,backgroundColor:Ot.GREYSCALE_100_60,"&:active":{backgroundColor:Ot.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Ot.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ot.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Ot.PURPLE,"&.Mui-focusVisible":{borderColor:Ot.PURPLE,boxShadow:`0 0 0 3px ${Kl(Ot.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Ot.GREEN,"&.Mui-focusVisible":{borderColor:Ot.GREEN,boxShadow:`0 0 0 3px ${Kl(Ot.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Ot.BLUE,"&.Mui-focusVisible":{borderColor:Ot.BLUE,boxShadow:`0 0 0 3px ${Kl(Ot.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Ot.ORANGE,"&.Mui-focusVisible":{borderColor:Ot.ORANGE,boxShadow:`0 0 0 3px ${Kl(Ot.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Ot.RED,"&.Mui-focusVisible":{borderColor:Ot.RED,boxShadow:`0 0 0 3px ${Kl(Ot.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Ot.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Ot.PURPLE_PALE},"&:active":{backgroundColor:Ot.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Ot.PURPLE_PALE,boxShadow:`0 0 0 3px ${Kl(Ot.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Ot.GREEN_PALE},"&:active":{backgroundColor:Ot.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ot.GREEN_PALE,boxShadow:`0 0 0 3px ${Kl(Ot.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Ot.BLUE_PALE},"&:active":{backgroundColor:Ot.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ot.BLUE_PALE,boxShadow:`0 0 0 3px ${Kl(Ot.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Ot.ORANGE_PALE},"&:active":{backgroundColor:Ot.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Ot.ORANGE_PALE,boxShadow:`0 0 0 3px ${Kl(Ot.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Ot.RED_PALE},"&:active":{backgroundColor:Ot.RED_DARK},"&.Mui-focusVisible":{borderColor:Ot.RED_PALE,boxShadow:`0 0 0 3px ${Kl(Ot.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:Ot.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Ot.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ft,boxShadow:`inset 0 0 0 2px ${Ot.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(Kt,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Tt,borderRadius:Ft,color:Ot.TEXT_PRIMARY,backgroundColor:Ot.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Ot.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Ot.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Ot.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Ot.GREYSCALE_0_05,color:Ot.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Ot.GREEN,borderColor:Ot.GREEN},"&.MuiChip-outlinedInfo":{color:Ot.BLUE,borderColor:Ot.BLUE},"&.MuiChip-outlinedWarning":{color:Ot.ORANGE,borderColor:Ot.ORANGE},"&.MuiChip-outlinedError":{color:Ot.RED,borderColor:Ot.RED}},outlined:{border:`solid 1px ${Ot.GREYSCALE_0_15}`,backgroundColor:Ot.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ft,boxShadow:"none",backgroundColor:Ot.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Ot.GREEN,borderColor:Ot.GREEN},outlinedSecondary:{color:Ot.BLUE,borderColor:Ot.BLUE},label:{fontFamily:Bt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(Kt,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(Ut,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Ft},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ft,fontSize:_t,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Ot.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Ot.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Ot.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Ot.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Ot.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ft,border:`solid 1px ${Ot.GREYSCALE_0_15}`,color:Ot.GREYSCALE_0_60,marginRight:0,width:Nt,height:Nt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Ot.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ft,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Ot.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:_t}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Tt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Ot.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Ot.GREYSCALE_25,fontSize:Tt,fontFamily:Bt.FONT_FAMILY,fontWeight:Ht,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Ot.TEXT_PRIMARY},"&.Mui-error":{color:Ot.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Ot.TEXT_SECONDARY,content:"'(optional)'",fontWeight:zt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Ot.TEXT_SECONDARY,content:"'(required)'",fontWeight:zt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:_t,lineHeight:"16px",backgroundColor:Ot.WHITE,borderRadius:Ft,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ot.GREYSCALE_0_05}`,borderColor:Ot.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ot.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Ot.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Ot.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ot.RED}`,boxShadow:`0px 0px 0px 1px ${Ot.RED}, inset 0 2px 0 0 ${Ot.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ot.GREYSCALE_0_10}`,borderColor:Ot.GREYSCALE_0_10,backgroundColor:Ot.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Ot.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Ot.GREYSCALE_0_15,borderRadius:Ft,boxShadow:`inset 0 2px 0 0 ${Ot.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(Ut,{...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:Ot.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Ot.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Ot.GREYSCALE_0_03},"&:active":{backgroundColor:Ot.GREYSCALE_0_10},"&:focus":{backgroundColor:Ot.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Ot.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Ot.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Ot.GREYSCALE_0_30,"&:hover":{backgroundColor:Ot.GREYSCALE_0_0,borderColor:Ot.GREYSCALE_0_15},"& ~svg":{color:Ot.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Ot.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ft}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Ot.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Ot.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Ot.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:_t,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Tt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Tt,fontWeight:Ht,color:Ot.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ht}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Ot.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ot.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(Qt,null),checkedIcon:S.createElement(er,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Ot.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Ot.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Ot.GREEN_PALE,boxShadow:`0 0 0 3px ${Kl(Ot.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Ot.BLUE_PALE,boxShadow:`0 0 0 3px ${Kl(Ot.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Ot.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Ot.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement($f,null),checkedIcon:S.createElement(Jt,null),indeterminateIcon:S.createElement(Zt,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ft,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Ot.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Ot.GREYSCALE_0_55,color:Ot.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:Ot.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Ot.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Ot.GREYSCALE_0_55,"&:hover":{color:Ot.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:Ot.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Ot.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:_t,color:Ot.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ht},secondary:{fontSize:Tt,color:Ot.GREYSCALE_45,fontWeight:zt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:_t,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:_t,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Ot.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Tt,borderBottom:`solid 1px ${Ot.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:_t,color:Ot.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Ot.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Ot.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Ot.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Ot.RED}}},"&.Mui-focusVisible":{backgroundColor:Ot.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:Ot.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:Ot.GREEN,height:"24px","&.Mui-disabled":{color:Ot.GREYSCALE_0_15}},rail:{backgroundColor:Ot.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Ot.GREYSCALE_0_05}`,borderRadius:Ft,boxShadow:`inset 0px 0px 0px 1px ${Ot.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Ot.GREYSCALE_0_05}`,borderRadius:Ft},thumb:{height:"16px",width:"16px",borderRadius:Ft,backgroundColor:Ot.WHITE,boxShadow:`0px 1px 2px 0px ${Ot.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ot.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ft,boxShadow:`0 2px 4px 0 ${Ot.GREYSCALE_0_30}, 0 0 0 1px ${Ot.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Ot.GREYSCALE_0_15}, 0 0 0 1px ${Ot.GREYSCALE_0_06}, 0 0 0 2px ${Ot.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Ot.GREYSCALE_0_15}, 0 0 0 1px ${Ot.GREYSCALE_0_06}, 0 0 0 2px ${Ot.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Ot.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Ot.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Ot.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Ot.GREYSCALE_0_15},markLabel:{color:Ot.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Ot.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Ot.WHITE,color:Ot.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:Ot.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:Ot.GREEN_PALE,boxShadow:`0 0 0 3px ${Kl(Ot.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ot.BLUE_PALE,boxShadow:`0 0 0 3px ${Kl(Ot.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Ot.GREYSCALE_0_15,borderRadius:Ft},thumb:{height:"16px",width:"16px",borderRadius:Ft,backgroundColor:Ot.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:_t,fontWeight:Ht,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Ot.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Ot.MISC_FOCUS_BORDER}`,backgroundColor:Ot.GREYSCALE_0_03,borderRadius:Ft},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Ot.GREYSCALE_25,"&.Mui-selected":{color:Ot.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:_t,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ft,"&:hover":{backgroundColor:`${Ot.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 ${Ot.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Ot.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ft,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Ot.GREYSCALE_0_05},"&:hover":{backgroundColor:`${Ot.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Ot.GREYSCALE_85}`,borderRight:`1px solid ${Ot.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ht,backgroundColor:Ot.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:Ot.GREYSCALE_98,borderBottom:`1px solid ${Ot.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Ot.GREYSCALE_85}`,borderTop:`1px solid ${Ot.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Ot.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Ot.GREYSCALE_0_05,"&:hover":{backgroundColor:Ot.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Ot.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(tr,{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 ${Ot.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:_t,borderRadius:Ft,padding:"7px 16px",border:`1px solid ${Ot.GREYSCALE_0_15}`,backgroundColor:Ot.GREYSCALE_100_60,color:Ot.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Ot.GREYSCALE_0_10,border:`1px solid ${Ot.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Ot.GREYSCALE_0_03,border:`1px solid ${Ot.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Ot.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Ot.MISC_FOCUS_BORDER}`,border:`1px solid ${Ot.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Ot.GREYSCALE_25,backgroundColor:Ot.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Ot.GREYSCALE_0_10,border:`1px solid ${Ot.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Tt,height:24,width:24,padding:7},sizeLarge:{fontSize:qt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:_t,borderRadius:Ft}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Ot.GREYSCALE_20},tooltip:{backgroundColor:Ot.GREYSCALE_20,fontSize:Tt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Wf={mode:"light",primary:{ultraLight:Ot.GREEN_ULTRA_LIGHT,light:Ot.GREEN_PALE,main:Ot.GREEN,dark:Ot.GREEN_DARK,extraDark:Ot.GREEN_EXTRA_DARK,contrastText:Ot.WHITE},secondary:{ultraLight:Ot.BLUE_ULTRA_LIGHT,light:Ot.BLUE_PALE,main:Ot.BLUE,dark:Ot.BLUE_DARK,extraDark:Ot.BLUE_EXTRA_DARK,contrastText:Ot.WHITE},error:{ultraLight:Ot.RED_ULTRA_LIGHT,light:Ot.RED_PALE,main:Ot.RED,dark:Ot.RED_DARK,extraDark:Ot.RED_EXTRA_DARK,contrastText:Ot.WHITE},warning:{ultraLight:Ot.ORANGE_ULTRA_LIGHT,light:Ot.ORANGE_PALE,main:Ot.ORANGE,dark:Ot.ORANGE_DARK,extraDark:Ot.ORANGE_EXTRA_DARK,contrastText:Ot.WHITE},success:{ultraLight:Ot.GREEN_ULTRA_LIGHT,light:Ot.GREEN_PALE,main:Ot.GREEN,dark:Ot.GREEN_DARK,extraDark:Ot.GREEN_EXTRA_DARK,contrastText:Ot.WHITE},info:{ultraLight:Ot.BLUE_ULTRA_LIGHT,light:Ot.BLUE_PALE,main:Ot.BLUE,dark:Ot.BLUE_DARK,extraDark:Ot.BLUE_EXTRA_DARK,contrastText:Ot.WHITE},text:{primary:Ot.TEXT_PRIMARY,secondary:Ot.TEXT_SECONDARY,disabled:Ot.GREYSCALE_0_30},action:{hover:Ot.GREYSCALE_0_03,hoverOpacity:.03,selected:Ot.GREYSCALE_0_05,selectedOpacity:.05,focus:Ot.MISC_FOCUS_BORDER},amethyst:{ultraLight:Ot.WHITE,main:Ot.PURPLE,light:Ot.PURPLE_PALE,dark:Ot.PURPLE_DARK,extraDark:Ot.GREYSCALE_0_0,contrastText:Ot.WHITE},background:{paper:Ot.WHITE,default:Ot.GREYSCALE_95},divider:Ot.GREYSCALE_0_15},Gf=e=>({components:Bf,palette:Wf,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:_t,fontWeightLight:jt,fontWeightRegular:zt,fontWeightMedium:Ht,fontWeightBold:$t,htmlFontSize:_t,fontFamily:Bt.FONT_FAMILY,button:{fontWeight:Ht,fontSize:_t,textTransform:"none"},body1:{fontSize:qt,lineHeight:"24px"},body2:{fontSize:_t,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Nt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:qt,fontWeight:Ht,lineHeight:"16px"},h6:{fontSize:_t,fontWeight:Ht,lineHeight:"16px"},caption:{color:Ot.TEXT_SECONDARY},subtitle1:{fontSize:_t,color:Ot.TEXT_SECONDARY},subtitle2:{fontSize:Tt,color:Ot.TEXT_SECONDARY}},shape:{borderRadius:Ft}}),Vf={...kt,MISC_FOCUS_BORDER:Ot.MISC_FOCUS_BORDER},Uf=Gf().palette,Yf={TEXT:Uf.text.primary,DISABLED:Uf.text.disabled,HOVER:Uf.action.hover,WHITE:Vf.GREYSCALE_100,BORDER_LIGHT:Vf.GREYSCALE_90,BORDER_MEDIUM:Vf.GREYSCALE_85,BORDER_HEAVY:Vf.GREYSCALE_50,DARK_MODE_TEXT:Vf.GREYSCALE_95,DARK_MODE_BORDER:Vf.GREYSCALE_95,DARK_MODE_DISABLED:Vf.GREYSCALE_70,DARK_MODE_BACKGROUND:Vf.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Vf.GREYSCALE_95,SELECTED:Uf.primary.main},Kf=(e,t=Yf.TEXT,r=Yf.WHITE)=>{const n=ie(e),o=ie(t),i=ie(r);return n.isInvalid()?t:function(e,t,r){return ae(e,t)>ae(e,r)?t:r}(n,i,o).getRGB()};function Xf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Jf(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Zf(){}var Qf=.7,em=1/Qf,tm="\\s*([+-]?\\d+)\\s*",rm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",om=/^#([0-9a-f]{3,8})$/,im=new RegExp(`^rgb\\(${tm},${tm},${tm}\\)$`),am=new RegExp(`^rgb\\(${nm},${nm},${nm}\\)$`),lm=new RegExp(`^rgba\\(${tm},${tm},${tm},${rm}\\)$`),sm=new RegExp(`^rgba\\(${nm},${nm},${nm},${rm}\\)$`),um=new RegExp(`^hsl\\(${rm},${nm},${nm}\\)$`),cm=new RegExp(`^hsla\\(${rm},${nm},${nm},${rm}\\)$`),dm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function pm(){return this.rgb().formatHex()}function fm(){return this.rgb().formatRgb()}function mm(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=om.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?hm(t):3===r?new vm(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?gm(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?gm(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=im.exec(e))?new vm(t[1],t[2],t[3],1):(t=am.exec(e))?new vm(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=lm.exec(e))?gm(t[1],t[2],t[3],t[4]):(t=sm.exec(e))?gm(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=um.exec(e))?wm(t[1],t[2]/100,t[3]/100,1):(t=cm.exec(e))?wm(t[1],t[2]/100,t[3]/100,t[4]):dm.hasOwnProperty(e)?hm(dm[e]):"transparent"===e?new vm(NaN,NaN,NaN,0):null}function hm(e){return new vm(e>>16&255,e>>8&255,255&e,1)}function gm(e,t,r,n){return n<=0&&(e=t=r=NaN),new vm(e,t,r,n)}function bm(e){return e instanceof Zf||(e=mm(e)),e?new vm((e=e.rgb()).r,e.g,e.b,e.opacity):new vm}function vm(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function ym(){return`#${Cm(this.r)}${Cm(this.g)}${Cm(this.b)}`}function xm(){const e=Sm(this.opacity);return`${1===e?"rgb(":"rgba("}${Em(this.r)}, ${Em(this.g)}, ${Em(this.b)}${1===e?")":`, ${e})`}`}function Sm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Em(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Cm(e){return((e=Em(e))<16?"0":"")+e.toString(16)}function wm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Am(e,t,r,n)}function Rm(e){if(e instanceof Am)return new Am(e.h,e.s,e.l,e.opacity);if(e instanceof Zf||(e=mm(e)),!e)return new Am;if(e instanceof Am)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Am(a,l,s,e.opacity)}function Am(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Im(e){return(e=(e||0)%360)<0?e+360:e}function Mm(e){return Math.max(0,Math.min(1,e||0))}function Pm(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Xf(Zf,mm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pm,formatHex:pm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Rm(this).formatHsl()},formatRgb:fm,toString:fm}),Xf(vm,(function(e,t,r,n){return 1===arguments.length?bm(e):new vm(e,t,r,null==n?1:n)}),Jf(Zf,{brighter(e){return e=null==e?em:Math.pow(em,e),new vm(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Qf:Math.pow(Qf,e),new vm(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vm(Em(this.r),Em(this.g),Em(this.b),Sm(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ym,formatHex:ym,formatHex8:function(){return`#${Cm(this.r)}${Cm(this.g)}${Cm(this.b)}${Cm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:xm,toString:xm})),Xf(Am,(function(e,t,r,n){return 1===arguments.length?Rm(e):new Am(e,t,r,null==n?1:n)}),Jf(Zf,{brighter(e){return e=null==e?em:Math.pow(em,e),new Am(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Qf:Math.pow(Qf,e),new Am(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new vm(Pm(e>=240?e-240:e+120,o,n),Pm(e,o,n),Pm(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Am(Im(this.h),Mm(this.s),Mm(this.l),Sm(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Sm(this.opacity);return`${1===e?"hsl(":"hsla("}${Im(this.h)}, ${100*Mm(this.s)}%, ${100*Mm(this.l)}%${1===e?")":`, ${e})`}`}}));const Lm=Math.PI/180,Dm=180/Math.PI,km=.96422,Om=.82521,Tm=4/29,_m=6/29,qm=3*_m*_m,Nm=_m*_m*_m;function Fm(e){if(e instanceof jm)return new jm(e.l,e.a,e.b,e.opacity);if(e instanceof Gm)return Vm(e);e instanceof vm||(e=bm(e));var t,r,n=Bm(e.r),o=Bm(e.g),i=Bm(e.b),a=zm((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=zm((.4360747*n+.3850649*o+.1430804*i)/km),r=zm((.0139322*n+.0971045*o+.7141733*i)/Om)),new jm(116*a-16,500*(t-a),200*(a-r),e.opacity)}function jm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function zm(e){return e>Nm?Math.pow(e,1/3):e/qm+Tm}function Hm(e){return e>_m?e*e*e:qm*(e-Tm)}function $m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Bm(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Wm(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Gm)return new Gm(e.h,e.c,e.l,e.opacity);if(e instanceof jm||(e=Fm(e)),0===e.a&&0===e.b)return new Gm(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Dm;return new Gm(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Gm(e,t,r,null==n?1:n)}function Gm(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Vm(e){if(isNaN(e.h))return new jm(e.l,0,0,e.opacity);var t=e.h*Lm;return new jm(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Xf(jm,(function(e,t,r,n){return 1===arguments.length?Fm(e):new jm(e,t,r,null==n?1:n)}),Jf(Zf,{brighter(e){return new jm(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new jm(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new vm($m(3.1338561*(t=km*Hm(t))-1.6168667*(e=1*Hm(e))-.4906146*(r=Om*Hm(r))),$m(-.9787684*t+1.9161415*e+.033454*r),$m(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Xf(Gm,Wm,Jf(Zf,{brighter(e){return new Gm(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Gm(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Vm(this).rgb()}}));const Um=(e,t)=>{const r=Wm(e),n=r.l<70;return 0===r.opacity?(r.opacity=t.opacity,r.toString()):n?r.brighter(t.brighter).toString():r.darker(t.darker).toString()},Ym={background:Yf.SELECTED,color:Yf.WHITE},Km=({theme:e,flags:t})=>{if(!t.isEnabled("PS_22149_THEME_SELECTION_COLORS"))return Ym;const r=e.getStyle("","","dataColors.selected")||Ym.background,n=function(e,t){var r=ie("#FFFFFF"),n=ie(e),o=ie(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=ae(r,n),a=ae(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(r,Yf.TEXT);return{background:r,color:n}},Xm=e=>!!e&&0===ie(e).a,Jm=e=>{const t=ie(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Zm=(e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)},Qm=e=>{e.stopPropagation(),e.preventDefault()},eh="#grid",th=(e,t,r,n=Yf.WHITE)=>e&&!Xm(e)?e:Xm(t)?r&&!Xm(r)?r:n:t,rh=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},nh=(e,t,r,n,o)=>{const i=rh(".qv-object .qv-inner-object",r),a=rh(".qv-panel-sheet",r),l=rh(eh,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Jm(s);if("none"===u)return"transparent";if(void 0===u)return;const c=ie(u);return c.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=Xm(p),m=Kf(f?s:p,Yf.TEXT,Yf.DARK_MODE_TEXT)===Q(Yf.DARK_MODE_TEXT);return{color:p,headerColor:th(u,p,s),isDark:m}},oh=(e,i,a,l)=>{const s=n(),u=((e,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[o,i]=t([]);return r((()=>{let t;return e&&(t=new MutationObserver((e=>{i(e)})),t.observe(e,n)),()=>{var e;null===(e=t)||void 0===e||e.disconnect()}}),[e,n]),o})(null==i?void 0:i.closest(eh),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return o((()=>({...s,background:nh(e,s,i,a,l)})),[s.name(),i,a,l,e,u])},ih=3;function ah(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function lh({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=ih}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=C((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=dt(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=dt((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=ah(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var sh,uh=z;function ch(e,t){const[r,n]=E(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}sh=uh.createRoot,uh.hydrateRoot;var dh={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_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_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 ph=({translator:e})=>(C((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(dh).forEach((t=>{e.add(dh[t])}))}}(e)),[e]),e),fh="12px",mh="nebula-table-utils-head-menu-button",hh="nebula-table-utils-head-menu-wrapper",gh="nebula-table-utils-head-menu",bh="nebula-table-utils-head-menu-list-id",vh="sn-copy-cell";let yh=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}({});const xh="nebula-table-utils-column-adjuster";let Sh=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}({}),Eh=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Ch={darker:.15,brighter:.3,opacity:.03},wh={darker:.3,brighter:.5,opacity:.05};let Rh=function(e){return e.single="N",e.drillDown="H",e.cyclic="C",e}({});const Ah=document.createElement("textarea");function Ih(e){Ah.value=e,document.body.appendChild(Ah),Ah.select(),Ah.setSelectionRange(0,Ah.value.length),document.execCommand("copy"),document.body.removeChild(Ah)}Ah.style.position="absolute",Ah.style.left="-9999px",Ah.setAttribute("readonly","");const Mh=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>Ih(r))):Ih(r))};var Ph,Lh;var Dh=function(){if(Lh)return Ph;Lh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return Ph=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},Ph}();function kh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Oh(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Th(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Dh);var _h=1/.7,qh="\\s*([+-]?\\d+)\\s*",Nh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jh=/^#([0-9a-f]{3,8})$/,zh=new RegExp(`^rgb\\(${qh},${qh},${qh}\\)$`),Hh=new RegExp(`^rgb\\(${Fh},${Fh},${Fh}\\)$`),$h=new RegExp(`^rgba\\(${qh},${qh},${qh},${Nh}\\)$`),Bh=new RegExp(`^rgba\\(${Fh},${Fh},${Fh},${Nh}\\)$`),Wh=new RegExp(`^hsl\\(${Nh},${Fh},${Fh}\\)$`),Gh=new RegExp(`^hsla\\(${Nh},${Fh},${Fh},${Nh}\\)$`),Vh={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Uh(){return this.rgb().formatHex()}function Yh(){return this.rgb().formatRgb()}function Kh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=jh.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Xh(t):3===r?new eg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Jh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Jh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=zh.exec(e))?new eg(t[1],t[2],t[3],1):(t=Hh.exec(e))?new eg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$h.exec(e))?Jh(t[1],t[2],t[3],t[4]):(t=Bh.exec(e))?Jh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Wh.exec(e))?ag(t[1],t[2]/100,t[3]/100,1):(t=Gh.exec(e))?ag(t[1],t[2]/100,t[3]/100,t[4]):Vh.hasOwnProperty(e)?Xh(Vh[e]):"transparent"===e?new eg(NaN,NaN,NaN,0):null}function Xh(e){return new eg(e>>16&255,e>>8&255,255&e,1)}function Jh(e,t,r,n){return n<=0&&(e=t=r=NaN),new eg(e,t,r,n)}function Zh(e){return e instanceof Th||(e=Kh(e)),e?new eg((e=e.rgb()).r,e.g,e.b,e.opacity):new eg}function Qh(e,t,r,n){return 1===arguments.length?Zh(e):new eg(e,t,r,null==n?1:n)}function eg(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function tg(){return`#${ig(this.r)}${ig(this.g)}${ig(this.b)}`}function rg(){const e=ng(this.opacity);return`${1===e?"rgb(":"rgba("}${og(this.r)}, ${og(this.g)}, ${og(this.b)}${1===e?")":`, ${e})`}`}function ng(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function og(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ig(e){return((e=og(e))<16?"0":"")+e.toString(16)}function ag(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new sg(e,t,r,n)}function lg(e){if(e instanceof sg)return new sg(e.h,e.s,e.l,e.opacity);if(e instanceof Th||(e=Kh(e)),!e)return new sg;if(e instanceof sg)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new sg(a,l,s,e.opacity)}function sg(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ug(e){return(e=(e||0)%360)<0?e+360:e}function cg(e){return Math.max(0,Math.min(1,e||0))}function dg(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}kh(Th,Kh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Uh,formatHex:Uh,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lg(this).formatHsl()},formatRgb:Yh,toString:Yh}),kh(eg,Qh,Oh(Th,{brighter(e){return e=null==e?_h:Math.pow(_h,e),new eg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new eg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new eg(og(this.r),og(this.g),og(this.b),ng(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tg,formatHex:tg,formatHex8:function(){return`#${ig(this.r)}${ig(this.g)}${ig(this.b)}${ig(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rg,toString:rg})),kh(sg,(function(e,t,r,n){return 1===arguments.length?lg(e):new sg(e,t,r,null==n?1:n)}),Oh(Th,{brighter(e){return e=null==e?_h:Math.pow(_h,e),new sg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new sg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new eg(dg(e>=240?e-240:e+120,o,n),dg(e,o,n),dg(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new sg(ug(this.h),cg(this.s),cg(this.l),ng(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ng(this.opacity);return`${1===e?"hsl(":"hsla("}${ug(this.h)}, ${100*cg(this.s)}%, ${100*cg(this.l)}%${1===e?")":`, ${e})`}`}}));const pg=Math.PI/180,fg=180/Math.PI,mg=4/29,hg=6/29,gg=3*hg*hg;function bg(e){if(e instanceof vg)return new vg(e.l,e.a,e.b,e.opacity);if(e instanceof Cg)return wg(e);e instanceof eg||(e=Zh(e));var t,r,n=Eg(e.r),o=Eg(e.g),i=Eg(e.b),a=yg((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=yg((.4360747*n+.3850649*o+.1430804*i)/.96422),r=yg((.0139322*n+.0971045*o+.7141733*i)/.82521)),new vg(116*a-16,500*(t-a),200*(a-r),e.opacity)}function vg(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function yg(e){return e>.008856451679035631?Math.pow(e,1/3):e/gg+mg}function xg(e){return e>hg?e*e*e:gg*(e-mg)}function Sg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Eg(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Cg(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function wg(e){if(isNaN(e.h))return new vg(e.l,0,0,e.opacity);var t=e.h*pg;return new vg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}kh(vg,(function(e,t,r,n){return 1===arguments.length?bg(e):new vg(e,t,r,null==n?1:n)}),Oh(Th,{brighter(e){return new vg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new vg(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new eg(Sg(3.1338561*(t=.96422*xg(t))-1.6168667*(e=1*xg(e))-.4906146*(r=.82521*xg(r))),Sg(-.9787684*t+1.9161415*e+.033454*r),Sg(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),kh(Cg,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Cg)return new Cg(e.h,e.c,e.l,e.opacity);if(e instanceof vg||(e=bg(e)),0===e.a&&0===e.b)return new Cg(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*fg;return new Cg(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Cg(e,t,r,null==n?1:n)}),Oh(Th,{brighter(e){return new Cg(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Cg(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return wg(this).rgb()}}));var Rg=e=>()=>e;function Ag(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Rg(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Ag:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Rg(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Qh(e)).r,(t=Qh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Ag(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Ig="center",Mg="bottom";[{key:"NoDataExist",alignment:Ig,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ig,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ig,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ig},{key:"DataRangeIncludingZero",alignment:Mg},{key:"LimitedData",alignment:Mg},{key:"NegativeOrZeroValues",alignment:Mg}].reduce((function(e,t){return e[t.key]=t,e}),{});var Pg,Lg=["__proto__","constructor"];function Dg(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Lg.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function kg(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Og(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=_g)):void 0===t&&(t=Tg);for(var r,n,o,i,a,l=new Fg(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Fg(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Ng)}function Tg(e){return e.children}function _g(e){return Array.isArray(e)?e[1]:null}function qg(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ng(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Fg(e){this.data=e,this.depth=this.height=0,this.parent=null}Fg.prototype=Og.prototype={constructor:Fg,count:function(){return this.eachAfter(kg)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Og(this).eachBefore(qg)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Pg=function(e){
99
+ `),Ku.rippleVisible,rc,550,(({theme:e})=>e.transitions.easing.easeInOut),Ku.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Ku.child,Ku.childLeaving,nc,550,(({theme:e})=>e.transitions.easing.easeInOut),Ku.childPulsate,oc,(({theme:e})=>e.transitions.easing.easeInOut));var lc=x.forwardRef((function(e,t){const r=Gs({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=pr(r,Xu),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=x.useRef(0),f=x.useRef(null),m=x.useRef(null);x.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=x.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,Pl.jsx(ac,{classes:{ripple:Qs(o.ripple,Ku.ripple),rippleVisible:Qs(o.rippleVisible,Ku.rippleVisible),ripplePulsate:Qs(o.ripplePulsate,Ku.ripplePulsate),child:Qs(o.child,Ku.child),childLeaving:Qs(o.childLeaving,Ku.childLeaving),childPulsate:Qs(o.childPulsate,Ku.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.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 l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h]),b=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Pl.jsx(ic,dr({className:Qs(Ku.root,o.root,i),ref:m},a,{children:Pl.jsx(Nu,{component:null,exit:!0,children:l})}))}));function sc(e){return Es("MuiButtonBase",e)}var uc=Cs("MuiButtonBase",["root","disabled","focusVisible"]);const cc=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],dc=Xs("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${uc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pc=x.forwardRef((function(e,t){const r=Gs({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:M=0,TouchRippleProps:P,touchRippleRef:D,type:L}=r,k=pr(r,cc),O=x.useRef(null),_=x.useRef(null),T=ls(_,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=bs(),[z,H]=x.useState(!1);s&&z&&H(!1),x.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[B,$]=x.useState(!1);x.useEffect((()=>{$(!0)}),[]);const W=B&&!u&&!s;function V(e,t,r=c){return as((n=>{t&&t(n);return!r&&_.current&&_.current[e](n),!0}))}x.useEffect((()=>{z&&d&&!u&&B&&_.current.pulsate()}),[u,d,z,B]);const G=V("start",E),U=V("stop",h),Y=V("stop",g),K=V("stop",w),X=V("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=V("start",I),Z=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{F(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=as((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=as((e=>{d&&!ne.current&&z&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=as((e=>{d&&" "===e.key&&_.current&&z&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(k.href||k.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=s):(k.href||k.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=ls(t,j,O),ue=dr({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ia({root:["root",t&&"disabled",r&&"focusVisible"]},sc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Pl.jsxs(dc,dr({as:ae,className:Qs(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:M,type:L},le,k,{children:[i,W?Pl.jsx(lc,dr({ref:T,center:o},P)):null]}))}));var fc=pc;function mc(e){return Es("MuiTypography",e)}Cs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],gc=Xs("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${Zl(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>dr({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}))),bc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},yc=x.forwardRef((function(e,t){const r=Gs({props:e,name:"MuiTypography"}),n=(e=>vc[e]||e)(r.color),o=kl(dr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=bc}=o,f=pr(o,hc),m=dr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||bc[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return ia({root:["root",i,"inherit"!==e.align&&`align${Zl(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},mc,a)})(m);return Pl.jsx(gc,dr({as:h,ref:t,ownerState:m,className:Qs(g.root,a)},f))}));var xc=yc;const Sc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ec(e){const t=[],r=[];return Array.from(e.querySelectorAll(Sc)).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 Cc(){return!0}function wc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Ec,isEnabled:a=Cc,open:l}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),m=x.useRef(null),h=Wi(t.ref,m),g=x.useRef(null);x.useEffect((()=>{l&&m.current&&(f.current=!r)}),[r,l]),x.useEffect((()=>{if(!l||!m.current)return;const e=ji(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),x.useEffect((()=>{if(!l||!m.current)return;const e=ji(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Pl.jsxs(x.Fragment,{children:[Pl.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Pl.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Rc=x.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=Wi(x.isValidElement(r)?r.ref:null,t);if(Bi((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Bi((()=>{if(i&&!o)return Hi(t,i),()=>{Hi(t,null)}}),[t,i,o]),o){if(x.isValidElement(r)){const e={ref:l};return x.cloneElement(r,e)}return Pl.jsx(x.Fragment,{children:r})}return Pl.jsx(x.Fragment,{children:i?H.createPortal(r,i):i})}));function Ac(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ic(e){return parseInt(zi(e).getComputedStyle(e).paddingRight,10)||0}function Mc(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&&Ac(e,o)}))}function Pc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Dc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=ji(e);return t.body===e?zi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(ji(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Ic(n)+e}px`;const t=ji(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ic(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=ji(n).body;else{const t=n.parentElement,r=zi(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 Lc=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&&Ac(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);Mc(t,e.mount,e.modalRef,n,!0);const o=Pc(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=Pc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Dc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Pc(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&&Ac(e.modalRef,t),Mc(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&&Ac(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function kc(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Lc,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),m=x.useRef(null),h=Wi(m,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=$i((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ji(f.current).body;o.add(S(),e),m.current&&E()})),w=x.useCallback((()=>o.isTopModal(S())),[o]),R=$i((e=>{f.current=e,e&&(c&&w()?E():m.current&&Ac(m.current,y))})),A=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{A()}),[A]),x.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const I=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Vu(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=vt({},r,t);return vt({role:"presentation"},n,{onKeyDown:I(n),ref:h})},getBackdropProps:(e={})=>vt({"aria-hidden":!0},e,{onClick:M(e),open:c}),getTransitionProps:()=>({onEnter:Fi((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Fi((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const Oc=["onChange","maxRows","minRows","style","value"];function _c(e){return parseInt(e,10)||0}const Tc={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function qc(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Nc=x.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=It(e,Oc),{current:s}=x.useRef(null!=a),u=x.useRef(null),c=Wi(t,u),d=x.useRef(null),p=x.useRef(0),[f,m]=x.useState({outerHeightStyle:0}),h=x.useCallback((()=>{const t=u.current,r=zi(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=_c(r.paddingBottom)+_c(r.paddingTop),s=_c(r.borderBottomWidth)+_c(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},b=x.useCallback((()=>{const e=h();qc(e)||m((t=>g(t,e)))}),[h]);Bi((()=>{const e=()=>{p.current=0,(()=>{const e=h();qc(e)||H.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=u.current,n=zi(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),Bi((()=>{b()})),x.useEffect((()=>{p.current=0}),[a]);return Pl.jsxs(x.Fragment,{children:[Pl.jsx("textarea",vt({value:a,onChange:e=>{p.current=0,s||b(),r&&r(e)},ref:c,rows:o,style:vt({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Pl.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:vt({},Tc,i,{paddingTop:0,paddingBottom:0})})]})}));function Fc({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)),{})}var jc=x.createContext(void 0);function zc(){return x.useContext(jc)}function Hc(e){return Pl.jsx(Dl,dr({},e,{defaultTheme:Ws,themeId:cr}))}function Bc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function $c(e,t=!1){return e&&(Bc(e.value)&&""!==e.value||t&&Bc(e.defaultValue)&&""!==e.defaultValue)}function Wc(e){return Es("MuiInputBase",e)}var Vc=Cs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Gc=["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"],Uc=(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${Zl(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Yc=(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]},Kc=Xs("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Uc})((({theme:e,ownerState:t})=>dr({},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",[`&.${Vc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&dr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Xc=Xs("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Yc})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=dr({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 dr({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] + .${Vc.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},[`&.${Vc.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"})})),Jc=Pl.jsx(Hc,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Zc=x.forwardRef((function(e,t){var r;const n=Gs({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:I,onKeyDown:M,onKeyUp:P,placeholder:D,readOnly:L,renderSuffix:k,rows:O,slotProps:_={},slots:T={},startAdornment:q,type:N="text",value:F}=n,j=pr(n,Gc),z=null!=b.value?b.value:F,{current:H}=x.useRef(null!=z),B=x.useRef(),$=x.useCallback((e=>{}),[]),W=ls(B,v,b.ref,$),[V,G]=x.useState(!1),U=zc(),Y=Fc({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:V,x.useEffect((()=>{!U&&d&&V&&(G(!1),w&&w())}),[U,d,V,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=x.useCallback((e=>{$c(e)?K&&K():X&&X()}),[K,X]);ts((()=>{H&&J({value:z})}),[z,J,H]);x.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=dr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Nc);x.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=dr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return ia({root:["root",`color${Zl(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Zl(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Wc,t)})(ee),re=T.root||s.Root||Kc,ne=_.root||u.root||{},oe=T.input||s.Input||Xc;return Q=dr({},Q,null!=(r=_.input)?r:u.input),Pl.jsxs(x.Fragment,{children:[!p&&Jc,Pl.jsxs(re,dr({},ne,!Wu(re)&&{ownerState:dr({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},j,{className:Qs(te.root,ne.className,l,L&&"MuiInputBase-readOnly"),children:[q,Pl.jsx(jc.Provider,{value:null,children:Pl.jsx(oe,dr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:D,readOnly:L,required:Y.required,rows:O,value:z,onKeyDown:M,onKeyUp:P,type:N},Q,!Wu(oe)&&{as:Z,ownerState:dr({},ee,Q.ownerState)},{ref:W,className:Qs(te.input,Q.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||B.current;if(null==t)throw new Error(ur(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,k?k(dr({},Y,{startAdornment:q})):null]}))]})}));var Qc=Zc;function ed(e){return Es("MuiInput",e)}var td=dr({},Vc,Cs("MuiInput",["root","underline","input"]));function rd(e){return Es("MuiOutlinedInput",e)}var nd=dr({},Vc,Cs("MuiOutlinedInput",["root","notchedOutline","input"]));function od(e){return Es("MuiFilledInput",e)}var id=dr({},Vc,Cs("MuiFilledInput",["root","underline","input"])),ad=function(e,t){function r(r,n){return Pl.jsx(ou,dr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=ou.muiName,x.memo(x.forwardRef(r))}(Pl.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ld=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sd={entering:{opacity:1},entered:{opacity:1}},ud=x.forwardRef((function(e,t){const r=Vs(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=Lu}=e,v=pr(e,ld),y=x.useRef(null),S=ls(y,a.ref,t),E=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{Fu(e);const n=ju({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),A=E(m),I=E((e=>{const t=ju({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),M=E(f);return Pl.jsx(b,dr({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,dr({style:dr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},sd[e],h,a.props.style),ref:S},t))}))}));var cd=ud;function dd(e){return Es("MuiBackdrop",e)}Cs("MuiBackdrop",["root","invisible"]);const pd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],fd=Xs("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>dr({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"}))),md=x.forwardRef((function(e,t){var r,n,o;const i=Gs({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=cd,transitionDuration:g}=i,b=pr(i,pd),v=dr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return ia({root:["root",r&&"invisible"]},dd,t)})(v),x=null!=(r=f.root)?r:c.root;return Pl.jsx(h,dr({in:p,timeout:g},b,{children:Pl.jsx(fd,dr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:Qs(y.root,l,null==x?void 0:x.className),ownerState:dr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var hd=md;var gd=Cs("MuiBox",["root"]);const bd=$s(),vd=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ii("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(fl);return x.forwardRef((function(e,a){const l=yl(r),s=kl(e),{className:u,component:c="div"}=s,d=It(s,Ol);return Pl.jsx(i,vt({as:c,ref:a,className:ma(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:cr,defaultTheme:bd,defaultClassName:gd.root,generateClassName:xs.generate});var yd=vd;function xd(e){return Es("MuiButton",e)}var Sd=Cs("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Ed=x.createContext({});var Cd=x.createContext(void 0);const wd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Rd=e=>dr({},"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}}),Ad=Xs(fc,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Zl(r.color)}`],t[`size${Zl(r.size)}`],t[`${r.variant}Size${Zl(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 dr({},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":dr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Yl(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})`:Yl(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})`:Yl(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":dr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Sd.focusVisible}`]:dr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Sd.disabled}`]:dr({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 ${Yl(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"},[`&.${Sd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sd.disabled}`]:{boxShadow:"none"}})),Id=Xs("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Zl(r.size)}`]]}})((({ownerState:e})=>dr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Rd(e)))),Md=Xs("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Zl(r.size)}`]]}})((({ownerState:e})=>dr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Rd(e)))),Pd=x.forwardRef((function(e,t){const r=x.useContext(Ed),n=x.useContext(Cd),o=Gs({props:vs(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,y=pr(o,wd),S=dr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return dr({},a,ia({root:["root",i,`${i}${Zl(t)}`,`size${Zl(o)}`,`${i}Size${Zl(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Zl(o)}`],endIcon:["endIcon",`iconSize${Zl(o)}`]},xd,a))})(S),C=g&&Pl.jsx(Id,{className:E.startIcon,ownerState:S,children:g}),w=p&&Pl.jsx(Md,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return Pl.jsxs(Ad,dr({ownerState:S,className:Qs(r.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Qs(E.focusVisible,f),ref:t,type:b},y,{classes:E,children:[C,i,w]}))}));var Dd=Pd;function Ld(e){return Es("MuiModal",e)}Cs("MuiModal",["root","hidden","backdrop"]);const kd=["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"],Od=Xs("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})=>dr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),_d=Xs(hd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Td=x.forwardRef((function(e,t){var r,n,o,i,a,l;const s=Gs({name:"MuiModal",props:e}),{BackdropComponent:u=_d,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:M,slotProps:P,slots:D}=s,L=pr(s,kd),k=dr({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:_,getTransitionProps:T,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=kc(dr({},k,{rootRef:t})),z=dr({},k,{exited:F}),H=(e=>{const{open:t,exited:r,classes:n}=e;return ia({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ld,n)})(z),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=T();B.onEnter=e,B.onExited=t}const $=null!=(r=null!=(n=null==D?void 0:D.root)?n:g.Root)?r:Od,W=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==P?void 0:P.root)?a:b.root,G=null!=(l=null==P?void 0:P.backdrop)?l:b.backdrop,U=Yu({elementType:$,externalSlotProps:V,externalForwardedProps:L,getSlotProps:O,additionalProps:{ref:t,as:h},ownerState:z,className:Qs(d,null==V?void 0:V.className,null==H?void 0:H.root,!z.open&&z.exited&&(null==H?void 0:H.hidden))}),Y=Yu({elementType:W,externalSlotProps:G,additionalProps:c,getSlotProps:e=>_(dr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Qs(null==G?void 0:G.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:z});return A||M||j&&!F?Pl.jsx(Rc,{ref:q,container:m,disablePortal:E,children:Pl.jsxs($,dr({},U,{children:[!R&&u?Pl.jsx(W,dr({},Y)):null,Pl.jsx(wc,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:M,children:x.cloneElement(f,B)})]}))}):null}));var qd=Td;function Nd(e){return Es("MuiDivider",e)}var Fd=Cs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const jd=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],zd=Xs("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})=>dr({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)`:Yl(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})=>dr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>dr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>dr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>dr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Hd=Xs("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>dr({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)`}))),Bd=x.forwardRef((function(e,t){const r=Gs({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=pr(r,jd),m=dr({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return ia({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Nd,n)})(m);return Pl.jsx(zd,dr({as:a,className:Qs(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Pl.jsx(Hd,{className:h.wrapper,ownerState:m,children:o}):null}))}));Bd.muiSkipListHighlight=!0;var $d=Bd;const Wd=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Vd=Xs(Kc,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Uc(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return dr({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}},[`&.${id.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${id.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${id.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${id.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(.${id.disabled}, .${id.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${id.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&dr({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}))})),Gd=Xs(Xc,{name:"MuiFilledInput",slot:"Input",overridesResolver:Yc})((({theme:e,ownerState:t})=>dr({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}))),Ud=x.forwardRef((function(e,t){var r,n,o,i;const a=Gs({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=pr(a,Wd),g=dr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return dr({},t,ia({root:["root",!r&&"underline"],input:["input"]},od,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Jl(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:Vd,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Gd;return Pl.jsx(Qc,dr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Ud.muiName="Input";var Yd=Ud;const Kd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xd(e){return`scale(${e}, ${e**2})`}const Jd={entering:{opacity:1,transform:Xd(1)},entered:{opacity:1,transform:"none"}},Zd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qd=x.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Lu}=e,g=pr(e,Kd),b=x.useRef(),v=x.useRef(),y=Vs(),S=x.useRef(null),E=ls(S,o.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{Fu(e);const{duration:r,delay:n,easing:o}=ju({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(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:Zd?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),A=C(s),I=C(p),M=C((e=>{const{duration:t,delay:r,easing:n}=ju({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(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:Zd?o:.666*o,delay:Zd?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Xd(.75),c&&c(e)})),P=C(d);return x.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Pl.jsx(h,dr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:M,onExited:P,onExiting:I,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>x.cloneElement(o,dr({style:dr({opacity:0,transform:Xd(.75),visibility:"exited"!==e||a?void 0:"hidden"},Jd[e],f,o.props.style),ref:E},t))}))}));Qd.muiSupportAuto=!0;var ep=Qd;const tp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],rp=Xs(Kc,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Uc(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})`),dr({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"},[`&.${td.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${td.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(.${td.disabled}, .${td.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${td.disabled}:before`]:{borderBottomStyle:"dotted"}})})),np=Xs(Xc,{name:"MuiInput",slot:"Input",overridesResolver:Yc})({}),op=x.forwardRef((function(e,t){var r,n,o,i;const a=Gs({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=pr(a,tp),b=(e=>{const{classes:t,disableUnderline:r}=e;return dr({},t,ia({root:["root",!r&&"underline"],input:["input"]},ed,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Jl(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:rp,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:np;return Pl.jsx(Qc,dr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));op.muiName="Input";var ip=op;function ap(e){return Es("MuiLink",e)}var lp=Cs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const sp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var up=({theme:e,ownerState:t})=>{const r=(e=>sp[e]||e)(t.color),n=Ea(e,`palette.${r}`,!1)||t.color,o=Ea(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Yl(n,.4)};const cp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],dp=Xs(xc,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Zl(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>dr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&dr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:up({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"},[`&.${lp.focusVisible}`]:{outline:"auto"}}))),pp=x.forwardRef((function(e,t){const r=Gs({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=pr(r,cp),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=bs(),[b,v]=x.useState(!1),y=ls(t,g),S=dr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return ia({root:["root",`underline${Zl(o)}`,"button"===r&&"button",n&&"focusVisible"]},ap,t)})(S);return Pl.jsx(dp,dr({color:o,className:Qs(E.root,n),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),l&&l(e)},ref:y,ownerState:S,variant:c,sx:[...Object.keys(sp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var fp=pp;var mp=x.createContext({});function hp(e){return Es("MuiList",e)}Cs("MuiList",["root","padding","dense","subheader"]);const gp=["children","className","component","dense","disablePadding","subheader"],bp=Xs("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})=>dr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var vp=x.forwardRef((function(e,t){const r=Gs({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=pr(r,gp),c=x.useMemo((()=>({dense:a})),[a]),d=dr({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ia({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},hp,t)})(d);return Pl.jsx(mp.Provider,{value:c,children:Pl.jsxs(bp,dr({as:i,className:Qs(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function yp(e){return Es("MuiListItemIcon",e)}var xp=Cs("MuiListItemIcon",["root","alignItemsFlexStart"]);const Sp=["className"],Ep=Xs("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})=>dr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Cp=x.forwardRef((function(e,t){const r=Gs({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=pr(r,Sp),i=dr({},r,{alignItems:x.useContext(mp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return ia({root:["root","flex-start"===t&&"alignItemsFlexStart"]},yp,r)})(i);return Pl.jsx(Ep,dr({className:Qs(a.root,n),ownerState:i,ref:t},o))}));var wp=Cs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Rp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ap(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ip(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Mp(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 Pp(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Mp(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Dp=x.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=pr(e,Rp),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ts((()=>{n&&p.current.focus()}),[n]),x.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Ql(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=ls(p,t);let h=-1;x.Children.forEach(i,((e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=x.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),x.cloneElement(e,t)}return e}));return Pl.jsx(vp,dr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Ql(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Pp(t,n,s,l,Ap);else if("ArrowUp"===r)e.preventDefault(),Pp(t,n,s,l,Ip);else if("Home"===r)e.preventDefault(),Pp(t,null,s,l,Ap);else if("End"===r)e.preventDefault(),Pp(t,null,s,l,Ip);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Mp(n,o);o.previousKeyMatched&&(s||Pp(t,n,!1,l,Ap,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Lp(e){return Es("MuiPopover",e)}Cs("MuiPopover",["root","paper"]);const kp=["onEntering"],Op=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_p=["slotProps"];function Tp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function qp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Np(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Fp(e){return"function"==typeof e?e():e}const jp=Xs(qd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zp=Xs($u,{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});var Hp=x.forwardRef((function(e,t){var r,n,o;const i=Gs({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=ep,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=pr(i.TransitionProps,kp),I=pr(i,Op),M=null!=(r=null==y?void 0:y.paper)?r:b,P=x.useRef(),D=ls(P,M.ref),L=dr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),k=(e=>{const{classes:t}=e;return ia({root:["root"],paper:["paper"]},Lp,t)})(L),O=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=Fp(l),t=(e&&1===e.nodeType?e:Ql(P.current).body).getBoundingClientRect();return{top:t.top+Tp(t,s.vertical),left:t.left+qp(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),_=x.useCallback((e=>({vertical:Tp(e,S.vertical),horizontal:qp(e,S.horizontal)})),[S.horizontal,S.vertical]),T=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=_(t);if("none"===c)return{top:null,left:null,transformOrigin:Np(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=es(Fp(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Np(r)}}),[l,c,O,_,h]),[q,N]=x.useState(g),F=x.useCallback((()=>{const e=P.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);x.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);x.useEffect((()=>{g&&F()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),x.useEffect((()=>{if(!g)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=es(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=f||(l?Ql(Fp(l)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:jp,B=null!=(o=null==v?void 0:v.paper)?o:zp,$=Yu({elementType:B,externalSlotProps:dr({},M,{style:q?M.style:dr({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:L,className:Qs(k.paper,null==M?void 0:M.className)}),W=Yu({elementType:H,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:L,className:Qs(k.root,p)}),{slotProps:V}=W,G=pr(W,_p);return Pl.jsx(H,dr({},G,!Wu(H)&&{slotProps:V,disableScrollLock:R},{children:Pl.jsx(E,dr({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},A,{children:Pl.jsx(B,dr({},$,{children:d}))}))}))}));function Bp(e){return Es("MuiMenu",e)}Cs("MuiMenu",["root","paper","list"]);const $p=["onEntering"],Wp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Vp={vertical:"top",horizontal:"right"},Gp={vertical:"top",horizontal:"left"},Up=Xs(Hp,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yp=Xs(zp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Kp=Xs(Dp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Xp=x.forwardRef((function(e,t){var r,n;const o=Gs({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=pr(o.TransitionProps,$p),S=pr(o,Wp),E=Vs(),C="rtl"===E.direction,w=dr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return ia({root:["root"],paper:["paper"],list:["list"]},Bp,t)})(w),A=i&&!s&&d,I=x.useRef(null);let M=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===M)&&(M=t))}));const P=null!=(r=b.paper)?r:Yp,D=null!=(n=v.paper)?n:p,L=Yu({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),k=Yu({elementType:P,externalSlotProps:D,ownerState:w,className:R.paper});return Pl.jsx(Up,dr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Vp:Gp,slots:{paper:P,root:b.root},slotProps:{root:L,paper:k},open:d,ref:t,transitionDuration:m,TransitionProps:dr({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},y),ownerState:w},S,{classes:f,children:Pl.jsx(Kp,dr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:I,autoFocus:i&&(-1===M||s),autoFocusItem:A,variant:g},u,{className:Qs(R.list,u.className),children:a}))}))}));function Jp(e){return Es("MuiMenuItem",e)}var Zp=Cs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Qp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ef=Xs(fc,{shouldForwardProp:e=>Us(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})=>dr({},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"}},[`&.${Zp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yl(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})`:Yl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fd.inset}`]:{marginLeft:52},[`& .${wp.root}`]:{marginTop:0,marginBottom:0},[`& .${wp.inset}`]:{paddingLeft:36},[`& .${xp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&dr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${xp.root} svg`]:{fontSize:"1.25rem"}}))));var tf=x.forwardRef((function(e,t){const r=Gs({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=pr(r,Qp),f=x.useContext(mp),m=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=x.useRef(null);ts((()=>{n&&h.current&&h.current.focus()}),[n]);const g=dr({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return dr({},a,ia({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Jp,a))})(r),v=ls(h,t);let y;return r.disabled||(y=void 0!==c?c:-1),Pl.jsx(mp.Provider,{value:m,children:Pl.jsx(ef,dr({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Qs(b.focusVisible,s),className:Qs(b.root,d)},p,{ownerState:g,classes:b}))})}));function rf(e){return Es("MuiNativeSelect",e)}var nf=Cs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const of=["className","disabled","error","IconComponent","inputRef","variant"],af=({ownerState:e,theme:t})=>dr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":dr({},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"},[`&.${nf.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}}),lf=Xs("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Us,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${nf.multiple}`]:t.multiple}]}})(af),sf=({ownerState:e,theme:t})=>dr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${nf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),uf=Xs("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Zl(r.variant)}`],r.open&&t.iconOpen]}})(sf),cf=x.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=pr(e,of),u=dr({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ia({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Zl(r)}`,i&&"iconOpen",n&&"disabled"]},rf,t)})(u);return Pl.jsxs(x.Fragment,{children:[Pl.jsx(lf,dr({ownerState:u,className:Qs(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:Pl.jsx(uf,{as:i,ownerState:u,className:c.icon})]})}));var df,pf=cf;const ff=["children","classes","className","label","notched"],mf=Xs("fieldset",{shouldForwardProp:Us})({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%"}),hf=Xs("legend",{shouldForwardProp:Us})((({ownerState:e,theme:t})=>dr({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&&dr({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 gf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],bf=Xs(Kc,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Uc})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return dr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${nd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${nd.focused} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${nd.error} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${nd.disabled} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&dr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),vf=Xs((function(e){const{className:t,label:r,notched:n}=e,o=pr(e,ff),i=null!=r&&""!==r,a=dr({},e,{notched:n,withLabel:i});return Pl.jsx(mf,dr({"aria-hidden":!0,className:t,ownerState:a},o,{children:Pl.jsx(hf,{ownerState:a,children:i?Pl.jsx("span",{children:r}):df||(df=Pl.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}})),yf=Xs(Xc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Yc})((({theme:e,ownerState:t})=>dr({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}))),xf=x.forwardRef((function(e,t){var r,n,o,i,a;const l=Gs({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=pr(l,gf),b=(e=>{const{classes:t}=e;return dr({},t,ia({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rd,t))})(l),v=zc(),y=Fc({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=dr({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),E=null!=(r=null!=(n=m.root)?n:s.Root)?r:bf,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:yf;return Pl.jsx(Qc,dr({slots:{root:E,input:C},renderSuffix:e=>Pl.jsx(vf,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Pl.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:dr({},b,{notchedOutline:null})}))}));xf.muiName="Input";var Sf=xf;function Ef(e){return Es("MuiSelect",e)}var Cf,wf=Cs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Rf=["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"],Af=Xs("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${wf.select}`]:t.select},{[`&.${wf.select}`]:t[r.variant]},{[`&.${wf.error}`]:t.error},{[`&.${wf.multiple}`]:t.multiple}]}})(af,{[`&.${wf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),If=Xs("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Zl(r.variant)}`],r.open&&t.iconOpen]}})(sf),Mf=Xs("input",{shouldForwardProp:e=>Ys(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Pf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Df(e){return null==e||"string"==typeof e&&!e.trim()}const Lf=x.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:I,renderValue:M,SelectDisplayProps:P={},tabIndex:D,value:L,variant:k="standard"}=e,O=pr(e,Rf),[_,T]=is({controlled:L,default:c,name:"Select"}),[q,N]=is({controlled:A,default:u,name:"Select"}),F=x.useRef(null),j=x.useRef(null),[z,H]=x.useState(null),{current:B}=x.useRef(null!=A),[$,W]=x.useState(),V=ls(t,h),G=x.useCallback((e=>{j.current=e,e&&H(e)}),[]),U=null==z?void 0:z.parentNode;x.useImperativeHandle(V,(()=>({focus:()=>{j.current.focus()},node:F.current,value:_})),[_]),x.useEffect((()=>{u&&q&&z&&!B&&(W(a?null:U.clientWidth),j.current.focus())}),[z,a]),x.useEffect((()=>{i&&j.current.focus()}),[i]),x.useEffect((()=>{if(!g)return;const e=Ql(j.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),B||(W(a?null:U.clientWidth),N(e))},K=x.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(_)?_.slice():[];const t=_.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),_!==r&&(T(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),E(o,e)}v||Y(!1,t)}},J=null!==z&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;($c({value:_})||p)&&(M?Z=M(_):te=!0);const re=K.map((e=>{if(!x.isValidElement(e))return null;let t;if(v){if(!Array.isArray(_))throw new Error(ur(2));t=_.some((t=>Pf(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Pf(_,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=$;!a&&B&&z&&(oe=U.clientWidth),ne=void 0!==D?D:d?null:0;const ie=P.id||(y?`mui-component-select-${y}`:void 0),ae=dr({},e,{variant:k,value:_,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ia({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Zl(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Ef,t)})(ae),se=dr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=os();return Pl.jsxs(x.Fragment,{children:[Pl.jsx(Af,dr({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:_,name:y}}),S(e))},onFocus:w},P,{ownerState:ae,className:Qs(P.className,le.select,s),id:ie,children:Df(Z)?Cf||(Cf=Pl.jsx("span",{className:"notranslate",children:"​"})):Z})),Pl.jsx(Mf,dr({"aria-invalid":f,value:Array.isArray(_)?_.join(","):_,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),Pl.jsx(If,{as:m,className:le.icon,ownerState:ae}),Pl.jsx(Xp,dr({id:`menu-${y||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:dr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:dr({},b.slotProps,{paper:dr({},se,{style:dr({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var kf=Lf;const Of=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],_f=["root"],Tf={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Us(e)&&"variant"!==e,slot:"Root"},qf=Xs(ip,Tf)(""),Nf=Xs(Sf,Tf)(""),Ff=Xs(Yd,Tf)(""),jf=x.forwardRef((function(e,t){const r=Gs({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=ad,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=pr(r,Of),A=b?pf:kf,I=Fc({props:r,muiFormControl:zc(),states:["variant","error"]}),M=I.variant||w,P=dr({},r,{variant:M,classes:i}),D=(e=>{const{classes:t}=e;return t})(P),L=pr(D,_f),k=d||{standard:Pl.jsx(qf,{ownerState:P}),outlined:Pl.jsx(Nf,{label:f,ownerState:P}),filled:Pl.jsx(Ff,{ownerState:P})}[M],O=ls(t,k.ref);return Pl.jsx(x.Fragment,{children:x.cloneElement(k,dr({inputComponent:A,inputProps:dr({children:o,error:I.error,IconComponent:u,variant:M,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:dr({id:c},C)},p,{classes:p?Jl(L,p.classes):L},d?d.props.inputProps:{})},g&&b&&"outlined"===M?{notched:!0}:{},{ref:O,className:Qs(k.props.className,a,D.root)},!d&&{variant:M},R))})}));jf.muiName="Select";var zf=jf,Hf=(e={})=>S.createElement(Kt,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:kt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Bf={MuiAccordion:{styleOverrides:{root:{backgroundColor:kt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:kt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(Gt,{"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 ${kt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`,borderRadius:Nt,backgroundColor:kt.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 ${kt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:kt.WHITE,color:kt.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:Nt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${kt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:kt.GREYSCALE_0_15,backgroundColor:kt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${kt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:kt.GREEN_PALE},"&:active":{backgroundColor:kt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:kt.GREEN_PALE,boxShadow:`0 0 0 3px ${Yl(kt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:kt.BLUE_PALE},"&:active":{backgroundColor:kt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:kt.BLUE_PALE,boxShadow:`0 0 0 3px ${Yl(kt.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:Nt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:kt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${kt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:kt.GREYSCALE_0_15,backgroundColor:kt.GREYSCALE_100_60,"&:active":{backgroundColor:kt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${kt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:kt.PURPLE,"&.Mui-focusVisible":{borderColor:kt.PURPLE,boxShadow:`0 0 0 3px ${Yl(kt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:kt.GREEN,"&.Mui-focusVisible":{borderColor:kt.GREEN,boxShadow:`0 0 0 3px ${Yl(kt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:kt.BLUE,"&.Mui-focusVisible":{borderColor:kt.BLUE,boxShadow:`0 0 0 3px ${Yl(kt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:kt.ORANGE,"&.Mui-focusVisible":{borderColor:kt.ORANGE,boxShadow:`0 0 0 3px ${Yl(kt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:kt.RED,"&.Mui-focusVisible":{borderColor:kt.RED,boxShadow:`0 0 0 3px ${Yl(kt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:kt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:kt.PURPLE_PALE},"&:active":{backgroundColor:kt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:kt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Yl(kt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:kt.GREEN_PALE},"&:active":{backgroundColor:kt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:kt.GREEN_PALE,boxShadow:`0 0 0 3px ${Yl(kt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:kt.BLUE_PALE},"&:active":{backgroundColor:kt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:kt.BLUE_PALE,boxShadow:`0 0 0 3px ${Yl(kt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:kt.ORANGE_PALE},"&:active":{backgroundColor:kt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:kt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Yl(kt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:kt.RED_PALE},"&:active":{backgroundColor:kt.RED_DARK},"&.Mui-focusVisible":{borderColor:kt.RED_PALE,boxShadow:`0 0 0 3px ${Yl(kt.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:kt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:kt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Nt,boxShadow:`inset 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(Yt,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ot,borderRadius:Nt,color:kt.TEXT_PRIMARY,backgroundColor:kt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:kt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:kt.GREYSCALE_0_05,color:kt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:kt.GREEN,borderColor:kt.GREEN},"&.MuiChip-outlinedInfo":{color:kt.BLUE,borderColor:kt.BLUE},"&.MuiChip-outlinedWarning":{color:kt.ORANGE,borderColor:kt.ORANGE},"&.MuiChip-outlinedError":{color:kt.RED,borderColor:kt.RED}},outlined:{border:`solid 1px ${kt.GREYSCALE_0_15}`,backgroundColor:kt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Nt,boxShadow:"none",backgroundColor:kt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:kt.GREEN,borderColor:kt.GREEN},outlinedSecondary:{color:kt.BLUE,borderColor:kt.BLUE},label:{fontFamily:Bt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(Yt,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(Gt,{"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:Nt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Nt,fontSize:_t,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:kt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${kt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:kt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:kt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:kt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Nt,border:`solid 1px ${kt.GREYSCALE_0_15}`,color:kt.GREYSCALE_0_60,marginRight:0,width:qt,height:qt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${kt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Nt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:kt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:_t}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ot,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:kt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:kt.GREYSCALE_25,fontSize:Ot,fontFamily:Bt.FONT_FAMILY,fontWeight:zt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:kt.TEXT_PRIMARY},"&.Mui-error":{color:kt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:kt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:jt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:kt.TEXT_SECONDARY,content:"'(required)'",fontWeight:jt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:_t,lineHeight:"16px",backgroundColor:kt.WHITE,borderRadius:Nt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kt.GREYSCALE_0_05}`,borderColor:kt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${kt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${kt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kt.RED}`,boxShadow:`0px 0px 0px 1px ${kt.RED}, inset 0 2px 0 0 ${kt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kt.GREYSCALE_0_10}`,borderColor:kt.GREYSCALE_0_10,backgroundColor:kt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:kt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:kt.GREYSCALE_0_15,borderRadius:Nt,boxShadow:`inset 0 2px 0 0 ${kt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(Gt,{...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:kt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:kt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:kt.GREYSCALE_0_03},"&:active":{backgroundColor:kt.GREYSCALE_0_10},"&:focus":{backgroundColor:kt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${kt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:kt.GREYSCALE_0_30,"&:hover":{backgroundColor:kt.GREYSCALE_0_0,borderColor:kt.GREYSCALE_0_15},"& ~svg":{color:kt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${kt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Nt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${kt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:kt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:_t,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ot,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ot,fontWeight:zt,color:kt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:zt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${kt.GREYSCALE_0_15}, 0px 0px 0px 1px ${kt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(Zt,null),checkedIcon:S.createElement(Qt,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:kt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:kt.GREEN_PALE,boxShadow:`0 0 0 3px ${Yl(kt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:kt.BLUE_PALE,boxShadow:`0 0 0 3px ${Yl(kt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:kt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:kt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(Hf,null),checkedIcon:S.createElement(Xt,null),indeterminateIcon:S.createElement(Jt,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Nt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:kt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:kt.GREYSCALE_0_55,color:kt.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:kt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:kt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:kt.GREYSCALE_0_55,"&:hover":{color:kt.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:kt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:kt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:_t,color:kt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:zt},secondary:{fontSize:Ot,color:kt.GREYSCALE_45,fontWeight:jt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:_t,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:_t,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:kt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ot,borderBottom:`solid 1px ${kt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:_t,color:kt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:kt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:kt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:kt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:kt.RED}}},"&.Mui-focusVisible":{backgroundColor:kt.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:kt.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:kt.GREEN,height:"24px","&.Mui-disabled":{color:kt.GREYSCALE_0_15}},rail:{backgroundColor:kt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${kt.GREYSCALE_0_05}`,borderRadius:Nt,boxShadow:`inset 0px 0px 0px 1px ${kt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${kt.GREYSCALE_0_05}`,borderRadius:Nt},thumb:{height:"16px",width:"16px",borderRadius:Nt,backgroundColor:kt.WHITE,boxShadow:`0px 1px 2px 0px ${kt.GREYSCALE_0_15}, 0px 0px 0px 1px ${kt.GREYSCALE_0_05}`,"&:hover":{borderRadius:Nt,boxShadow:`0 2px 4px 0 ${kt.GREYSCALE_0_30}, 0 0 0 1px ${kt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${kt.GREYSCALE_0_15}, 0 0 0 1px ${kt.GREYSCALE_0_06}, 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${kt.GREYSCALE_0_15}, 0 0 0 1px ${kt.GREYSCALE_0_06}, 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:kt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:kt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:kt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:kt.GREYSCALE_0_15},markLabel:{color:kt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:kt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:kt.WHITE,color:kt.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:kt.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:kt.GREEN_PALE,boxShadow:`0 0 0 3px ${Yl(kt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:kt.BLUE_PALE,boxShadow:`0 0 0 3px ${Yl(kt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:kt.GREYSCALE_0_15,borderRadius:Nt},thumb:{height:"16px",width:"16px",borderRadius:Nt,backgroundColor:kt.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:_t,fontWeight:zt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${kt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`,backgroundColor:kt.GREYSCALE_0_03,borderRadius:Nt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:kt.GREYSCALE_25,"&.Mui-selected":{color:kt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:_t,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Nt,"&:hover":{backgroundColor:`${kt.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 ${kt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${kt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Nt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:kt.GREYSCALE_0_05},"&:hover":{backgroundColor:`${kt.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${kt.GREYSCALE_85}`,borderRight:`1px solid ${kt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:zt,backgroundColor:kt.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:kt.GREYSCALE_98,borderBottom:`1px solid ${kt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${kt.GREYSCALE_85}`,borderTop:`1px solid ${kt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:kt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:kt.GREYSCALE_0_05,"&:hover":{backgroundColor:kt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:kt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(er,{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 ${kt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:_t,borderRadius:Nt,padding:"7px 16px",border:`1px solid ${kt.GREYSCALE_0_15}`,backgroundColor:kt.GREYSCALE_100_60,color:kt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:kt.GREYSCALE_0_10,border:`1px solid ${kt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:kt.GREYSCALE_0_03,border:`1px solid ${kt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:kt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${kt.MISC_FOCUS_BORDER}`,border:`1px solid ${kt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:kt.GREYSCALE_25,backgroundColor:kt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:kt.GREYSCALE_0_10,border:`1px solid ${kt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ot,height:24,width:24,padding:7},sizeLarge:{fontSize:Tt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:_t,borderRadius:Nt}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:kt.GREYSCALE_20},tooltip:{backgroundColor:kt.GREYSCALE_20,fontSize:Ot,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const $f={mode:"light",primary:{ultraLight:kt.GREEN_ULTRA_LIGHT,light:kt.GREEN_PALE,main:kt.GREEN,dark:kt.GREEN_DARK,extraDark:kt.GREEN_EXTRA_DARK,contrastText:kt.WHITE},secondary:{ultraLight:kt.BLUE_ULTRA_LIGHT,light:kt.BLUE_PALE,main:kt.BLUE,dark:kt.BLUE_DARK,extraDark:kt.BLUE_EXTRA_DARK,contrastText:kt.WHITE},error:{ultraLight:kt.RED_ULTRA_LIGHT,light:kt.RED_PALE,main:kt.RED,dark:kt.RED_DARK,extraDark:kt.RED_EXTRA_DARK,contrastText:kt.WHITE},warning:{ultraLight:kt.ORANGE_ULTRA_LIGHT,light:kt.ORANGE_PALE,main:kt.ORANGE,dark:kt.ORANGE_DARK,extraDark:kt.ORANGE_EXTRA_DARK,contrastText:kt.WHITE},success:{ultraLight:kt.GREEN_ULTRA_LIGHT,light:kt.GREEN_PALE,main:kt.GREEN,dark:kt.GREEN_DARK,extraDark:kt.GREEN_EXTRA_DARK,contrastText:kt.WHITE},info:{ultraLight:kt.BLUE_ULTRA_LIGHT,light:kt.BLUE_PALE,main:kt.BLUE,dark:kt.BLUE_DARK,extraDark:kt.BLUE_EXTRA_DARK,contrastText:kt.WHITE},text:{primary:kt.TEXT_PRIMARY,secondary:kt.TEXT_SECONDARY,disabled:kt.GREYSCALE_0_30},action:{hover:kt.GREYSCALE_0_03,hoverOpacity:.03,selected:kt.GREYSCALE_0_05,selectedOpacity:.05,focus:kt.MISC_FOCUS_BORDER},amethyst:{ultraLight:kt.WHITE,main:kt.PURPLE,light:kt.PURPLE_PALE,dark:kt.PURPLE_DARK,extraDark:kt.GREYSCALE_0_0,contrastText:kt.WHITE},background:{paper:kt.WHITE,default:kt.GREYSCALE_95},divider:kt.GREYSCALE_0_15},Wf=e=>({components:Bf,palette:$f,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:_t,fontWeightLight:Ft,fontWeightRegular:jt,fontWeightMedium:zt,fontWeightBold:Ht,htmlFontSize:_t,fontFamily:Bt.FONT_FAMILY,button:{fontWeight:zt,fontSize:_t,textTransform:"none"},body1:{fontSize:Tt,lineHeight:"24px"},body2:{fontSize:_t,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:qt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Tt,fontWeight:zt,lineHeight:"16px"},h6:{fontSize:_t,fontWeight:zt,lineHeight:"16px"},caption:{color:kt.TEXT_SECONDARY},subtitle1:{fontSize:_t,color:kt.TEXT_SECONDARY},subtitle2:{fontSize:Ot,color:kt.TEXT_SECONDARY}},shape:{borderRadius:Nt}}),Vf={...Lt,MISC_FOCUS_BORDER:kt.MISC_FOCUS_BORDER},Gf=Wf().palette,Uf={TEXT:Gf.text.primary,DISABLED:Gf.text.disabled,HOVER:Gf.action.hover,WHITE:Vf.GREYSCALE_100,BORDER_LIGHT:Vf.GREYSCALE_90,BORDER_MEDIUM:Vf.GREYSCALE_85,BORDER_HEAVY:Vf.GREYSCALE_50,DARK_MODE_TEXT:Vf.GREYSCALE_95,DARK_MODE_BORDER:Vf.GREYSCALE_95,DARK_MODE_DISABLED:Vf.GREYSCALE_70,DARK_MODE_BACKGROUND:Vf.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Vf.GREYSCALE_95,SELECTED:Gf.primary.main},Yf=(e,t=Uf.TEXT,r=Uf.WHITE)=>{const n=oe(e),o=oe(t),i=oe(r);return n.isInvalid()?t:function(e,t,r){return ie(e,t)>ie(e,r)?t:r}(n,i,o).getRGB()},Kf={background:Uf.SELECTED,color:Uf.WHITE},Xf=({theme:e,flags:t})=>{if(!t.isEnabled("PS_22149_THEME_SELECTION_COLORS"))return Kf;const r=e.getStyle("","","dataColors.selected")||Kf.background,n=function(e,t){var r=oe("#FFFFFF"),n=oe(e),o=oe(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=ie(r,n),a=ie(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(r,Uf.TEXT);return{background:r,color:n}},Jf=(e,t)=>{const r=oe(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Zf=e=>!!e&&0===oe(e).a,Qf=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},em=e=>{const t=oe(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},tm=(e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)},rm=e=>{e.stopPropagation(),e.preventDefault()},nm="#grid",om=(e,t,r,n=Uf.WHITE)=>e&&!Zf(e)?e:Zf(t)?r&&!Zf(r)?r:n:t,im=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},am=(e,t,r,n,o)=>{const i=im(".qv-object .qv-inner-object",r),a=im(".qv-panel-sheet",r),l=im(nm,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return em(s);if("none"===u)return"transparent";if(void 0===u)return;const c=oe(u);return c.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=Zf(p),m=Yf(f?s:p,Uf.TEXT,Uf.DARK_MODE_TEXT)===Q(Uf.DARK_MODE_TEXT);return{color:p,headerColor:om(u,p,s),isDark:m}},lm=(e,i,a,l)=>{const s=n(),u=((e,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[o,i]=t([]);return r((()=>{let t;return e&&(t=new MutationObserver((e=>{i(e)})),t.observe(e,n)),()=>{var e;null===(e=t)||void 0===e||e.disconnect()}}),[e,n]),o})(null==i?void 0:i.closest(nm),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return o((()=>({...s,background:am(e,s,i,a,l)})),[s.name(),i,a,l,e,u])},sm=3;function um(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function cm({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=sm}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=C((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=ct(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=ct((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=um(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var dm,pm=z;function fm(e,t){const[r,n]=E(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}dm=pm.createRoot,pm.hydrateRoot;var mm={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_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_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 hm=({translator:e})=>(C((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(mm).forEach((t=>{e.add(mm[t])}))}}(e)),[e]),e),gm="12px",bm="nebula-table-utils-head-menu-button",vm="nebula-table-utils-head-menu-wrapper",ym="nebula-table-utils-head-menu",xm="nebula-table-utils-head-menu-list-id",Sm="sn-copy-cell";let Em=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const Cm="nebula-table-utils-column-adjuster";let wm=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}({}),Rm=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Am={darker:.15,brighter:.3,opacity:.03},Im={darker:.3,brighter:.5,opacity:.05};let Mm=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({});const Pm=document.createElement("textarea");function Dm(e){Pm.value=e,document.body.appendChild(Pm),Pm.select(),Pm.setSelectionRange(0,Pm.value.length),document.execCommand("copy"),document.body.removeChild(Pm)}Pm.style.position="absolute",Pm.style.left="-9999px",Pm.setAttribute("readonly","");const Lm=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>Dm(r))):Dm(r))};var km,Om;var _m=function(){if(Om)return km;Om=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return km=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},km}();function Tm(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function qm(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Nm(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(_m);var Fm=1/.7,jm="\\s*([+-]?\\d+)\\s*",zm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bm=/^#([0-9a-f]{3,8})$/,$m=new RegExp(`^rgb\\(${jm},${jm},${jm}\\)$`),Wm=new RegExp(`^rgb\\(${Hm},${Hm},${Hm}\\)$`),Vm=new RegExp(`^rgba\\(${jm},${jm},${jm},${zm}\\)$`),Gm=new RegExp(`^rgba\\(${Hm},${Hm},${Hm},${zm}\\)$`),Um=new RegExp(`^hsl\\(${zm},${Hm},${Hm}\\)$`),Ym=new RegExp(`^hsla\\(${zm},${Hm},${Hm},${zm}\\)$`),Km={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Xm(){return this.rgb().formatHex()}function Jm(){return this.rgb().formatRgb()}function Zm(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Bm.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Qm(t):3===r?new nh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?eh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?eh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=$m.exec(e))?new nh(t[1],t[2],t[3],1):(t=Wm.exec(e))?new nh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Vm.exec(e))?eh(t[1],t[2],t[3],t[4]):(t=Gm.exec(e))?eh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Um.exec(e))?uh(t[1],t[2]/100,t[3]/100,1):(t=Ym.exec(e))?uh(t[1],t[2]/100,t[3]/100,t[4]):Km.hasOwnProperty(e)?Qm(Km[e]):"transparent"===e?new nh(NaN,NaN,NaN,0):null}function Qm(e){return new nh(e>>16&255,e>>8&255,255&e,1)}function eh(e,t,r,n){return n<=0&&(e=t=r=NaN),new nh(e,t,r,n)}function th(e){return e instanceof Nm||(e=Zm(e)),e?new nh((e=e.rgb()).r,e.g,e.b,e.opacity):new nh}function rh(e,t,r,n){return 1===arguments.length?th(e):new nh(e,t,r,null==n?1:n)}function nh(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function oh(){return`#${sh(this.r)}${sh(this.g)}${sh(this.b)}`}function ih(){const e=ah(this.opacity);return`${1===e?"rgb(":"rgba("}${lh(this.r)}, ${lh(this.g)}, ${lh(this.b)}${1===e?")":`, ${e})`}`}function ah(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function lh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function sh(e){return((e=lh(e))<16?"0":"")+e.toString(16)}function uh(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new dh(e,t,r,n)}function ch(e){if(e instanceof dh)return new dh(e.h,e.s,e.l,e.opacity);if(e instanceof Nm||(e=Zm(e)),!e)return new dh;if(e instanceof dh)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new dh(a,l,s,e.opacity)}function dh(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ph(e){return(e=(e||0)%360)<0?e+360:e}function fh(e){return Math.max(0,Math.min(1,e||0))}function mh(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Tm(Nm,Zm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Xm,formatHex:Xm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ch(this).formatHsl()},formatRgb:Jm,toString:Jm}),Tm(nh,rh,qm(Nm,{brighter(e){return e=null==e?Fm:Math.pow(Fm,e),new nh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new nh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nh(lh(this.r),lh(this.g),lh(this.b),ah(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:oh,formatHex:oh,formatHex8:function(){return`#${sh(this.r)}${sh(this.g)}${sh(this.b)}${sh(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ih,toString:ih})),Tm(dh,(function(e,t,r,n){return 1===arguments.length?ch(e):new dh(e,t,r,null==n?1:n)}),qm(Nm,{brighter(e){return e=null==e?Fm:Math.pow(Fm,e),new dh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new dh(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new nh(mh(e>=240?e-240:e+120,o,n),mh(e,o,n),mh(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new dh(ph(this.h),fh(this.s),fh(this.l),ah(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ah(this.opacity);return`${1===e?"hsl(":"hsla("}${ph(this.h)}, ${100*fh(this.s)}%, ${100*fh(this.l)}%${1===e?")":`, ${e})`}`}}));const hh=Math.PI/180,gh=180/Math.PI,bh=4/29,vh=6/29,yh=3*vh*vh;function xh(e){if(e instanceof Sh)return new Sh(e.l,e.a,e.b,e.opacity);if(e instanceof Ah)return Ih(e);e instanceof nh||(e=th(e));var t,r,n=Rh(e.r),o=Rh(e.g),i=Rh(e.b),a=Eh((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Eh((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Eh((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Sh(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Sh(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Eh(e){return e>.008856451679035631?Math.pow(e,1/3):e/yh+bh}function Ch(e){return e>vh?e*e*e:yh*(e-bh)}function wh(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Rh(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ah(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Ih(e){if(isNaN(e.h))return new Sh(e.l,0,0,e.opacity);var t=e.h*hh;return new Sh(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Tm(Sh,(function(e,t,r,n){return 1===arguments.length?xh(e):new Sh(e,t,r,null==n?1:n)}),qm(Nm,{brighter(e){return new Sh(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Sh(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new nh(wh(3.1338561*(t=.96422*Ch(t))-1.6168667*(e=1*Ch(e))-.4906146*(r=.82521*Ch(r))),wh(-.9787684*t+1.9161415*e+.033454*r),wh(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Tm(Ah,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Ah)return new Ah(e.h,e.c,e.l,e.opacity);if(e instanceof Sh||(e=xh(e)),0===e.a&&0===e.b)return new Ah(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*gh;return new Ah(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ah(e,t,r,null==n?1:n)}),qm(Nm,{brighter(e){return new Ah(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ah(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ih(this).rgb()}}));var Mh=e=>()=>e;function Ph(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Mh(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Ph:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Mh(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=rh(e)).r,(t=rh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Ph(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Dh="center",Lh="bottom";[{key:"NoDataExist",alignment:Dh,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Dh,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Dh,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Dh},{key:"DataRangeIncludingZero",alignment:Lh},{key:"LimitedData",alignment:Lh},{key:"NegativeOrZeroValues",alignment:Lh}].reduce((function(e,t){return e[t.key]=t,e}),{});var kh,Oh=["__proto__","constructor"];function _h(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Oh.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function Th(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function qh(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Fh)):void 0===t&&(t=Nh);for(var r,n,o,i,a,l=new Hh(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Hh(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(zh)}function Nh(e){return e.children}function Fh(e){return Array.isArray(e)?e[1]:null}function jh(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function zh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Hh(e){this.data=e,this.depth=this.height=0,this.parent=null}Hh.prototype=qh.prototype={constructor:Hh,count:function(){return this.eachAfter(Th)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return qh(this).eachBefore(jh)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},kh=function(e){
100
100
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
101
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Pg({exports:{}});var jg={exports:{}};self,jg.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>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 l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function 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 w(e){return w="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},w(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function P(e){return void 0===e}function L(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 k(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){k(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);k(i,a)||L(t,o)||(P(a)?n.push({op:"add",path:l,value:i}):M(i)&&M(a)?n=n.concat(A.generate(a,i,l)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&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(k(t,o))return n;if(!P(t[0])&&P(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(A.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){P(t[o])&&!L(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,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return 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(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!L(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=D(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,T=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===_)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function $(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===z)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 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,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(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($(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($(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($(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($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(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(z))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var G="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(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=V(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(G))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="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,we,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),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 Me=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 Le={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:Le,apply:Oe,applyModifiers:Te,cleanUpMeasure:_e,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Le[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Le[e]&&Le[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=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var ke={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===Pe(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);$e(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({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(Le[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=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Te({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===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 je(n).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Me.isValid(r)||Me.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(l++,"object"!==Pe(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Le[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Le[n.type].updateModifier&&Le[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Le[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(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)):_e(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&!Le[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Le[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Le[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!Le[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!Ge(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):T(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=Ge(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(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},L=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},k=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,A),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,A),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=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},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return M(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 M(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)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},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 W(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 G={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?k():w,A=s.defaultMeasure,I=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),L("qMaxStackedCells",b,v),L("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),h.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:M}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(U(a,t,n,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||l,key:r||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)}n||(i.auto=!1,i.mode=a)}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",Me="measures",Pe="qDef.conditionalColoring";const Le={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:Me,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Pe,arrayName:Me,quarantineName:Ie})}};var De="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",Te="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const He={quarantine:function(e){we({properties:e,arrayPath:De,quarantineName:ze,arrayName:ke,itemPath:je}),we({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:ze,arrayName:ke,itemPath:je}),Re({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},$e={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Le,conditionalShow:He}})(),n.default})();var zg=xt(jg.exports);const Hg="qHyperCubeDef.qMeasures",$g="measures",Bg="qHyperCubeDef.qDimensions",Wg="dimensions",Gg="qDef.representation",Vg="tableRepresentation",Ug="qDef.conditionalColoring",Yg="conditionalColoring",Kg="qMiniChartDef",Xg="miniChartDef",Jg=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:Sh.PixelsDefault:-1})(r,e,t)));return o},Zg=({propertyTree:e,hyperCubePath:t})=>{const r=zg.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=Jg(o,i,n);return Dg(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),zg.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),zg.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),zg.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{zg.quarantineArrayProp({properties:e,arrayPath:Bg,itemPath:Gg,arrayName:Wg,quarantineName:Vg}),zg.quarantineArrayProp({properties:e,arrayPath:Hg,itemPath:Gg,arrayName:$g,quarantineName:Vg}),zg.quarantineArrayProp({properties:e,arrayPath:Hg,itemPath:Ug,arrayName:$g,quarantineName:Yg}),zg.quarantineArrayProp({properties:e,arrayPath:Hg,itemPath:Kg,arrayName:$g,quarantineName:Xg})})(r.properties),r};const Qg=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:Eh.Pixels,pixels:e}:{type:Eh.FitToContent}}return i},eb=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{const a=zg.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});zg.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{zg.unquarantineArrayProp({properties:e,arrayPath:Bg,itemPath:Gg,arrayName:Wg,quarantineName:Vg}),zg.unquarantineArrayProp({properties:e,arrayPath:Hg,itemPath:Gg,arrayName:$g,quarantineName:Vg}),zg.unquarantineArrayProp({properties:e,arrayPath:Hg,itemPath:Ug,arrayName:$g,quarantineName:Yg}),zg.unquarantineArrayProp({properties:e,arrayPath:Hg,itemPath:Kg,arrayName:$g,quarantineName:Xg})})(a.qProperty);const{qHyperCubeDef:{qDimensions:l,qMeasures:s,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>Qg(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>Qg(t,e,n,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(Dg(a,"qProperty.qHyperCubeDef.qDimensions",d),Dg(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(Dg(a,"qProperty.totals.show",!1),Dg(a,"qProperty.usePagination",!0)),zg.conditionalShow.unquarantine(a.qProperty),a};var tb={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function rb(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function nb(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function ob(e){return e>0?0:1}function ib(e){return e.translator.get("Visualizations.Descriptions.Column")}function ab(e){return{measures:{min:ob,max:1e3,description:()=>ib(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;rb(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;nb(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:ob,max:1e3,description:()=>ib(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return rb(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;nb(o,n)}}}}var lb={};!function(e){(()=>{var t={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](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:()=>qe});var i=n(909),a=n.n(i);const l=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},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},u={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(" "),d="".concat(" ",")").concat(" ");function p(e){return c+e+d}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function m(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function g(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 b(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function y(e){return void 0===e?")":", 0, ".concat(e,")")}function x(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function S(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(x("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(x("MaxString(".concat(t,")")),")'\"}")}function E(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=S(f(n[0],o),b(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var c=f(n[0],o),d=f(n[1],o),p=b(0),m=b(1),h=S(c,p),g=S(d,m);return"".concat(a,"({1<").concat(h,",").concat(g,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function C(e){return"".concat(e,"(")}function w(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const R={isFullRange:m,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=p(g(t));if(!r.showExcludedValues)return a;var l=E({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var u=b(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var c=b(0),d=b(1);return"If(Count(".concat(c,") * Count(").concat(d,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!m(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:y,getAboveComp:function(e,t,r,n){return v(e,t)+r+y(n)},getFunctionPrefix:C,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return C(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:E,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===w({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=b(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:g,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(c);if(-1!==r){var n=t.indexOf(d);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:f,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=w({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:p,canExtract:function(e){var t=e.indexOf(c),r=e.indexOf(d);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:b,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=u.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?u.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(u.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return u.EXPRESSIONS[r]&&n.includes(u.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function A(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 I(e){return I="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},I(e)}var M=a().bind(null,!0),P={},L=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===I(e)}function k(e){return void 0===e}function O(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(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]=k(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(e,t){var r=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){_(e[n],t[n])||(r=!1)})),r);if(L(e)&&L(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!_(e[n],t[n]))return!1;return!0}return e===t}P.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?M({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);_(i,a)||O(t,o)||(k(a)?n.push({op:"add",path:l,value:i}):D(i)&&D(a)?n=n.concat(P.generate(a,i,l)):L(i)&&L(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&k(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,o))return n;if(!k(t[0])&&k(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(P.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){k(t[o])&&!O(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},P.apply=function(e,t){t.forEach((function(t){var r,n,o=T(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(L(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(L(a)&&L(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return A(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return A(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)?A(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(D(a)&&D(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!O(r,e)&&delete r[e]})),M(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=T(e,t.from);L(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(L(o)?o.splice(+i,1):delete o[i])}))},P.clone=function(e){return M({},e)},P.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):M(e,t)};const q=P,N=function(e,t,r){if(!e)return Promise.resolve();var n=q.generate(t,r);return a()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()};var F="accumulation";function j(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}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===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const $={translationKey:"properties.modifier.accumulation",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.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=R.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=R.getNumStepComp(r,l),p=R.getAboveComp(r,l,c,d),f=R.getRangeComp("RangeSum",p);if(R.needDimension({modifier:r,properties:n,layout:o})){var m=R.getDimComp(u,1),h=R.getDimComp(u,0),g=R.getAggrComp(f,m,h);f=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,H)},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!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(z(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(z(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(z(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.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=j(t,e);return i&&!i.disabled}}}};var B="movingAverage";function W(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===B)return r[n]}function G(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===B)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 U={translationKey:"properties.modifier.movingAverage",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.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 u=a;void 0===u&&(u=R.getNumDimensions({properties:o,layout:i}));var c=s(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=R.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=R.getNumStepComp(n,u),m=R.getAboveComp(n,u,p,f);if(n.nullSuppression)t=R.getRangeComp("RangeAvg",m);else{var h=R.getRangeComp("RangeSum",m),g=function(e,t){var r=R.getRowNoComp(e,t);if(!R.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(R.needDimension({modifier:n,properties:o,layout:i})){var v=R.getDimComp(c,1),y=R.getDimComp(c,0),x=R.getAggrComp(b,v,y);b=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.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!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(G(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(G(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(G(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(G(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=W(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=W(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(G(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(G(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(B))return!1;var i=W(t,e);return i&&!i.disabled}}}};var Y="timeSeriesDecomposition";function K(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Y)return r[n]}function X(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===Y)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var J={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const Z={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?R.generateTSDExpression(r,t,n):t},extractInputExpression:R.extractInputExpression,initModifier:function(e,t){R.initModifier(e,J),""===e.decomposition&&t&&(e.decomposition=R.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!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(X(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:u.OPTIONS},steps:{refFn:function(t){return"".concat(X(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=K(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=K(t,e);return r&&!r.fullRange}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Y))return!1;var i=K(t,e);return i&&!i.disabled}}}};var Q="difference";function ee(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===Q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var te={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const re={translationKey:"properties.modifier.difference",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:R.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=R.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=R.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(R.needDimension({modifier:r,properties:n,layout:o})){var f=R.getDimComp(u,1),m=R.getDimComp(u,0),h=R.getAggrComp(p,f,m);p=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(te).forEach((function(t){void 0===e[t]&&(e[t]=te[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!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(ee(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(ee(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(ee(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Q))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===Q)return r[n]}(t,e);return i&&!i.disabled}}}},ne=0,oe=1,ie=2,ae=0,le=1,se=2;var ue="normalization";function ce(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===ue)return r[n]}function de(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===ue)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function pe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var fe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:se,selectionScope:ie};function me(e){return 2===e?"{1}":""}function he(e,t,r){return 1===e?"{$<".concat(R.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function ge(e,t){return 0===e&&t>1||2===e?"Total":""}function be(e,t,r){return 0===e&&t>1?"<".concat(R.getDimDefWithWrapper(r),">"):""}const ve={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:R.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=R.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=me(t),s=he(t,r,n),u=""===l&&""===s?"":l||s,c=ge(o,i),d=be(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=R.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(fe).forEach((function(t){void 0===e[t]&&(e[t]=fe[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!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(de(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:ie,options:function(r){return function(e,t,r){var n=[{value:ne,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:oe,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:ie,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=pe(t,0);t.splice(r,1)}return t}(ce(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(de(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 ce(t,e).selectionScope===oe}},value:{refFn:function(t){return"".concat(de(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return ce(t,e).selectionScope===oe}},dimensionalScope:{refFn:function(t){return"".concat(de(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:se,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:ae,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:le,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:se,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=pe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=pe(t,1);t.splice(r,1)}return t}(ce(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(de(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(ce(t,e).dimensionalScope||0)===ae&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(ue))return!1;var i=ce(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:me,getFieldSelectionComp:he,getTotalComp:ge,getSelectedDimComp:be};var ye="library id deleted",xe="qDef.qDef",Se="qDef.base.qDef",Ee="qLibraryId",Ce="qDef.base.qLibraryId",we="qDef.qLabel",Re="qDef.qLabelExpression",Ae="qDef.base.qLabel",Ie="qDef.base.qLabelExpression",Me="qDef.qAggrFunc",Pe="qDef.base.qAggrFunc",Le="qDef.base";const De={getExpression:function(e){var t=s(e,Se);return void 0!==t?t:s(e,xe)},getExpressionRef:function(e){return void 0!==s(e,Se)?Se:xe},getLibraryIdRef:function(e){return s(e,Ce)?Ce:Ee},getLibraryId:function(e){return s(e,Ce)||s(e,Ee)},getLabelRef:function(e){return s(e,Le)?Ae:we},getLabelExpressionRef:function(e){return s(e,Le)?Ie:Re}};var ke={initBase:function(e,t){(t||ke.isValid(e))&&(l(e,Se,s(e,xe)),l(e,Ce,s(e,Ee)),l(e,Ae,s(e,we)),l(e,Ie,s(e,Re)))},restoreBase:function(e){ke.isValid(e)&&(l(e,xe,s(e,Se)),l(e,Ee,s(e,Ce)),l(e,we,s(e,Ae)),l(e,Re,s(e,Ie)),s(e,Me)&&s(e,Pe)&&l(e,Me,s(e,Pe)),delete e.qDef.base)},isValid:function(e){var t=s(e,Se),r=s(e,Ce);return void 0!==t||void 0!==r}};const Oe=ke;function Te(e){return Te="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},Te(e)}var _e={accumulation:$,movingAverage:U,difference:re,normalization:ve,timeSeriesDecomposition:Z};const qe={modifiers:_e,apply:Fe,applyModifiers:je,cleanUpMeasure:ze,destroy:function(e){e&&Ne[e.id]&&Ne[e.id].masterItemSubscriber&&(Ne[e.id].masterItemSubscriber&&Ne[e.id].masterItemSubscriber.unsubscribe(),delete Ne[e.id])},hasActiveModifiers:He,getActiveModifier:$e,initBase:Oe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return _e[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return _e[e]&&_e[e].isApplicable({properties:r,layout:n})}))},measureBase:De,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Ge(e);Ze({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||nt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Be};var Ne={};function Fe(){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,i=e.masterItem,l=!1;Ne[t.id]=Ne[t.id]||{isFirstTime:!0};var u=Ne[t.id].isFirstTime;if(Ne[t.id].isFirstTime=!1,r&&"object"===Te(r))return je({model:t,properties:r});var c=t?t.layout:void 0,d=s(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(c,"qHyperCube.qMeasureInfo"),f=Ne[t.id].lastReloadTime;if(Ne[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),He({measures:p,layout:c})){var m=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 Je({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ze({modifiers:Ge(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:i,isFirstTime:u})?t.getEffectiveProperties().then((function(e){var r=a()(!0,{},e);Ue(r);var n=ot(r);return Qe({model:t}).then((function(o){return et({libraryIds:n,model:t}).then((function(n){return m&&function(e){var t=e.properties;We(t).forEach((function(e){return function(e){var t=e.measure;if(Je({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(r++,"object"!==Te(_e[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=_e[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ke(t)&&R.simplifyExpression(t.qDef.base.qDef)!==R.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),je({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:i,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"===Te(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=ot(r);return it({model:t,libraryIds:n}).then((function(){var e=a()(!0,{},r);return We(r).forEach((function(e){return ze(e)})),rt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function je(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,i=e.runUpdateIfChange,l=void 0!==i&&i,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?a()(!0,{},n):n),Ue(n);var p=ot(n);return it({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,i=e.dimensionAndFieldList;if(t||(t=We(r)),!t.length)return Promise.resolve();if(!o&&!He({measures:t,properties:r}))return t.forEach((function(e){return ze(e)})),Promise.resolve();var l=o?void 0:ot(r);return Qe({model:n,dimensionAndFieldList:i}).then((function(e){return et({libraryIds:l,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Ze({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,i=0;Oe.isValid(t)||Oe.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(i++,"object"!==Te(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(i>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");_e[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,i=e.libraryItemsProps[e.libraryId],l=i.qMeasure.qDef,s=""===l?l:_e[r.type].generateExpression({expression:l,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||i.qMeasure.qLabel)&&(t.qDef.qLabel=i.qMeasure.qLabel),(t.qDef.qLabelExpression||i.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=i.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&i.qMeasure.qNumFormat&&(t.qDef.qNumFormat=i.qMeasure.qNumFormat,t.qDef.isCustomFormatted=i.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=i.qMeasure.coloring,r.base=a()(!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 _e[r.type].updateModifier&&_e[r.type].updateModifier(r,n.qHyperCubeDef);var i=De.getExpression(t),l=""===i?i:_e[r.type].generateExpression({expression:i,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||i,r.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||Be(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Be(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Ye(t)):ze(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?rt({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function ze(e){!function(e){var t=Ge(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!_e[e.type]}))}(e)?Oe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ye(e)}function He(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ze({modifiers:Ge(e),properties:r,layout:n})}))}function $e(e){var t=Ge(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(_e[n.type]&&!n.disabled)return n}}function Be(e){var t=$e(e);return!t||_e[t.type].enableTotalsFunction(e)}function We(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Ge(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ve(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function Ue(e){We(e).forEach((function(e){return function(e){var t=$e(e);t&&(void 0!==t.outputExpression&&Ve(t)!==e.qDef.qDef?delete e.qDef.base:!Oe.isValid(e)&&t.base&&(e.qDef.base=a()(!0,{},t.base)))}(e)}))}function Ye(e){var t=Ge(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!_e[t.type]&&Ve(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ke(e){return e.base||e.qDef&&e.qDef.base}function Xe(e){var t=Ke(e);return e.qLibraryId||t&&t.qLibraryId}function Je(e){var t=e.measure,r=e.properties,n=e.layout;return!Xe(t)&&Ze({modifiers:Ge(t),properties:r,layout:n})}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Te(e)||e.disabled||!_e[e.type])&&(void 0===o[e.type]&&(o[e.type]=_e[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Qe(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 et(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a})).catch((function(){return null}))}function tt(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function rt(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),tt)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),tt)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),tt)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),tt);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):N(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function nt(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&_e[e.type]&&_e[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function ot(e){var t=We(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Ge(t);if(Ze({modifiers:n,properties:e})){var i=Xe(t);i&&r.push(i),o=o||nt({modifiers:n,properties:e})}})),s(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function it(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==ye&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Ne[t.id].masterItemSubscriber=Ne[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 u(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 c(){Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])}))}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,(function(){return e=t.id,r(ye),delete n[e],void c();var e})),enabled:!1,properties:l(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&l.push(p(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return Fe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ne[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(lb);var sb=xt(lb);let ub=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e}({}),cb=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const db=e=>{switch(null==e?void 0:e.type){case"url":return ub.Link;case"image":return ub.Image;case"indicator":return ub.Indicator;case"miniChart":return ub.MiniChart;default:return ub.Text}},pb=({args:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}={}})=>!e.properties.qHyperCubeDef.qIndentMode||(!(!r&&!n)||!t),fb=({isImagesEnabled:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:r})=>{const{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}=null!=r?r:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,r,i)=>pb({args:i,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}}),options(t,r,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,l=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!a||a&&n)&&l.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&o)&&l.push({value:"image",translation:"Object.Table.Representation.Image"}),l}}},mb=(e,t)=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(r,n,o)=>db(r.qDef.representation)===ub.Link&&pb({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(r,n,o)=>{var i;return db(r.qDef.representation)===ub.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===cb.Dimension&&pb({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(r,n,o)=>{var i;return db(r.qDef.representation)===ub.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===cb.Attribute&&pb({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}}}),hb=(e,t,r)=>{if(e||r)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,o)=>db(e.qDef.representation)===ub.Image&&pb({args:o,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:r}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},gb=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),l=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),s=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=n&&null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:fb({isImagesEnabled:s,isIndentModeEnabled:i,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:a,isImagesSupportedInIndentMode:l}}),...mb(i,a),...hb(s,i,l)}},bb=(e,t)=>{var r;const{flags:n,anything:o}=e,i=null==o||null===(r=o.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=i&&i("tableImages"))&&t.some((e=>e===ub.Image)),l=n.isEnabled("CLIENT_IM_5975_INDENT_MODE"),s=n.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),u=n.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")&&!(null!=i&&i("qMiniChartDef"))&&t.some((e=>e===ub.MiniChart)),c=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===ub.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>pb({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef,r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&a||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),c&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),u&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:a||s?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>db(e.qDef.representation)===ub.Image&&pb({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),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:c?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:u?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}},vb={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},yb={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}},xb=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!sb.hasActiveModifiers({measures:[e],properties:t.properties})||sb.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(n=e.anything)&&void 0!==n&&null!==(n=n.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},Sb={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Eh.Auto,translation:"Common.Auto"},{value:Eh.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Eh.Pixels,translation:"Object.Table.Column.Pixels"},{value:Eh.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Eh.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Eh.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(Sh.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Eh.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(Sh.PercentageMax,e.qDef.columnWidth.percentage))}}},Eb=()=>({...vb,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}]},...yb,...Sb}),Cb={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},wb=e=>{var t,r;const n=null==e||null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r?void 0:r.call(t,"modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var t;return n?!!e.qLibraryId:!!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},inlineMeasure:{component:"inline-measure",show:e=>{var t;return n?!e.qLibraryId:!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:xb(e)}},Rb=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:Cb},presentation:{type:"items",translation:"properties.presentation",items:{...Eb(),...gb(e)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:wb(e)},presentation:{type:"items",translation:"properties.presentation",items:{...Eb(),...bb(e,[ub.Image,ub.Indicator,ub.MiniChart])}}}}}}),Ab={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}},Ib=e=>{if(e.flags.isEnabled("CLIENT_IM_6997_WORD_WRAP"))return{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}]}},Mb=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},Pb=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),Lb=(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},Db=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Lb(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...de(n).filter((e=>!s.includes(e))).map((e=>Lb(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),kb=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Ob=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Lb(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...kb.filter((e=>!a.includes(e))).map((e=>Lb(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Tb=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Db({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Ob({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Pb(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Pb(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?Yf.WHITE:Yf.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),_b=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Pb(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Pb(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),qb=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},Nb={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:qb,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:qb,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},Fb=(e,t,r)=>{var n,o,i,a,l;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureValues":return null===(i=e.object)||void 0===i||null===(i=i.straightTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i[r];case"totalRow":return null===(a=e.object)||void 0===a||null===(a=a.straightTableV2)||void 0===a||null===(a=a.total)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"nullValues":return null===(l=e.object)||void 0===l||null===(l=l.straightTableV2)||void 0===l||null===(l=l.null)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];default:return}},jb={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){var t,r,n;null!==(null==e||null===(t=e.content)||void 0===t?void 0:t.rowHeight)&&void 0!==(null==e||null===(r=e.content)||void 0===r?void 0:r.rowHeight)&&""!==(null==e||null===(n=e.content)||void 0===n?void 0:n.rowHeight)?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):e.content.rowHeight=void 0}},zb=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),...jb},border:Pb("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Yf.BORDER_MEDIUM})),divider:Pb("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Yf.BORDER_HEAVY}))}}}}),Hb=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,$b=({flags:e,translator:t})=>({headerSection:Tb({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:Fb,disableNoneCallback:Hb}),dimensionValueSection:Tb({section:"dimensionValues",translator:t,flags:e,getThemeValue:Fb}),measureValueSection:Tb({section:"measureValues",translator:t,flags:e,getThemeValue:Fb}),totalRowSection:Tb({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:Fb,disableNoneCallback:Hb}),nullValues:_b({section:"nullValues",fallbackBackground:Yf.NULL_VALUE_BACKGROUND,getThemeValue:Fb}),grid:zb(e),hoverEffectSection:Nb}),Bb=e=>({headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},rowHeightSection:{show:()=>e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),component:"panel-section",translation:"ThemeStyleEditor.style.rowHeight",items:{rowHeightItem:{component:"items",ref:"components",key:"theme",items:{rowHeight:jb}}}},hoverEffectSection:Nb}),Wb=e=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:e.flags.isEnabled("CLIENT_IM_6546_TABLE_BG_COLOR"),defaultValue:[],items:e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING")?$b(e):Bb(e)}]}),Gb=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[Wb(e),Mb(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},Ib(e)]},...Ab}}),Vb={uses:"sorting"},Ub={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Yb=e=>({type:"items",component:"accordion",items:{data:Rb(e),sorting:Vb,addOns:Ub,settings:Gb(e)}});function Kb(e){var t,r;return{definition:Yb(e),exploration:tb,data:ab(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"modifiers")?["accumulation","movingAverage","difference","normalization"]:void 0},importProperties(e,t,r,n){const o={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return eb({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o})},exportProperties:(e,t)=>Zg({propertyTree:e,hyperCubePath:t})}}const Xb=(e,t)=>o((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,l=e[n?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,s=l?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...l,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([s],!0)})(e,t)),[e,t]),Jb=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),Zb=[];for(let e=0;e<256;++e)Zb.push((e+256).toString(16).slice(1));let Qb;const ev=new Uint8Array(16);function tv(){if(!Qb){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Qb=crypto.getRandomValues.bind(crypto)}return Qb(ev)}var rv={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function nv(e,t,r){if(rv.randomUUID&&!t&&!e)return rv.randomUUID();const n=(e=e||{}).random||(e.rng||tv)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return(Zb[e[t+0]]+Zb[e[t+1]]+Zb[e[t+2]]+Zb[e[t+3]]+"-"+Zb[e[t+4]]+Zb[e[t+5]]+"-"+Zb[e[t+6]]+Zb[e[t+7]]+"-"+Zb[e[t+8]]+Zb[e[t+9]]+"-"+Zb[e[t+10]]+Zb[e[t+11]]+Zb[e[t+12]]+Zb[e[t+13]]+Zb[e[t+14]]+Zb[e[t+15]]).toLowerCase()}(n)}const ov=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:nv()},iv=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:ov()},av=e=>"number"==typeof e&&!Number.isNaN(+e),lv=e=>!(!e.qNum&&0!==e.qNum||!av(e.qNum));function sv(e){return sv="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},sv(e)}function uv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cv(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,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function dv(e,t,r){return t&&cv(e.prototype,t),r&&cv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pv(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mv(e,t)}function fv(e){return fv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fv(e)}function mv(e,t){return mv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mv(e,t)}function hv(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function gv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=fv(e);if(t){var o=fv(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return hv(this,r)}}function bv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vv(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}var yv={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:xv(e),value:xv(t),useEqualSign:r}}(r,o,i))}})),t}};function xv(e){try{return decodeURIComponent(e)}catch(t){return e}}function Sv(e){if(!(this instanceof Sv))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return yv.fromSearchString(t.search)}}})}function Ev(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}Sv.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},Sv.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=Ev((t=e[n]).key),t.value?r+="=".concat(Ev(t.value)):r+=t.useEqualSign?"=":"";return r};var Cv,wv=function(){function e(t){uv(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return dv(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),Rv=function(){function e(){uv(this,e)}return dv(e,[{key:"decode",value:function(e){for(var t,r="",n=new wv(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),Av=function(e){return e>=0&&e<=1114111},Iv=function(e){return e.match(/[\s]/)},Mv=function(e){pv(r,e);var t=gv(r);function r(){return uv(this,r),t.apply(this,arguments)}return dv(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!Iv(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return Av(a)?String.fromCharCode(a):"�"}}]),r}(Rv),Pv=function(){function e(t,r){uv(this,e),this._key=t,this._value=r}return dv(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}]),e}(),Lv=function(){function e(){uv(this,e)}return dv(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return Pv.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return Pv.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||Pv.newInstanceIfNeeded(e,t,this._value)}}]),e}(),Dv=function(){function e(){uv(this,e),this.clear()}return dv(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new Lv);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),kv=function(){var e,t,r,n=[],o=[],i=new Dv;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),Ov=function(e){pv(r,e);var t=gv(r);function r(){return uv(this,r),t.apply(this,arguments)}return dv(r,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,kv.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=kv.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&Av(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&Av(n)?String.fromCharCode(n):null}}]),r}(Rv),Tv=function(e){pv(r,e);var t=gv(r);function r(){return uv(this,r),t.apply(this,arguments)}return dv(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),Av(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(Rv),_v=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(Cv=document.createElement("div"));var qv=Array.prototype.indexOf,Nv=[",",".","_"," "],Fv=[",",".","-","_"," "],jv={width:["%"],height:["%"]},zv={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Hv={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":zv.image,"background-color":zv.color,"border-color":zv.color,"border-image":zv.image,color:zv.color,icon:zv.image,"list-style-image":zv.image,"outline-color":zv.color},$v={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Bv(e,t,r){var n;if(t){if(qv)return qv.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 Wv(e){if(null==e)return"";var t,r=document.createTextNode(e);return Cv.appendChild(r),t=Cv.innerHTML,Cv.removeChild(r),t}function Gv(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=Uv(e).toLowerCase(),t=Uv(t),Bv(e,$v.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<$v.attr_val;i++)if(t.toLowerCase().match($v.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=jv[e])||(n=Fv),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Bv(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Vv(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=Uv(e).toLowerCase(),t=Uv(t),Bv(e,$v.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<$v.css_val.length;n++)if(t.toLowerCase().indexOf($v.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Hv[e])||(o=zv.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Bv(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Uv(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new Ov,new Tv,new Mv];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var Yv=[],Kv=0;Kv<255;Kv++)Yv[Kv]=Kv>=48&&Kv<=57||Kv>=65&&Kv<=90||Kv>=97&&Kv<=122?null:Kv.toString(16);var Xv=function(e){return Wv(e.unsafe)},Jv=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=Vv(t,r[t],!0),i+=Vv(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Zv=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=Gv(i,t[i],!0),o+=Gv(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function Qv(e,t){throw new Error(t)}var ey={canonicalize:Uv,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===sv(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Xv(e):"css"===e.context?(null!=e.map&&"object"!==sv(e.map)&&Qv(this,"Invalid parameter type"),Jv(e)):"attr"===e.context?(null!=e.map&&"object"!==sv(e.map)&&Qv(this,"Invalid parameter type"),Zv(e)):void Qv(this,"Invalid parameter type")},encodeForAttr:Gv,encodeForAttr2:function(e){return Gv("nonsens",e,!0)},encodeForCSS:Vv,encodeForHref:function(e){Uv(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new Sv(e),r=Sv.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+Sv.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=Nv),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Bv(o,t)>=0||null==Yv[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:Wv,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Uv(t).toLowerCase():Qv(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,r=bv(null!==(t=_v.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const ty=(e,t)=>{var r;const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==n||null===(r=n.qValues)||void 0===r?void 0:r[e]},ry=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},ny=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&ey.isSafeDataURL(t)?{type:ub.Image,url:t,text:e,imageSize:r,resolvedImagePosition:ry(n)}:{type:ub.Text,url:void 0,text:e},oy=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===cb.Attribute||null==r?void 0:r.urlLabel},iy=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:ub.Link,url:ey.encodeForHref(t),text:e}}catch(t){return{type:ub.Text,url:void 0,text:e}}},ay=(e,t,r,n,o,i)=>{var a,l,s,u,c,d;const p=db(t);return p!==ub.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(a=n.anything.sense)&&void 0!==a&&null!==(l=a.isUnsupportedFeature)&&void 0!==l&&l.call(a,"tableImages")?p===ub.Link?((e,t,r)=>{const{urlPosition:n}=null!=t?t:{};if(n===cb.Attribute){var o;const n=oy(null!==(o=r.url)&&void 0!==o?o:-1,e,t),i=e.qText||n||"";return iy({text:i,url:n})}if(n===cb.Dimension){var i;const n=oy(null!==(i=r.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return iy({text:n,url:e.qText})}return{type:ub.Text,url:void 0,text:e.qText}})(e,t,r):p!==ub.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(s=n.anything.sense)&&void 0!==s&&null!==(u=s.isUnsupportedFeature)&&void 0!==u&&u.call(s,"tableIndicators")?p!==ub.MiniChart||!n.flags.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"qMiniChartDef")?{type:ub.Text,url:void 0,text:e.qText}:((e,t,r)=>{var n;if(!e.qMiniChart||!t||!r)return{type:ub.Text,text:e.qText};const o="local"===(null==t||null===(n=t.miniChart)||void 0===n||null===(n=n.yAxis)||void 0===n?void 0:n.scale);return{type:ub.MiniChart,text:e.qText,miniChart:{qMatrix:e.qMiniChart.qMatrix,minY:o?e.qMiniChart.qMin:r.qYMin,maxY:o?e.qMiniChart.qMax:r.qYMax}}})(e,t,i):((e,t,r)=>{const{indicator:n}=null!=t?t:{};return{type:ub.Indicator,url:void 0,text:e.qText,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:r}})(e,t,o):((e,t,r)=>{const{imageSize:n,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=ty(null!==(s=r.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return ny({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return ny({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=ty(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return ny({text:i,url:t,imageSize:n,imagePosition:o})}return{type:ub.Text,url:void 0,text:e.qText}})(e,t,r)},ly=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,sy=1e4;function uy(e,t){return[...t].reverse().find((t=>t*e<=sy))||Math.floor(sy/e)}function cy(e,t){var r,n;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,l,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(n=e.totals)||void 0===n?void 0:n.show,e.totals.position];if(a&&(o&&i||!l&&!o)){if(l||"top"===s)return{atTop:!0,atBottom:!1};if(!l&&"bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function dy(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[n])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function py(e,t){const r=e.qHyperCube.qGrandTotalRow[t];return av(null==r?void 0:r.qNum)}function fy(e,t,r){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}}const my=(e,t)=>"auto"!==t?t:lv(e)?"right":"left";const hy=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:r,qMeasureInfo:n}}=e,o=r.length+n.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:l}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<n,{qError:s}=l?t[e]:r[e-n],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(i,r,n);return a.map(((t,r)=>function(e,t,r,n){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,l=o.length,s=t<l,u=s?o[t]:i[t-l],c=s&&o[t].qGrouping===Rh.cyclic,d=t===a[0];let p,f,m="",h=!1,g=-1,b=0,v=[];const{representation:y,conditionalColoring:x}=u;if(s){const e=u;m=e.qGroupFieldDefs[e.qGroupPos],b=e.qGroupPos,v=e.qGroupFallbackTitles,h=e.qLocked,g=n,({qDimensionType:p}=e)}else({qMiniChart:f}=u);const{qFallbackTitle:S,textAlign:E,qAttrExprInfo:C,qSortIndicator:w,qReverseSort:R,qApprMaxGlyphCount:A,columnWidth:I,qLibraryId:M}=u;return{isDim:s,isCyclic:c,isLocked:h,fieldId:m,colIdx:t,qLibraryId:M,pageColIdx:r,qApprMaxGlyphCount:A,qReverseSort:R,columnWidth:I,selectionColIdx:g,isActivelySorted:d,id:iv(u),label:S,groupDimensionPos:b,groupDimensionLabels:v,qAttrExprInfoIDs:C.map((e=>e.id)),qAttrExprInfoIndex:Jb(u),sortDirection:w&&"N"!==w?w:"A",totalInfo:dy(e,s,r,n),...!s&&{isTotalNumeric:py(e,n)},...fy(E,p,s),representation:y,conditionalColoring:s?void 0:x,qMiniChart:f}}(e,t,r,l[t])))};const gy=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},by=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||gy(e,t)};var vy="$$material";const yy=["values","unit","step"];function xy(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Mt(e,yy),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)=>yt({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return yt({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var Sy={borderRadius:4};function Ey(e,t){return t?di(e,t,{clone:!1}):e}const Cy={xs:0,sm:600,md:900,lg:1200,xl:1536},wy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cy[e]}px)`};function Ry(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||wy;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||wy;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Cy).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ay(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 Iy(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ay(e,r)||n,t&&(o=t(o,n,e)),o}function My(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=Ay(e.theme,n)||{};return Ry(e,i,(e=>{let n=Iy(a,o,e);return e===n&&"string"==typeof e&&(n=Iy(a,o,`${t}${"default"===e?"":Ni(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Py={m:"margin",p:"padding"},Ly={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ky=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Dy[e])return[e];e=Dy[e]}const[t,r]=e.split(""),n=Py[t],o=Ly[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Oy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ty=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function _y(e,t,r,n){var o;const i=null!=(o=Ay(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 qy(e){return _y(e,"spacing",8)}function Ny(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 Fy(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Ny(t,r),e)),{})}(ky(r),n);return Ry(e,e[r],o)}function jy(e,t){const r=qy(e.theme);return Object.keys(e).map((n=>Fy(e,t,n,r))).reduce(Ey,{})}function zy(e){return jy(e,Oy)}function Hy(e){return jy(e,Ty)}function $y(...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]?Ey(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function By(e){return"number"!=typeof e?e:`${e}px solid`}function Wy(e,t){return My({prop:e,themeKey:"borders",transform:t})}zy.propTypes={},zy.filterProps=Oy,Hy.propTypes={},Hy.filterProps=Ty;const Gy=Wy("border",By),Vy=Wy("borderTop",By),Uy=Wy("borderRight",By),Yy=Wy("borderBottom",By),Ky=Wy("borderLeft",By),Xy=Wy("borderColor"),Jy=Wy("borderTopColor"),Zy=Wy("borderRightColor"),Qy=Wy("borderBottomColor"),ex=Wy("borderLeftColor"),tx=Wy("outline",By),rx=Wy("outlineColor"),nx=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=_y(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ny(t,e)});return Ry(e,e.borderRadius,r)}return null};nx.propTypes={},nx.filterProps=["borderRadius"],$y(Gy,Vy,Uy,Yy,Ky,Xy,Jy,Zy,Qy,ex,nx,tx,rx);const ox=e=>{if(void 0!==e.gap&&null!==e.gap){const t=_y(e.theme,"spacing",8),r=e=>({gap:Ny(t,e)});return Ry(e,e.gap,r)}return null};ox.propTypes={},ox.filterProps=["gap"];const ix=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=_y(e.theme,"spacing",8),r=e=>({columnGap:Ny(t,e)});return Ry(e,e.columnGap,r)}return null};ix.propTypes={},ix.filterProps=["columnGap"];const ax=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=_y(e.theme,"spacing",8),r=e=>({rowGap:Ny(t,e)});return Ry(e,e.rowGap,r)}return null};ax.propTypes={},ax.filterProps=["rowGap"];function lx(e,t){return"grey"===t?t:e}$y(ox,ix,ax,My({prop:"gridColumn"}),My({prop:"gridRow"}),My({prop:"gridAutoFlow"}),My({prop:"gridAutoColumns"}),My({prop:"gridAutoRows"}),My({prop:"gridTemplateColumns"}),My({prop:"gridTemplateRows"}),My({prop:"gridTemplateAreas"}),My({prop:"gridArea"}));function sx(e){return e<=1&&0!==e?100*e+"%":e}$y(My({prop:"color",themeKey:"palette",transform:lx}),My({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lx}),My({prop:"backgroundColor",themeKey:"palette",transform:lx}));const ux=My({prop:"width",transform:sx}),cx=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])||Cy[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:sx(t)}};return Ry(e,e.maxWidth,t)}return null};cx.filterProps=["maxWidth"];const dx=My({prop:"minWidth",transform:sx}),px=My({prop:"height",transform:sx}),fx=My({prop:"maxHeight",transform:sx}),mx=My({prop:"minHeight",transform:sx});My({prop:"size",cssProperty:"width",transform:sx}),My({prop:"size",cssProperty:"height",transform:sx});$y(ux,cx,dx,px,fx,mx,My({prop:"boxSizing"}));var hx={border:{themeKey:"borders",transform:By},borderTop:{themeKey:"borders",transform:By},borderRight:{themeKey:"borders",transform:By},borderBottom:{themeKey:"borders",transform:By},borderLeft:{themeKey:"borders",transform:By},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:By},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nx},color:{themeKey:"palette",transform:lx},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lx},backgroundColor:{themeKey:"palette",transform:lx},p:{style:Hy},pt:{style:Hy},pr:{style:Hy},pb:{style:Hy},pl:{style:Hy},px:{style:Hy},py:{style:Hy},padding:{style:Hy},paddingTop:{style:Hy},paddingRight:{style:Hy},paddingBottom:{style:Hy},paddingLeft:{style:Hy},paddingX:{style:Hy},paddingY:{style:Hy},paddingInline:{style:Hy},paddingInlineStart:{style:Hy},paddingInlineEnd:{style:Hy},paddingBlock:{style:Hy},paddingBlockStart:{style:Hy},paddingBlockEnd:{style:Hy},m:{style:zy},mt:{style:zy},mr:{style:zy},mb:{style:zy},ml:{style:zy},mx:{style:zy},my:{style:zy},margin:{style:zy},marginTop:{style:zy},marginRight:{style:zy},marginBottom:{style:zy},marginLeft:{style:zy},marginX:{style:zy},marginY:{style:zy},marginInline:{style:zy},marginInlineStart:{style:zy},marginInlineEnd:{style:zy},marginBlock:{style:zy},marginBlockStart:{style:zy},marginBlockEnd:{style:zy},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:ox},rowGap:{style:ax},columnGap:{style:ix},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sx},maxWidth:{style:cx},minWidth:{transform:sx},height:{transform:sx},maxHeight:{transform:sx},minHeight:{transform:sx},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function gx(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ay(r,l)||{};if(u)return u(o);return Ry(o,t,(t=>{let r=Iy(c,s,t);return t===r&&"string"==typeof t&&(r=Iy(c,s,`${e}${"default"===t?"":Ni(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:hx;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=Ey(s,e(r,o,i,a));else{const e=Ry({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=Ey(s,e):s[r]=t({sx:o,theme:i})}else s=Ey(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const bx=gx();bx.filterProps=["sx"];var vx=bx;function yx(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:{}}const xx=["breakpoints","palette","spacing","shape"];function Sx(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Mt(e,xx),l=xy(r),s=function(e=8){if(e.mui)return e;const t=qy({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=di({breakpoints:l,direction:"ltr",components:{},palette:yt({mode:"light"},n),spacing:s,shape:yt({},Sy,i)},a);return u.applyStyles=yx,u=t.reduce(((e,t)=>di(e,t)),u),u.unstable_sxConfig=yt({},hx,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return vx({sx:e,theme:this})},u}var Ex=Object.freeze({__proto__:null,default:Sx,private_createBreakpoints:xy,unstable_applyStyles:yx});function Cx(e=null){const t=x.useContext(Vo);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const wx=Sx();const Rx=["sx"];function Ax(e){const{sx:t}=e,r=Mt(e,Rx),{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:hx;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 ui(r)?yt({},n,r):n}:yt({},n,t),yt({},o,{sx:i})}var Ix=Object.freeze({__proto__:null,default:vx,extendSxProp:Ax,unstable_createStyleFunctionSx:gx,unstable_defaultSxConfig:hx});const Mx=["className","component"];function Px(e){if(e.type)return e;if("#"===e.charAt(0))return Px(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(mr(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(mr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Lx(e,t){return e=Px(e),t=function(e,t=0,r=1){return pa(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)}var Dx=x.createContext(null);function kx(){return x.useContext(Dx)}var Ox="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Tx(e){const{children:t,theme:r}=e,n=kx(),o=x.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return yt({},e,t)}(n,r);return null!=e&&(e[Ox]=null!==n),e}),[r,n]);return Ll.jsx(Dx.Provider,{value:o,children:t})}const _x=["value"],qx=x.createContext();function Nx(e){let{value:t}=e,r=Mt(e,_x);return Ll.jsx(qx.Provider,yt({value:null==t||t},r))}const Fx=x.createContext(void 0);function jx({value:e,children:t}){return Ll.jsx(Fx.Provider,{value:e,children:t})}function zx({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?ia(o.defaultProps,n):o.styleOverrides||o.variants?n:ia(o,n)}({props:e,name:t,theme:{components:x.useContext(Fx)}})}const Hx={};function $x(e,t,r,n=!1){return x.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?yt({},t,{[e]:i}):i;return n?()=>a:a}return yt({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Bx(e){const{children:t,theme:r,themeId:n}=e,o=Cx(Hx),i=kx()||Hx,a=$x(n,o,r),l=$x(n,i,r,!0),s="rtl"===a.direction;return Ll.jsx(Tx,{theme:l,children:Ll.jsx(Vo.Provider,{value:a,children:Ll.jsx(Nx,{value:s,children:Ll.jsx(jx,{value:null==a?void 0:a.components,children:t})})})})}var Wx={},Gx={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Gx);var Vx=Gx.exports,Ux=St(hr),Yx=St(fa),Kx=Vx;Object.defineProperty(Wx,"__esModule",{value:!0});var Xx=Wx.alpha=uS;Wx.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=oS(e),a=oS(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return aS({type:"rgb",values:l})},Wx.colorChannel=void 0;var Jx=Wx.darken=cS;Wx.decomposeColor=oS,Wx.emphasize=pS;var Zx=Wx.getContrastRatio=function(e,t){const r=sS(e),n=sS(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Wx.getLuminance=sS,Wx.hexToRgb=nS,Wx.hslToRgb=lS;var Qx=Wx.lighten=dS;Wx.private_safeAlpha=function(e,t,r){try{return uS(e,t)}catch(t){return e}},Wx.private_safeColorChannel=void 0,Wx.private_safeDarken=function(e,t,r){try{return cS(e,t)}catch(t){return e}},Wx.private_safeEmphasize=function(e,t,r){try{return pS(e,t)}catch(t){return e}},Wx.private_safeLighten=function(e,t,r){try{return dS(e,t)}catch(t){return e}},Wx.recomposeColor=aS,Wx.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=oS(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 eS=Kx(Ux),tS=Kx(Yx);function rS(e,t=0,r=1){return(0,tS.default)(e,t,r)}function nS(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 oS(e){if(e.type)return e;if("#"===e.charAt(0))return oS(nS(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,eS.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,eS.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const iS=e=>{const t=oS(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Wx.colorChannel=iS;function aS(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 lS(e){e=oS(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),aS({type:l,values:s})}function sS(e){let t="hsl"===(e=oS(e)).type||"hsla"===e.type?oS(lS(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 uS(e,t){return e=oS(e),t=rS(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,aS(e)}function cS(e,t){if(e=oS(e),t=rS(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 aS(e)}function dS(e,t){if(e=oS(e),t=rS(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 aS(e)}function pS(e,t=.15){return sS(e)>.5?cS(e,t):dS(e,t)}Wx.private_safeColorChannel=(e,t)=>{try{return iS(e)}catch(t){return e}};var fS={black:"#000",white:"#fff"};var mS={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var hS={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var gS={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"};var bS={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"};var vS={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"};var yS={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var xS={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"};const SS=["mode","contrastThreshold","tonalOffset"],ES={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:fS.white,default:fS.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}},CS={text:{primary:fS.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:fS.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 wS(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=Qx(e.main,o):"dark"===t&&(e.dark=Jx(e.main,i)))}function RS(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Mt(e,SS),i=e.primary||function(e="light"){return"dark"===e?{main:vS[200],light:vS[50],dark:vS[400]}:{main:vS[700],light:vS[400],dark:vS[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:hS[200],light:hS[50],dark:hS[400]}:{main:hS[500],light:hS[300],dark:hS[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:gS[500],light:gS[300],dark:gS[700]}:{main:gS[700],light:gS[400],dark:gS[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:yS[400],light:yS[300],dark:yS[700]}:{main:yS[700],light:yS[500],dark:yS[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:xS[400],light:xS[300],dark:xS[700]}:{main:xS[800],light:xS[500],dark:xS[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:bS[400],light:bS[300],dark:bS[700]}:{main:"#ed6c02",light:bS[500],dark:bS[900]}}(t);function d(e){return Zx(e,CS.text.primary)>=r?CS.text.primary:ES.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=yt({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(mr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(mr(12,t?` (${t})`:"",JSON.stringify(e.main)));return wS(e,"light",o,n),wS(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:CS,light:ES};return di(yt({common:yt({},fS),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:mS,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const AS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const IS={textTransform:"uppercase"},MS='"Roboto", "Helvetica", "Arial", sans-serif';function PS(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=MS,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Mt(r,AS),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return yt({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===MS?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,IS),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,IS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return di(yt({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function LS(...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(",")}var DS=["none",LS(0,2,1,-1,0,1,1,0,0,1,3,0),LS(0,3,1,-2,0,2,2,0,0,1,5,0),LS(0,3,3,-2,0,3,4,0,0,1,8,0),LS(0,2,4,-1,0,4,5,0,0,1,10,0),LS(0,3,5,-1,0,5,8,0,0,1,14,0),LS(0,3,5,-1,0,6,10,0,0,1,18,0),LS(0,4,5,-2,0,7,10,1,0,2,16,1),LS(0,5,5,-3,0,8,10,1,0,3,14,2),LS(0,5,6,-3,0,9,12,1,0,3,16,2),LS(0,6,6,-3,0,10,14,1,0,4,18,3),LS(0,6,7,-4,0,11,15,1,0,4,20,3),LS(0,7,8,-4,0,12,17,2,0,5,22,4),LS(0,7,8,-4,0,13,19,2,0,5,24,4),LS(0,7,9,-4,0,14,21,2,0,5,26,4),LS(0,8,9,-5,0,15,22,2,0,6,28,5),LS(0,8,10,-5,0,16,24,2,0,6,30,5),LS(0,8,11,-5,0,17,26,2,0,6,32,5),LS(0,9,11,-5,0,18,28,2,0,7,34,6),LS(0,9,12,-6,0,19,29,2,0,7,36,6),LS(0,10,13,-6,0,20,31,3,0,8,38,7),LS(0,10,13,-6,0,21,33,3,0,8,40,7),LS(0,10,14,-6,0,22,35,3,0,8,42,7),LS(0,11,14,-7,0,23,36,3,0,9,44,8),LS(0,11,15,-7,0,24,38,3,0,9,46,8)];const kS=["duration","easing","delay"],OS={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)"},TS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _S(e){return`${Math.round(e)}ms`}function qS(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function NS(e){const t=yt({},OS,e.easing),r=yt({},TS,e.duration);return yt({getAutoHeightDuration:qS,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Mt(n,kS),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:_S(o)} ${i} ${"string"==typeof a?a:_S(a)}`)).join(",")}},e,{easing:t,duration:r})}var FS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const jS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function zS(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Mt(e,jS);if(e.vars)throw new Error(mr(18));const l=RS(n),s=Sx(e);let u=di(s,{mixins:(c=s.breakpoints,d=r,yt({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:DS.slice(),typography:PS(l,i),transitions:NS(o),zIndex:yt({},FS)});var c,d;return u=di(u,a),u=t.reduce(((e,t)=>di(e,t)),u),u.unstable_sxConfig=yt({},hx,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return vx({sx:e,theme:this})},u}var HS,$S=zS(),BS={},WS={exports:{}};var GS,VS={exports:{}};var US=St(si),YS=St(fi),KS=St(Fi),XS=St(qi),JS=St(Ex),ZS=St(Ix),QS=Vx;Object.defineProperty(BS,"__esModule",{value:!0});var eE=BS.default=function(e={}){const{themeId:t,defaultTheme:r=pE,rootShouldForwardProp:n=dE,slotShouldForwardProp:o=dE}=e,i=e=>(0,aE.default)((0,tE.default)({},e,{theme:mE((0,tE.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,nE.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=hE(fE(s))}=a,p=(0,rE.default)(a,uE),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=dE;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,nE.default)(e,(0,tE.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,oE.isPlainObject)(e)?n=>gE(e,(0,tE.default)({},n,{theme:mE({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=mE((0,tE.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=gE(r,(0,tE.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=mE((0,tE.default)({},e,{defaultTheme:r,themeId:t}));return gE({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,tE.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};BS.shouldForwardProp=dE,BS.systemDefaultTheme=void 0;var tE=QS((HS||(HS=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}(WS)),WS.exports)),rE=QS((GS||(GS=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(VS)),VS.exports)),nE=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=cE(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}(US),oE=YS;QS(KS),QS(XS);var iE=QS(JS),aE=QS(ZS);const lE=["ownerState"],sE=["variants"],uE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function cE(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(cE=function(e){return e?r:t})(e)}function dE(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const pE=BS.systemDefaultTheme=(0,iE.default)(),fE=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function mE({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function hE(e){return e?(t,r)=>r[e]:null}function gE(e,t){let{ownerState:r}=t,n=(0,rE.default)(t,lE);const o="function"==typeof e?e((0,tE.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>gE(e,(0,tE.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,rE.default)(o,sE);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,tE.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,tE.default)({ownerState:r},n,r)):e.style))})),t}return o}var bE=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var vE=eE({themeId:vy,defaultTheme:$S,rootShouldForwardProp:bE});const yE=["theme"];function xE(e){let{theme:t}=e,r=Mt(e,yE);const n=t[vy];return Ll.jsx(Bx,yt({},r,{themeId:n?vy:void 0,theme:n||t}))}var SE={exports:{}};
101
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},kh({exports:{}});var Bh={exports:{}};self,Bh.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Le});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function 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 w(e){return w="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},w(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function P(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function L(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=P(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(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){k(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);k(i,a)||D(t,o)||(P(a)?n.push({op:"add",path:l,value:i}):M(i)&&M(a)?n=n.concat(A.generate(a,i,l)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&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(k(t,o))return n;if(!P(t[0])&&P(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(A.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){P(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=L(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return 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(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=L(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,_=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 T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const 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,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="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,we,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),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 Me=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 De={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Le={modifiers:De,apply:Oe,applyModifiers:_e,cleanUpMeasure:Te,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[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=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var ke={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===Pe(n))return _e({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(r++,"object"!==Pe(De[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=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),_e({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===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 je(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function _e(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Me.isValid(r)||Me.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(l++,"object"!==Pe(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:De[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[n.type].updateModifier&&De[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:De[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),$e(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&!De[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(De[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!De[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):_(t,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&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=Ve(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(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},D=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},L=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},k=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},_=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,A),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,A),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=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},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return M(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 M(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)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(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 V={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?k():w,A=s.defaultMeasure,I=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),_({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),L("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),L("qMode",b,v,"S"),L("qReductionMode",b,v,"N"),L("qSortbyYValue",b,v),L("qIndentMode",b,v),L("qShowTotalsAbove",b,v),P(g,t,n),h.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:M}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(U(a,t,n,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||l,key:r||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)}n||(i.auto=!1,i.mode=a)}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",Me="measures",Pe="qDef.conditionalColoring";const De={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:Me,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Pe,arrayName:Me,quarantineName:Ie})}};var Le="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",_e="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const He={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:ze,arrayName:ke,itemPath:je}),we({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:_e,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Le,quarantineName:ze,arrayName:ke,itemPath:je}),Re({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:_e,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},Be={hypercube:V,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:He}})(),n.default})();var $h=yt(Bh.exports);const Wh="qHyperCubeDef.qMeasures",Vh="measures",Gh="qHyperCubeDef.qDimensions",Uh="dimensions",Yh="qDef.representation",Kh="tableRepresentation",Xh="qDef.conditionalColoring",Jh="conditionalColoring",Zh="qMiniChartDef",Qh="miniChartDef",eg=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:wm.PixelsDefault:-1})(r,e,t)));return o},tg=({propertyTree:e,hyperCubePath:t})=>{const r=$h.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=eg(o,i,n);return _h(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),$h.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),$h.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),$h.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{$h.quarantineArrayProp({properties:e,arrayPath:Gh,itemPath:Yh,arrayName:Uh,quarantineName:Kh}),$h.quarantineArrayProp({properties:e,arrayPath:Wh,itemPath:Yh,arrayName:Vh,quarantineName:Kh}),$h.quarantineArrayProp({properties:e,arrayPath:Wh,itemPath:Xh,arrayName:Vh,quarantineName:Jh}),$h.quarantineArrayProp({properties:e,arrayPath:Wh,itemPath:Zh,arrayName:Vh,quarantineName:Qh})})(r.properties),r};const rg=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:Rm.Pixels,pixels:e}:{type:Rm.FitToContent}}return i},ng=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{const a=$h.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});$h.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{$h.unquarantineArrayProp({properties:e,arrayPath:Gh,itemPath:Yh,arrayName:Uh,quarantineName:Kh}),$h.unquarantineArrayProp({properties:e,arrayPath:Wh,itemPath:Yh,arrayName:Vh,quarantineName:Kh}),$h.unquarantineArrayProp({properties:e,arrayPath:Wh,itemPath:Xh,arrayName:Vh,quarantineName:Jh}),$h.unquarantineArrayProp({properties:e,arrayPath:Wh,itemPath:Zh,arrayName:Vh,quarantineName:Qh})})(a.qProperty);const{qHyperCubeDef:{qDimensions:l,qMeasures:s,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>rg(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>rg(t,e,n,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(_h(a,"qProperty.qHyperCubeDef.qDimensions",d),_h(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(_h(a,"qProperty.totals.show",!1),_h(a,"qProperty.usePagination",!0)),$h.conditionalShow.unquarantine(a.qProperty),a};var og={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function ig(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function ag(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function lg(e){return e>0?0:1}function sg(e){return e.translator.get("Visualizations.Descriptions.Column")}function ug(e){return{measures:{min:lg,max:1e3,description:()=>sg(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;ig(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;ag(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:lg,max:1e3,description:()=>sg(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return ig(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;ag(o,n)}}}}var cg={};!function(e){(()=>{var t={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](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:()=>qe});var i=n(909),a=n.n(i);const l=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},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},u={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(" "),d="".concat(" ",")").concat(" ");function p(e){return c+e+d}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function m(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function g(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 b(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function y(e){return void 0===e?")":", 0, ".concat(e,")")}function x(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function S(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(x("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(x("MaxString(".concat(t,")")),")'\"}")}function E(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=S(f(n[0],o),b(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var c=f(n[0],o),d=f(n[1],o),p=b(0),m=b(1),h=S(c,p),g=S(d,m);return"".concat(a,"({1<").concat(h,",").concat(g,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function C(e){return"".concat(e,"(")}function w(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const R={isFullRange:m,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=p(g(t));if(!r.showExcludedValues)return a;var l=E({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var u=b(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var c=b(0),d=b(1);return"If(Count(".concat(c,") * Count(").concat(d,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!m(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:y,getAboveComp:function(e,t,r,n){return v(e,t)+r+y(n)},getFunctionPrefix:C,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return C(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:E,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===w({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=b(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:g,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(c);if(-1!==r){var n=t.indexOf(d);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:f,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=w({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:p,canExtract:function(e){var t=e.indexOf(c),r=e.indexOf(d);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:b,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=u.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?u.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(u.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return u.EXPRESSIONS[r]&&n.includes(u.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function A(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 I(e){return I="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},I(e)}var M=a().bind(null,!0),P={},D=Array.isArray;function L(e){return null!=e&&!Array.isArray(e)&&"object"===I(e)}function k(e){return void 0===e}function O(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function _(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]=k(e[r||t])?i:e[t],e=e[r||t]}})),e}function T(e,t){var r=!0;if(L(e)&&L(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){T(e[n],t[n])||(r=!1)})),r);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}P.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?M({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);T(i,a)||O(t,o)||(k(a)?n.push({op:"add",path:l,value:i}):L(i)&&L(a)?n=n.concat(P.generate(a,i,l)):D(i)&&D(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&k(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(!k(t[0])&&k(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(P.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){k(t[o])&&!O(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},P.apply=function(e,t){t.forEach((function(t){var r,n,o=_(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return A(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return A(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)?A(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(L(a)&&L(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!O(r,e)&&delete r[e]})),M(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=_(e,t.from);D(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},P.clone=function(e){return M({},e)},P.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):M(e,t)};const q=P,N=function(e,t,r){if(!e)return Promise.resolve();var n=q.generate(t,r);return a()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()};var F="accumulation";function j(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}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===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const B={translationKey:"properties.modifier.accumulation",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.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=R.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=R.getNumStepComp(r,l),p=R.getAboveComp(r,l,c,d),f=R.getRangeComp("RangeSum",p);if(R.needDimension({modifier:r,properties:n,layout:o})){var m=R.getDimComp(u,1),h=R.getDimComp(u,0),g=R.getAggrComp(f,m,h);f=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,H)},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!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(z(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(z(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(z(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.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=j(t,e);return i&&!i.disabled}}}};var $="movingAverage";function W(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 V(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 G={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const U={translationKey:"properties.modifier.movingAverage",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.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 u=a;void 0===u&&(u=R.getNumDimensions({properties:o,layout:i}));var c=s(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=R.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=R.getNumStepComp(n,u),m=R.getAboveComp(n,u,p,f);if(n.nullSuppression)t=R.getRangeComp("RangeAvg",m);else{var h=R.getRangeComp("RangeSum",m),g=function(e,t){var r=R.getRowNoComp(e,t);if(!R.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(R.needDimension({modifier:n,properties:o,layout:i})){var v=R.getDimComp(c,1),y=R.getDimComp(c,0),x=R.getAggrComp(b,v,y);b=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,G)},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!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(V(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(V(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(V(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(V(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=W(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=W(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(V(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(V(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return R.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=W(t,e);return i&&!i.disabled}}}};var Y="timeSeriesDecomposition";function K(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Y)return r[n]}function X(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===Y)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var J={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const Z={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?R.generateTSDExpression(r,t,n):t},extractInputExpression:R.extractInputExpression,initModifier:function(e,t){R.initModifier(e,J),""===e.decomposition&&t&&(e.decomposition=R.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!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(X(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:u.OPTIONS},steps:{refFn:function(t){return"".concat(X(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=K(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=K(t,e);return r&&!r.fullRange}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Y))return!1;var i=K(t,e);return i&&!i.disabled}}}};var Q="difference";function ee(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===Q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var te={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const re={translationKey:"properties.modifier.difference",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:R.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=R.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=R.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(R.needDimension({modifier:r,properties:n,layout:o})){var f=R.getDimComp(u,1),m=R.getDimComp(u,0),h=R.getAggrComp(p,f,m);p=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(te).forEach((function(t){void 0===e[t]&&(e[t]=te[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!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(ee(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(ee(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(ee(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Q))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===Q)return r[n]}(t,e);return i&&!i.disabled}}}},ne=0,oe=1,ie=2,ae=0,le=1,se=2;var ue="normalization";function ce(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===ue)return r[n]}function de(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===ue)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function pe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var fe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:se,selectionScope:ie};function me(e){return 2===e?"{1}":""}function he(e,t,r){return 1===e?"{$<".concat(R.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function ge(e,t){return 0===e&&t>1||2===e?"Total":""}function be(e,t,r){return 0===e&&t>1?"<".concat(R.getDimDefWithWrapper(r),">"):""}const ve={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:R.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=R.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=me(t),s=he(t,r,n),u=""===l&&""===s?"":l||s,c=ge(o,i),d=be(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=R.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(fe).forEach((function(t){void 0===e[t]&&(e[t]=fe[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!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(de(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:ie,options:function(r){return function(e,t,r){var n=[{value:ne,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:oe,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:ie,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=pe(t,0);t.splice(r,1)}return t}(ce(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(de(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 ce(t,e).selectionScope===oe}},value:{refFn:function(t){return"".concat(de(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return ce(t,e).selectionScope===oe}},dimensionalScope:{refFn:function(t){return"".concat(de(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:se,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:ae,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:le,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:se,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=pe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=pe(t,1);t.splice(r,1)}return t}(ce(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(de(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(ce(t,e).dimensionalScope||0)===ae&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(ue))return!1;var i=ce(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:me,getFieldSelectionComp:he,getTotalComp:ge,getSelectedDimComp:be};var ye="library id deleted",xe="qDef.qDef",Se="qDef.base.qDef",Ee="qLibraryId",Ce="qDef.base.qLibraryId",we="qDef.qLabel",Re="qDef.qLabelExpression",Ae="qDef.base.qLabel",Ie="qDef.base.qLabelExpression",Me="qDef.qAggrFunc",Pe="qDef.base.qAggrFunc",De="qDef.base";const Le={getExpression:function(e){var t=s(e,Se);return void 0!==t?t:s(e,xe)},getExpressionRef:function(e){return void 0!==s(e,Se)?Se:xe},getLibraryIdRef:function(e){return s(e,Ce)?Ce:Ee},getLibraryId:function(e){return s(e,Ce)||s(e,Ee)},getLabelRef:function(e){return s(e,De)?Ae:we},getLabelExpressionRef:function(e){return s(e,De)?Ie:Re}};var ke={initBase:function(e,t){(t||ke.isValid(e))&&(l(e,Se,s(e,xe)),l(e,Ce,s(e,Ee)),l(e,Ae,s(e,we)),l(e,Ie,s(e,Re)))},restoreBase:function(e){ke.isValid(e)&&(l(e,xe,s(e,Se)),l(e,Ee,s(e,Ce)),l(e,we,s(e,Ae)),l(e,Re,s(e,Ie)),s(e,Me)&&s(e,Pe)&&l(e,Me,s(e,Pe)),delete e.qDef.base)},isValid:function(e){var t=s(e,Se),r=s(e,Ce);return void 0!==t||void 0!==r}};const Oe=ke;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 Te={accumulation:B,movingAverage:U,difference:re,normalization:ve,timeSeriesDecomposition:Z};const qe={modifiers:Te,apply:Fe,applyModifiers:je,cleanUpMeasure:ze,destroy:function(e){e&&Ne[e.id]&&Ne[e.id].masterItemSubscriber&&(Ne[e.id].masterItemSubscriber&&Ne[e.id].masterItemSubscriber.unsubscribe(),delete Ne[e.id])},hasActiveModifiers:He,getActiveModifier:Be,initBase:Oe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[e].isApplicable({properties:r,layout:n})}))},measureBase:Le,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Ve(e);Ze({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||nt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:$e};var Ne={};function Fe(){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,i=e.masterItem,l=!1;Ne[t.id]=Ne[t.id]||{isFirstTime:!0};var u=Ne[t.id].isFirstTime;if(Ne[t.id].isFirstTime=!1,r&&"object"===_e(r))return je({model:t,properties:r});var c=t?t.layout:void 0,d=s(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(c,"qHyperCube.qMeasureInfo"),f=Ne[t.id].lastReloadTime;if(Ne[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),He({measures:p,layout:c})){var m=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 Je({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ze({modifiers:Ve(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:i,isFirstTime:u})?t.getEffectiveProperties().then((function(e){var r=a()(!0,{},e);Ue(r);var n=ot(r);return Qe({model:t}).then((function(o){return et({libraryIds:n,model:t}).then((function(n){return m&&function(e){var t=e.properties;We(t).forEach((function(e){return function(e){var t=e.measure;if(Je({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(r++,"object"!==_e(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Te[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ke(t)&&R.simplifyExpression(t.qDef.base.qDef)!==R.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),je({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:i,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"===_e(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=ot(r);return it({model:t,libraryIds:n}).then((function(){var e=a()(!0,{},r);return We(r).forEach((function(e){return ze(e)})),rt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function je(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,i=e.runUpdateIfChange,l=void 0!==i&&i,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?a()(!0,{},n):n),Ue(n);var p=ot(n);return it({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,i=e.dimensionAndFieldList;if(t||(t=We(r)),!t.length)return Promise.resolve();if(!o&&!He({measures:t,properties:r}))return t.forEach((function(e){return ze(e)})),Promise.resolve();var l=o?void 0:ot(r);return Qe({model:n,dimensionAndFieldList:i}).then((function(e){return et({libraryIds:l,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Ze({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,i=0;Oe.isValid(t)||Oe.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(i++,"object"!==_e(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(i>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Te[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,i=e.libraryItemsProps[e.libraryId],l=i.qMeasure.qDef,s=""===l?l:Te[r.type].generateExpression({expression:l,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||i.qMeasure.qLabel)&&(t.qDef.qLabel=i.qMeasure.qLabel),(t.qDef.qLabelExpression||i.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=i.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&i.qMeasure.qNumFormat&&(t.qDef.qNumFormat=i.qMeasure.qNumFormat,t.qDef.isCustomFormatted=i.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=i.qMeasure.coloring,r.base=a()(!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 Te[r.type].updateModifier&&Te[r.type].updateModifier(r,n.qHyperCubeDef);var i=Le.getExpression(t),l=""===i?i:Te[r.type].generateExpression({expression:i,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||i,r.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(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")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Ye(t)):ze(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?rt({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function ze(e){!function(e){var t=Ve(e);return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&!Te[e.type]}))}(e)?Oe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ye(e)}function He(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ze({modifiers:Ve(e),properties:r,layout:n})}))}function Be(e){var t=Ve(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Te[n.type]&&!n.disabled)return n}}function $e(e){var t=Be(e);return!t||Te[t.type].enableTotalsFunction(e)}function We(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Ve(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ge(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function Ue(e){We(e).forEach((function(e){return function(e){var t=Be(e);t&&(void 0!==t.outputExpression&&Ge(t)!==e.qDef.qDef?delete e.qDef.base:!Oe.isValid(e)&&t.base&&(e.qDef.base=a()(!0,{},t.base)))}(e)}))}function Ye(e){var t=Ve(e);Array.isArray(t)&&t.forEach((function(t){"object"===_e(t)&&(t.disabled||!Te[t.type]&&Ge(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ke(e){return e.base||e.qDef&&e.qDef.base}function Xe(e){var t=Ke(e);return e.qLibraryId||t&&t.qLibraryId}function Je(e){var t=e.measure,r=e.properties,n=e.layout;return!Xe(t)&&Ze({modifiers:Ve(t),properties:r,layout:n})}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==_e(e)||e.disabled||!Te[e.type])&&(void 0===o[e.type]&&(o[e.type]=Te[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Qe(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 et(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a})).catch((function(){return null}))}function tt(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function rt(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),tt)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),tt)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),tt)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),tt);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):N(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function nt(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function ot(e){var t=We(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Ve(t);if(Ze({modifiers:n,properties:e})){var i=Xe(t);i&&r.push(i),o=o||nt({modifiers:n,properties:e})}})),s(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function it(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==ye&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Ne[t.id].masterItemSubscriber=Ne[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 u(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 c(){Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])}))}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,(function(){return e=t.id,r(ye),delete n[e],void c();var e})),enabled:!1,properties:l(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&l.push(p(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return Fe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ne[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(cg);var dg=yt(cg);let pg=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e}({}),fg=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const mg=e=>{switch(null==e?void 0:e.type){case"url":return pg.Link;case"image":return pg.Image;case"indicator":return pg.Indicator;case"miniChart":return pg.MiniChart;default:return pg.Text}},hg=({args:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}={}})=>!e.properties.qHyperCubeDef.qIndentMode||(!(!r&&!n)||!t),gg=({isImagesEnabled:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:r})=>{const{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}=null!=r?r:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,r,i)=>hg({args:i,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}}),options(t,r,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,l=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!a||a&&n)&&l.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&o)&&l.push({value:"image",translation:"Object.Table.Representation.Image"}),l}}},bg=(e,t)=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(r,n,o)=>mg(r.qDef.representation)===pg.Link&&hg({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(r,n,o)=>{var i;return mg(r.qDef.representation)===pg.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===fg.Dimension&&hg({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(r,n,o)=>{var i;return mg(r.qDef.representation)===pg.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===fg.Attribute&&hg({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}}}),vg=(e,t,r)=>{if(e||r)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,o)=>mg(e.qDef.representation)===pg.Image&&hg({args:o,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:r}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},yg=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),l=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),s=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=n&&null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:gg({isImagesEnabled:s,isIndentModeEnabled:i,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:a,isImagesSupportedInIndentMode:l}}),...bg(i,a),...vg(s,i,l)}},xg=(e,t)=>{var r;const{flags:n,anything:o}=e,i=null==o||null===(r=o.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=i&&i("tableImages"))&&t.some((e=>e===pg.Image)),l=n.isEnabled("CLIENT_IM_5975_INDENT_MODE"),s=n.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),u=n.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")&&!(null!=i&&i("qMiniChartDef"))&&t.some((e=>e===pg.MiniChart)),c=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===pg.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>hg({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef,r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&a||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),c&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),u&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:a||s?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>mg(e.qDef.representation)===pg.Image&&hg({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),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:c?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:u?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}},Sg={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},Eg={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}},Cg=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!dg.hasActiveModifiers({measures:[e],properties:t.properties})||dg.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(n=e.anything)&&void 0!==n&&null!==(n=n.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},wg={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Rm.Auto,translation:"Common.Auto"},{value:Rm.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Rm.Pixels,translation:"Object.Table.Column.Pixels"},{value:Rm.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Rm.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Rm.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(wm.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Rm.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(wm.PercentageMax,e.qDef.columnWidth.percentage))}}},Rg=()=>({...Sg,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}]},...Eg,...wg}),Ag={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},Ig=e=>{var t,r;const n=null==e||null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r?void 0:r.call(t,"modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var t;return n?!!e.qLibraryId:!!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},inlineMeasure:{component:"inline-measure",show:e=>{var t;return n?!e.qLibraryId:!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:Cg(e)}},Mg=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:Ag},presentation:{type:"items",translation:"properties.presentation",items:{...Rg(),...yg(e)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:Ig(e)},presentation:{type:"items",translation:"properties.presentation",items:{...Rg(),...xg(e,[pg.Image,pg.Indicator,pg.MiniChart])}}}}}}),Pg={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}},Dg=e=>{if(e.flags.isEnabled("CLIENT_IM_6997_WORD_WRAP"))return{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}]}},Lg=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},kg=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),Og=(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},_g=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Og(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ce(n).filter((e=>!s.includes(e))).map((e=>Og(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Tg=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],qg=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Og(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Tg.filter((e=>!a.includes(e))).map((e=>Og(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Ng=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:_g({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:qg({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:kg(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:kg(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?Uf.WHITE:Uf.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),Fg=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:kg(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:kg(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),jg=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},zg={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:jg,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:jg,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},Hg=(e,t,r)=>{var n,o,i,a,l;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureValues":return null===(i=e.object)||void 0===i||null===(i=i.straightTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i[r];case"totalRow":return null===(a=e.object)||void 0===a||null===(a=a.straightTableV2)||void 0===a||null===(a=a.total)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"nullValues":return null===(l=e.object)||void 0===l||null===(l=l.straightTableV2)||void 0===l||null===(l=l.null)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];default:return}},Bg={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){var t,r,n;null!==(null==e||null===(t=e.content)||void 0===t?void 0:t.rowHeight)&&void 0!==(null==e||null===(r=e.content)||void 0===r?void 0:r.rowHeight)&&""!==(null==e||null===(n=e.content)||void 0===n?void 0:n.rowHeight)?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):e.content.rowHeight=void 0}},$g=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),...Bg},border:kg("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Uf.BORDER_MEDIUM})),divider:kg("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Uf.BORDER_HEAVY}))}}}}),Wg=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,Vg=({flags:e,translator:t})=>({headerSection:Ng({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:Hg,disableNoneCallback:Wg}),dimensionValueSection:Ng({section:"dimensionValues",translator:t,flags:e,getThemeValue:Hg}),measureValueSection:Ng({section:"measureValues",translator:t,flags:e,getThemeValue:Hg}),totalRowSection:Ng({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:Hg,disableNoneCallback:Wg}),nullValues:Fg({section:"nullValues",fallbackBackground:Uf.NULL_VALUE_BACKGROUND,getThemeValue:Hg}),grid:$g(e),hoverEffectSection:zg}),Gg=e=>({headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},rowHeightSection:{show:()=>e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),component:"panel-section",translation:"ThemeStyleEditor.style.rowHeight",items:{rowHeightItem:{component:"items",ref:"components",key:"theme",items:{rowHeight:Bg}}}},hoverEffectSection:zg}),Ug=e=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:e.flags.isEnabled("CLIENT_IM_6546_TABLE_BG_COLOR"),defaultValue:[],items:e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING")?Vg(e):Gg(e)}]}),Yg=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[Ug(e),Lg(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},Dg(e)]},...Pg}}),Kg={uses:"sorting"},Xg={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Jg=e=>({type:"items",component:"accordion",items:{data:Mg(e),sorting:Kg,addOns:Xg,settings:Yg(e)}});function Zg(e){var t,r;return{definition:Jg(e),exploration:og,data:ug(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"modifiers")?["accumulation","movingAverage","difference","normalization"]:void 0},importProperties(e,t,r,n){const o={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return ng({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o})},exportProperties:(e,t)=>tg({propertyTree:e,hyperCubePath:t})}}const Qg=(e,t)=>o((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,l=e[n?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,s=l?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...l,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([s],!0)})(e,t)),[e,t]),eb=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),tb=[];for(let e=0;e<256;++e)tb.push((e+256).toString(16).slice(1));let rb;const nb=new Uint8Array(16);function ob(){if(!rb){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");rb=crypto.getRandomValues.bind(crypto)}return rb(nb)}var ib={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ab(e,t,r){if(ib.randomUUID&&!t&&!e)return ib.randomUUID();const n=(e=e||{}).random||(e.rng||ob)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return(tb[e[t+0]]+tb[e[t+1]]+tb[e[t+2]]+tb[e[t+3]]+"-"+tb[e[t+4]]+tb[e[t+5]]+"-"+tb[e[t+6]]+tb[e[t+7]]+"-"+tb[e[t+8]]+tb[e[t+9]]+"-"+tb[e[t+10]]+tb[e[t+11]]+tb[e[t+12]]+tb[e[t+13]]+tb[e[t+14]]+tb[e[t+15]]).toLowerCase()}(n)}const lb=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:ab()},sb=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:lb()},ub=e=>"number"==typeof e&&!Number.isNaN(+e),cb=e=>!(!e.qNum&&0!==e.qNum||!ub(e.qNum));function db(e){return db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},db(e)}function pb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fb(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,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function mb(e,t,r){return t&&fb(e.prototype,t),r&&fb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bb(e,t)}function gb(e){return gb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gb(e)}function bb(e,t){return bb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bb(e,t)}function vb(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function yb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=gb(e);if(t){var o=gb(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return vb(this,r)}}function xb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Sb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sb(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}var Eb={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:Cb(e),value:Cb(t),useEqualSign:r}}(r,o,i))}})),t}};function Cb(e){try{return decodeURIComponent(e)}catch(t){return e}}function wb(e){if(!(this instanceof wb))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return Eb.fromSearchString(t.search)}}})}function Rb(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}wb.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},wb.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=Rb((t=e[n]).key),t.value?r+="=".concat(Rb(t.value)):r+=t.useEqualSign?"=":"";return r};var Ab,Ib=function(){function e(t){pb(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return mb(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),Mb=function(){function e(){pb(this,e)}return mb(e,[{key:"decode",value:function(e){for(var t,r="",n=new Ib(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),Pb=function(e){return e>=0&&e<=1114111},Db=function(e){return e.match(/[\s]/)},Lb=function(e){hb(r,e);var t=yb(r);function r(){return pb(this,r),t.apply(this,arguments)}return mb(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!Db(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return Pb(a)?String.fromCharCode(a):"�"}}]),r}(Mb),kb=function(){function e(t,r){pb(this,e),this._key=t,this._value=r}return mb(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}]),e}(),Ob=function(){function e(){pb(this,e)}return mb(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return kb.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return kb.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||kb.newInstanceIfNeeded(e,t,this._value)}}]),e}(),_b=function(){function e(){pb(this,e),this.clear()}return mb(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new Ob);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),Tb=function(){var e,t,r,n=[],o=[],i=new _b;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),qb=function(e){hb(r,e);var t=yb(r);function r(){return pb(this,r),t.apply(this,arguments)}return mb(r,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,Tb.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=Tb.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&Pb(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&Pb(n)?String.fromCharCode(n):null}}]),r}(Mb),Nb=function(e){hb(r,e);var t=yb(r);function r(){return pb(this,r),t.apply(this,arguments)}return mb(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),Pb(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(Mb),Fb=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(Ab=document.createElement("div"));var jb=Array.prototype.indexOf,zb=[",",".","_"," "],Hb=[",",".","-","_"," "],Bb={width:["%"],height:["%"]},$b={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Wb={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":$b.image,"background-color":$b.color,"border-color":$b.color,"border-image":$b.image,color:$b.color,icon:$b.image,"list-style-image":$b.image,"outline-color":$b.color},Vb={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Gb(e,t,r){var n;if(t){if(jb)return jb.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 Ub(e){if(null==e)return"";var t,r=document.createTextNode(e);return Ab.appendChild(r),t=Ab.innerHTML,Ab.removeChild(r),t}function Yb(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=Xb(e).toLowerCase(),t=Xb(t),Gb(e,Vb.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Vb.attr_val;i++)if(t.toLowerCase().match(Vb.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=Bb[e])||(n=Hb),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Gb(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Kb(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=Xb(e).toLowerCase(),t=Xb(t),Gb(e,Vb.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Vb.css_val.length;n++)if(t.toLowerCase().indexOf(Vb.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Wb[e])||(o=$b.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Gb(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Xb(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new qb,new Nb,new Lb];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var Jb=[],Zb=0;Zb<255;Zb++)Jb[Zb]=Zb>=48&&Zb<=57||Zb>=65&&Zb<=90||Zb>=97&&Zb<=122?null:Zb.toString(16);var Qb=function(e){return Ub(e.unsafe)},ev=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=Kb(t,r[t],!0),i+=Kb(t,r[t],!0),o[t]=n[t]);return e.map?o:i},tv=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=Yb(i,t[i],!0),o+=Yb(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function rv(e,t){throw new Error(t)}var nv={canonicalize:Xb,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===db(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Qb(e):"css"===e.context?(null!=e.map&&"object"!==db(e.map)&&rv(this,"Invalid parameter type"),ev(e)):"attr"===e.context?(null!=e.map&&"object"!==db(e.map)&&rv(this,"Invalid parameter type"),tv(e)):void rv(this,"Invalid parameter type")},encodeForAttr:Yb,encodeForAttr2:function(e){return Yb("nonsens",e,!0)},encodeForCSS:Kb,encodeForHref:function(e){Xb(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new wb(e),r=wb.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+wb.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=zb),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Gb(o,t)>=0||null==Jb[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:Ub,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Xb(t).toLowerCase():rv(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,r=xb(null!==(t=Fb.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const ov=(e,t)=>{var r;const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==n||null===(r=n.qValues)||void 0===r?void 0:r[e]},iv=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},av=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&nv.isSafeDataURL(t)?{type:pg.Image,url:t,text:e,imageSize:r,resolvedImagePosition:iv(n)}:{type:pg.Text,url:void 0,text:e},lv=(e,t,r)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:pg.Text,text:e.qText};const{minY:n,maxY:o}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?r.qYMin:e.qMiniChart.qMin,s=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,r),i={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:n,maxY:o,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:pg.MiniChart,text:e.qText,miniChart:i}},sv=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===fg.Attribute||null==r?void 0:r.urlLabel},uv=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:pg.Link,url:nv.encodeForHref(t),text:e}}catch(t){return{type:pg.Text,url:void 0,text:e}}},cv=(e,t,r,n,o,i)=>{var a,l,s,u,c,d;const p=mg(t);return p!==pg.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(a=n.anything.sense)&&void 0!==a&&null!==(l=a.isUnsupportedFeature)&&void 0!==l&&l.call(a,"tableImages")?p===pg.Link?((e,t,r)=>{const{urlPosition:n}=null!=t?t:{};if(n===fg.Attribute){var o;const n=sv(null!==(o=r.url)&&void 0!==o?o:-1,e,t),i=e.qText||n||"";return uv({text:i,url:n})}if(n===fg.Dimension){var i;const n=sv(null!==(i=r.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return uv({text:n,url:e.qText})}return{type:pg.Text,url:void 0,text:e.qText}})(e,t,r):p!==pg.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(s=n.anything.sense)&&void 0!==s&&null!==(u=s.isUnsupportedFeature)&&void 0!==u&&u.call(s,"tableIndicators")?p!==pg.MiniChart||!n.flags.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"qMiniChartDef")?{type:pg.Text,url:void 0,text:e.qText}:lv(e,t,i):((e,t,r)=>{const{indicator:n}=null!=t?t:{};return{type:pg.Indicator,url:void 0,text:e.qText,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:r}})(e,t,o):((e,t,r)=>{const{imageSize:n,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=ov(null!==(s=r.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return av({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return av({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=ov(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return av({text:i,url:t,imageSize:n,imagePosition:o})}return{type:pg.Text,url:void 0,text:e.qText}})(e,t,r)},dv=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,pv=1e4;function fv(e,t){return[...t].reverse().find((t=>t*e<=pv))||Math.floor(pv/e)}function mv(e,t){var r,n;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,l,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(n=e.totals)||void 0===n?void 0:n.show,e.totals.position];if(a&&(o&&i||!l&&!o)){if(l||"top"===s)return{atTop:!0,atBottom:!1};if(!l&&"bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function hv(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[n])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function gv(e,t){const r=e.qHyperCube.qGrandTotalRow[t];return ub(null==r?void 0:r.qNum)}function bv(e,t,r){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}}const vv=(e,t)=>"auto"!==t?t:cb(e)?"right":"left";const yv=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:r,qMeasureInfo:n}}=e,o=r.length+n.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:l}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<n,{qError:s}=l?t[e]:r[e-n],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(i,r,n);return a.map(((t,r)=>function(e,t,r,n){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,l=o.length,s=t<l,u=s?o[t]:i[t-l],c=s&&o[t].qGrouping===Mm.Cyclic,d=t===a[0];let p,f,m="",h=!1,g=-1,b=0,v=[];const{representation:y,conditionalColoring:x}=u;if(s){const e=u;m=e.qGroupFieldDefs[e.qGroupPos],b=e.qGroupPos,v=e.qGroupFallbackTitles,h=e.qLocked,g=n,({qDimensionType:p}=e)}else({qMiniChart:f}=u);const{qFallbackTitle:S,textAlign:E,qAttrExprInfo:C,qSortIndicator:w,qReverseSort:R,qApprMaxGlyphCount:A,columnWidth:I,qLibraryId:M}=u;return{isDim:s,isCyclic:c,isLocked:h,fieldId:m,colIdx:t,qLibraryId:M,pageColIdx:r,qApprMaxGlyphCount:A,qReverseSort:R,columnWidth:I,selectionColIdx:g,isActivelySorted:d,id:sb(u),label:S,groupDimensionPos:b,groupDimensionLabels:v,qAttrExprInfoIDs:C.map((e=>e.id)),qAttrExprInfoIndex:eb(u),sortDirection:w&&"N"!==w?w:"A",totalInfo:hv(e,s,r,n),...!s&&{isTotalNumeric:gv(e,n)},...bv(E,p,s),representation:y,conditionalColoring:s?void 0:x,qMiniChart:f}}(e,t,r,l[t])))};const xv=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},Sv=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||xv(e,t)};var Ev="$$material";const Cv=["values","unit","step"];function wv(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=It(e,Cv),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)=>vt({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return vt({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var Rv={borderRadius:4};function Av(e,t){return t?ci(e,t,{clone:!1}):e}const Iv={xs:0,sm:600,md:900,lg:1200,xl:1536},Mv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Iv[e]}px)`};function Pv(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Mv;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Mv;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Iv).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Dv(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Lv(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Dv(e,r)||n,t&&(o=t(o,n,e)),o}function kv(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Dv(e.theme,n)||{};return Pv(e,i,(e=>{let n=Lv(a,o,e);return e===n&&"string"==typeof e&&(n=Lv(a,o,`${t}${"default"===e?"":qi(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Ov={m:"margin",p:"padding"},_v={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qv=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Tv[e])return[e];e=Tv[e]}const[t,r]=e.split(""),n=Ov[t],o=_v[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Nv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function jv(e,t,r,n){var o;const i=null!=(o=Dv(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function zv(e){return jv(e,"spacing",8)}function Hv(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 Bv(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Hv(t,r),e)),{})}(qv(r),n);return Pv(e,e[r],o)}function $v(e,t){const r=zv(e.theme);return Object.keys(e).map((n=>Bv(e,t,n,r))).reduce(Av,{})}function Wv(e){return $v(e,Nv)}function Vv(e){return $v(e,Fv)}function Gv(...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]?Av(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Uv(e){return"number"!=typeof e?e:`${e}px solid`}function Yv(e,t){return kv({prop:e,themeKey:"borders",transform:t})}Wv.propTypes={},Wv.filterProps=Nv,Vv.propTypes={},Vv.filterProps=Fv;const Kv=Yv("border",Uv),Xv=Yv("borderTop",Uv),Jv=Yv("borderRight",Uv),Zv=Yv("borderBottom",Uv),Qv=Yv("borderLeft",Uv),ey=Yv("borderColor"),ty=Yv("borderTopColor"),ry=Yv("borderRightColor"),ny=Yv("borderBottomColor"),oy=Yv("borderLeftColor"),iy=Yv("outline",Uv),ay=Yv("outlineColor"),ly=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=jv(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Hv(t,e)});return Pv(e,e.borderRadius,r)}return null};ly.propTypes={},ly.filterProps=["borderRadius"],Gv(Kv,Xv,Jv,Zv,Qv,ey,ty,ry,ny,oy,ly,iy,ay);const sy=e=>{if(void 0!==e.gap&&null!==e.gap){const t=jv(e.theme,"spacing",8),r=e=>({gap:Hv(t,e)});return Pv(e,e.gap,r)}return null};sy.propTypes={},sy.filterProps=["gap"];const uy=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=jv(e.theme,"spacing",8),r=e=>({columnGap:Hv(t,e)});return Pv(e,e.columnGap,r)}return null};uy.propTypes={},uy.filterProps=["columnGap"];const cy=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=jv(e.theme,"spacing",8),r=e=>({rowGap:Hv(t,e)});return Pv(e,e.rowGap,r)}return null};cy.propTypes={},cy.filterProps=["rowGap"];function dy(e,t){return"grey"===t?t:e}Gv(sy,uy,cy,kv({prop:"gridColumn"}),kv({prop:"gridRow"}),kv({prop:"gridAutoFlow"}),kv({prop:"gridAutoColumns"}),kv({prop:"gridAutoRows"}),kv({prop:"gridTemplateColumns"}),kv({prop:"gridTemplateRows"}),kv({prop:"gridTemplateAreas"}),kv({prop:"gridArea"}));function py(e){return e<=1&&0!==e?100*e+"%":e}Gv(kv({prop:"color",themeKey:"palette",transform:dy}),kv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:dy}),kv({prop:"backgroundColor",themeKey:"palette",transform:dy}));const fy=kv({prop:"width",transform:py}),my=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])||Iv[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:py(t)}};return Pv(e,e.maxWidth,t)}return null};my.filterProps=["maxWidth"];const hy=kv({prop:"minWidth",transform:py}),gy=kv({prop:"height",transform:py}),by=kv({prop:"maxHeight",transform:py}),vy=kv({prop:"minHeight",transform:py});kv({prop:"size",cssProperty:"width",transform:py}),kv({prop:"size",cssProperty:"height",transform:py});Gv(fy,my,hy,gy,by,vy,kv({prop:"boxSizing"}));var yy={border:{themeKey:"borders",transform:Uv},borderTop:{themeKey:"borders",transform:Uv},borderRight:{themeKey:"borders",transform:Uv},borderBottom:{themeKey:"borders",transform:Uv},borderLeft:{themeKey:"borders",transform:Uv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Uv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ly},color:{themeKey:"palette",transform:dy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:dy},backgroundColor:{themeKey:"palette",transform:dy},p:{style:Vv},pt:{style:Vv},pr:{style:Vv},pb:{style:Vv},pl:{style:Vv},px:{style:Vv},py:{style:Vv},padding:{style:Vv},paddingTop:{style:Vv},paddingRight:{style:Vv},paddingBottom:{style:Vv},paddingLeft:{style:Vv},paddingX:{style:Vv},paddingY:{style:Vv},paddingInline:{style:Vv},paddingInlineStart:{style:Vv},paddingInlineEnd:{style:Vv},paddingBlock:{style:Vv},paddingBlockStart:{style:Vv},paddingBlockEnd:{style:Vv},m:{style:Wv},mt:{style:Wv},mr:{style:Wv},mb:{style:Wv},ml:{style:Wv},mx:{style:Wv},my:{style:Wv},margin:{style:Wv},marginTop:{style:Wv},marginRight:{style:Wv},marginBottom:{style:Wv},marginLeft:{style:Wv},marginX:{style:Wv},marginY:{style:Wv},marginInline:{style:Wv},marginInlineStart:{style:Wv},marginInlineEnd:{style:Wv},marginBlock:{style:Wv},marginBlockStart:{style:Wv},marginBlockEnd:{style:Wv},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:sy},rowGap:{style:cy},columnGap:{style:uy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:py},maxWidth:{style:my},minWidth:{transform:py},height:{transform:py},maxHeight:{transform:py},minHeight:{transform:py},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function xy(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Dv(r,l)||{};if(u)return u(o);return Pv(o,t,(t=>{let r=Lv(c,s,t);return t===r&&"string"==typeof t&&(r=Lv(c,s,`${e}${"default"===t?"":qi(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:yy;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=Av(s,e(r,o,i,a));else{const e=Pv({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=Av(s,e):s[r]=t({sx:o,theme:i})}else s=Av(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Sy=xy();Sy.filterProps=["sx"];var Ey=Sy;function Cy(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:{}}const wy=["breakpoints","palette","spacing","shape"];function Ry(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=It(e,wy),l=wv(r),s=function(e=8){if(e.mui)return e;const t=zv({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=ci({breakpoints:l,direction:"ltr",components:{},palette:vt({mode:"light"},n),spacing:s,shape:vt({},Rv,i)},a);return u.applyStyles=Cy,u=t.reduce(((e,t)=>ci(e,t)),u),u.unstable_sxConfig=vt({},yy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ey({sx:e,theme:this})},u}var Ay=Object.freeze({__proto__:null,default:Ry,private_createBreakpoints:wv,unstable_applyStyles:Cy});function Iy(e=null){const t=x.useContext(Vo);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const My=Ry();const Py=["sx"];function Dy(e){const{sx:t}=e,r=It(e,Py),{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:yy;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 si(r)?vt({},n,r):n}:vt({},n,t),vt({},o,{sx:i})}var Ly=Object.freeze({__proto__:null,default:Ey,extendSxProp:Dy,unstable_createStyleFunctionSx:xy,unstable_defaultSxConfig:yy});const ky=["className","component"];function Oy(e){if(e.type)return e;if("#"===e.charAt(0))return Oy(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(fr(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(fr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function _y(e,t){return e=Oy(e),t=function(e,t=0,r=1){return da(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)}var Ty=x.createContext(null);function qy(){return x.useContext(Ty)}var Ny="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Fy(e){const{children:t,theme:r}=e,n=qy(),o=x.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return vt({},e,t)}(n,r);return null!=e&&(e[Ny]=null!==n),e}),[r,n]);return Pl.jsx(Ty.Provider,{value:o,children:t})}const jy=["value"],zy=x.createContext();function Hy(e){let{value:t}=e,r=It(e,jy);return Pl.jsx(zy.Provider,vt({value:null==t||t},r))}const By=x.createContext(void 0);function $y({value:e,children:t}){return Pl.jsx(By.Provider,{value:e,children:t})}function Wy({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?oa(o.defaultProps,n):o.styleOverrides||o.variants?n:oa(o,n)}({props:e,name:t,theme:{components:x.useContext(By)}})}const Vy={};function Gy(e,t,r,n=!1){return x.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?vt({},t,{[e]:i}):i;return n?()=>a:a}return vt({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Uy(e){const{children:t,theme:r,themeId:n}=e,o=Iy(Vy),i=qy()||Vy,a=Gy(n,o,r),l=Gy(n,i,r,!0),s="rtl"===a.direction;return Pl.jsx(Fy,{theme:l,children:Pl.jsx(Vo.Provider,{value:a,children:Pl.jsx(Hy,{value:s,children:Pl.jsx($y,{value:null==a?void 0:a.components,children:t})})})})}var Yy={},Ky={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ky);var Xy=Ky.exports,Jy=xt(mr),Zy=xt(pa),Qy=Xy;Object.defineProperty(Yy,"__esModule",{value:!0});var ex=Yy.alpha=fx;Yy.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=sx(e),a=sx(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return cx({type:"rgb",values:l})},Yy.colorChannel=void 0;var tx=Yy.darken=mx;Yy.decomposeColor=sx,Yy.emphasize=gx;var rx=Yy.getContrastRatio=function(e,t){const r=px(e),n=px(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Yy.getLuminance=px,Yy.hexToRgb=lx,Yy.hslToRgb=dx;var nx=Yy.lighten=hx;Yy.private_safeAlpha=function(e,t,r){try{return fx(e,t)}catch(t){return e}},Yy.private_safeColorChannel=void 0,Yy.private_safeDarken=function(e,t,r){try{return mx(e,t)}catch(t){return e}},Yy.private_safeEmphasize=function(e,t,r){try{return gx(e,t)}catch(t){return e}},Yy.private_safeLighten=function(e,t,r){try{return hx(e,t)}catch(t){return e}},Yy.recomposeColor=cx,Yy.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=sx(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var ox=Qy(Jy),ix=Qy(Zy);function ax(e,t=0,r=1){return(0,ix.default)(e,t,r)}function lx(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 sx(e){if(e.type)return e;if("#"===e.charAt(0))return sx(lx(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,ox.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,ox.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const ux=e=>{const t=sx(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Yy.colorChannel=ux;function cx(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 dx(e){e=sx(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),cx({type:l,values:s})}function px(e){let t="hsl"===(e=sx(e)).type||"hsla"===e.type?sx(dx(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 fx(e,t){return e=sx(e),t=ax(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,cx(e)}function mx(e,t){if(e=sx(e),t=ax(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 cx(e)}function hx(e,t){if(e=sx(e),t=ax(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 cx(e)}function gx(e,t=.15){return px(e)>.5?mx(e,t):hx(e,t)}Yy.private_safeColorChannel=(e,t)=>{try{return ux(e)}catch(t){return e}};var bx={black:"#000",white:"#fff"};var vx={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var yx={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var xx={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"};var Sx={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"};var Ex={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"};var Cx={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var wx={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"};const Rx=["mode","contrastThreshold","tonalOffset"],Ax={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:bx.white,default:bx.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}},Ix={text:{primary:bx.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:bx.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 Mx(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=nx(e.main,o):"dark"===t&&(e.dark=tx(e.main,i)))}function Px(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=It(e,Rx),i=e.primary||function(e="light"){return"dark"===e?{main:Ex[200],light:Ex[50],dark:Ex[400]}:{main:Ex[700],light:Ex[400],dark:Ex[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:yx[200],light:yx[50],dark:yx[400]}:{main:yx[500],light:yx[300],dark:yx[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:xx[500],light:xx[300],dark:xx[700]}:{main:xx[700],light:xx[400],dark:xx[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Cx[400],light:Cx[300],dark:Cx[700]}:{main:Cx[700],light:Cx[500],dark:Cx[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:wx[400],light:wx[300],dark:wx[700]}:{main:wx[800],light:wx[500],dark:wx[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Sx[400],light:Sx[300],dark:Sx[700]}:{main:"#ed6c02",light:Sx[500],dark:Sx[900]}}(t);function d(e){return rx(e,Ix.text.primary)>=r?Ix.text.primary:Ax.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=vt({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(fr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(fr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Mx(e,"light",o,n),Mx(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ix,light:Ax};return ci(vt({common:vt({},bx),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:vx,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Dx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Lx={textTransform:"uppercase"},kx='"Roboto", "Helvetica", "Arial", sans-serif';function Ox(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=kx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=It(r,Dx),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return vt({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===kx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Lx),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Lx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ci(vt({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function _x(...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(",")}var Tx=["none",_x(0,2,1,-1,0,1,1,0,0,1,3,0),_x(0,3,1,-2,0,2,2,0,0,1,5,0),_x(0,3,3,-2,0,3,4,0,0,1,8,0),_x(0,2,4,-1,0,4,5,0,0,1,10,0),_x(0,3,5,-1,0,5,8,0,0,1,14,0),_x(0,3,5,-1,0,6,10,0,0,1,18,0),_x(0,4,5,-2,0,7,10,1,0,2,16,1),_x(0,5,5,-3,0,8,10,1,0,3,14,2),_x(0,5,6,-3,0,9,12,1,0,3,16,2),_x(0,6,6,-3,0,10,14,1,0,4,18,3),_x(0,6,7,-4,0,11,15,1,0,4,20,3),_x(0,7,8,-4,0,12,17,2,0,5,22,4),_x(0,7,8,-4,0,13,19,2,0,5,24,4),_x(0,7,9,-4,0,14,21,2,0,5,26,4),_x(0,8,9,-5,0,15,22,2,0,6,28,5),_x(0,8,10,-5,0,16,24,2,0,6,30,5),_x(0,8,11,-5,0,17,26,2,0,6,32,5),_x(0,9,11,-5,0,18,28,2,0,7,34,6),_x(0,9,12,-6,0,19,29,2,0,7,36,6),_x(0,10,13,-6,0,20,31,3,0,8,38,7),_x(0,10,13,-6,0,21,33,3,0,8,40,7),_x(0,10,14,-6,0,22,35,3,0,8,42,7),_x(0,11,14,-7,0,23,36,3,0,9,44,8),_x(0,11,15,-7,0,24,38,3,0,9,46,8)];const qx=["duration","easing","delay"],Nx={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)"},Fx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jx(e){return`${Math.round(e)}ms`}function zx(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Hx(e){const t=vt({},Nx,e.easing),r=vt({},Fx,e.duration);return vt({getAutoHeightDuration:zx,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return It(n,qx),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:jx(o)} ${i} ${"string"==typeof a?a:jx(a)}`)).join(",")}},e,{easing:t,duration:r})}var Bx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const $x=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Wx(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=It(e,$x);if(e.vars)throw new Error(fr(18));const l=Px(n),s=Ry(e);let u=ci(s,{mixins:(c=s.breakpoints,d=r,vt({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Tx.slice(),typography:Ox(l,i),transitions:Hx(o),zIndex:vt({},Bx)});var c,d;return u=ci(u,a),u=t.reduce(((e,t)=>ci(e,t)),u),u.unstable_sxConfig=vt({},yy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ey({sx:e,theme:this})},u}var Vx,Gx=Wx(),Ux={},Yx={exports:{}};var Kx,Xx={exports:{}};var Jx=xt(li),Zx=xt(pi),Qx=xt(Ni),eS=xt(Ti),tS=xt(Ay),rS=xt(Ly),nS=Xy;Object.defineProperty(Ux,"__esModule",{value:!0});var oS=Ux.default=function(e={}){const{themeId:t,defaultTheme:r=gS,rootShouldForwardProp:n=hS,slotShouldForwardProp:o=hS}=e,i=e=>(0,cS.default)((0,iS.default)({},e,{theme:vS((0,iS.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,lS.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=yS(bS(s))}=a,p=(0,aS.default)(a,fS),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=hS;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,lS.default)(e,(0,iS.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,sS.isPlainObject)(e)?n=>xS(e,(0,iS.default)({},n,{theme:vS({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=vS((0,iS.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=xS(r,(0,iS.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=vS((0,iS.default)({},e,{defaultTheme:r,themeId:t}));return xS({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,iS.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Ux.shouldForwardProp=hS,Ux.systemDefaultTheme=void 0;var iS=nS((Vx||(Vx=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}(Yx)),Yx.exports)),aS=nS((Kx||(Kx=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Xx)),Xx.exports)),lS=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=mS(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}(Jx),sS=Zx;nS(Qx),nS(eS);var uS=nS(tS),cS=nS(rS);const dS=["ownerState"],pS=["variants"],fS=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function mS(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(mS=function(e){return e?r:t})(e)}function hS(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const gS=Ux.systemDefaultTheme=(0,uS.default)(),bS=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function vS({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function yS(e){return e?(t,r)=>r[e]:null}function xS(e,t){let{ownerState:r}=t,n=(0,aS.default)(t,dS);const o="function"==typeof e?e((0,iS.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>xS(e,(0,iS.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,aS.default)(o,pS);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,iS.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,iS.default)({ownerState:r},n,r)):e.style))})),t}return o}var SS=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var ES=oS({themeId:Ev,defaultTheme:Gx,rootShouldForwardProp:SS});const CS=["theme"];function wS(e){let{theme:t}=e,r=It(e,CS);const n=t[Ev];return Pl.jsx(Uy,vt({},r,{themeId:n?Ev:void 0,theme:n||t}))}var RS={exports:{}};
102
102
  /*!
103
103
  * CSSJanus. https://github.com/cssjanus/cssjanus
104
104
  *
@@ -117,7 +117,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
117
117
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
118
118
  * See the License for the specific language governing permissions and
119
119
  * limitations under the License.
120
- */!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="direction\\s*:\\s*",a="['\"]?\\s*",l="(^|[^a-zA-Z])",s="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+r+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+s+g+"[^;}]+;?)","gi"),C=new RegExp("("+s+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(l+"(left)"+h+b+g,"gi"),I=new RegExp(l+"(right)"+h+b+g,"gi"),M=new RegExp(l+"(left)"+v,"gi"),P=new RegExp(l+"(right)"+v,"gi"),L=new RegExp(l+"(ltr)"+v,"gi"),D=new RegExp(l+"(rtl)"+v,"gi"),k=new RegExp(l+"([ns]?)e-resize","gi"),O=new RegExp(l+"([ns]?)w-resize","gi"),T=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),_=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),j=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function G(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 V(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 U(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?V(n)+" / "+V(o):V(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(E,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),l=new n(S,t);return r=l.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(L,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(M,"$1"+e).replace(P,"$1left").replace(x,"right")),r=r.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(I,"$1left").replace(x,"right").replace(k,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(j,K).replace(z,J).replace(H,J).replace($,K).replace(B,X).replace(W,X).replace(T,"$1$2$3$8$5$6$7$4$9").replace(_,"$1$2$3$8$5$6$7$4$9").replace(q,G).replace(N,G),r=i.detokenize(a.detokenize(l.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)}(SE,SE.exports);var EE=xt(SE.exports),CE="comm",wE="rule",RE="decl",AE=Math.abs,IE=String.fromCharCode;function ME(e){return e.trim()}function PE(e,t,r){return e.replace(t,r)}function LE(e,t,r){return e.indexOf(t,r)}function DE(e,t){return 0|e.charCodeAt(t)}function kE(e,t,r){return e.slice(t,r)}function OE(e){return e.length}function TE(e,t){return t.push(e),e}var _E,qE,NE,FE,jE,zE=1,HE=1,$E=0,BE=0,WE=0,GE="";function VE(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:zE,column:HE,length:a,return:"",siblings:l}}function UE(){return WE=BE>0?DE(GE,--BE):0,HE--,10===WE&&(HE=1,zE--),WE}function YE(){return WE=BE<$E?DE(GE,BE++):0,HE++,10===WE&&(HE=1,zE++),WE}function KE(){return DE(GE,BE)}function XE(){return BE}function JE(e,t){return kE(GE,e,t)}function ZE(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 QE(e){return ME(JE(BE-1,rC(91===e?e+2:40===e?e+1:e)))}function eC(e){for(;(WE=KE())&&WE<33;)YE();return ZE(e)>2||ZE(WE)>3?"":" "}function tC(e,t){for(;--t&&YE()&&!(WE<48||WE>102||WE>57&&WE<65||WE>70&&WE<97););return JE(e,XE()+(t<6&&32==KE()&&32==YE()))}function rC(e){for(;YE();)switch(WE){case e:return BE;case 34:case 39:34!==e&&39!==e&&rC(WE);break;case 40:41===e&&rC(e);break;case 92:YE()}return BE}function nC(e,t){for(;YE()&&e+WE!==57&&(e+WE!==84||47!==KE()););return"/*"+JE(t,BE-1)+"*"+IE(47===e?e:YE())}function oC(e){for(;!ZE(KE());)YE();return JE(e,BE)}function iC(e){return function(e){return GE="",e}(aC("",null,null,null,[""],e=function(e){return zE=HE=1,$E=OE(GE=e),BE=0,[]}(e),0,[0],e))}function aC(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=YE()){case 40:if(108!=m&&58==DE(C,d-1)){-1!=LE(C+=PE(QE(v),"&","&\f"),"&\f",AE(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=QE(v);break;case 9:case 10:case 13:case 32:C+=eC(m);break;case 92:C+=tC(XE()-1,7);continue;case 47:switch(KE()){case 42:case 47:TE(sC(nC(YE(),XE()),t,r,s),s),5!=ZE(m||1)&&5!=ZE(KE()||1)||!OE(C)||" "===kE(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*h:l[u++]=OE(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=PE(C,/\f/g,"")),f>0&&(OE(C)-d||0===h&&47===m)&&TE(f>32?uC(C+";",n,r,d-1,s):uC(PE(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(TE(E=lC(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)aC(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===DE(C,3)?100:p){case 100:case 108:case 109:case 115:aC(e,E,E,n&&TE(lC(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:aC(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+OE(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==UE())continue;switch(C+=IE(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(OE(C)-1)*b,b=1;break;case 64:45===KE()&&(C+=QE(YE())),p=KE(),c=d=OE(y=C+=oC(XE())),v++;break;case 45:45===m&&2==OE(C)&&(h=0)}}return i}function lC(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=function(e){return e.length}(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=kE(e,p+1,p=AE(g=a[h])),x=e;v<m;++v)(x=ME(g>0?f[v]+" "+y:PE(y,/&\f/g,f[v])))&&(s[b++]=x);return VE(e,t,r,0===o?wE:l,s,u,c,d)}function sC(e,t,r,n){return VE(e,t,r,CE,IE(WE),kE(e,2,-2),0,n)}function uC(e,t,r,n,o){return VE(e,t,r,RE,kE(e,0,n),kE(e,n+1,-1),n,o)}function cC(e,t,r){switch(e.type){case"@import":case RE:case CE:return e.return=e.return||e.value;case wE:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===CE&&(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),cC);return OE(n)?e.return=e.value+"{"+n+"}":""}function dC(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===wE&&(!e.parent||"@media"===e.parent.type||e.parent.type===wE)){var o=EE.transform(cC(e));e.children=o?iC(o)[0].children:[],e.return=""}}Object.defineProperty(dC,"name",{value:"stylisRTLPlugin"}),function(e){e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive"}(_E||(_E={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(qE||(qE={})),function(e){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.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown"}(NE||(NE={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(FE||(FE={})),function(e){e.A="ascending",e.D="descending"}(jE||(jE={}));const pC=[0,0],fC={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},mC={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...fC,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},hC=12,gC=14,bC=16,vC=24,yC=3,xC=300,SC=400,EC=600,CC=700,wC={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};It(mC.GREYSCALE_0,.05),It(mC.GREEN_PALE,.5),It(mC.BLUE_PALE,.5),It(mC.GREEN_PALE,.5),It(mC.BLUE_PALE,.5),It(mC.GREEN_PALE,.5),It(mC.BLUE_PALE,.5);var RC;function AC(){return AC=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},AC.apply(null,arguments)}It(mC.GREEN_PALE,.5),It(mC.BLUE_PALE,.5),It(mC.GREEN_PALE,.5),It(mC.BLUE_PALE,.5);var IC,MC=function(e){return x.createElement("svg",AC({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),RC||(RC=x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function PC(){return PC=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},PC.apply(null,arguments)}var LC=function(e){return x.createElement("svg",PC({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),IC||(IC=x.createElement("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.345z"})))};function DC({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var kC=(e={})=>S.createElement(DC,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.createElement("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"}))),OC=(e={})=>S.createElement(DC,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),TC=(e={})=>S.createElement(DC,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),_C=(e={})=>S.createElement(DC,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.createElement("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"}))),qC=({className:e})=>S.createElement(DC,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.createElement("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"}),S.createElement("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 NC(e){return zx(e)}var FC=da("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const jC=["center","classes","className"];let zC,HC,$C,BC,WC=e=>e;const GC=ri(zC||(zC=WC`
120
+ */!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="direction\\s*:\\s*",a="['\"]?\\s*",l="(^|[^a-zA-Z])",s="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+r+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+s+g+"[^;}]+;?)","gi"),C=new RegExp("("+s+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(l+"(left)"+h+b+g,"gi"),I=new RegExp(l+"(right)"+h+b+g,"gi"),M=new RegExp(l+"(left)"+v,"gi"),P=new RegExp(l+"(right)"+v,"gi"),D=new RegExp(l+"(ltr)"+v,"gi"),L=new RegExp(l+"(rtl)"+v,"gi"),k=new RegExp(l+"([ns]?)e-resize","gi"),O=new RegExp(l+"([ns]?)w-resize","gi"),_=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),T=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),j=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),$=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function V(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 G(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 U(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?G(n)+" / "+G(o):G(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(E,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),l=new n(S,t);return r=l.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(D,"$1"+e).replace(L,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(M,"$1"+e).replace(P,"$1left").replace(x,"right")),r=r.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(I,"$1left").replace(x,"right").replace(k,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(j,K).replace(z,J).replace(H,J).replace(B,K).replace($,X).replace(W,X).replace(_,"$1$2$3$8$5$6$7$4$9").replace(T,"$1$2$3$8$5$6$7$4$9").replace(q,V).replace(N,V),r=i.detokenize(a.detokenize(l.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)}(RS,RS.exports);var AS=yt(RS.exports),IS="comm",MS="rule",PS="decl",DS=Math.abs,LS=String.fromCharCode;function kS(e){return e.trim()}function OS(e,t,r){return e.replace(t,r)}function _S(e,t,r){return e.indexOf(t,r)}function TS(e,t){return 0|e.charCodeAt(t)}function qS(e,t,r){return e.slice(t,r)}function NS(e){return e.length}function FS(e,t){return t.push(e),e}var jS,zS,HS,BS,$S=1,WS=1,VS=0,GS=0,US=0,YS="";function KS(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:$S,column:WS,length:a,return:"",siblings:l}}function XS(){return US=GS>0?TS(YS,--GS):0,WS--,10===US&&(WS=1,$S--),US}function JS(){return US=GS<VS?TS(YS,GS++):0,WS++,10===US&&(WS=1,$S++),US}function ZS(){return TS(YS,GS)}function QS(){return GS}function eE(e,t){return qS(YS,e,t)}function tE(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 rE(e){return kS(eE(GS-1,iE(91===e?e+2:40===e?e+1:e)))}function nE(e){for(;(US=ZS())&&US<33;)JS();return tE(e)>2||tE(US)>3?"":" "}function oE(e,t){for(;--t&&JS()&&!(US<48||US>102||US>57&&US<65||US>70&&US<97););return eE(e,QS()+(t<6&&32==ZS()&&32==JS()))}function iE(e){for(;JS();)switch(US){case e:return GS;case 34:case 39:34!==e&&39!==e&&iE(US);break;case 40:41===e&&iE(e);break;case 92:JS()}return GS}function aE(e,t){for(;JS()&&e+US!==57&&(e+US!==84||47!==ZS()););return"/*"+eE(t,GS-1)+"*"+LS(47===e?e:JS())}function lE(e){for(;!tE(ZS());)JS();return eE(e,GS)}function sE(e){return function(e){return YS="",e}(uE("",null,null,null,[""],e=function(e){return $S=WS=1,VS=NS(YS=e),GS=0,[]}(e),0,[0],e))}function uE(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=JS()){case 40:if(108!=m&&58==TS(C,d-1)){-1!=_S(C+=OS(rE(v),"&","&\f"),"&\f",DS(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=rE(v);break;case 9:case 10:case 13:case 32:C+=nE(m);break;case 92:C+=oE(QS()-1,7);continue;case 47:switch(ZS()){case 42:case 47:FS(dE(aE(JS(),QS()),t,r,s),s),5!=tE(m||1)&&5!=tE(ZS()||1)||!NS(C)||" "===qS(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*h:l[u++]=NS(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=OS(C,/\f/g,"")),f>0&&(NS(C)-d||0===h&&47===m)&&FS(f>32?pE(C+";",n,r,d-1,s):pE(OS(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(FS(E=cE(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)uE(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===TS(C,3)?100:p){case 100:case 108:case 109:case 115:uE(e,E,E,n&&FS(cE(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:uE(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+NS(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==XS())continue;switch(C+=LS(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(NS(C)-1)*b,b=1;break;case 64:45===ZS()&&(C+=rE(JS())),p=ZS(),c=d=NS(y=C+=lE(QS())),v++;break;case 45:45===m&&2==NS(C)&&(h=0)}}return i}function cE(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=function(e){return e.length}(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=qS(e,p+1,p=DS(g=a[h])),x=e;v<m;++v)(x=kS(g>0?f[v]+" "+y:OS(y,/&\f/g,f[v])))&&(s[b++]=x);return KS(e,t,r,0===o?MS:l,s,u,c,d)}function dE(e,t,r,n){return KS(e,t,r,IS,LS(US),qS(e,2,-2),0,n)}function pE(e,t,r,n,o){return KS(e,t,r,PS,qS(e,0,n),qS(e,n+1,-1),n,o)}function fE(e,t,r){switch(e.type){case"@import":case PS:case IS:return e.return=e.return||e.value;case MS:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===IS&&(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),fE);return NS(n)?e.return=e.value+"{"+n+"}":""}function mE(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===MS&&(!e.parent||"@media"===e.parent.type||e.parent.type===MS)){var o=AS.transform(fE(e));e.children=o?sE(o)[0].children:[],e.return=""}}Object.defineProperty(mE,"name",{value:"stylisRTLPlugin"}),function(e){e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive"}(jS||(jS={})),function(e){e[e.Select=0]="Select",e[e.SelectMouseDown=1]="SelectMouseDown",e[e.SelectMouseUp=2]="SelectMouseUp",e[e.SelectMultiAdd=3]="SelectMultiAdd",e[e.SelectMultiEnd=4]="SelectMultiEnd",e[e.Reset=5]="Reset",e[e.Clear=6]="Clear",e[e.UpdatePageRows=7]="UpdatePageRows"}(zS||(zS={})),function(e){e.A="ascending",e.D="descending"}(HS||(HS={})),function(e){e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2"}(BS||(BS={}));const hE=[0,0],gE={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},bE={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...gE,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},vE=12,yE=14,xE=16,SE=24,EE=3,CE=300,wE=400,RE=600,AE=700,IE={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};At(bE.GREYSCALE_0,.05),At(bE.GREEN_PALE,.5),At(bE.BLUE_PALE,.5),At(bE.GREEN_PALE,.5),At(bE.BLUE_PALE,.5),At(bE.GREEN_PALE,.5),At(bE.BLUE_PALE,.5);var ME;function PE(){return PE=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},PE.apply(null,arguments)}At(bE.GREEN_PALE,.5),At(bE.BLUE_PALE,.5),At(bE.GREEN_PALE,.5),At(bE.BLUE_PALE,.5);var DE,LE=function(e){return x.createElement("svg",PE({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),ME||(ME=x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function kE(){return kE=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},kE.apply(null,arguments)}var OE=function(e){return x.createElement("svg",kE({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),DE||(DE=x.createElement("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.345z"})))};function _E({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var TE=(e={})=>S.createElement(_E,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.createElement("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"}))),qE=(e={})=>S.createElement(_E,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),NE=(e={})=>S.createElement(_E,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),FE=(e={})=>S.createElement(_E,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.createElement("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"}))),jE=({className:e})=>S.createElement(_E,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.createElement("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"}),S.createElement("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 zE(e){return Wy(e)}var HE=ca("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const BE=["center","classes","className"];let $E,WE,VE,GE,UE=e=>e;const YE=ti($E||($E=UE`
121
121
  0% {
122
122
  transform: scale(0);
123
123
  opacity: 0.1;
@@ -127,7 +127,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
127
127
  transform: scale(1);
128
128
  opacity: 0.3;
129
129
  }
130
- `)),VC=ri(HC||(HC=WC`
130
+ `)),KE=ti(WE||(WE=UE`
131
131
  0% {
132
132
  opacity: 1;
133
133
  }
@@ -135,7 +135,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
135
135
  100% {
136
136
  opacity: 0;
137
137
  }
138
- `)),UC=ri($C||($C=WC`
138
+ `)),XE=ti(VE||(VE=UE`
139
139
  0% {
140
140
  transform: scale(1);
141
141
  }
@@ -147,7 +147,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
147
147
  100% {
148
148
  transform: scale(1);
149
149
  }
150
- `)),YC=vE("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),KC=vE((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=x.useState(!1),p=ha(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=ha(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),x.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Ll.jsx("span",{className:p,style:f,children:Ll.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(BC||(BC=WC`
150
+ `)),JE=ES("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ZE=ES((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=x.useState(!1),p=ma(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=ma(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),x.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Pl.jsx("span",{className:p,style:f,children:Pl.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(GE||(GE=UE`
151
151
  opacity: 0;
152
152
  position: absolute;
153
153
 
@@ -190,4 +190,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
190
190
  animation-iteration-count: infinite;
191
191
  animation-delay: 200ms;
192
192
  }
193
- `),FC.rippleVisible,GC,550,(({theme:e})=>e.transitions.easing.easeInOut),FC.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),FC.child,FC.childLeaving,VC,550,(({theme:e})=>e.transitions.easing.easeInOut),FC.childPulsate,UC,(({theme:e})=>e.transitions.easing.easeInOut));var XC=x.forwardRef((function(e,t){const r=NC({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Mt(r,jC),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=Ki(),f=x.useRef(null),m=x.useRef(null),h=x.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,Ll.jsx(KC,{classes:{ripple:ha(o.ripple,FC.ripple),rippleVisible:ha(o.rippleVisible,FC.rippleVisible),ripplePulsate:ha(o.ripplePulsate,FC.ripplePulsate),child:ha(o.child,FC.child),childLeaving:ha(o.childLeaving,FC.childLeaving),childPulsate:ha(o.childPulsate,FC.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.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 l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=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,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ll.jsx(YC,yt({className:ha(FC.root,o.root,i),ref:m},a,{children:Ll.jsx(Fu,{component:null,exit:!0,children:l})}))}));function JC(e){return ca("MuiButtonBase",e)}var ZC=da("MuiButtonBase",["root","disabled","focusVisible"]);const QC=["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"],ew=vE("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"},[`&.${ZC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),tw=x.forwardRef((function(e,t){const r=NC({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:M=0,TouchRippleProps:P,touchRippleRef:L,type:D}=r,k=Mt(r,QC),O=x.useRef(null),T=x.useRef(null),_=Gi(T,L),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=oa(),[z,H]=x.useState(!1);s&&z&&H(!1),x.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[$,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!s;function G(e,t,r=c){return Wi((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}x.useEffect((()=>{z&&d&&!u&&$&&T.current.pulsate()}),[u,d,z,$]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=G("start",I),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=Wi((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=Wi((e=>{d&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Wi((e=>{d&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(k.href||k.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===D?"button":D,le.disabled=s):(k.href||k.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Gi(t,j,O),ue=yt({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=aa({root:["root",t&&"disabled",r&&"focusVisible"]},JC,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Ll.jsxs(ew,yt({as:ae,className:ha(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:M,type:D},le,k,{children:[i,W?Ll.jsx(XC,yt({ref:_,center:o},P)):null]}))}));var rw=tw;var nw=da("MuiBox",["root"]);const ow=zS(),iw=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ai("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(vx),a=x.forwardRef((function(e,a){const l=function(e=wx){return Cx(e)}(r),s=Ax(e),{className:u,component:c="div"}=s,d=Mt(s,Mx);return Ll.jsx(i,yt({as:c,ref:a,className:ha(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:vy,defaultTheme:ow,defaultClassName:nw.root,generateClassName:sa.generate});var aw=iw;var lw=da("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var sw=x.createContext({});function uw(e){return ca("MuiListItemIcon",e)}var cw=da("MuiListItemIcon",["root","alignItemsFlexStart"]);const dw=["className"],pw=vE("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})=>yt({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var fw=x.forwardRef((function(e,t){const r=NC({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Mt(r,dw),i=yt({},r,{alignItems:x.useContext(sw).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return aa({root:["root","flex-start"===t&&"alignItemsFlexStart"]},uw,r)})(i);return Ll.jsx(pw,yt({className:ha(a.root,n),ownerState:i,ref:t},o))}));var mw=da("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function hw(e){return ca("MuiMenuItem",e)}var gw=da("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const bw=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],vw=vE(rw,{shouldForwardProp:e=>bE(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})=>yt({},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"}},[`&.${gw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xx(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Xx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xx(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})`:Xx(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${lw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${lw.inset}`]:{marginLeft:52},[`& .${mw.root}`]:{marginTop:0,marginBottom:0},[`& .${mw.inset}`]:{paddingLeft:36},[`& .${cw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&yt({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${cw.root} svg`]:{fontSize:"1.25rem"}}))));var yw=x.forwardRef((function(e,t){const r=NC({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=Mt(r,bw),f=x.useContext(sw),m=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=x.useRef(null);Bi((()=>{n&&h.current&&h.current.focus()}),[n]);const g=yt({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return yt({},a,aa({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},hw,a))})(r),v=Gi(h,t);let y;return r.disabled||(y=void 0!==c?c:-1),Ll.jsx(sw.Provider,{value:m,children:Ll.jsx(vw,yt({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:ha(b.focusVisible,s),className:ha(b.root,d)},p,{ownerState:g,classes:b}))})}));var xw=x.createContext();function Sw(e){return ca("MuiTable",e)}da("MuiTable",["root","stickyHeader"]);const Ew=["className","component","padding","size","stickyHeader"],Cw=vE("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>yt({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":yt({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),ww="table",Rw=x.forwardRef((function(e,t){const r=NC({props:e,name:"MuiTable"}),{className:n,component:o=ww,padding:i="normal",size:a="medium",stickyHeader:l=!1}=r,s=Mt(r,Ew),u=yt({},r,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:r}=e;return aa({root:["root",r&&"stickyHeader"]},Sw,t)})(u),d=x.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Ll.jsx(xw.Provider,{value:d,children:Ll.jsx(Cw,yt({as:o,role:o===ww?null:"table",ref:t,className:ha(c.root,n),ownerState:u},s))})}));var Aw=Rw;var Iw=x.createContext();function Mw(e){return ca("MuiTableBody",e)}da("MuiTableBody",["root"]);const Pw=["className","component"],Lw=vE("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Dw={variant:"body"},kw="tbody";var Ow=x.forwardRef((function(e,t){const r=NC({props:e,name:"MuiTableBody"}),{className:n,component:o=kw}=r,i=Mt(r,Pw),a=yt({},r,{component:o}),l=(e=>{const{classes:t}=e;return aa({root:["root"]},Mw,t)})(a);return Ll.jsx(Iw.Provider,{value:Dw,children:Ll.jsx(Lw,yt({className:ha(l.root,n),as:o,ref:t,role:o===kw?null:"rowgroup",ownerState:a},i))})}));function Tw(e){return ca("MuiTableCell",e)}var _w=da("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const qw=["align","className","component","padding","scope","size","sortDirection","variant"],Nw=vE("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ni(r.size)}`],"normal"!==r.padding&&t[`padding${Ni(r.padding)}`],"inherit"!==r.align&&t[`align${Ni(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>yt({},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?Qx(Xx(e.palette.divider,1),.88):Jx(Xx(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",[`&.${_w.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}))),Fw=x.forwardRef((function(e,t){const r=NC({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=r,d=Mt(r,qw),p=x.useContext(xw),f=x.useContext(Iw),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=yt({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return aa({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Ni(n)}`,"normal"!==o&&`padding${Ni(o)}`,`size${Ni(i)}`]},Tw,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Ll.jsx(Nw,yt({as:h,ref:t,className:ha(y.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var jw=Fw;function zw(e){return ca("MuiTableContainer",e)}da("MuiTableContainer",["root"]);const Hw=["className","component"],$w=vE("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var Bw=x.forwardRef((function(e,t){const r=NC({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Mt(r,Hw),a=yt({},r,{component:o}),l=(e=>{const{classes:t}=e;return aa({root:["root"]},zw,t)})(a);return Ll.jsx($w,yt({ref:t,as:o,className:ha(l.root,n),ownerState:a},i))}));function Ww(e){return ca("MuiTableHead",e)}da("MuiTableHead",["root"]);const Gw=["className","component"],Vw=vE("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Uw={variant:"head"},Yw="thead";var Kw=x.forwardRef((function(e,t){const r=NC({props:e,name:"MuiTableHead"}),{className:n,component:o=Yw}=r,i=Mt(r,Gw),a=yt({},r,{component:o}),l=(e=>{const{classes:t}=e;return aa({root:["root"]},Ww,t)})(a);return Ll.jsx(Iw.Provider,{value:Uw,children:Ll.jsx(Vw,yt({as:o,className:ha(l.root,n),ref:t,role:o===Yw?null:"rowgroup",ownerState:a},i))})}));function Xw(e){return ca("MuiTableRow",e)}var Jw=da("MuiTableRow",["root","selected","hover","head","footer"]);const Zw=["className","component","hover","selected"],Qw=vE("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,[`&.${Jw.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Jw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xx(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}))`:Xx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),eR="tr",tR=x.forwardRef((function(e,t){const r=NC({props:e,name:"MuiTableRow"}),{className:n,component:o=eR,hover:i=!1,selected:a=!1}=r,l=Mt(r,Zw),s=x.useContext(Iw),u=yt({},r,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return aa({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Xw,t)})(u);return Ll.jsx(Qw,yt({as:o,ref:t,className:ha(c.root,n),role:o===eR?null:"row",ownerState:u},l))}));var rR=tR,nR=(e={})=>S.createElement(DC,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:mC.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const oR={MuiAccordion:{styleOverrides:{root:{backgroundColor:mC.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:mC.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(MC,{"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 ${mC.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:mC.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${mC.MISC_FOCUS_BORDER}`,borderRadius:yC,backgroundColor:mC.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 ${mC.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:mC.WHITE,color:mC.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:yC},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${mC.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:mC.GREYSCALE_0_15,backgroundColor:mC.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:mC.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${mC.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:mC.GREEN_PALE},"&:active":{backgroundColor:mC.GREEN_DARK},"&.Mui-focusVisible":{borderColor:mC.GREEN_PALE,boxShadow:`0 0 0 3px ${Lx(mC.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:mC.BLUE_PALE},"&:active":{backgroundColor:mC.BLUE_DARK},"&.Mui-focusVisible":{borderColor:mC.BLUE_PALE,boxShadow:`0 0 0 3px ${Lx(mC.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:yC,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:mC.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${mC.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:mC.GREYSCALE_0_15,backgroundColor:mC.GREYSCALE_100_60,"&:active":{backgroundColor:mC.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:mC.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${mC.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:mC.PURPLE,"&.Mui-focusVisible":{borderColor:mC.PURPLE,boxShadow:`0 0 0 3px ${Lx(mC.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:mC.GREEN,"&.Mui-focusVisible":{borderColor:mC.GREEN,boxShadow:`0 0 0 3px ${Lx(mC.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:mC.BLUE,"&.Mui-focusVisible":{borderColor:mC.BLUE,boxShadow:`0 0 0 3px ${Lx(mC.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:mC.ORANGE,"&.Mui-focusVisible":{borderColor:mC.ORANGE,boxShadow:`0 0 0 3px ${Lx(mC.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:mC.RED,"&.Mui-focusVisible":{borderColor:mC.RED,boxShadow:`0 0 0 3px ${Lx(mC.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:mC.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:mC.PURPLE_PALE},"&:active":{backgroundColor:mC.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:mC.PURPLE_PALE,boxShadow:`0 0 0 3px ${Lx(mC.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:mC.GREEN_PALE},"&:active":{backgroundColor:mC.GREEN_DARK},"&.Mui-focusVisible":{borderColor:mC.GREEN_PALE,boxShadow:`0 0 0 3px ${Lx(mC.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:mC.BLUE_PALE},"&:active":{backgroundColor:mC.BLUE_DARK},"&.Mui-focusVisible":{borderColor:mC.BLUE_PALE,boxShadow:`0 0 0 3px ${Lx(mC.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:mC.ORANGE_PALE},"&:active":{backgroundColor:mC.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:mC.ORANGE_PALE,boxShadow:`0 0 0 3px ${Lx(mC.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:mC.RED_PALE},"&:active":{backgroundColor:mC.RED_DARK},"&.Mui-focusVisible":{borderColor:mC.RED_PALE,boxShadow:`0 0 0 3px ${Lx(mC.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:mC.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:mC.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:yC,boxShadow:`inset 0 0 0 2px ${mC.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(LC,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:hC,borderRadius:yC,color:mC.TEXT_PRIMARY,backgroundColor:mC.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:mC.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${mC.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:mC.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:mC.GREYSCALE_0_05,color:mC.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:mC.GREEN,borderColor:mC.GREEN},"&.MuiChip-outlinedInfo":{color:mC.BLUE,borderColor:mC.BLUE},"&.MuiChip-outlinedWarning":{color:mC.ORANGE,borderColor:mC.ORANGE},"&.MuiChip-outlinedError":{color:mC.RED,borderColor:mC.RED}},outlined:{border:`solid 1px ${mC.GREYSCALE_0_15}`,backgroundColor:mC.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:yC,boxShadow:"none",backgroundColor:mC.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:mC.GREEN,borderColor:mC.GREEN},outlinedSecondary:{color:mC.BLUE,borderColor:mC.BLUE},label:{fontFamily:wC.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(LC,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(MC,{"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:yC},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:yC,fontSize:gC,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:mC.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${mC.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:mC.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:mC.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:mC.GREYSCALE_0_05}}},popupIndicator:{borderRadius:yC,border:`solid 1px ${mC.GREYSCALE_0_15}`,color:mC.GREYSCALE_0_60,marginRight:0,width:vC,height:vC},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${mC.GREYSCALE_0_15}`},clearIndicator:{borderRadius:yC,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:mC.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:gC}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:hC,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:mC.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:mC.GREYSCALE_25,fontSize:hC,fontFamily:wC.FONT_FAMILY,fontWeight:EC,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:mC.TEXT_PRIMARY},"&.Mui-error":{color:mC.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:mC.TEXT_SECONDARY,content:"'(optional)'",fontWeight:SC,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:mC.TEXT_SECONDARY,content:"'(required)'",fontWeight:SC,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:gC,lineHeight:"16px",backgroundColor:mC.WHITE,borderRadius:yC,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${mC.GREYSCALE_0_05}`,borderColor:mC.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${mC.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${mC.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${mC.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${mC.RED}`,boxShadow:`0px 0px 0px 1px ${mC.RED}, inset 0 2px 0 0 ${mC.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${mC.GREYSCALE_0_10}`,borderColor:mC.GREYSCALE_0_10,backgroundColor:mC.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:mC.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:mC.GREYSCALE_0_15,borderRadius:yC,boxShadow:`inset 0 2px 0 0 ${mC.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(MC,{...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:mC.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:mC.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:mC.GREYSCALE_0_03},"&:active":{backgroundColor:mC.GREYSCALE_0_10},"&:focus":{backgroundColor:mC.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${mC.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${mC.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:mC.GREYSCALE_0_30,"&:hover":{backgroundColor:mC.GREYSCALE_0_0,borderColor:mC.GREYSCALE_0_15},"& ~svg":{color:mC.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${mC.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:yC}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:mC.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${mC.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:mC.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:gC,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:hC,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:hC,fontWeight:EC,color:mC.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:EC}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${mC.GREYSCALE_0_15}, 0px 0px 0px 1px ${mC.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(TC,null),checkedIcon:S.createElement(_C,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:mC.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${mC.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:mC.GREEN_PALE,boxShadow:`0 0 0 3px ${Lx(mC.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:mC.BLUE_PALE,boxShadow:`0 0 0 3px ${Lx(mC.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:mC.GREYSCALE_0_20}},"&.Mui-disabled":{fill:mC.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(nR,null),checkedIcon:S.createElement(kC,null),indeterminateIcon:S.createElement(OC,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:yC,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:mC.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:mC.GREYSCALE_0_55,color:mC.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:mC.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:mC.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:mC.GREYSCALE_0_55,"&:hover":{color:mC.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:mC.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:mC.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:gC,color:mC.TEXT_PRIMARY,lineHeight:"16px",fontWeight:EC},secondary:{fontSize:hC,color:mC.GREYSCALE_45,fontWeight:SC,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:gC,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:gC,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:mC.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:hC,borderBottom:`solid 1px ${mC.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:gC,color:mC.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:mC.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:mC.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:mC.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:mC.RED}}},"&.Mui-focusVisible":{backgroundColor:mC.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:mC.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:mC.GREEN,height:"24px","&.Mui-disabled":{color:mC.GREYSCALE_0_15}},rail:{backgroundColor:mC.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${mC.GREYSCALE_0_05}`,borderRadius:yC,boxShadow:`inset 0px 0px 0px 1px ${mC.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${mC.GREYSCALE_0_05}`,borderRadius:yC},thumb:{height:"16px",width:"16px",borderRadius:yC,backgroundColor:mC.WHITE,boxShadow:`0px 1px 2px 0px ${mC.GREYSCALE_0_15}, 0px 0px 0px 1px ${mC.GREYSCALE_0_05}`,"&:hover":{borderRadius:yC,boxShadow:`0 2px 4px 0 ${mC.GREYSCALE_0_30}, 0 0 0 1px ${mC.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${mC.GREYSCALE_0_15}, 0 0 0 1px ${mC.GREYSCALE_0_06}, 0 0 0 2px ${mC.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${mC.GREYSCALE_0_15}, 0 0 0 1px ${mC.GREYSCALE_0_06}, 0 0 0 2px ${mC.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:mC.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:mC.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:mC.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:mC.GREYSCALE_0_15},markLabel:{color:mC.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:mC.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:mC.WHITE,color:mC.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:mC.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:mC.GREEN_PALE,boxShadow:`0 0 0 3px ${Lx(mC.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:mC.BLUE_PALE,boxShadow:`0 0 0 3px ${Lx(mC.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:mC.GREYSCALE_0_15,borderRadius:yC},thumb:{height:"16px",width:"16px",borderRadius:yC,backgroundColor:mC.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:gC,fontWeight:EC,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${mC.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${mC.MISC_FOCUS_BORDER}`,backgroundColor:mC.GREYSCALE_0_03,borderRadius:yC},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:mC.GREYSCALE_25,"&.Mui-selected":{color:mC.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:gC,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:yC,"&:hover":{backgroundColor:`${mC.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 ${mC.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${mC.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:yC,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:mC.GREYSCALE_0_05},"&:hover":{backgroundColor:`${mC.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${mC.GREYSCALE_85}`,borderRight:`1px solid ${mC.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:EC,backgroundColor:mC.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:mC.GREYSCALE_98,borderBottom:`1px solid ${mC.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${mC.GREYSCALE_85}`,borderTop:`1px solid ${mC.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:mC.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:mC.GREYSCALE_0_05,"&:hover":{backgroundColor:mC.GREYSCALE_0_03}},"&&:hover":{backgroundColor:mC.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(qC,{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 ${mC.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:gC,borderRadius:yC,padding:"7px 16px",border:`1px solid ${mC.GREYSCALE_0_15}`,backgroundColor:mC.GREYSCALE_100_60,color:mC.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:mC.GREYSCALE_0_10,border:`1px solid ${mC.GREYSCALE_0_30}`},"&:hover":{backgroundColor:mC.GREYSCALE_0_03,border:`1px solid ${mC.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:mC.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${mC.MISC_FOCUS_BORDER}`,border:`1px solid ${mC.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:mC.GREYSCALE_25,backgroundColor:mC.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:mC.GREYSCALE_0_10,border:`1px solid ${mC.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:hC,height:24,width:24,padding:7},sizeLarge:{fontSize:bC,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:gC,borderRadius:yC}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:mC.GREYSCALE_20},tooltip:{backgroundColor:mC.GREYSCALE_20,fontSize:hC,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var iR=e=>oR;const aR={mode:"light",primary:{ultraLight:mC.GREEN_ULTRA_LIGHT,light:mC.GREEN_PALE,main:mC.GREEN,dark:mC.GREEN_DARK,extraDark:mC.GREEN_EXTRA_DARK,contrastText:mC.WHITE},secondary:{ultraLight:mC.BLUE_ULTRA_LIGHT,light:mC.BLUE_PALE,main:mC.BLUE,dark:mC.BLUE_DARK,extraDark:mC.BLUE_EXTRA_DARK,contrastText:mC.WHITE},error:{ultraLight:mC.RED_ULTRA_LIGHT,light:mC.RED_PALE,main:mC.RED,dark:mC.RED_DARK,extraDark:mC.RED_EXTRA_DARK,contrastText:mC.WHITE},warning:{ultraLight:mC.ORANGE_ULTRA_LIGHT,light:mC.ORANGE_PALE,main:mC.ORANGE,dark:mC.ORANGE_DARK,extraDark:mC.ORANGE_EXTRA_DARK,contrastText:mC.WHITE},success:{ultraLight:mC.GREEN_ULTRA_LIGHT,light:mC.GREEN_PALE,main:mC.GREEN,dark:mC.GREEN_DARK,extraDark:mC.GREEN_EXTRA_DARK,contrastText:mC.WHITE},info:{ultraLight:mC.BLUE_ULTRA_LIGHT,light:mC.BLUE_PALE,main:mC.BLUE,dark:mC.BLUE_DARK,extraDark:mC.BLUE_EXTRA_DARK,contrastText:mC.WHITE},text:{primary:mC.TEXT_PRIMARY,secondary:mC.TEXT_SECONDARY,disabled:mC.GREYSCALE_0_30},action:{hover:mC.GREYSCALE_0_03,hoverOpacity:.03,selected:mC.GREYSCALE_0_05,selectedOpacity:.05,focus:mC.MISC_FOCUS_BORDER},amethyst:{ultraLight:mC.WHITE,main:mC.PURPLE,light:mC.PURPLE_PALE,dark:mC.PURPLE_DARK,extraDark:mC.GREYSCALE_0_0,contrastText:mC.WHITE},background:{paper:mC.WHITE,default:mC.GREYSCALE_95},divider:mC.GREYSCALE_0_15},lR=e=>({components:iR(),palette:aR,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:gC,fontWeightLight:xC,fontWeightRegular:SC,fontWeightMedium:EC,fontWeightBold:CC,htmlFontSize:gC,fontFamily:wC.FONT_FAMILY,button:{fontWeight:EC,fontSize:gC,textTransform:"none"},body1:{fontSize:bC,lineHeight:"24px"},body2:{fontSize:gC,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:vC,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:bC,fontWeight:EC,lineHeight:"16px"},h6:{fontSize:gC,fontWeight:EC,lineHeight:"16px"},caption:{color:mC.TEXT_SECONDARY},subtitle1:{fontSize:gC,color:mC.TEXT_SECONDARY},subtitle2:{fontSize:hC,color:mC.TEXT_SECONDARY}},shape:{borderRadius:yC}}),sR={...fC,MISC_FOCUS_BORDER:mC.MISC_FOCUS_BORDER},uR=(e="light")=>lR(),cR=uR().palette,dR=(cR.primary.light,_E.Selected,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),pR=4/3,fR="12px",mR="600",hR="Source Sans Pro, sans-serif",gR={height:"auto",fontSize:fR,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"}},bR={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:mR},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},vR=25e4,yR=(e,t,r)=>{if(null==e||!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var l;if(e.columnWidth){const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(Sh.PixelsMax,Math.max(Sh.PixelsMin,m)),i-=n[a]};switch(s){case Eh.Pixels:m=u||Sh.PixelsDefault,h();break;case Eh.Percentage:m=(c||Sh.PercentageDefault)/100*t,h();break;case Eh.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===ub.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case Eh.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}else o.push(a)})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(Sh.AutoMinTable,e)}))}return n},xR=e=>e.ctrlKey||e.metaKey,SR=e=>e.shiftKey&&xR(e),ER=e=>[NE.LEFT,NE.RIGHT,NE.UP,NE.DOWN].includes(e),CR=e=>ER(e)||[NE.HOME,NE.END,NE.PAGE_UP,NE.PAGE_DOWN].includes(e),wR=e=>e.shiftKey&&ER(e.key),RR=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=_E.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?_E.Disabled:void 0!==n[e.qElemNumber]?_E.Selected:_E.Possible),i},AR=(e,t,r)=>{const n=Object.keys(r).length,o=n>=Object.keys(t).length;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"]})},IR=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...n}}return s=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?{[n]:o}:(void 0!==e[n]?delete e[n]:e[n]=o,{...e})})(s,i,l),AR(a,n,s),Object.keys(s).length?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:s,colIdx:-1})},MR=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&wR(c)?(-1===i?null==n||n.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,r,n,o)=>{const i={...t};if("key"in n&&wR(n)){i[r.qElemNumber]=r.rowIdx;const t=n.key===NE.DOWN?1:-1;return i[e[r.pageRowIdx+t][r.pageColIdx].qElemNumber]=r.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),l=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=l;t++){const r=e[t][o.pageColIdx];i[r.qElemNumber]=r.rowIdx}return i})(a,d,s,c,l),AR(u,o,d),{...e,rows:d,colIdx:null!==(r=null==l?void 0:l.selectionColIdx)&&void 0!==r?r:s.selectionColIdx,isSelectMultiValues:!0}):e},PR=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(r),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},LR=(e,t)=>{var r;switch(t.type){case qE.SELECT:return IR(e,t.payload);case qE.SELECT_MOUSE_DOWN: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 qE.SELECT_MOUSE_UP:return((e,t)=>PR(e.isSelectMultiValues||e.firstCell!==t.cell?e:IR(e,t)))(e,t.payload);case qE.SELECT_MULTI_ADD:return MR(e,t.payload);case qE.SELECT_MULTI_END:return PR(e);case qE.RESET:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:{},colIdx:-1};case qE.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case qE.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},DR=4/3,kR=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function OR(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const TR=(e,t)=>e?{borderBottomColor:Yf.DARK_MODE_BORDER,borderRightColor:Yf.DARK_MODE_BORDER,borderLeftColor:Yf.DARK_MODE_BORDER,borderTopColor:Yf.DARK_MODE_BORDER}:{borderLeftColor:Yf.BORDER_MEDIUM,borderRightColor:Yf.BORDER_MEDIUM,borderTopColor:Yf.BORDER_HEAVY,borderBottomColor:t?Yf.BORDER_HEAVY:Yf.BORDER_LIGHT},_R=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*DR+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},qR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},NR=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:kR(null==r?void 0:r.fontColor)?OR(Yf.TEXT,t,null==r?void 0:r.fontColor):i||Yf.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?null==r?void 0:r.padding:void 0,...TR(t.background.isDark,n)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function FR(e,t,r){var n,o,i;const a=null===(n=qR(e))||void 0===n?void 0:n.header,l=NR("header",t,a,r);return l.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),l.hoverBackground=Um(null!==(o=l.background)&&void 0!==o?o:Yf.WHITE,Ch),l.activeBackground=Um(null!==(i=l.background)&&void 0!==i?i:Yf.WHITE,wh),l}function jR(e,t,r,n){var o;const i=null===(o=qR(e))||void 0===o?void 0:o.content,a=NR("content",t,i);a.background=t.background.color;const l=_R(null==a?void 0:a.fontSize,r,n),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=kR(u)||!!d,f=kR(s)||!!c,m=p||f;let h;h=kR(s)?OR(Yf.HOVER,t,s):c||(p?"":Yf.HOVER);const g=m?OR(Kf(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const zR=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>e in bR&&Object.assign(t,bR[e]))),t};function HR(e,t,r){var n;const o={};let i={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText,a=n&&Jm(n);a&&"none"!==a&&(o[r[t]]=a),i=n?zR(n,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=Kf(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const $R=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},BR=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=$R(e,null==t?void 0:t.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},WR=(e,t,r,n=Yf.WHITE)=>{var o;const{backgroundColor:i,backgroundFromStyling:a,sheetColorFromCSS:l}=BR(e,t,r);return null!==(o=th(a,i,l,n))&&void 0!==o?o:n},GR=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return fR}},VR=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",UR=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?mR:"normal",YR=(e,t)=>!1===e&&t.flags.isEnabled("CLIENT_IM_6997_WORD_WRAP")?1:3,KR=e=>parseInt(null!=e?e:gR.fontSize,10)*pR,XR=e=>{const t=Math.max(KR(e.header.fontSize)+8,32),r=KR(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(KR(e.dimension.values.fontSize),KR(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}},JR=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",ZR=(e,t,r,n,o)=>{var i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,I,M,P,L,D,k,O,T,_,q,N,F,j,z,H,$,B,W,G,V,U,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,le,se,ue,ce,de,pe,fe,me;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,r,n)=>{var o,i,a,l,s;const u=null===(o=qR(e))||void 0===o||null===(o=o.content)||void 0===o?void 0:o.rowHeight,c={header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:mR,textDecoration:"none",color:t.head.color,background:t.head.background},dimension:{values:{fontFamily:t.body.fontFamily,fontSize:t.body.fontSize,fontStyle:"normal",fontWeight:"normal",textDecoration:"none",color:t.body.color,background:t.body.background}},measure:{values:{fontFamily:t.body.fontFamily,fontSize:t.body.fontSize,fontStyle:"normal",fontWeight:"normal",textDecoration:"none",color:t.body.color,background:t.body.background}},totalRow:{fontFamily:t.totals.fontFamily,fontSize:t.totals.fontSize,fontStyle:"normal",fontWeight:mR,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{contentLineClamp:null!=u?u:YR(null===(i=e.multiline)||void 0===i?void 0:i.wrapTextInCells,n),headerLineClamp:YR(null===(a=e.multiline)||void 0===a?void 0:a.wrapTextInHeaders,n),border:r.background.isDark?Yf.DARK_MODE_BORDER:Yf.BORDER_MEDIUM,divider:Yf.BORDER_HEAVY,hoverColors:{color:null===(l=t.body.hoverColors)||void 0===l?void 0:l.color,background:null===(s=t.body.hoverColors)||void 0===s?void 0:s.background},lastRowBottomBorder:t.body.lastRowBottomBorder},selectedColors:Km({desiredColor:t.body.color,theme:r,flags:n.flags}),headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground,headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:u},{headerMinRowHeight:d,totalRowLineHeight:p,totalRowMinHeight:f,contentLineHeight:m,contentMinRowHeight:h}=XR(c);return c.headerMinRowHeight=d,c.totalRowLineHeight=p,c.totalRowMinHeight=f,c.contentLineHeight=m,c.contentMinRowHeight=h,c})(t,r,n,e);const{header:he,dimensionValues:ge,measureValues:be,totalValues:ve,nullValues:ye,grid:xe,content:Se}=null!==(i=qR(t))&&void 0!==i?i:{},Ee=!0===t.usePagination?Yf.WHITE:Yf.TRANSPARENT,Ce=WR(n,he,"object.straightTableV2.dimension.label.name.backgroundColor",Ee),we=null!==(a=null!==(l=null!==(s=null!==(u=$R(n,null==ge?void 0:ge.fontColor))&&void 0!==u?u:$R(n,null==Se?void 0:Se.fontColor))&&void 0!==s?s:n.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==l?l:r.body.color)&&void 0!==a?a:Yf.TEXT,Re=null!==(c=null!==(d=null===(p=o.viewState)||void 0===p?void 0:p.maxLineCount)&&void 0!==d?d:null==Se?void 0:Se.rowHeight)&&void 0!==c?c:n.getStyle("object.straightTableV2","grid","lineClamp"),Ae={header:{fontFamily:null!==(f=null!==(m=null!==(h=null==he?void 0:he.fontFamily)&&void 0!==h?h:n.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==m?m:r.head.fontFamily)&&void 0!==f?f:hR,fontSize:GR(null!==(g=null!==(b=null==he?void 0:he.fontSize)&&void 0!==b?b:n.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==g?g:r.head.fontSize),fontStyle:VR(null==he?void 0:he.fontStyle),fontWeight:UR(null==he?void 0:he.fontStyle,mR),textDecoration:JR(null==he?void 0:he.fontStyle),color:null!==(v=null!==(y=null!==(x=$R(n,null==he?void 0:he.fontColor))&&void 0!==x?x:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==y?y:r.head.color)&&void 0!==v?v:Yf.TEXT,background:Ce},headerMenuHoverBackground:Um(Ce,Ch),headerMenuActiveBackground:Um(Ce,wh),dimension:{values:{fontFamily:null!==(S=null!==(E=null!==(C=null==ge?void 0:ge.fontFamily)&&void 0!==C?C:n.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==E?E:r.body.fontFamily)&&void 0!==S?S:hR,fontSize:GR(null!==(w=null!==(R=null!==(A=null==ge?void 0:ge.fontSize)&&void 0!==A?A:null==Se?void 0:Se.fontSize)&&void 0!==R?R:n.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==w?w:r.body.fontSize),fontStyle:VR(null==ge?void 0:ge.fontStyle),fontWeight:UR(null==ge?void 0:ge.fontStyle,"normal"),textDecoration:JR(null==ge?void 0:ge.fontStyle),color:we,background:null!==(I=null!==(M=BR(n,ge,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==M?M:r.body.background)&&void 0!==I?I:Yf.TRANSPARENT}},measure:{values:{fontFamily:null!==(P=null!==(L=null!==(D=null==be?void 0:be.fontFamily)&&void 0!==D?D:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==L?L:r.body.fontFamily)&&void 0!==P?P:hR,fontSize:GR(null!==(k=null!==(O=null!==(T=null==be?void 0:be.fontSize)&&void 0!==T?T:null==Se?void 0:Se.fontSize)&&void 0!==O?O:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==k?k:r.body.fontSize),fontStyle:VR(null==be?void 0:be.fontStyle),fontWeight:UR(null==be?void 0:be.fontStyle,"normal"),textDecoration:JR(null==be?void 0:be.fontStyle),color:null!==(_=null!==(q=null!==(N=null!==(F=$R(n,null==be?void 0:be.fontColor))&&void 0!==F?F:$R(n,null==Se?void 0:Se.fontColor))&&void 0!==N?N:n.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==q?q:r.body.color)&&void 0!==_?_:Yf.TEXT,background:null!==(j=null!==(z=BR(n,be,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==z?z:r.body.background)&&void 0!==j?j:Yf.TRANSPARENT}},totalRow:{fontFamily:null!==(H=null!==($=null!==(B=null==ve?void 0:ve.fontFamily)&&void 0!==B?B:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==$?$:r.totals.fontFamily)&&void 0!==H?H:hR,fontSize:GR(null!==(W=null!==(G=null!==(V=null==ve?void 0:ve.fontSize)&&void 0!==V?V:null==Se?void 0:Se.fontSize)&&void 0!==G?G:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==W?W:r.totals.fontSize),fontStyle:VR(null==ve?void 0:ve.fontStyle),fontWeight:UR(null==ve?void 0:ve.fontStyle,mR),textDecoration:JR(null==ve?void 0:ve.fontStyle),color:null!==(U=null!==(Y=null!==(K=null!==(X=$R(n,null==ve?void 0:ve.fontColor))&&void 0!==X?X:$R(n,null==Se?void 0:Se.fontColor))&&void 0!==K?K:n.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==Y?Y:r.totals.color)&&void 0!==U?U:Yf.TEXT,background:WR(n,ve,"object.straightTableV2.total.label.value.backgroundColor",Ee)},nullValues:{fontStyle:VR(null==ye?void 0:ye.fontStyle),fontWeight:UR(null==ye?void 0:ye.fontStyle,"normal"),textDecoration:JR(null==ye?void 0:ye.fontStyle),color:null!==(J=null!==(Z=null!==(Q=null!==(ee=$R(n,null==ye?void 0:ye.fontColor))&&void 0!==ee?ee:$R(n,null==Se?void 0:Se.fontColor))&&void 0!==Q?Q:n.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Z?Z:r.body.color)&&void 0!==J?J:Yf.TEXT,background:null!==(te=null!==(re=$R(n,null==ye?void 0:ye.background))&&void 0!==re?re:n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:Yf.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=Re?Re:YR(null===(ne=t.multiline)||void 0===ne?void 0:ne.wrapTextInCells,e),headerLineClamp:YR(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders,e),border:null!==(ie=null!==(ae=$R(n,null==xe?void 0:xe.border))&&void 0!==ae?ae:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:n.background.isDark?Yf.DARK_MODE_BORDER:Yf.BORDER_MEDIUM,divider:null!==(le=null!==(se=$R(n,null==xe?void 0:xe.divider))&&void 0!==se?se:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==le?le:Yf.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=$R(n,null==Se?void 0:Se.hoverFontColor))&&void 0!==ce?ce:n.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ue?ue:null===(de=r.body.hoverColors)||void 0===de?void 0:de.color,background:null!==(pe=null!==(fe=$R(n,null==Se?void 0:Se.hoverColor))&&void 0!==fe?fe:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(me=r.body.hoverColors)||void 0===me?void 0:me.background},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:Km({desiredColor:we,theme:n,flags:e.flags}),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:Re},{headerMinRowHeight:Ie,totalRowLineHeight:Me,totalRowMinHeight:Pe,contentLineHeight:Le,contentMinRowHeight:De}=XR(Ae);return Ae.headerMinRowHeight=Ie,Ae.totalRowLineHeight=Me,Ae.totalRowMinHeight=Pe,Ae.contentLineHeight=Le,Ae.contentMinRowHeight=De,Ae},QR=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=jR(e,t,r.rows.length,n),a=FR(e,t,!o),l=function(e,t,r){var n;const o=null===(n=qR(e))||void 0===n?void 0:n.content,i=NR("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=FR(e,t,r);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,r,n]);return o},eA=new Map;const tA=D({}),rA=function(e){const t=D([()=>{},new Set]);return eA.set(e,t),({children:r,value:n})=>{const o=k(n),i=k(new Set);w((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=O((()=>o.current),[o]),l=C((()=>[a,i.current]),[a]);return Ll.jsx(e.Provider,{value:n,children:Ll.jsx(t.Provider,{value:l,children:r})})}}(tA),nA={rows:[],columns:[],totalsPosition:{}},oA=({app:e,children:t,tableData:r=nA,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,env:x})=>{const[S,w]=E(0),[R,A]=E(o||pC),[I,M]=((e,t)=>{const[r,n]=L(LR,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[P,D]=E(-1),k=QR(i,u,r,d),O=((e,t,r,n,o)=>C((()=>ZR(e,t,r,n,o)),[t,r,e,n,o]))(x,i,k,u,y),[T,_,q,N]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=lh({...n.header,fontWeight:mR},{maxNbrLinesOfText:3}).measureText,a=lh({...n.totalRow,fontWeight:mR},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=lh(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=lh(n.measure.values,{maxNbrLinesOfText:3}),u=C((()=>(e,t,r,n,u,c)=>{let d=25;d+=28,n&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(r))}),[l,s,i,a,o]),[c,d]=E(0),[p,f]=E((()=>yR(e,r,u)));ch((()=>{f(yR(e,r-c,u))}),[e,r,c,u]);const m=C((()=>((e,t,r)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,O),F=C((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:v,viewService:y,styleService:O})),[e,n,i,a,l,s,u,c.active,d,p,f,m,v,y,O]);return Ll.jsx(rA,{value:{headRowHeight:S,setHeadRowHeight:w,focusedCellCoord:R,setFocusedCellCoord:A,selectionState:I,selectionDispatch:M,hoverIndex:P,setHoverIndex:D,columnWidths:T,setColumnWidths:_,baseProps:F,tableData:r,setYScrollbarWidth:q,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:N,env:x},children:t})};function iA(e,t){const r=function(e){return eA.get(e)}(e),[n,o]=R(r),[,i]=L((e=>e+1),0),a=k(t),l=k(),s=n();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=C((()=>t(s)),[s,t]);return w((()=>{a.current=t,l.current=u}),[s,u,t]),w((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function aA(e){var t;const r=uR();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),zS({...r,direction:e})}const lA={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},sA={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},uA=Js("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",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":{...lA},"&::-moz-range-track":{...lA},"&::-ms-track":{...lA},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...sA},"&::-moz-range-thumb":{...sA},"&::-ms-thumb":{...sA},"&: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"}}))),cA=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=ph({translator:c.translator}),p=k({initWidth:e,columnWidth:e,initX:0}),f=r?0:1,m=n&&!u,h={left:m?p.current.columnWidth-f:"100%"},g=t=>{p.current={initWidth:e,columnWidth:e,initX:null!=t?t:p.current.initX}};ch((()=>m&&g()),[e]);const b=e=>{const t=Math.max(e,Sh.PixelsMin);p.current.columnWidth=t,i(t)},v=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:Eh.Pixels,pixels:p.current.columnWidth};a(e)}else null==s||s(!1)},y=e=>{const t=p.current.initWidth+e.clientX-p.current.initX;b(t)},x=e=>{Qm(e),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",x),v()},E=e=>{const t=p.current.initWidth+e.touches[0].clientX-p.current.initX;b(t)},C=e=>{Qm(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",C),v()},w=!n&&l?e=>{if(e.key===yh.LEFT||e.key===yh.RIGHT){Qm(e);const t=5,r=e.key===yh.LEFT?-t:t;b(p.current.columnWidth+r)}else e.key===yh.SPACE||e.key===yh.ENTER?(Qm(e),l(e),v()):e.key===yh.ESC&&(Qm(e),l(e),b(p.current.initWidth))}:void 0,R=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return S.createElement(uA,{style:h,key:t,hoverColor:o,isLastColumn:r,className:xh,"data-testid":xh,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:Eh.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",E),document.addEventListener("touchend",C),null==s||s(!0),g(e.touches[0].clientX))},onKeyDown:w,onBlur:l,onFocus:()=>g(),type:"range",tabIndex:"-1",max:Sh.PixelsMax,"aria-label":R,"aria-valuemin":Sh.PixelsMin,"aria-valuemax":Sh.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function dA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){dA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),fA=T(pA);function mA(){return mA=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},mA.apply(null,arguments)}const hA=Js(xd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),gA=Js(fA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),bA=Js(Jp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),vA=Js(Wd)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),yA=Js(rf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),xA=Js(rf,{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")}))),SA=Js("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),EA=Js("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),CA=Js(Sc)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),wA=Js(wp)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function RA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const AA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){RA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),IA=T(AA);let MA={};const PA=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=E(!1),p=k(null),f=O((e=>{e.stopPropagation(),d(!1)}),[d]);return S.createElement(S.Fragment,null,S.createElement(xA,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),MA={}),null!=a&&a.length&&(d(!0),MA[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&S.createElement(SA,null),S.createElement(EA,null,S.createElement(wA,null,S.createElement(o,null)),S.createElement(CA,{variant:"body2"},n)),null!=a&&a.length?S.createElement(IA,null):null),(null==a?void 0:a.length)&&S.createElement(kA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=MA,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},LA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&S.createElement(yA,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>S.createElement(PA,mA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),DA={appear:200,enter:200,exit:100},kA=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>n.length?S.createElement(bA,mA({className:gh,open:t,anchorEl:e,onClose:r,transitionDuration:DA,MenuListProps:{id:bh}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[LA({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?S.createElement(vA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:n,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,OA=(e,t)=>e.some((e=>t[e]>0)),TA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},_A=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=E(null),[a,l]=E(TA);return ch((()=>{e||(l(TA),i(null))}),[e]),w((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject.qDimensionInfo;o=c.qInfo.qId,a?s():(i(u),l((e=>({canSelectAll:OA(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:OA(["qSelected"],e),canSelectPossible:OA(["qOption"],e),canSelectAlternative:OA(["qAlternative"],e),canSelectExcluded:OA(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function qA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),FA=T(NA);function jA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),HA=T(zA);function $A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$A(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),WA=T(BA);function GA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const VA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){GA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),UA=T(VA);function YA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){YA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),XA=T(KA);function JA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){JA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})),QA=T(ZA);function eI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tI=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){eI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})),rI=T(tI);function nI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oI=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})),iI=T(oI);function aI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lI=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),sI=T(lI);function uI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cI=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){uI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),dI=T(cI);function pI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fI=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),mI=T(fI);function hI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gI=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})),bI=T(gI);let vI=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const yI="/qListObjectDef",xI=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c,setActiveFieldCallback:d})=>{const p=[];if(r[vI.SORTING]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:FA,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:UA,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:QA,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:XA,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&p.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[vI.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:rI,enabled:!0}]}]),r[vI.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:bI,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(yI))},icon:iI,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(yI))},icon:mI,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(yI))},icon:sI,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(yI))},icon:dI,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(yI))},icon:HA,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[vI.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:WA,enabled:!0}]}]),p},SI=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,env:f})=>{var m;const h=ph({translator:o}),{headTextAlign:g,qLibraryId:b,fieldId:v}=n,y=null==d?void 0:d.app,{fieldInstance:x,selectionActionsEnabledStatus:E}=_A({open:e,headerData:n,app:y,qStateName:null==d?void 0:d.qStateName});let C=null;if(f.flags.isEnabled("CLIENT_IM_7107_TABLE_MENU_CYCLIC_DIM")&&y&&n.qLibraryId){const e=n.qLibraryId;C=async t=>{try{const r=await y.getDimension(e);await r.setActiveField(t)}catch(e){console.error(e)}}}const w=O((()=>{const e=b?{qLibraryId:b,type:"dimension"}:v;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria,stateName:null==d?void 0:d.qStateName})}}),[b,v,c,null==d?void 0:d.qStateName]),R=O((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?S.createElement(hA,{rightAligned:"right"===g,shouldShowMenuIcon:s,className:hh},s&&S.createElement(gA,{height:fh,className:mh,"data-testid":mh,isInteractionsActive:null!==(m=i.active)&&void 0!==m&&m},S.createElement(fA,null)),S.createElement(kA,{open:e,anchorEl:r.current,onClose:R,menuGroups:xI({headerData:n,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:w,interactions:i,fieldInstance:x,selectionActionsEnabledStatus:E,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster,setActiveFieldCallback:C}),handleHeadCellMenuKeyDown:a})):null},EI=e=>e.isDark?{background:e.color,borderColor:Yf.DARK_MODE_BORDER,color:Yf.DARK_MODE_TEXT,disabledColor:Yf.DARK_MODE_DISABLED,iconColor:Yf.DARK_MODE_TEXT}:{background:e.color,borderColor:Yf.BORDER_MEDIUM,color:Yf.TEXT,disabledColor:Yf.DISABLED},CI=Js(xd,{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}`}))),wI=Js(Hf,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),RI=Js(Dd,{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)}))),AI=Js(Sc)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),II=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>EI(n.background)),[n]);if(!r.active)return null;const a=o?S.createElement(CI,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},MI=D({}),PI=()=>R(MI),LI=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=C((()=>EI(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=ph({translator:d}),x=C((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return S.createElement(MI.Provider,{value:x},e)};let DI=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),kI=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function OI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TI=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){OI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),_I=T(TI);function qI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NI=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),FI=T(NI);function jI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zI=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),HI=T(zI),$I={FirstPage:FI,PreviousPage:_I,NextPage:IA,LastPage:HI,FirstPageRTL:HI,PreviousPageRTL:IA,NextPageRTL:_I,LastPageRTL:FI},BI=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=PI(),u=$I[`${r}${"rtl"===n?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},WI=()=>{const{pageInfo:e,width:t}=PI(),r=0===e.page,{IconComponent:n,styledProps:o}=BI({type:DI.FirstPage,disabledCondition:r,pageNumber:0});return t<=kI.FirstPage?null:S.createElement(RI,o,S.createElement(n,{height:fh}))},GI=(e,t,r=!1)=>{r&&e.key===yh.TAB&&!e.shiftKey&&(Qm(e),Zm(e.target,t,!1))},VI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=PI(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=BI({type:DI.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>GI(e,t,n):null;return o<=kI.LastPage?null:S.createElement(RI,mA({},l,{onKeyDown:s}),S.createElement(a,{height:fh}))},UI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=PI(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=BI({type:DI.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>kI.FirstPage&&o>kI.LastPage)&&t.enabled?e=>GI(e,t,n):null;return S.createElement(RI,mA({},l,{onKeyDown:s}),S.createElement(a,{height:fh}))},YI=()=>{const{pageInfo:e}=PI(),t=0===e.page,{IconComponent:r,styledProps:n}=BI({type:DI.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return S.createElement(RI,n,S.createElement(r,{height:fh}))},KI=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=PI(),{page:o,rowsPerPage:i}=r;if(t<=kI.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return S.createElement(AI,{variant:"caption"},a)},XI=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=PI(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return S.createElement(S.Fragment,null,S.createElement(AI,{variant:"caption",id:d},u,":"),S.createElement(wI,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},JI=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=PI();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>kI.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=S.createElement(S.Fragment,null,t.rowsPerPageOptions.map((e=>S.createElement("option",{key:e,value:e},e))));return S.createElement(XI,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},ZI=1e3,QI="…",eM=({totalPages:e,page:t})=>{const r=Math.min(e,ZI),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-ZI):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return S.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(S.createElement("option",{key:"startMoreOptions",value:QI,disabled:!0},QI)),o<e-1&&a.push(S.createElement("option",{key:"endMoreOptions",value:QI,disabled:!0},QI)),S.createElement(S.Fragment,null,a)},tM=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=PI(),{page:o}=e;if(t<=kI.SelectPage)return null;const i=S.createElement(eM,{totalPages:r,page:o});return S.createElement(XI,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var rM=_((e=>S.createElement(LI,e,S.createElement(JI,null),S.createElement(tM,null),S.createElement(KI,null),S.createElement(WI,null),S.createElement(YI,null),S.createElement(UI,null),S.createElement(VI,null))));const nM=e=>S.createElement(II,e,S.createElement(rM,e)),oM={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},iM=vE(aw,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),aM=vE("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isWordWrapEnabled"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1,isWordWrapEnabled:o=!1})=>{if(n||1===e&&!t)return{...oM,whiteSpace:"nowrap",display:r?"block":void 0};const i=t&&r&&!o||o?"break-word":"break-all";return{...oM,wordBreak:i,display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}}));function lM(e,t){const r=k(!1);w((()=>{r.current?e():r.current=!0}),t)}const sM=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},uM=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),cM=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?cM(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},dM=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?dM(t):t},pM=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${xh}`);null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},fM=({focusType:e,cell:t})=>{if(t)switch(e){case FE.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case FE.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case FE.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case FE.ADD_TAB:t.setAttribute("tabIndex","0");break;case FE.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},mM=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o})=>{fM({focusType:FE.REMOVE_TAB,cell:e.currentTarget});const i=((e,t,r,n={top:0,bottom:0})=>{const o=n.top>0,i=n.top,a=t.getElementsByClassName("sn-table-row").length-1-n.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[s,u]=r;switch(e.key){case NE.DOWN:s<a&&s++;break;case NE.UP:s>i&&s--;break;case NE.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case NE.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case NE.HOME:(xR(e)||o)&&(s=i),o||(u=0);break;case NE.END:(xR(e)||o)&&(s=a),o||(u=l);break;case NE.PAGE_DOWN:s=Math.min(a,s+10);break;case NE.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,r,o),a=sM(t,i);return fM({focusType:FE.FOCUS,cell:a}),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[n])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-a.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(i,t),n(i),{nextCell:a,nextCellCoord:i}},hM=(e,t,r,n)=>{var o;(fM({focusType:FE.REMOVE_TAB,cell:uM(t)}),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):fM({focusType:FE.ADD_TAB,cell:sM(t,e)})},gM=(e,t,r)=>{w((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${gh}`);if(r.enabled&&!i&&!a&&!t.current&&n){var l;const e=n.querySelector(".sn-table-announcer-1"),t=n.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=r.blur)||void 0===l||l.call(r,!1)}})(e,t,r);return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])},bM=(e,t,r)=>{w((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n),i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},vM=(e,t=!1)=>e.key===NE.ESC&&!t||(e.key===NE.LEFT||e.key===NE.RIGHT)&&SR(e),yM=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===NE.DOWN||r===NE.UP){const t=e=>r===NE.DOWN?cM(e):dM(e);Qm(e);let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},xM=({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains(_E.Disabled))return void Qm(e);const d=null==c?void 0:c.isModal();if(!vM(e,d))switch(e.key){case NE.SPACE:Qm(e),r.isSelectable&&o&&n({type:qE.SELECT,payload:{cell:r,evt:e,announce:a}});break;case NE.ENTER:Qm(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case NE.ESC:Qm(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case NE.TAB:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{(null==t?void 0:t.enabled)&&r&&(e.shiftKey||!e.shiftKey&&!n)&&(Qm(e),Zm(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case NE.C:Qm(e),xR(e)&&Mh(e.currentTarget);break;default:CR(e.key)&&(Qm(e),(({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s})=>{const u=l.atTop?2:1,c=[r.pageRowIdx+u,r.pageColIdx],d={top:s?u:0,bottom:s&&l.atBottom?1:0},{nextCell:p,nextCellCoord:f}=mM({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});f[0]!==c[0]&&(((e,t,r)=>t.shiftKey&&e&&r.isSelectable)(o,e,r)?n({type:qE.SELECT_MULTI_ADD,payload:{cell:r,evt:e,announce:a}}):((e,t,r=!1)=>{r&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,s))})({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d}))}},SM=e=>{const{layout:t,rect:r,theme:n}=iA(tA,(e=>e.baseProps)),[o,i]=E(0),[a,l]=E(0);return q((()=>{if(e.current){var t;const{offsetWidth:r=0,offsetHeight:n=0,clientWidth:o=0,clientHeight:a=0}=null!==(t=e.current)&&void 0!==t?t:{},s=n-a;l(r-o),i(s)}}),[e,t,r,n]),{xScrollbarWidth:o,yScrollbarWidth:a}},EM=vE("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),CM=vE(Bw,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),wM=vE(Aw,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),RM=()=>Ll.jsxs(Ll.Fragment,{children:[Ll.jsx(EM,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Ll.jsx(EM,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),AM=e=>e.stopPropagation(),IM=({href:e,text:t,interactions:r,color:n})=>S.createElement(mp,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:AM,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t);var MM,PM;const LM=null!==(MM=window.requestIdleCallback)&&void 0!==MM?MM:(e,t)=>{var r;return setTimeout((()=>{e({})}),null!==(r=null==t?void 0:t.timeout)&&void 0!==r?r:0)},DM=null!==(PM=window.cancelIdleCallback)&&void 0!==PM?PM:e=>clearTimeout(e),kM=e=>{e.style.position="static"},OM=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"}),TM=(e,t)=>({y:{data:{field:"qMeasureInfo/0"},invert:!0,min:Math.min(0,e),max:Math.max(0,t)},x:{data:{extract:{field:"qDimensionInfo/0"}},paddingInner:.3,paddingOuter:0,invert:!1,align:0,maxPxStep:12}}),_M=null==B?void 0:B();null==_M||_M.use($),null==_M||_M.renderer.prio(["canvas"]);const qM=({chart:e,element:t,requestId:r,qMatrix:n,minY:o,maxY:i})=>({renderChartWithRequestIdleCallback:O((()=>{if(null===t.current||null!==e.current)return;r.current=LM((()=>{t.current&&(e.current=((e,{qMatrix:t,minY:r,maxY:n})=>_M.chart({element:e,data:{type:"q",key:"qHyperCube",data:OM(t)},settings:{scales:TM(r,n),components:[{key:"bars",type:"box",data:{extract:{field:"qDimensionInfo/0",props:{start:0,end:{field:"qMeasureInfo/0"}}}},settings:{major:{scale:"x"},minor:{scale:"y"},box:{maxWidthPx:8}},mounted:kM}]}}))(t.current,{qMatrix:n,minY:o,maxY:i}))}),{timeout:250})}),[e,t,i,o,n,r]),safeCancelIdleCallback:O((()=>{null!==r.current&&DM(r.current),r.current=null}),[r])}),NM=({qMatrix:e,minY:t,maxY:r,intersectionRoot:n})=>{const o=k(null),i=k(null),a=k(null),{renderChartWithRequestIdleCallback:l,safeCancelIdleCallback:s}=qM({element:o,chart:i,requestId:a,qMatrix:e,minY:t,maxY:r});return(({element:e,intersectionRoot:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=O((e=>{var t;null!==(t=e.at(0))&&void 0!==t&&t.isIntersecting?n():r()}),[n,r]);w((()=>{if(!e.current||!t)return()=>{};const n=new IntersectionObserver(i,{root:null==t?void 0:t.current});return n.observe(e.current),()=>{var e;n.disconnect(),r(),null===(e=o.current)||void 0===e||e.destroy(),o.current=null}}),[o,e,i,t,r])})({element:o,intersectionRoot:n,safeCancelIdleCallback:s,renderChartWithRequestIdleCallback:l,chart:i}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionRoot:n})=>{w((()=>n?()=>{}:(e(),()=>{var e;t(),null===(e=r.current)||void 0===e||e.destroy(),r.current=null})),[n,t,e,r])})({intersectionRoot:n,safeCancelIdleCallback:s,renderChartWithRequestIdleCallback:l,chart:i}),o},FM=({height:e,intersectionRoot:t,qMatrix:r,minY:n,maxY:o})=>{const i=NM({intersectionRoot:t,qMatrix:r,minY:n,maxY:o});return S.createElement("div",{"data-testid":"picasso-container",ref:i,style:{width:"100%",height:e,overflow:"hidden"}})},jM="cell-text",zM=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=iA(tA,(e=>e.baseProps)),{flags:l}=iA(tA,(e=>e.env));return o?Ll.jsx(aM,{"data-testid":jM,ref:t,component:"span",className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,isWordWrapEnabled:l.isEnabled("CLIENT_IM_6997_WORD_WRAP"),children:e}):Ll.jsx(aM,{"data-testid":jM,ref:t,component:"span",className:"sn-table-cell-text",isNumeric:r,lineClamp:null!=i?i:a.grid.contentLineClamp,isWordWrapEnabled:l.isEnabled("CLIENT_IM_6997_WORD_WRAP"),isPagination:n,children:e})},HM=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},$M=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},BM=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=Ll.jsx("img",{src:o,alt:i,style:{...t,width:s?"auto":"100%",height:"100%",maxHeight:r,objectFit:$M(a),objectPosition:HM(l),overflow:"hidden"}});var c;return n?Ll.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:s?r:"100%",overflow:"hidden",display:"flex",justifyContent:s?null==e||null===(c=e.resolvedImagePosition)||void 0===c?void 0:c.horizontal:void 0},children:u}):u},WM=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),GM=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},VM=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),l=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:l,nextColor:s}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:l.color,t:.5-u}:{color:s.color,t:u-.5}:a.gradient?{color:l.color,t:1-(.5+u/2)}:i.gradient?{color:s.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return l&&ie(e.localPaletteColors[t].color).blend(ie(l.color),l.t)},UM=(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:WM(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:GM(n,t,r)})))),n},YM=(e,t,r,n)=>{const o=UM(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=VM(e,a,t);break}n=i}return r})(o,t);return a},KM=(e,t)=>{const r=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),n=r.some((e=>!av(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||!av(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)},XM=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=KM(e,t),o=Math.abs(t);return{min:null!=r?r:t-o,max:null!=n?n:t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!av(t))return 0;let a=r&&av(r)?Math.min(r,t):0;const l=n.sort(((e,t)=>e.value-t.value)),s=o||i;for(let e=0;e<s.length;e++){if(e===s.length-1||t<l[e].value&&t>=a)return e;a=l[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}};function JM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){JM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})),QM=T(ZM);function eP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){eP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m8 0 7 4-7 4-7-4zm1 16v-6l6-3.5V13zm-8-3V6.5L7.1 10v6z"})),rP=T(tP);function nP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})),iP=T(oP);function aP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),S.createElement("use",{fillRule:"evenodd"})),sP=T(lP);function uP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){uP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})),dP=T(cP);function pP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})),mP=T(fP);function hP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})),bP=T(gP);function vP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){vP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M2 7h12v2H2z"})),xP=T(yP);function SP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const EP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){SP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})),CP=T(EP);function wP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const RP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})),AP=T(RP);function IP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const MP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){IP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})),PP=T(MP);function LP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const DP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){LP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})),kP=T(DP);function OP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){OP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})),_P=T(TP);function qP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})),FP=T(NP);function jP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})),HP=T(zP);function $P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$P(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"}));function WP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const GP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){WP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M15.738 13.5c.5.8.1 1.5-.8 1.5h-13.9c-1 0-1.3-.7-.8-1.5l6.8-11.9c.5-.8 1.3-.8 1.8 0zm-6.8-2c0-.3-.2-.5-.5-.5h-1c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5zm0-6c0-.3-.2-.5-.5-.5h-1c-.3 0-.5.2-.5.5v4c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5z"})),VP={m:kP,"ï":PP,R:T(BP),S:_P,T:FP,U:HP,P:AP,Q:bP,"è":T(GP),"¢":dP,"©":sP,"23F4":mP,2013:rP,"&":CP,add:QM,"minus-2":xP,dot:iP},UP=({size:e,iconKey:t,color:r})=>{const n=t&&VP[t]||void 0;return n&&Ll.jsx(n,{style:{color:r,height:e}})},YP=({representation:e,cellValue:t})=>{const r=e.indicatorConditionalColoring,{styleService:n,theme:o}=iA(tA,(e=>e.baseProps));if(!r)return;const{text:i,indicator:a}=e,{showTextValues:l,position:s,applySegmentColors:u}=null!=a?a:{},c=(d=n.measure.values.fontSize,parseInt(d||fR,10));var d;const p=XM(r,t),f=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i||0===(null==i?void 0:i.length)||!((e,t)=>{var r,n,o;return!(!e||0===e.length||!(null!==(r=null===(n=e[t])||void 0===n?void 0:n.gradient)&&void 0!==r?r:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,r.limitPaletteColorIndex))return GM(o,r.limitPaletteColorIndex,n);const a=WM(r.limitRange,t);return YM(o,a,r.limitRange,n)})(r,t,p,o),m=r.segments.paletteColors[(null==p?void 0:p.limitPaletteColorIndex)||0].icon;return l?Ll.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",gap:"2px",alignItems:"center",color:u?f:void 0},children:["left"===s&&UP({size:c,iconKey:m,color:f}),Ll.jsx(zM,{isNumeric:!0,children:i}),"right"===s&&UP({size:c,iconKey:m,color:f})]}):UP({size:c,iconKey:m,color:f})},KP=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(null!=t?t:e.grid.contentLineClamp):e.contentLineHeight,XP=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionRoot:i})=>{const{interactions:a,styleService:l}=iA(tA,(e=>e.baseProps)),s=iA(tA,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let u=t.representation.text;return t.representation.type!==ub.Link||s||(u=Ll.jsx(IM,{href:t.representation.url,text:t.representation.text,interactions:a,color:r.cellForegroundColor})),t.representation.type===ub.Image?Ll.jsx(BM,{representation:t.representation,textStyle:r,maxImageHeight:KP(l,o),wrapInContainer:!n}):t.representation.type===ub.Indicator&&"number"==typeof t.qNum?Ll.jsx(YP,{representation:t.representation,cellValue:+t.qNum}):t.representation.type===ub.MiniChart&&t.representation.miniChart?Ll.jsx(FM,{height:KP(l,o),intersectionRoot:i,...t.representation.miniChart}):Ll.jsx(zM,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:u})},JP=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{w((()=>{const i=()=>{t({type:qE.RESET})},a=()=>{t({type:qE.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},ZP=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>r({type:qE.SELECT_MULTI_END});r({type:qE.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:qE.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:qE.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:n}})}}),QP=vE(Ow,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),eL=vE(rR,{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}}}))),tL=vE(jw,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...gR,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),rL=vE(jw,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...gR,...e,fontWeight:mR,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&r,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function nL(e){return t=>{const{cell:r,styling:n,announce:o,onMouseDown:i}=t,{styleService:a}=iA(tA,(e=>e.baseProps)),l=iA(tA,(e=>RR(r,e.selectionState))),s=iA(tA,(e=>e.selectionDispatch)),{handleMouseDown:u,handleMouseOver:c,handleMouseUp:d}=ZP(i,r,s,o),p=function(e,t,r){return t===_E.Selected?{...e,...r}:t===_E.Disabled?{...e,background:`${dR}, ${e.background}`}:e}(n,l,a.selectedColors);return Ll.jsx(e,{...t,styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c,cellSelectionState:l})}}function oL(e,t){let r=(n=tL,e=>{const{styling:{selectedCellClass:t,...r},component:o,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m,cellSelectionState:h}=e;return Ll.jsx(n,{cellStyle:r,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${h} ${vh}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var n;return t&&(r=nL(r)),e&&(r=function(e){return t=>{const{cell:r,column:n,styling:o}=t,i=C((()=>r.isNull?o:HR(o,r.qAttrExps,n.qAttrExprInfoIDs)),[o,r.qAttrExps,r.isNull,n.qAttrExprInfoIDs]);return Ll.jsx(e,{...t,styling:i})}}(r)),r}const iL=(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}),aL=()=>{const{columns:e,totalsPosition:t,rows:r}=iA(tA,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=iA(tA,(e=>e.baseProps)),s=iA(tA,(e=>e.headRowHeight)),u=iA(tA,(e=>e.setFocusedCellCoord));return Ll.jsx(rR,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:r.length+1,c];return Ll.jsx(rL,{totalsStyle:{...a.totalRow,...iL(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${vh}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,r,n,o=!1)=>{if(o)Qm(e);else if(!vM(e))switch(e.key){case NE.C:Qm(e),xR(e)&&Mh(e.currentTarget);break;case NE.SPACE:e.preventDefault();break;default:CR(e.key)&&(Qm(e),mM({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}})(e,n,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{hM(d,n,u,i)},children:Ll.jsx(zM,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var lL=_(aL);const sL=({setShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=iA(tA,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f}=iA(tA,(e=>e.baseProps)),m=iA(tA,(e=>e.setFocusedCellCoord)),h=iA(tA,(e=>e.selectionDispatch)),g=!!p.active&&!!p.select,b=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),v=C((()=>JSON.parse(b).map((e=>oL(e.some((e=>["cellBackgroundColor","cellForegroundColor","textStyleExpression"].includes(e))),g)))),[b,g]),y=!(null===(n=qR(d))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect);return JP({keyboard:c,selectionDispatch:h,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Ll.jsxs(QP,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?Ll.jsx(lL,{}):void 0,o.map(((e,n)=>Ll.jsx(eL,{hoverColors:f.grid.hoverColors,hover:y,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:n,height:f.contentMinRowHeight,children:i.map(((n,o)=>{const{id:i}=n,d=e[o],b=v[o];let y=n.isDim?f.dimension.values:f.measure.values;d.isNull&&(y={...y,...f.nullValues});const x=HR(y,d.qAttrExps,n.qAttrExprInfoIDs);return b&&Ll.jsx(b,{scope:0===o?"row":void 0,component:0===o?"th":void 0,cell:d,column:n,align:d.align,styling:{...y,borderColor:f.grid.border},tabIndex:-1,announce:r,title:p.passive?d.representation.text:void 0,onKeyDown:e=>{xM({evt:e,rootElement:u,selectionsAPI:s,cell:d,selectionDispatch:h,isSelectionsEnabled:g,setFocusedCellCoord:m,announce:r,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===NE.SHIFT&&t({type:qE.SELECT_MULTI_END})})(e,h),onMouseDown:()=>((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;hM([l,a],t,r,n)})(d,u,m,c,l),children:Ll.jsx(XP,{cell:d,style:x,intersectionRoot:t})},i)}))},`row-${n}`))),l.atBottom?Ll.jsx(lL,{}):void 0]})};var uL=_(sL);const cL=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s}=iA(tA,(e=>e.baseProps)),u=iA(tA,(e=>e.columnWidths)),c=iA(tA,(e=>e.setColumnWidths));if(!l.active)return null;return Ll.jsx(cA,{columnWidth:u[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...u];t[o]=e,c(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>(e=>{e.setAttribute("tabIndex","-1");const t=e.closest(".sn-table-cell");fM({focusType:FE.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:s,columnLabel:i}})};function dL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){dL(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),fL=T(pL);function mL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){mL(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),gL=T(hL);function bL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bL(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),S.createElement("use",{fillRule:"evenodd"})),yL=T(vL),xL=vE("div")({position:"absolute",left:0,bottom:0}),SL=vE(aw,{shouldForwardProp:e=>!["textAlign"].includes(e)})((({textAlign:e,theme:t})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center"})));vE("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const EL=vE(aw,{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},[`& .${hh}`]:{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"},[`& .${hh}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),CL=vE(aw,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));vE(aw,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),vE(yw)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),vE("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),vE(fw)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),vE("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const wL=vE(jw,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...gR,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));vE("div")({display:"flex",alignItems:"center"});const RL=vE("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:fR,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),AL=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i,forwardRef:a})=>{const{translator:l,changeSortOrder:s,interactions:u,embed:c,app:d,styleService:p,layout:f}=iA(tA,(e=>e.baseProps)),m=iA(tA,(t=>t.columnWidths[e.pageColIdx])),h=iA(tA,(e=>e.env)),g=k(null),b=k(null),v=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=lh({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:mR});return O((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=r-25,u=a?20:0,c=l?20:0;let d=n(t.label);return a&&d+u<=s&&(i=!0,d+=u,l&&d+c<=s&&(o=!0,d+=c)),!a&&l&&d+c<=s&&(o=!0,d+=c),d+24<=s&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n])})({styleService:p,column:e,columnWidth:m}),y=v(),{StartIcon:x,EndIcon:S,LockIcon:E}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n})=>{const o="A"===e?Ll.jsx(fL,{height:fR,"data-testid":"head-cell-sort-ascending-icon"}):Ll.jsx(gL,{height:fR,"data-testid":"head-cell-sort-descending-icon"}),i=r?Ll.jsx(RL,{align:t,children:o}):void 0,a=n?Ll.jsx(CL,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Ll.jsx(yL,{height:fR,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:i,LockIcon:a}:{EndIcon:i,LockIcon:a}})(e,y);o&&(o.current[e.pageColIdx]=y);return Ll.jsxs(EL,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:e.headTextAlign,children:[E,Ll.jsxs(SL,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[x,Ll.jsx(zM,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),S]}),t&&Ll.jsxs(Ll.Fragment,{children:[Ll.jsx(SI,{headerData:e,translator:l,anchorRef:g,handleHeadCellMenuKeyDown:yM,menuAvailabilityFlags:{[vI.SORTING]:!0,[vI.SEARCHING]:!0,[vI.SELECTIONS]:!0,[vI.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:n,interactions:u,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:c,listboxRef:b},selectionRelatedArgs:{app:d,qStateName:f.qStateName},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:pM},shouldShowMenuIcon:y.shouldShowMenuIcon,env:h}),Ll.jsx(xL,{ref:b}),Ll.jsx(xL,{ref:g})]})]})},IL=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=E(!1);return ch((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(xh)})(t)&&!o&&n(!0),setIsAdjustingWidth:i}},ML=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a}=iA(tA,(e=>e.baseProps)),{columns:l,totalsPosition:s}=iA(tA,(e=>e.tableData)),u=iA(tA,(e=>e.columnWidths[t])),c=iA(tA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=iA(tA,(e=>e.setFocusedCellCoord)),p=iA(tA,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),f=!!n.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=IL({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?jE[e.sortDirection]:void 0,y=m?bh:void 0,x=m?"true":void 0,S=t===r-1,E=[0,e.pageColIdx],C={width:u-(S?8:9),zIndex:l.length-t},w=p&&0===t&&!i.enabled&&f?0:-1;return Ll.jsxs(wL,{headerStyle:{...a.header,...iL(a,s,!0)},background:m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:C,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${vh}`,tabIndex:w,title:n.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!vM(e))switch(e.key){case NE.C:Qm(e),xR(e)&&Mh(e.currentTarget);break;case NE.ENTER:case NE.SPACE:i&&i(e);break;default:CR(e.key)&&(Qm(e),mM({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}}else Qm(e)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,isInteractionEnabled:f,handleOpenMenu:g}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(n(r),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):fM({focusType:FE.FOCUS,cell:sM(t,r)}))})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,keyboard:i,isInteractionEnabled:f}),onClick:g,"aria-sort":v,"aria-controls":y,"aria-expanded":x,"aria-haspopup":"true",children:[Ll.jsx(AL,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),Ll.jsx(cL,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},PL=()=>{var e;const{columns:t}=iA(tA,(e=>e.tableData)),{styleService:r,viewService:n}=iA(tA,(e=>e.baseProps)),o=iA(tA,(e=>e.setHeadRowHeight)),i=iA(tA,(e=>e.columnWidths)),a=k(null);return w((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[r.header.fontSize,i,o]),null!==(e=n.viewState)&&void 0!==e&&e.skipHeader?null:Ll.jsx(Kw,{children:Ll.jsx(rR,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,r)=>Ll.jsx(ML,{column:e,columnIndex:r,columnsLength:t.length},e.id)))})})};var LL=_(PL);const DL=e=>{var t,r;const{pageInfo:n,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=n,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=iA(tA,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:C,layout:R,rect:A}=iA(tA,(e=>e.baseProps)),I=iA(tA,(e=>e.focusedCellCoord)),M=iA(tA,(e=>e.setFocusedCellCoord)),P=iA(tA,(e=>e.setYScrollbarWidth)),L=iA(tA,(e=>e.showRightBorder)),D=iA(tA,(e=>e.selectionDispatch)),T=iA(tA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),_=k(!1),q=k(null),N=k(null),{yScrollbarWidth:F}=SM(q),j=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,z=gy(R,C),H=z&&null!==(t=C.scrollLeft)&&void 0!==t?t:0,$=z&&null!==(r=C.rowPartialHeight)&&void 0!==r?r:0,B=O((()=>{_.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),W=O((e=>{o({...n,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[n,o,p,l]),G=O((e=>{o({...n,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,n,o]);return gM(N,_,v),bM(q,i,C),(()=>{const{rootElement:e,keyboard:t}=iA(tA,(e=>e.baseProps)),r=iA(tA,(e=>e.focusedCellCoord));ch((()=>{const n=t.active?FE.FOCUS:FE.BLUR,o=t.active?sM(e,r):uM(e);fM({focusType:n,cell:o})}),[t.active,e])})(),w((()=>{const e=q.current;e&&(e.scrollLeft=H,e.scrollTop=$)}),[n,d,H,$]),lM((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{fM({focusType:FE.REMOVE_TAB,cell:uM(t)});const s=[l.atTop?2:1,e[1]],u=n?s:pC;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=r.current?FE.FOCUS:FE.ADD_TAB;r.current=!1;const d=sM(t,u);if(fM({focusType:c,cell:d}),n){var p;const e=null==d||null===(p=d.classList)||void 0===p?void 0:p.contains("selected");a({keys:[`${null==d?void 0:d.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}})({focusedCellCoord:I,rootElement:b,shouldRefocus:_,setFocusedCellCoord:M,isSelectionMode:T,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),lM((()=>{P(F)}),[F]),lM((()=>{D({type:qE.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Ll.jsxs(iM,{ref:N,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:r,rowsPerPage:n,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(SR(e)){Qm(e);const a=Math.ceil(t/n)-1;e.key===NE.RIGHT&&r<a?(i(),o(r+1)):e.key===NE.LEFT&&r>0&&(i(),o(r-1))}else if(e.key===NE.ESC&&a.enabled&&!l){var s;Qm(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else ER(e.key)&&Qm(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:W,setShouldRefocus:B,keyboard:v,isSelectionMode:T})},"data-testid":"sn-table",children:[Ll.jsx(RM,{}),Ll.jsx(CM,{ref:q,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Ll.jsxs(wM,{stickyHeader:!0,"aria-label":j,borderRight:L?`1px solid ${E.grid.border}`:void 0,children:[Ll.jsx(LL,{}),Ll.jsx(uL,{...e,setShouldRefocus:B,tableWrapperRef:N})]})}),Ll.jsx(nM,{footerContainer:a,pageInfo:n,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:W,handleChangeRowsPerPage:G,isSelectionMode:T})]})};var kL=_(DL),OL=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function TL(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||OL(n)&&OL(o)))return!1;var n,o;return!0}function _L(e,t){var r;void 0===t&&(t=TL);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var qL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function NL(e){cancelAnimationFrame(e.id)}function FL(e,t){var r=qL();var n={id:requestAnimationFrame((function o(){qL()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var jL=-1;function zL(e){if(void 0===e&&(e=!1),-1===jL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),jL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return jL}var HL=null;function $L(e){if(void 0===e&&(e=!1),null===HL||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?HL="positive-descending":(t.scrollLeft=1,HL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),HL}return HL}var BL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function WL(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Dt(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Dt(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=_L((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=_L((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=_L((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch($L()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&NL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=FL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Lt(t,e),t.getDerivedStateFromProps=function(e,t){return GL(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=zL();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch($L()){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&&NL(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?BL:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),R=w[0],I=w[1],M=[];if(n>0&&g)for(var P=R;P<=I;P++)for(var L=E;L<=C;L++)M.push(A(t,{columnIndex:L,data:d,isScrolling:v?x:void 0,key:f({columnIndex:L,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,L)}));var D=a(this.props,this._instanceProps),k=l(this.props,this._instanceProps);return A(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:yt({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},A(u||c||"div",{children:M,ref:s,style:{height:D,pointerEvents:x?"none":void 0,width:k}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var GL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},VL=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},UL=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},YL=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},KL=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?XL(e,t,r,i,0,n):JL(e,t,r,Math.max(0,i),n)},XL=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=YL(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},JL=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&YL(e,t,n,r).offset<o;)n+=a,a*=2;return XL(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},ZL=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=YL(e,t,r,i),u="column"===e?UL(t,i):VL(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},QL=WL({getColumnOffset:function(e,t,r){return YL("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return KL("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=YL("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=YL("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:VL,getEstimatedTotalWidth:UL,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return ZL("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return ZL("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return YL("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return KL("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=YL("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=YL("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),eD=function(e,t){return e};function tD(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,Dt(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Dt(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=_L((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=_L((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=_L((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($L()){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&&NL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=FL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Lt(t,e),t.getDerivedStateFromProps=function(e,t){return rD(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?zL():0:s.scrollHeight>s.clientHeight?zL():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch($L()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&NL(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?eD:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],R=[];if(u>0)for(var I=C;I<=w;I++)R.push(A(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var M=n(this.props,this._instanceProps);return A(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:yt({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},A(l||s||"div",{children:R,ref:a,style:{height:x?"100%":M,pointerEvents:y?"none":void 0,width:x?M:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var rD=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},nD=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},oD=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=nD(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},iD=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&nD(e,r,t).offset<n;)r+=i,i*=2;return oD(e,t,Math.min(r,o-1),Math.floor(r/2),n)},aD=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},lD=tD({getItemOffset:function(e,t,r){return nD(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:aD,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=nD(e,t,o),p=aD(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?oD(e,t,o,0,r):iD(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=nD(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=nD(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 sD(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 uD=["style"],cD=["style"];function dD(e,t){var r=e.style,n=Mt(e,uD),o=t.style,i=Mt(t,cD);return!sD(r,o)&&!sD(n,i)}const pD=({style:e})=>Ll.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var fD=S.memo(pD,dD);const mD=e=>{var t;return null===(t=e.at(0))||void 0===t||null===(t=t.contentBoxSize.at(0))||void 0===t?void 0:t.blockSize},hD=(e,t,r)=>{w((()=>{const n=r?r(e):e.current;if(!n)return()=>{};const o=new ResizeObserver(t);return o.observe(n),()=>{o.disconnect()}}),[e,t,r])},gD=()=>{},bD=e=>e.preventDefault();const vD=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,setMeasuredCellHeight:u,lineClamp:c}=n,d=iA(tA,(e=>e.hoverIndex===t)),p=iA(tA,(e=>e.setHoverIndex)),{interactions:f,styleService:m}=iA(tA,(e=>e.baseProps)),h=iA(tA,(e=>e.showRightBorder)),g=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=iA(tA,(e=>e.baseProps)),r=iA(tA,(e=>e.selectionDispatch)),n="object"==typeof e,o=iA(tA,(t=>n?RR(e,t.selectionState):_E.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=ZP(bD,e,r,gD);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=k(null),i=r&&!(null!=r&&r.isNumeric),a=O((r=>{const o=mD(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return hD(o,a),o})(t,e,g,u);let E={borderColor:m.grid.border,...m.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(E={borderColor:m.grid.border,...m.dimension.values}),null!=g&&g.isNull&&(E={...E,...m.nullValues}),"object"==typeof g){var C;const n=((e,t,r,n,o,i)=>{const a=!e.isNull&&t.qAttrExprInfoIDs.length?HR(o,e.qAttrExps,t.qAttrExprInfoIDs):o;return n===_E.Selected?{...a,...i.selectedColors}:n===_E.Disabled?{...a,color:r?null===(l=i.grid.hoverColors)||void 0===l?void 0:l.color:a.color,background:`${dR}, ${r?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.background:a.background}`}:r?{...a,...i.grid.hoverColors}:a;var l,s})(g,l[e],s&&d,x,E,m),o={rowindex:t,columnindex:e};return Ll.jsx("div",{className:`sn-table-cell ${x} ${vh}`,style:{...r,...n,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:g.isLastColumn&&!h?"0px":"1px",borderStyle:"solid",justifyContent:g.representation.type===ub.Image&&"fitHeight"===g.representation.imageSize?null===(C=g.representation)||void 0===C||null===(C=C.resolvedImagePosition)||void 0===C?void 0:C.horizontal:g.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:s?()=>p(t):void 0,onMouseLeave:s?()=>p(-1):void 0,title:f.passive?g.representation.text:void 0,...o,children:Ll.jsx(XP,{forwardRef:m.contentStaticLineCount||1===c?void 0:S,cell:g,style:n,lineClamp:c,virtualizedCell:!0})})}return Ll.jsx(fD,{style:{...r,...E,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var yD=S.memo(vD,dD);const xD=e=>{const t=k(e);return t.current=e,t},SD=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,ED=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},CD=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},wD=(e,t,r,n,o,i,a)=>{e.forEach((e=>{e.qMatrix.forEach(((l,s)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:c,pageRowIdx:d}=((e,t,r,n,o,i,a,l,s)=>{var u;const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var r;const o=t+n.qLeft,{colIdx:a,isDim:u,isLocked:m,bodyTextAlign:h,selectionColIdx:g,qAttrExprInfoIndex:b,representation:v,conditionalColoring:y,qMiniChart:x}=i[o];f[o]=null!==(r=f[o])&&void 0!==r?r:{id:ov(),...e,align:my(e,h),rowIdx:d,colIdx:a,isSelectable:u&&!m,pageRowIdx:p,pageColIdx:o,selectionColIdx:g,isLastRow:d===c.qcy-1,isLastColumn:o===c.qcx-1,isNumeric:lv(e),isNull:ly(e,u),representation:ay(e,v,b,l,y,x)},s(f[o],d,o)})),{row:f,pageRowIdx:p}})(r,l,s,e.qArea,u,n,o,i,a);r[d]=c}))}))},RD=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,gridState:u,setEstimatedCellHeight:c})=>{const d=iA(tA,(e=>e.env)),p=k([]),f=O(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return wD(t,o,n,s,e,d,c),p.current=n,n}),[i,o,s,e,d,c]),[m,h]=E((()=>f(null!=n?n:[])));ch((()=>{h(f(null!=n?n:[]))}),[n]);const g=((e,t)=>{const r=k(new Set),n=k(new Set),o=k(new Set),i=xD(e),a=xD(t),l=C((()=>({enqueue:e=>{const t=SD(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(SD(e))}))}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>h((t=>f(e,t))))),b=O(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(CD(p.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};g.enqueue(e)}}),[p,g]),v=O(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(ED(p.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};g.enqueue(t)}}}),[p,g,o]);return w((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,s=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,l+5),f=Math.min(100,d,r,a+25);return v(i,s,p,f),()=>{g.clear()}}),[e,a,l,o,g,v,u,r]),{rowsInPage:m,loadRows:v,loadColumns:b}},AD=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},ID=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,MD=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=iA(tA,(e=>e.baseProps.styleService)),i=iA(tA,(e=>e.columnWidths)),{estimateLineCount:a}=lh(o.dimension.values),l=KR(o.dimension.values.fontSize),s=e||t||1===r;return O(((e,t,o)=>{if(s||e.representation.type===ub.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*l,t,o)}),[s,i,a,r,l,n])},PD=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>C((()=>{const{estimatedRowHeight:a,totalRowHeight:l}=e?{totalRowHeight:n*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(r),totalRowHeight:t}})(r.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(n*t,l)}),[e,t,n,r,o,i]),LD=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=iA(tA,(e=>e.baseProps)),[a,l]=E({rowHeights:new Map,cellHeightsInGrid:new Map}),s=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/s))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:s,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{var n;const{layout:o}=iA(tA,(e=>e.baseProps)),i=iA(tA,(e=>e.columnWidths)),{flags:a}=iA(tA,(e=>e.env)),l=!a.isEnabled("CLIENT_IM_6997_WORD_WRAP")||(null===(n=o.multiline)||void 0===n?void 0:n.wrapTextInCells);ch((()=>{var r;null===(r=e.current)||void 0===r||r.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[o.qHyperCube.qSize.qcx,o.qHyperCube.qSize.qcy,r.page,l]),ch((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[i])})({gridRef:n,setState:l,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>O(((o,i,a)=>{F((()=>{e((e=>{var l,s;const u=Math.max(r,o+9),c=Math.min(t,u),d=null!==(l=e.cellHeightsInGrid.get(i))&&void 0!==l?l:e.cellHeightsInGrid.set(i,new Map).get(i);if(!ID(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,AD(d)),null===(s=n.current)||void 0===s||s.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:l,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:MD({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:O((e=>{var t;return c?m:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,m]),totalRowHeight:PD({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:r}),lineClamp:f}};var DD;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(DD||(DD={}));const kD=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>O((({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=DD.None,i=DD.None;return o=n>t?DD.Down:n<t?DD.Up:DD.None,i=r>e?DD.Right:r<e?DD.Left:DD.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,l,u);if(i.current.overscanColumnStartIndex=l,i.current.overscanColumnStopIndex=s,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=l,v=u+o.page*o.rowsPerPage,y=s-l+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===DD.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===DD.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===DD.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===DD.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),OD={enabled:!1},TD=()=>{},_D={current:null};const qD=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),l=C((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},ND=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},FD={overflow:"hidden",willChange:"auto"};var jD=_(T(((e,t)=>{var r;const{rect:n,columns:o,pageInfo:i,headerAndTotalsHeight:a}=e,{layout:l,model:s,theme:u,viewService:c,styleService:d}=iA(tA,(e=>e.baseProps)),p=iA(tA,(e=>e.columnWidths)),f=iA(tA,(e=>e.initialDataPages)),m=k(null),h=k(null),g=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),b=k(0),v=!(null===(r=qR(l))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:y,visibleRowCount:x,visibleColumnCount:S}=qD(l,i,n,p,d.contentMinRowHeight),{setMeasuredCellHeight:E,setEstimatedCellHeight:R,getRowHeight:A,lineClamp:I,totalRowHeight:M}=LD({rowCount:y,isSnapshot:!!l.snapshotData,viewService:c,gridRef:m,pageInfo:i}),{rowsInPage:P,loadRows:L,loadColumns:D}=RD({layout:l,model:s,theme:u,initialDataPages:f,pageInfo:i,rowCount:y,visibleRowCount:x,visibleColumnCount:S,columns:o,gridState:g,setEstimatedCellHeight:R}),O=kD({layout:l,loadRows:L,loadColumns:D,rowCount:y,pageInfo:i,gridState:g,viewService:c}),T=C((()=>({rowsInPage:P,columns:o,isHoverEnabled:v,lineClamp:I,setMeasuredCellHeight:E})),[P,o,v,I,E]),_=((e,t,r)=>Math.min(e.height-t,r))(n,a,M);return q((()=>{var e;1===b.current&&(null===(e=m.current)||void 0===e||e.scrollToItem({rowIndex:y-1,align:"start"}))})),function(e){const{selectionsAPI:t}=iA(tA,(e=>e.baseProps)),r=iA(tA,(e=>e.selectionDispatch));w((()=>{r({type:qE.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[r,e]),JP({selectionsAPI:t,selectionDispatch:r,setShouldRefocus:TD,keyboard:OD,tableWrapperRef:_D})}(P),j(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=h.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:_)-_,i=Math.round(o*e);var a,l,s;(b.current=e,1===b.current)?(null===(a=m.current)||void 0===a||a.scrollToItem({rowIndex:y-1,align:"start"}),null===(l=m.current)||void 0===l||l.scrollTo({scrollLeft:t})):null===(s=m.current)||void 0===s||s.scrollTo({scrollTop:i,scrollLeft:t})},element:h.current})),[h,_,y]),Ll.jsx(QL,{"data-key":"body",ref:m,innerRef:h,style:FD,columnCount:l.qHyperCube.qSize.qcx,columnWidth:e=>p[e],height:_,rowCount:y,rowHeight:A,estimatedRowHeight:c.estimatedRowHeight,width:n.width,itemData:T,onItemsRendered:O,itemKey:ND,className:"sn-table-body",children:yD})})));const zD=({width:e,height:t,children:r})=>Ll.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),HD=(e,t)=>{const r=k(null),n=iA(tA,(e=>e.columnWidths));q((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=O((r=>{const n=mD(r);n&&t(n+9,e)}),[e,t]);return hD(r,o),r},$D=vE("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:void 0}}))),BD=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=r,{interactions:l,styleService:s}=iA(tA,(e=>e.baseProps)),u=iA(tA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),c=iA(tA,(e=>e.showRightBorder)),d=iA(tA,(e=>e.tableData.totalsPosition)),p=!!l.active&&!u,{open:f,setOpen:m,handleOpenMenu:h,setIsAdjustingWidth:g}=IL({isInteractionEnabled:p,columnsData:n}),b=HD(e,a),v=n[e],y=n.length-1===e,x="right"===v.headTextAlign?"row-reverse":"row";return Ll.jsxs($D,{className:`sn-table-cell ${vh}`,title:l.passive?v.label:void 0,onClick:h,applicableStyle:{...s.header,...iL(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:y&&!c?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:x,userSelect:"none"},interactions:l,hoverBackground:s.headerMenuHoverBackground,background:f?s.headerMenuActiveBackground:s.header.background,children:[Ll.jsx(AL,{forwardRef:b,column:v,isInteractionEnabled:p,open:f,setOpen:m,allColumnsIconVisibilityStatusRef:i}),Ll.jsx(cL,{column:v,isLastColumn:y,onColumnResize:o,setIsAdjustingWidth:g})]})},WD=e=>{const[t,r]=E(new Map);ch((()=>{r(new Map)}),[e.length]);const n=O(((e,t)=>{r((r=>ID(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>AD(t)),[t]),setMeasuredCellHeight:n}},GD=(e,t,r)=>{j(e,(()=>({scrollTo:e=>{var r;return null===(r=t.current)||void 0===r?void 0:r.scrollTo(e)},element:r.current})),[t,r])},VD=(e,t,r,n,o)=>{ch((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,r,e,n,o])},UD={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},YD=T(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=e,l=k(null),s=k(null),{layout:u,theme:c,styleService:d}=iA(tA,(e=>e.baseProps)),p=iA(tA,(e=>e.columnWidths)),{rowHeight:f,setMeasuredCellHeight:m}=WD(n);return GD(t,l,s),VD(l,u,o,p,c),Ll.jsx(lD,{ref:l,outerRef:s,layout:"horizontal",style:UD,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>p[e],height:Math.max(f+8,d.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:m},children:BD})}));var KD=_(YD);const XD=S.forwardRef(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a}=iA(tA,(e=>e.baseProps));return Ll.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:n,height:o},onScroll:i,children:r})})),JD=({children:e,rect:t})=>Ll.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),ZD=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:l,styleService:s}=iA(tA,(e=>e.baseProps)),u=iA(tA,(e=>e.showRightBorder)),c=HD(e,i),d=n[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=n[e],m=a.qHyperCube.qSize.qcx-1===e;return Ll.jsx("div",{className:`sn-table-cell ${vh}`,title:l.passive?d:void 0,style:{...t,...s.totalRow,...iL(s,o,!1),background:s.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!u?"0px":"1px",borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:p,boxSizing:"border-box",cursor:"default"},children:Ll.jsx(zM,{forwardRef:f?void 0:c,isNumeric:f,children:d})})},QD=T(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i}=e,a=k(null),l=k(null),{layout:s,theme:u,styleService:c}=iA(tA,(e=>e.baseProps)),d=iA(tA,(e=>e.columnWidths)),{rowHeight:p,setMeasuredCellHeight:f}=WD(i);return GD(t,a,l),VD(a,s,n,d,u),Ll.jsx(lD,{ref:a,outerRef:l,layout:"horizontal",style:UD,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,c.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:f},children:ZD})}));var ek=_(QD);const tk=e=>{var t;return null===(t=e.current)||void 0===t?void 0:t.element},rk=e=>{var t,r;const[n,o]=E(null!==(t=null===(r=e.current)||void 0===r||null===(r=r.element)||void 0===r?void 0:r.clientHeight)&&void 0!==t?t:0),i=O((e=>{const t=mD(e);t&&o(t)}),[]);return hD(e,i,tk),n},nk=e=>{var t;const{pageInfo:r}=e,{totalsPosition:n,columns:o,paginationNeeded:i}=iA(tA,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=iA(tA,(e=>e.baseProps)),c=iA(tA,(e=>e.columnWidths)),d=iA(tA,(e=>e.setYScrollbarWidth)),p=k(null),f=k(null),m=k(null),h=k(null),{xScrollbarWidth:g,yScrollbarWidth:b}=SM(p),v=k([]),y=C((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,i)),[s,i]),x=C((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=qD(a,r,x,c,0),E=(({headerRef:e,totalsRef:t,totalsPosition:r})=>{const n=rk(e),o=rk(t);return r.atTop||r.atBottom?n+o:n})({totalsPosition:n,headerRef:f,totalsRef:m}),{width:w,height:R}=(({bodyRef:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=iA(tA,(e=>e.baseProps)),a=rk(e)+t,l=r*i.contentMinRowHeight+t;let s=l;return l<n.height&&a>n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({bodyRef:h,headerAndTotalsHeight:E,rowCount:S,stickyContainerRect:x,columnWidths:c}),A=((e,t,r,n)=>O((o=>{var i,a,l;const{scrollHeight:s,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(s-u)));n.scrollTopRatio=p,n.scrollLeft=d,null===(i=r.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(l=t.current)||void 0===l||l.scrollTo(d)}),[n,r,e,t]))(f,m,h,u),I=O((()=>{p.current&&(p.current.scrollTop=0)}),[p]);q((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),q((()=>{p.current&&(p.current.scrollTop=0)}),[r,S,l]),lM((()=>{d(b)}),[b]);const M=Ll.jsx(ek,{rect:x,pageInfo:r,columns:o,ref:m,totals:n},"totals");return Ll.jsx(XD,{ref:p,width:y.width,height:y.height,onScroll:A,children:Ll.jsx(zD,{width:w,height:R,children:Ll.jsxs(JD,{rect:x,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:Ll.jsx(KD,{rect:x,pageInfo:r,columns:o,ref:f,columResizeHandler:I,allColumnsIconVisibilityStatusRef:v}),n.atTop?M:null,Ll.jsx(jD,{ref:h,rect:x,pageInfo:r,columns:o,headerAndTotalsHeight:E}),n.atBottom?M:null]})})})};var ok=_(nk);const ik=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=iA(tA,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=iA(tA,(e=>e.tableData)),c=iA(tA,(e=>e.pageInfo)),d=iA(tA,(e=>e.setPage));return Ll.jsxs(iM,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Ll.jsx(ok,{pageInfo:c}),Ll.jsx(nM,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var ak=_(ik);var lk,sk={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":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(lk||(lk={}));const uk=(e,t)=>o((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(sk).forEach((t=>{e.add(sk[t])}))}}(t),((e,t,r)=>{let n=r||null;return({keys:r,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=r.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;n===lk.FIRST?(u=s,n=lk.SECOND):(u=l,n=lk.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,t))),[e,t.language()]),ck={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},dk=({app:e,model:n,rootElement:o,layout:i,interactions:s,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,embed:h,reactRoot:g,applyColumnWidths:b,isFontLoaded:v,viewService:y,env:x})=>{const{direction:S,footerContainer:E}=a(),C=gy(i,y),w=by(i,y),R=uk(o,u),A=C?{page:y.page||ck.page,rowsPerPage:y.rowsPerPage||ck.rowsPerPage,rowsPerPageOptions:ck.rowsPerPageOptions}:ck,[I,M]=t(A),[P]=l((async()=>w?async function(e,t,r,n,o,i){var a,l;const{page:s,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),m=null!==(a=o.visibleTop)&&void 0!==a?a:s*u,h=null!==(l=o.visibleHeight)&&void 0!==l?l:Math.min(u,p-m);if(s>0&&m>=p)return n({...r,page:0}),null;if(h*d>sy)return n({...r,rowsPerPage:uy(d,c),page:0}),null;const g=p>10,b=cy(t,o),v=hy(t),y=!!t.snapshotData,x=y?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:m,qLeft:0,qHeight:h,qWidth:d}]);o&&!y&&(o.qTop=m,o.qHeight=h,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const r=[];return v.forEach(((n,o)=>{r[o]={id:ov(),...e[o],align:my(e[o],n.bodyTextAlign),rowIdx:t+m,colIdx:n.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:n.selectionColIdx,isSelectable:n.isDim&&!n.isLocked,isLastRow:t===h-1,isNumeric:lv(e[o]),isNull:ly(e[o],n.isDim),representation:ay(e[o],n.representation,n.qAttrExprInfoIndex,i,n.conditionalColoring,n.qMiniChart)}})),r})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,i,I,M,y,x):null),[i,I,n,s,w]);r((()=>{!!(w&&g&&n&&(i.snapshotData||e)&&i&&P&&p&&d&&c&&v&&h)&&function(e,t){const{app:r,model:n,direction:o,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,env:v,...y}=e,x=aA(o);null==t||t.render(Ll.jsx(qo,{stylisPlugins:"rtl"===o?[dC]:void 0,children:Ll.jsx(xE,{theme:x,children:Ll.jsx(oA,{app:r,model:n,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,env:v,children:Ll.jsx(kL,{...y,direction:o})})})}))}({app:e,model:n,rootElement:o,layout:i,tableData:P,direction:S,pageInfo:I,setPageInfo:M,interactions:s,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,footerContainer:E,announce:R,embed:h,applyColumnWidths:b,viewService:y,env:x},g)}),[e,n,g,P,s,S,d,f.active,R,p,b,w,i,c,h,o,I,M,u,m,E,v,x])},pk=e=>{const t=o((()=>sh(e)),[e]);return r((()=>()=>t.unmount()),[t]),t},fk=(e,t)=>o((()=>((e,t)=>{if(t)return async(r,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=r,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=n!==l||s;s||(c.splice(c.indexOf(i),1),c.unshift(i),d.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${c.join(",")}]`})),p&&d.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(d,!0)}})(e.qDimensionInfo.length,t)),[e.qDimensionInfo.length,t]);const mk=({model:e,layout:t,shouldRender:r,page:n})=>{const[o]=l((async()=>{if(r&&e)return(async(e,t,r)=>{let{qDataPages:n}=t.qHyperCube;if(0!==r||void 0===n||0===n.length){const o=r*Math.min(vR,t.qHyperCube.qSize.qcy);n=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:n,derivedFrom:{layout:t,page:r}}})(e,t,n)}),[e,t,n]),i=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==n;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:i}},hk=({app:e,layout:n,model:i,rect:a,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,env:y})=>{const x=!by(n,v),E=o((()=>function(e,t,r){const n=cy(e,r),o=hy(e),i=e.qHyperCube.qSize.qcy,a=Math.min(vR,i),l=i>vR&&!!t.active;return{totalsPosition:n,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(n,c,v)),[n,c,v]),{pageInfo:C,setPage:w}=((e,r)=>{const[n,i]=t(0),a=Math.min(vR,e.qHyperCube.qSize.qcy),l=o((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(r){const t=Math.floor(e.qHyperCube.qSize.qcy/vR);t<n&&i(t)}return{pageInfo:l,setPage:i}})(n,x),{initialDataPages:R,isLoading:A}=mk({model:i,layout:n,page:C.page,shouldRender:x});r((()=>{var e;x&&s.active&&(null===(e=s.blur)||void 0===e||e.call(s,!1))}),[s.active]),r((()=>{x&&i&&p&&R&&!A&&b&&function(e,t){const{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:x}=e,E=aA("ltr");t.render(Ll.jsx(S.StrictMode,{children:Ll.jsx(xE,{theme:E,children:Ll.jsx(oA,{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:x,children:Ll.jsx(ak,{})})})}))}({app:e,layout:n,model:i,rect:a,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:E,applyColumnWidths:g,setPage:w,pageInfo:C,initialDataPages:R,viewService:v,env:y},h)}),[e,n,i,a,l,s.active,u,c,d,p,x,f,m,h,E,g,w,C,A,R,b,y])},gk=(e,t)=>{const{fontSize:r,fontFamily:n}=FR(t,e,!1),{fontSize:o,fontFamily:i}=jR(t,e),[a,s]=l((async()=>(await document.fonts.load(`600 ${r} ${n}`),await document.fonts.load(`${o} ${i}`),!0)),[r,n,o,i]);return s?(console.warn("Failed to load font:",s),!0):!!a},bk={version:JSON.stringify("3.13.2"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};var vk=()=>({properties:{initial:bk},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:eb,exportProperties:Zg,exploration:tb});function yk(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=(null==r?void 0:r.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?l.height:0),bottom:n.y+n.height-(t.atBottom?l.height:0)},c=((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})(s,u),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})(s,u),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)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const xk=(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]}},Sk=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const Ek=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||ck.rowsPerPage,l=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},Ck=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=cy(e,t);if(by(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=yk(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:Ek(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=xk(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(Sk(m,h,g)?d:d+1)+c;let v=p+c;const y=xk(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(Sk(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:Ek(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},wk=({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{s((async i=>{if(!i.snapshotData||!r||i.snapshotData.content)return i;if(r.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=Ck(e,t,n);i.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),u((()=>({getViewState:()=>Ck(e,t,n)})),[e,t,n])},Rk=e=>{const{viewState:t}=a();return o((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(t,e.snapshotData)),[t,e.snapshotData,e.usePagination])},Ak=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),Ik=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));
193
+ `),HE.rippleVisible,YE,550,(({theme:e})=>e.transitions.easing.easeInOut),HE.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),HE.child,HE.childLeaving,KE,550,(({theme:e})=>e.transitions.easing.easeInOut),HE.childPulsate,XE,(({theme:e})=>e.transitions.easing.easeInOut));var QE=x.forwardRef((function(e,t){const r=zE({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=It(r,BE),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=Yi(),f=x.useRef(null),m=x.useRef(null),h=x.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,Pl.jsx(ZE,{classes:{ripple:ma(o.ripple,HE.ripple),rippleVisible:ma(o.rippleVisible,HE.rippleVisible),ripplePulsate:ma(o.ripplePulsate,HE.ripplePulsate),child:ma(o.child,HE.child),childLeaving:ma(o.childLeaving,HE.childLeaving),childPulsate:ma(o.childPulsate,HE.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.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 l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=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,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Pl.jsx(JE,vt({className:ma(HE.root,o.root,i),ref:m},a,{children:Pl.jsx(Nu,{component:null,exit:!0,children:l})}))}));function eC(e){return ua("MuiButtonBase",e)}var tC=ca("MuiButtonBase",["root","disabled","focusVisible"]);const rC=["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"],nC=ES("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"},[`&.${tC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),oC=x.forwardRef((function(e,t){const r=zE({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:M=0,TouchRippleProps:P,touchRippleRef:D,type:L}=r,k=It(r,rC),O=x.useRef(null),_=x.useRef(null),T=Wi(_,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=na(),[z,H]=x.useState(!1);s&&z&&H(!1),x.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[B,$]=x.useState(!1);x.useEffect((()=>{$(!0)}),[]);const W=B&&!u&&!s;function V(e,t,r=c){return $i((n=>{t&&t(n);return!r&&_.current&&_.current[e](n),!0}))}x.useEffect((()=>{z&&d&&!u&&B&&_.current.pulsate()}),[u,d,z,B]);const G=V("start",E),U=V("stop",h),Y=V("stop",g),K=V("stop",w),X=V("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=V("start",I),Z=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{F(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=$i((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=$i((e=>{d&&!ne.current&&z&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=$i((e=>{d&&" "===e.key&&_.current&&z&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(k.href||k.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=s):(k.href||k.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Wi(t,j,O),ue=vt({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ia({root:["root",t&&"disabled",r&&"focusVisible"]},eC,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Pl.jsxs(nC,vt({as:ae,className:ma(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:M,type:L},le,k,{children:[i,W?Pl.jsx(QE,vt({ref:T,center:o},P)):null]}))}));var iC=oC;var aC=ca("MuiBox",["root"]);const lC=Wx(),sC=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ii("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ey),a=x.forwardRef((function(e,a){const l=function(e=My){return Iy(e)}(r),s=Dy(e),{className:u,component:c="div"}=s,d=It(s,ky);return Pl.jsx(i,vt({as:c,ref:a,className:ma(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:Ev,defaultTheme:lC,defaultClassName:aC.root,generateClassName:la.generate});var uC=sC;var cC=ca("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var dC=x.createContext({});function pC(e){return ua("MuiListItemIcon",e)}var fC=ca("MuiListItemIcon",["root","alignItemsFlexStart"]);const mC=["className"],hC=ES("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})=>vt({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var gC=x.forwardRef((function(e,t){const r=zE({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=It(r,mC),i=vt({},r,{alignItems:x.useContext(dC).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return ia({root:["root","flex-start"===t&&"alignItemsFlexStart"]},pC,r)})(i);return Pl.jsx(hC,vt({className:ma(a.root,n),ownerState:i,ref:t},o))}));var bC=ca("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function vC(e){return ua("MuiMenuItem",e)}var yC=ca("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const xC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],SC=ES(iC,{shouldForwardProp:e=>SS(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})=>vt({},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"}},[`&.${yC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ex(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${yC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ex(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${yC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ex(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})`:ex(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${yC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${yC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${cC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${cC.inset}`]:{marginLeft:52},[`& .${bC.root}`]:{marginTop:0,marginBottom:0},[`& .${bC.inset}`]:{paddingLeft:36},[`& .${fC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&vt({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${fC.root} svg`]:{fontSize:"1.25rem"}}))));var EC=x.forwardRef((function(e,t){const r=zE({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=It(r,xC),f=x.useContext(dC),m=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=x.useRef(null);Bi((()=>{n&&h.current&&h.current.focus()}),[n]);const g=vt({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return vt({},a,ia({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},vC,a))})(r),v=Wi(h,t);let y;return r.disabled||(y=void 0!==c?c:-1),Pl.jsx(dC.Provider,{value:m,children:Pl.jsx(SC,vt({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:ma(b.focusVisible,s),className:ma(b.root,d)},p,{ownerState:g,classes:b}))})}));var CC=x.createContext();function wC(e){return ua("MuiTable",e)}ca("MuiTable",["root","stickyHeader"]);const RC=["className","component","padding","size","stickyHeader"],AC=ES("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>vt({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":vt({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),IC="table",MC=x.forwardRef((function(e,t){const r=zE({props:e,name:"MuiTable"}),{className:n,component:o=IC,padding:i="normal",size:a="medium",stickyHeader:l=!1}=r,s=It(r,RC),u=vt({},r,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:r}=e;return ia({root:["root",r&&"stickyHeader"]},wC,t)})(u),d=x.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Pl.jsx(CC.Provider,{value:d,children:Pl.jsx(AC,vt({as:o,role:o===IC?null:"table",ref:t,className:ma(c.root,n),ownerState:u},s))})}));var PC=MC;var DC=x.createContext();function LC(e){return ua("MuiTableBody",e)}ca("MuiTableBody",["root"]);const kC=["className","component"],OC=ES("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),_C={variant:"body"},TC="tbody";var qC=x.forwardRef((function(e,t){const r=zE({props:e,name:"MuiTableBody"}),{className:n,component:o=TC}=r,i=It(r,kC),a=vt({},r,{component:o}),l=(e=>{const{classes:t}=e;return ia({root:["root"]},LC,t)})(a);return Pl.jsx(DC.Provider,{value:_C,children:Pl.jsx(OC,vt({className:ma(l.root,n),as:o,ref:t,role:o===TC?null:"rowgroup",ownerState:a},i))})}));function NC(e){return ua("MuiTableCell",e)}var FC=ca("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const jC=["align","className","component","padding","scope","size","sortDirection","variant"],zC=ES("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${qi(r.size)}`],"normal"!==r.padding&&t[`padding${qi(r.padding)}`],"inherit"!==r.align&&t[`align${qi(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>vt({},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?nx(ex(e.palette.divider,1),.88):tx(ex(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",[`&.${FC.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}))),HC=x.forwardRef((function(e,t){const r=zE({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=r,d=It(r,jC),p=x.useContext(CC),f=x.useContext(DC),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=vt({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return ia({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${qi(n)}`,"normal"!==o&&`padding${qi(o)}`,`size${qi(i)}`]},NC,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Pl.jsx(zC,vt({as:h,ref:t,className:ma(y.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var BC=HC;function $C(e){return ua("MuiTableContainer",e)}ca("MuiTableContainer",["root"]);const WC=["className","component"],VC=ES("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var GC=x.forwardRef((function(e,t){const r=zE({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=It(r,WC),a=vt({},r,{component:o}),l=(e=>{const{classes:t}=e;return ia({root:["root"]},$C,t)})(a);return Pl.jsx(VC,vt({ref:t,as:o,className:ma(l.root,n),ownerState:a},i))}));function UC(e){return ua("MuiTableHead",e)}ca("MuiTableHead",["root"]);const YC=["className","component"],KC=ES("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),XC={variant:"head"},JC="thead";var ZC=x.forwardRef((function(e,t){const r=zE({props:e,name:"MuiTableHead"}),{className:n,component:o=JC}=r,i=It(r,YC),a=vt({},r,{component:o}),l=(e=>{const{classes:t}=e;return ia({root:["root"]},UC,t)})(a);return Pl.jsx(DC.Provider,{value:XC,children:Pl.jsx(KC,vt({as:o,className:ma(l.root,n),ref:t,role:o===JC?null:"rowgroup",ownerState:a},i))})}));function QC(e){return ua("MuiTableRow",e)}var ew=ca("MuiTableRow",["root","selected","hover","head","footer"]);const tw=["className","component","hover","selected"],rw=ES("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,[`&.${ew.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ew.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ex(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}))`:ex(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),nw="tr",ow=x.forwardRef((function(e,t){const r=zE({props:e,name:"MuiTableRow"}),{className:n,component:o=nw,hover:i=!1,selected:a=!1}=r,l=It(r,tw),s=x.useContext(DC),u=vt({},r,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return ia({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},QC,t)})(u);return Pl.jsx(rw,vt({as:o,ref:t,className:ma(c.root,n),role:o===nw?null:"row",ownerState:u},l))}));var iw=ow,aw=(e={})=>S.createElement(_E,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:bE.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const lw={MuiAccordion:{styleOverrides:{root:{backgroundColor:bE.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:bE.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(LE,{"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 ${bE.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:bE.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${bE.MISC_FOCUS_BORDER}`,borderRadius:EE,backgroundColor:bE.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 ${bE.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:bE.WHITE,color:bE.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:EE},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${bE.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:bE.GREYSCALE_0_15,backgroundColor:bE.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:bE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${bE.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:bE.GREEN_PALE},"&:active":{backgroundColor:bE.GREEN_DARK},"&.Mui-focusVisible":{borderColor:bE.GREEN_PALE,boxShadow:`0 0 0 3px ${_y(bE.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:bE.BLUE_PALE},"&:active":{backgroundColor:bE.BLUE_DARK},"&.Mui-focusVisible":{borderColor:bE.BLUE_PALE,boxShadow:`0 0 0 3px ${_y(bE.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:EE,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:bE.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${bE.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:bE.GREYSCALE_0_15,backgroundColor:bE.GREYSCALE_100_60,"&:active":{backgroundColor:bE.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:bE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${bE.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:bE.PURPLE,"&.Mui-focusVisible":{borderColor:bE.PURPLE,boxShadow:`0 0 0 3px ${_y(bE.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:bE.GREEN,"&.Mui-focusVisible":{borderColor:bE.GREEN,boxShadow:`0 0 0 3px ${_y(bE.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:bE.BLUE,"&.Mui-focusVisible":{borderColor:bE.BLUE,boxShadow:`0 0 0 3px ${_y(bE.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:bE.ORANGE,"&.Mui-focusVisible":{borderColor:bE.ORANGE,boxShadow:`0 0 0 3px ${_y(bE.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:bE.RED,"&.Mui-focusVisible":{borderColor:bE.RED,boxShadow:`0 0 0 3px ${_y(bE.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:bE.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:bE.PURPLE_PALE},"&:active":{backgroundColor:bE.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:bE.PURPLE_PALE,boxShadow:`0 0 0 3px ${_y(bE.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:bE.GREEN_PALE},"&:active":{backgroundColor:bE.GREEN_DARK},"&.Mui-focusVisible":{borderColor:bE.GREEN_PALE,boxShadow:`0 0 0 3px ${_y(bE.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:bE.BLUE_PALE},"&:active":{backgroundColor:bE.BLUE_DARK},"&.Mui-focusVisible":{borderColor:bE.BLUE_PALE,boxShadow:`0 0 0 3px ${_y(bE.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:bE.ORANGE_PALE},"&:active":{backgroundColor:bE.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:bE.ORANGE_PALE,boxShadow:`0 0 0 3px ${_y(bE.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:bE.RED_PALE},"&:active":{backgroundColor:bE.RED_DARK},"&.Mui-focusVisible":{borderColor:bE.RED_PALE,boxShadow:`0 0 0 3px ${_y(bE.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:bE.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:bE.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:EE,boxShadow:`inset 0 0 0 2px ${bE.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(OE,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:vE,borderRadius:EE,color:bE.TEXT_PRIMARY,backgroundColor:bE.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:bE.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${bE.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:bE.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:bE.GREYSCALE_0_05,color:bE.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:bE.GREEN,borderColor:bE.GREEN},"&.MuiChip-outlinedInfo":{color:bE.BLUE,borderColor:bE.BLUE},"&.MuiChip-outlinedWarning":{color:bE.ORANGE,borderColor:bE.ORANGE},"&.MuiChip-outlinedError":{color:bE.RED,borderColor:bE.RED}},outlined:{border:`solid 1px ${bE.GREYSCALE_0_15}`,backgroundColor:bE.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:EE,boxShadow:"none",backgroundColor:bE.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:bE.GREEN,borderColor:bE.GREEN},outlinedSecondary:{color:bE.BLUE,borderColor:bE.BLUE},label:{fontFamily:IE.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(OE,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(LE,{"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:EE},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:EE,fontSize:yE,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:bE.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${bE.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:bE.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:bE.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:bE.GREYSCALE_0_05}}},popupIndicator:{borderRadius:EE,border:`solid 1px ${bE.GREYSCALE_0_15}`,color:bE.GREYSCALE_0_60,marginRight:0,width:SE,height:SE},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${bE.GREYSCALE_0_15}`},clearIndicator:{borderRadius:EE,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:bE.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:yE}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:vE,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:bE.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:bE.GREYSCALE_25,fontSize:vE,fontFamily:IE.FONT_FAMILY,fontWeight:RE,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:bE.TEXT_PRIMARY},"&.Mui-error":{color:bE.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:bE.TEXT_SECONDARY,content:"'(optional)'",fontWeight:wE,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:bE.TEXT_SECONDARY,content:"'(required)'",fontWeight:wE,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:yE,lineHeight:"16px",backgroundColor:bE.WHITE,borderRadius:EE,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${bE.GREYSCALE_0_05}`,borderColor:bE.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${bE.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${bE.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${bE.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${bE.RED}`,boxShadow:`0px 0px 0px 1px ${bE.RED}, inset 0 2px 0 0 ${bE.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${bE.GREYSCALE_0_10}`,borderColor:bE.GREYSCALE_0_10,backgroundColor:bE.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:bE.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:bE.GREYSCALE_0_15,borderRadius:EE,boxShadow:`inset 0 2px 0 0 ${bE.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(LE,{...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:bE.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:bE.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:bE.GREYSCALE_0_03},"&:active":{backgroundColor:bE.GREYSCALE_0_10},"&:focus":{backgroundColor:bE.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${bE.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${bE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:bE.GREYSCALE_0_30,"&:hover":{backgroundColor:bE.GREYSCALE_0_0,borderColor:bE.GREYSCALE_0_15},"& ~svg":{color:bE.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${bE.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:EE}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:bE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${bE.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:bE.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:yE,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:vE,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:vE,fontWeight:RE,color:bE.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:RE}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${bE.GREYSCALE_0_15}, 0px 0px 0px 1px ${bE.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(NE,null),checkedIcon:S.createElement(FE,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:bE.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${bE.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:bE.GREEN_PALE,boxShadow:`0 0 0 3px ${_y(bE.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:bE.BLUE_PALE,boxShadow:`0 0 0 3px ${_y(bE.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:bE.GREYSCALE_0_20}},"&.Mui-disabled":{fill:bE.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(aw,null),checkedIcon:S.createElement(TE,null),indeterminateIcon:S.createElement(qE,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:EE,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:bE.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:bE.GREYSCALE_0_55,color:bE.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:bE.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:bE.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:bE.GREYSCALE_0_55,"&:hover":{color:bE.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:bE.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:bE.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:yE,color:bE.TEXT_PRIMARY,lineHeight:"16px",fontWeight:RE},secondary:{fontSize:vE,color:bE.GREYSCALE_45,fontWeight:wE,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:yE,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:yE,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:bE.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:vE,borderBottom:`solid 1px ${bE.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:yE,color:bE.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:bE.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:bE.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:bE.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:bE.RED}}},"&.Mui-focusVisible":{backgroundColor:bE.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:bE.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:bE.GREEN,height:"24px","&.Mui-disabled":{color:bE.GREYSCALE_0_15}},rail:{backgroundColor:bE.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${bE.GREYSCALE_0_05}`,borderRadius:EE,boxShadow:`inset 0px 0px 0px 1px ${bE.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${bE.GREYSCALE_0_05}`,borderRadius:EE},thumb:{height:"16px",width:"16px",borderRadius:EE,backgroundColor:bE.WHITE,boxShadow:`0px 1px 2px 0px ${bE.GREYSCALE_0_15}, 0px 0px 0px 1px ${bE.GREYSCALE_0_05}`,"&:hover":{borderRadius:EE,boxShadow:`0 2px 4px 0 ${bE.GREYSCALE_0_30}, 0 0 0 1px ${bE.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${bE.GREYSCALE_0_15}, 0 0 0 1px ${bE.GREYSCALE_0_06}, 0 0 0 2px ${bE.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${bE.GREYSCALE_0_15}, 0 0 0 1px ${bE.GREYSCALE_0_06}, 0 0 0 2px ${bE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:bE.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:bE.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:bE.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:bE.GREYSCALE_0_15},markLabel:{color:bE.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:bE.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:bE.WHITE,color:bE.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:bE.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:bE.GREEN_PALE,boxShadow:`0 0 0 3px ${_y(bE.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:bE.BLUE_PALE,boxShadow:`0 0 0 3px ${_y(bE.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:bE.GREYSCALE_0_15,borderRadius:EE},thumb:{height:"16px",width:"16px",borderRadius:EE,backgroundColor:bE.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:yE,fontWeight:RE,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${bE.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${bE.MISC_FOCUS_BORDER}`,backgroundColor:bE.GREYSCALE_0_03,borderRadius:EE},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:bE.GREYSCALE_25,"&.Mui-selected":{color:bE.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:yE,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:EE,"&:hover":{backgroundColor:`${bE.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 ${bE.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${bE.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:EE,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:bE.GREYSCALE_0_05},"&:hover":{backgroundColor:`${bE.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${bE.GREYSCALE_85}`,borderRight:`1px solid ${bE.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:RE,backgroundColor:bE.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:bE.GREYSCALE_98,borderBottom:`1px solid ${bE.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${bE.GREYSCALE_85}`,borderTop:`1px solid ${bE.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:bE.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:bE.GREYSCALE_0_05,"&:hover":{backgroundColor:bE.GREYSCALE_0_03}},"&&:hover":{backgroundColor:bE.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(jE,{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 ${bE.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:yE,borderRadius:EE,padding:"7px 16px",border:`1px solid ${bE.GREYSCALE_0_15}`,backgroundColor:bE.GREYSCALE_100_60,color:bE.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:bE.GREYSCALE_0_10,border:`1px solid ${bE.GREYSCALE_0_30}`},"&:hover":{backgroundColor:bE.GREYSCALE_0_03,border:`1px solid ${bE.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:bE.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${bE.MISC_FOCUS_BORDER}`,border:`1px solid ${bE.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:bE.GREYSCALE_25,backgroundColor:bE.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:bE.GREYSCALE_0_10,border:`1px solid ${bE.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:vE,height:24,width:24,padding:7},sizeLarge:{fontSize:xE,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:yE,borderRadius:EE}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:bE.GREYSCALE_20},tooltip:{backgroundColor:bE.GREYSCALE_20,fontSize:vE,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var sw=e=>lw;const uw={mode:"light",primary:{ultraLight:bE.GREEN_ULTRA_LIGHT,light:bE.GREEN_PALE,main:bE.GREEN,dark:bE.GREEN_DARK,extraDark:bE.GREEN_EXTRA_DARK,contrastText:bE.WHITE},secondary:{ultraLight:bE.BLUE_ULTRA_LIGHT,light:bE.BLUE_PALE,main:bE.BLUE,dark:bE.BLUE_DARK,extraDark:bE.BLUE_EXTRA_DARK,contrastText:bE.WHITE},error:{ultraLight:bE.RED_ULTRA_LIGHT,light:bE.RED_PALE,main:bE.RED,dark:bE.RED_DARK,extraDark:bE.RED_EXTRA_DARK,contrastText:bE.WHITE},warning:{ultraLight:bE.ORANGE_ULTRA_LIGHT,light:bE.ORANGE_PALE,main:bE.ORANGE,dark:bE.ORANGE_DARK,extraDark:bE.ORANGE_EXTRA_DARK,contrastText:bE.WHITE},success:{ultraLight:bE.GREEN_ULTRA_LIGHT,light:bE.GREEN_PALE,main:bE.GREEN,dark:bE.GREEN_DARK,extraDark:bE.GREEN_EXTRA_DARK,contrastText:bE.WHITE},info:{ultraLight:bE.BLUE_ULTRA_LIGHT,light:bE.BLUE_PALE,main:bE.BLUE,dark:bE.BLUE_DARK,extraDark:bE.BLUE_EXTRA_DARK,contrastText:bE.WHITE},text:{primary:bE.TEXT_PRIMARY,secondary:bE.TEXT_SECONDARY,disabled:bE.GREYSCALE_0_30},action:{hover:bE.GREYSCALE_0_03,hoverOpacity:.03,selected:bE.GREYSCALE_0_05,selectedOpacity:.05,focus:bE.MISC_FOCUS_BORDER},amethyst:{ultraLight:bE.WHITE,main:bE.PURPLE,light:bE.PURPLE_PALE,dark:bE.PURPLE_DARK,extraDark:bE.GREYSCALE_0_0,contrastText:bE.WHITE},background:{paper:bE.WHITE,default:bE.GREYSCALE_95},divider:bE.GREYSCALE_0_15},cw=e=>({components:sw(),palette:uw,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:yE,fontWeightLight:CE,fontWeightRegular:wE,fontWeightMedium:RE,fontWeightBold:AE,htmlFontSize:yE,fontFamily:IE.FONT_FAMILY,button:{fontWeight:RE,fontSize:yE,textTransform:"none"},body1:{fontSize:xE,lineHeight:"24px"},body2:{fontSize:yE,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:SE,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:xE,fontWeight:RE,lineHeight:"16px"},h6:{fontSize:yE,fontWeight:RE,lineHeight:"16px"},caption:{color:bE.TEXT_SECONDARY},subtitle1:{fontSize:yE,color:bE.TEXT_SECONDARY},subtitle2:{fontSize:vE,color:bE.TEXT_SECONDARY}},shape:{borderRadius:EE}}),dw={...gE,MISC_FOCUS_BORDER:bE.MISC_FOCUS_BORDER},pw=(e="light")=>cw(),fw=pw().palette,mw=(fw.primary.light,jS.Selected,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),hw=4/3,gw="12px",bw="600",vw="Source Sans Pro, sans-serif",yw={height:"auto",fontSize:gw,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"}},xw={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:bw},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},Sw=25e4,Ew=(e,t,r)=>{if(null==e||!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var l;if(e.columnWidth){const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(wm.PixelsMax,Math.max(wm.PixelsMin,m)),i-=n[a]};switch(s){case Rm.Pixels:m=u||wm.PixelsDefault,h();break;case Rm.Percentage:m=(c||wm.PercentageDefault)/100*t,h();break;case Rm.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===pg.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case Rm.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}else o.push(a)})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(wm.AutoMinTable,e)}))}return n},Cw=e=>e.ctrlKey||e.metaKey,ww=e=>e.shiftKey&&Cw(e),Rw=e=>[Em.Left,Em.Right,Em.Up,Em.Down].includes(e),Aw=e=>Rw(e)||[Em.Home,Em.End,Em.PageUp,Em.PageDown].includes(e),Iw=e=>e.shiftKey&&Rw(e.key),Mw=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=jS.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?jS.Disabled:void 0!==n[e.qElemNumber]?jS.Selected:jS.Possible),i},Pw=(e,t,r)=>{const n=Object.keys(r).length,o=n>=Object.keys(t).length;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)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...n}}return s=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?{[n]:o}:(void 0!==e[n]?delete e[n]:e[n]=o,{...e})})(s,i,l),Pw(a,n,s),Object.keys(s).length?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:s,colIdx:-1})},Lw=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&Iw(c)?(-1===i?null==n||n.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,r,n,o)=>{const i={...t};if("key"in n&&Iw(n)){i[r.qElemNumber]=r.rowIdx;const t=n.key===Em.Down?1:-1;return i[e[r.pageRowIdx+t][r.pageColIdx].qElemNumber]=r.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),l=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=l;t++){const r=e[t][o.pageColIdx];i[r.qElemNumber]=r.rowIdx}return i})(a,d,s,c,l),Pw(u,o,d),{...e,rows:d,colIdx:null!==(r=null==l?void 0:l.selectionColIdx)&&void 0!==r?r:s.selectionColIdx,isSelectMultiValues:!0}):e},kw=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(r),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},Ow=(e,t)=>{var r;switch(t.type){case zS.Select:return Dw(e,t.payload);case zS.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 zS.SelectMouseUp:return((e,t)=>kw(e.isSelectMultiValues||e.firstCell!==t.cell?e:Dw(e,t)))(e,t.payload);case zS.SelectMultiAdd:return Lw(e,t.payload);case zS.SelectMultiEnd:return kw(e);case zS.Reset:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:{},colIdx:-1};case zS.Clear:return Object.keys(e.rows).length?{...e,rows:{}}:e;case zS.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},_w=4/3,Tw=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function qw(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const Nw=(e,t)=>e?{borderBottomColor:Uf.DARK_MODE_BORDER,borderRightColor:Uf.DARK_MODE_BORDER,borderLeftColor:Uf.DARK_MODE_BORDER,borderTopColor:Uf.DARK_MODE_BORDER}:{borderLeftColor:Uf.BORDER_MEDIUM,borderRightColor:Uf.BORDER_MEDIUM,borderTopColor:Uf.BORDER_HEAVY,borderBottomColor:t?Uf.BORDER_HEAVY:Uf.BORDER_LIGHT},Fw=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*_w+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},jw=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},zw=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:Tw(null==r?void 0:r.fontColor)?qw(Uf.TEXT,t,null==r?void 0:r.fontColor):i||Uf.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?null==r?void 0:r.padding:void 0,...Nw(t.background.isDark,n)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function Hw(e,t,r){var n,o,i;const a=null===(n=jw(e))||void 0===n?void 0:n.header,l=zw("header",t,a,r);return l.background=(e=>{if(void 0===e)return;const t=oe(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),l.hoverBackground=Jf(null!==(o=l.background)&&void 0!==o?o:Uf.WHITE,Am),l.activeBackground=Jf(null!==(i=l.background)&&void 0!==i?i:Uf.WHITE,Im),l}function Bw(e,t,r,n){var o;const i=null===(o=jw(e))||void 0===o?void 0:o.content,a=zw("content",t,i);a.background=t.background.color;const l=Fw(null==a?void 0:a.fontSize,r,n),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=Tw(u)||!!d,f=Tw(s)||!!c,m=p||f;let h;h=Tw(s)?qw(Uf.HOVER,t,s):c||(p?"":Uf.HOVER);const g=m?qw(Yf(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const $w=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>e in xw&&Object.assign(t,xw[e]))),t};function Ww(e,t,r){var n;const o={};let i={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText,a=n&&em(n);a&&"none"!==a&&(o[r[t]]=a),i=n?$w(n,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=Yf(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const Vw=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},Gw=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=Vw(e,null==t?void 0:t.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},Uw=(e,t,r,n=Uf.WHITE)=>{var o;const{backgroundColor:i,backgroundFromStyling:a,sheetColorFromCSS:l}=Gw(e,t,r);return null!==(o=om(a,i,l,n))&&void 0!==o?o:n},Yw=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return gw}},Kw=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",Xw=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?bw:"normal",Jw=(e,t)=>!1===e&&t.flags.isEnabled("CLIENT_IM_6997_WORD_WRAP")?1:3,Zw=e=>parseInt(null!=e?e:yw.fontSize,10)*hw,Qw=e=>{const t=Math.max(Zw(e.header.fontSize)+8,32),r=Zw(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(Zw(e.dimension.values.fontSize),Zw(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}},eR=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",tR=(e,t,r,n,o)=>{var i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,I,M,P,D,L,k,O,_,T,q,N,F,j,z,H,B,$,W,V,G,U,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,le,se,ue,ce,de,pe,fe,me;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,r,n)=>{var o,i,a,l,s;const u=null===(o=jw(e))||void 0===o||null===(o=o.content)||void 0===o?void 0:o.rowHeight,c={header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:bw,textDecoration:"none",color:t.head.color,background:t.head.background},dimension:{values:{fontFamily:t.body.fontFamily,fontSize:t.body.fontSize,fontStyle:"normal",fontWeight:"normal",textDecoration:"none",color:t.body.color,background:t.body.background}},measure:{values:{fontFamily:t.body.fontFamily,fontSize:t.body.fontSize,fontStyle:"normal",fontWeight:"normal",textDecoration:"none",color:t.body.color,background:t.body.background}},totalRow:{fontFamily:t.totals.fontFamily,fontSize:t.totals.fontSize,fontStyle:"normal",fontWeight:bw,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{contentLineClamp:null!=u?u:Jw(null===(i=e.multiline)||void 0===i?void 0:i.wrapTextInCells,n),headerLineClamp:Jw(null===(a=e.multiline)||void 0===a?void 0:a.wrapTextInHeaders,n),border:r.background.isDark?Uf.DARK_MODE_BORDER:Uf.BORDER_MEDIUM,divider:Uf.BORDER_HEAVY,hoverColors:{color:null===(l=t.body.hoverColors)||void 0===l?void 0:l.color,background:null===(s=t.body.hoverColors)||void 0===s?void 0:s.background},lastRowBottomBorder:t.body.lastRowBottomBorder},selectedColors:Xf({desiredColor:t.body.color,theme:r,flags:n.flags}),headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground,headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:u},{headerMinRowHeight:d,totalRowLineHeight:p,totalRowMinHeight:f,contentLineHeight:m,contentMinRowHeight:h}=Qw(c);return c.headerMinRowHeight=d,c.totalRowLineHeight=p,c.totalRowMinHeight=f,c.contentLineHeight=m,c.contentMinRowHeight=h,c})(t,r,n,e);const{header:he,dimensionValues:ge,measureValues:be,totalValues:ve,nullValues:ye,grid:xe,content:Se}=null!==(i=jw(t))&&void 0!==i?i:{},Ee=!0===t.usePagination?Uf.WHITE:Uf.TRANSPARENT,Ce=Uw(n,he,"object.straightTableV2.dimension.label.name.backgroundColor",Ee),we=null!==(a=null!==(l=null!==(s=null!==(u=Vw(n,null==ge?void 0:ge.fontColor))&&void 0!==u?u:Vw(n,null==Se?void 0:Se.fontColor))&&void 0!==s?s:n.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==l?l:r.body.color)&&void 0!==a?a:Uf.TEXT,Re=null!==(c=null!==(d=null===(p=o.viewState)||void 0===p?void 0:p.maxLineCount)&&void 0!==d?d:null==Se?void 0:Se.rowHeight)&&void 0!==c?c:n.getStyle("object.straightTableV2","grid","lineClamp"),Ae={header:{fontFamily:null!==(f=null!==(m=null!==(h=null==he?void 0:he.fontFamily)&&void 0!==h?h:n.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==m?m:r.head.fontFamily)&&void 0!==f?f:vw,fontSize:Yw(null!==(g=null!==(b=null==he?void 0:he.fontSize)&&void 0!==b?b:n.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==g?g:r.head.fontSize),fontStyle:Kw(null==he?void 0:he.fontStyle),fontWeight:Xw(null==he?void 0:he.fontStyle,bw),textDecoration:eR(null==he?void 0:he.fontStyle),color:null!==(v=null!==(y=null!==(x=Vw(n,null==he?void 0:he.fontColor))&&void 0!==x?x:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==y?y:r.head.color)&&void 0!==v?v:Uf.TEXT,background:Ce},headerMenuHoverBackground:Jf(Ce,Am),headerMenuActiveBackground:Jf(Ce,Im),dimension:{values:{fontFamily:null!==(S=null!==(E=null!==(C=null==ge?void 0:ge.fontFamily)&&void 0!==C?C:n.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==E?E:r.body.fontFamily)&&void 0!==S?S:vw,fontSize:Yw(null!==(w=null!==(R=null!==(A=null==ge?void 0:ge.fontSize)&&void 0!==A?A:null==Se?void 0:Se.fontSize)&&void 0!==R?R:n.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==w?w:r.body.fontSize),fontStyle:Kw(null==ge?void 0:ge.fontStyle),fontWeight:Xw(null==ge?void 0:ge.fontStyle,"normal"),textDecoration:eR(null==ge?void 0:ge.fontStyle),color:we,background:null!==(I=null!==(M=Gw(n,ge,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==M?M:r.body.background)&&void 0!==I?I:Uf.TRANSPARENT}},measure:{values:{fontFamily:null!==(P=null!==(D=null!==(L=null==be?void 0:be.fontFamily)&&void 0!==L?L:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==D?D:r.body.fontFamily)&&void 0!==P?P:vw,fontSize:Yw(null!==(k=null!==(O=null!==(_=null==be?void 0:be.fontSize)&&void 0!==_?_:null==Se?void 0:Se.fontSize)&&void 0!==O?O:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==k?k:r.body.fontSize),fontStyle:Kw(null==be?void 0:be.fontStyle),fontWeight:Xw(null==be?void 0:be.fontStyle,"normal"),textDecoration:eR(null==be?void 0:be.fontStyle),color:null!==(T=null!==(q=null!==(N=null!==(F=Vw(n,null==be?void 0:be.fontColor))&&void 0!==F?F:Vw(n,null==Se?void 0:Se.fontColor))&&void 0!==N?N:n.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==q?q:r.body.color)&&void 0!==T?T:Uf.TEXT,background:null!==(j=null!==(z=Gw(n,be,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==z?z:r.body.background)&&void 0!==j?j:Uf.TRANSPARENT}},totalRow:{fontFamily:null!==(H=null!==(B=null!==($=null==ve?void 0:ve.fontFamily)&&void 0!==$?$:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==B?B:r.totals.fontFamily)&&void 0!==H?H:vw,fontSize:Yw(null!==(W=null!==(V=null!==(G=null==ve?void 0:ve.fontSize)&&void 0!==G?G:null==Se?void 0:Se.fontSize)&&void 0!==V?V:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==W?W:r.totals.fontSize),fontStyle:Kw(null==ve?void 0:ve.fontStyle),fontWeight:Xw(null==ve?void 0:ve.fontStyle,bw),textDecoration:eR(null==ve?void 0:ve.fontStyle),color:null!==(U=null!==(Y=null!==(K=null!==(X=Vw(n,null==ve?void 0:ve.fontColor))&&void 0!==X?X:Vw(n,null==Se?void 0:Se.fontColor))&&void 0!==K?K:n.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==Y?Y:r.totals.color)&&void 0!==U?U:Uf.TEXT,background:Uw(n,ve,"object.straightTableV2.total.label.value.backgroundColor",Ee)},nullValues:{fontStyle:Kw(null==ye?void 0:ye.fontStyle),fontWeight:Xw(null==ye?void 0:ye.fontStyle,"normal"),textDecoration:eR(null==ye?void 0:ye.fontStyle),color:null!==(J=null!==(Z=null!==(Q=null!==(ee=Vw(n,null==ye?void 0:ye.fontColor))&&void 0!==ee?ee:Vw(n,null==Se?void 0:Se.fontColor))&&void 0!==Q?Q:n.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Z?Z:r.body.color)&&void 0!==J?J:Uf.TEXT,background:null!==(te=null!==(re=Vw(n,null==ye?void 0:ye.background))&&void 0!==re?re:n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:Uf.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=Re?Re:Jw(null===(ne=t.multiline)||void 0===ne?void 0:ne.wrapTextInCells,e),headerLineClamp:Jw(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders,e),border:null!==(ie=null!==(ae=Vw(n,null==xe?void 0:xe.border))&&void 0!==ae?ae:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:n.background.isDark?Uf.DARK_MODE_BORDER:Uf.BORDER_MEDIUM,divider:null!==(le=null!==(se=Vw(n,null==xe?void 0:xe.divider))&&void 0!==se?se:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==le?le:Uf.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=Vw(n,null==Se?void 0:Se.hoverFontColor))&&void 0!==ce?ce:n.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ue?ue:null===(de=r.body.hoverColors)||void 0===de?void 0:de.color,background:null!==(pe=null!==(fe=Vw(n,null==Se?void 0:Se.hoverColor))&&void 0!==fe?fe:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(me=r.body.hoverColors)||void 0===me?void 0:me.background},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:Xf({desiredColor:we,theme:n,flags:e.flags}),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:Re},{headerMinRowHeight:Ie,totalRowLineHeight:Me,totalRowMinHeight:Pe,contentLineHeight:De,contentMinRowHeight:Le}=Qw(Ae);return Ae.headerMinRowHeight=Ie,Ae.totalRowLineHeight=Me,Ae.totalRowMinHeight=Pe,Ae.contentLineHeight=De,Ae.contentMinRowHeight=Le,Ae},rR=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=Bw(e,t,r.rows.length,n),a=Hw(e,t,!o),l=function(e,t,r){var n;const o=null===(n=jw(e))||void 0===n?void 0:n.content,i=zw("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=Hw(e,t,r);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,r,n]);return o},nR=new Map;const oR=L({}),iR=function(e){const t=L([()=>{},new Set]);return nR.set(e,t),({children:r,value:n})=>{const o=k(n),i=k(new Set);w((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=O((()=>o.current),[o]),l=C((()=>[a,i.current]),[a]);return Pl.jsx(e.Provider,{value:n,children:Pl.jsx(t.Provider,{value:l,children:r})})}}(oR),aR={rows:[],columns:[],totalsPosition:{}},lR=({app:e,children:t,tableData:r=aR,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,env:x})=>{const[S,w]=E(0),[R,A]=E(o||hE),[I,M]=((e,t)=>{const[r,n]=D(Ow,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[P,L]=E(-1),k=rR(i,u,r,d),O=((e,t,r,n,o)=>C((()=>tR(e,t,r,n,o)),[t,r,e,n,o]))(x,i,k,u,y),[_,T,q,N]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=cm({...n.header,fontWeight:bw},{maxNbrLinesOfText:3}).measureText,a=cm({...n.totalRow,fontWeight:bw},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=cm(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=cm(n.measure.values,{maxNbrLinesOfText:3}),u=C((()=>(e,t,r,n,u,c)=>{let d=25;d+=28,n&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(r))}),[l,s,i,a,o]),[c,d]=E(0),[p,f]=E((()=>Ew(e,r,u)));fm((()=>{f(Ew(e,r-c,u))}),[e,r,c,u]);const m=C((()=>((e,t,r)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,O),F=C((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:v,viewService:y,styleService:O})),[e,n,i,a,l,s,u,c.active,d,p,f,m,v,y,O]);return Pl.jsx(iR,{value:{headRowHeight:S,setHeadRowHeight:w,focusedCellCoord:R,setFocusedCellCoord:A,selectionState:I,selectionDispatch:M,hoverIndex:P,setHoverIndex:L,columnWidths:_,setColumnWidths:T,baseProps:F,tableData:r,setYScrollbarWidth:q,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:N,env:x},children:t})};function sR(e,t){const r=function(e){return nR.get(e)}(e),[n,o]=R(r),[,i]=D((e=>e+1),0),a=k(t),l=k(),s=n();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=C((()=>t(s)),[s,t]);return w((()=>{a.current=t,l.current=u}),[s,u,t]),w((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function uR(e){var t;const r=pw();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),Wx({...r,direction:e})}const cR={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},dR={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},pR=Xs("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",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":{...cR},"&::-moz-range-track":{...cR},"&::-ms-track":{...cR},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...dR},"&::-moz-range-thumb":{...dR},"&::-ms-thumb":{...dR},"&: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"}}))),fR=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=hm({translator:c.translator}),p=k({initWidth:e,columnWidth:e,initX:0}),f=r?0:1,m=n&&!u,h={left:m?p.current.columnWidth-f:"100%"},g=t=>{p.current={initWidth:e,columnWidth:e,initX:null!=t?t:p.current.initX}};fm((()=>m&&g()),[e]);const b=e=>{const t=Math.max(e,wm.PixelsMin);p.current.columnWidth=t,i(t)},v=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:Rm.Pixels,pixels:p.current.columnWidth};a(e)}else null==s||s(!1)},y=e=>{const t=p.current.initWidth+e.clientX-p.current.initX;b(t)},x=e=>{rm(e),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",x),v()},E=e=>{const t=p.current.initWidth+e.touches[0].clientX-p.current.initX;b(t)},C=e=>{rm(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",C),v()},w=!n&&l?e=>{if(e.key===Em.Left||e.key===Em.Right){rm(e);const t=5,r=e.key===Em.Left?-t:t;b(p.current.columnWidth+r)}else e.key===Em.Space||e.key===Em.Enter?(rm(e),l(e),v()):e.key===Em.Esc&&(rm(e),l(e),b(p.current.initWidth))}:void 0,R=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return S.createElement(pR,{style:h,key:t,hoverColor:o,isLastColumn:r,className:Cm,"data-testid":Cm,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:Rm.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",E),document.addEventListener("touchend",C),null==s||s(!0),g(e.touches[0].clientX))},onKeyDown:w,onBlur:l,onFocus:()=>g(),type:"range",tabIndex:"-1",max:wm.PixelsMax,"aria-label":R,"aria-valuemin":wm.PixelsMin,"aria-valuemax":wm.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function mR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hR=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){mR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),gR=_(hR);function bR(){return bR=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},bR.apply(null,arguments)}const vR=Xs(yd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),yR=Xs(gR,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),xR=Xs(Xp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),SR=Xs($d)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),ER=Xs(tf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),CR=Xs(tf,{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")}))),wR=Xs("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),RR=Xs("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),AR=Xs(xc)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),IR=Xs(Cp)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function MR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const PR=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){MR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),DR=_(PR);let LR={};const kR=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=E(!1),p=k(null),f=O((e=>{e.stopPropagation(),d(!1)}),[d]);return S.createElement(S.Fragment,null,S.createElement(CR,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),LR={}),null!=a&&a.length&&(d(!0),LR[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&S.createElement(wR,null),S.createElement(RR,null,S.createElement(IR,null,S.createElement(o,null)),S.createElement(AR,{variant:"body2"},n)),null!=a&&a.length?S.createElement(DR,null):null),(null==a?void 0:a.length)&&S.createElement(TR,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=LR,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},OR=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&S.createElement(ER,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>S.createElement(kR,bR({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),_R={appear:200,enter:200,exit:100},TR=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>n.length?S.createElement(xR,bR({className:ym,open:t,anchorEl:e,onClose:r,transitionDuration:_R,MenuListProps:{id:xm}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[OR({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?S.createElement(SR,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:n,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,qR=(e,t)=>e.some((e=>t[e]>0)),NR={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},FR=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=E(null),[a,l]=E(NR);return fm((()=>{e||(l(NR),i(null))}),[e]),w((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject.qDimensionInfo;o=c.qInfo.qId,a?s():(i(u),l((e=>({canSelectAll:qR(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:qR(["qSelected"],e),canSelectPossible:qR(["qOption"],e),canSelectAlternative:qR(["qAlternative"],e),canSelectExcluded:qR(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function jR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zR=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),HR=_(zR);function BR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $R=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){BR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),WR=_($R);function VR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const GR=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){VR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),UR=_(GR);function YR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KR=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){YR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),XR=_(KR);function JR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZR=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){JR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),QR=_(ZR);function eA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){eA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})),rA=_(tA);function nA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})),iA=_(oA);function aA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})),sA=_(lA);function uA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){uA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),dA=_(cA);function pA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),mA=_(fA);function hA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),bA=_(gA);function vA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){vA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})),xA=_(yA);let SA=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const EA="/qListObjectDef",CA=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c,setActiveFieldCallback:d})=>{const p=[];if(r[SA.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:HR,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:XR,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:rA,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:QR,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&p.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[SA.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:iA,enabled:!0}]}]),r[SA.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:xA,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(EA))},icon:sA,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(EA))},icon:bA,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(EA))},icon:dA,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(EA))},icon:mA,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(EA))},icon:WR,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[SA.AdjusterHeaderSize]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:UR,enabled:!0}]}]),p},wA=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,env:f})=>{var m;const h=hm({translator:o}),{headTextAlign:g,qLibraryId:b,fieldId:v}=n,y=null==d?void 0:d.app,{fieldInstance:x,selectionActionsEnabledStatus:E}=FR({open:e,headerData:n,app:y,qStateName:null==d?void 0:d.qStateName});let C=null;if(f.flags.isEnabled("CLIENT_IM_7107_TABLE_MENU_CYCLIC_DIM")&&y&&n.qLibraryId){const e=n.qLibraryId;C=async t=>{try{const r=await y.getDimension(e);await r.setActiveField(t)}catch(e){console.error(e)}}}const w=O((()=>{const e=b?{qLibraryId:b,type:"dimension"}:v;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria,stateName:null==d?void 0:d.qStateName})}}),[b,v,c,null==d?void 0:d.qStateName]),R=O((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?S.createElement(vR,{rightAligned:"right"===g,shouldShowMenuIcon:s,className:vm},s&&S.createElement(yR,{height:gm,className:bm,"data-testid":bm,isInteractionsActive:null!==(m=i.active)&&void 0!==m&&m},S.createElement(gR,null)),S.createElement(TR,{open:e,anchorEl:r.current,onClose:R,menuGroups:CA({headerData:n,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:w,interactions:i,fieldInstance:x,selectionActionsEnabledStatus:E,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster,setActiveFieldCallback:C}),handleHeadCellMenuKeyDown:a})):null},RA=e=>e.isDark?{background:e.color,borderColor:Uf.DARK_MODE_BORDER,color:Uf.DARK_MODE_TEXT,disabledColor:Uf.DARK_MODE_DISABLED,iconColor:Uf.DARK_MODE_TEXT}:{background:e.color,borderColor:Uf.BORDER_MEDIUM,color:Uf.TEXT,disabledColor:Uf.DISABLED},AA=Xs(yd,{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}`}))),IA=Xs(zf,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),MA=Xs(Dd,{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)}))),PA=Xs(xc)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),DA=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>RA(n.background)),[n]);if(!r.active)return null;const a=o?S.createElement(AA,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},LA=L({}),kA=()=>R(LA),OA=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=C((()=>RA(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=hm({translator:d}),x=C((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return S.createElement(LA.Provider,{value:x},e)};let _A=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),TA=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function qA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),FA=_(NA);function jA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),HA=_(zA);function BA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $A=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){BA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),WA=_($A),VA={FirstPage:HA,PreviousPage:FA,NextPage:DR,LastPage:WA,FirstPageRTL:WA,PreviousPageRTL:DR,NextPageRTL:FA,LastPageRTL:HA},GA=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=kA(),u=VA[`${r}${"rtl"===n?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},UA=()=>{const{pageInfo:e,width:t}=kA(),r=0===e.page,{IconComponent:n,styledProps:o}=GA({type:_A.FirstPage,disabledCondition:r,pageNumber:0});return t<=TA.FirstPage?null:S.createElement(MA,o,S.createElement(n,{height:gm}))},YA=(e,t,r=!1)=>{r&&e.key===Em.Tab&&!e.shiftKey&&(rm(e),tm(e.target,t,!1))},KA=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=kA(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=GA({type:_A.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>YA(e,t,n):null;return o<=TA.LastPage?null:S.createElement(MA,bR({},l,{onKeyDown:s}),S.createElement(a,{height:gm}))},XA=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=kA(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=GA({type:_A.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>TA.FirstPage&&o>TA.LastPage)&&t.enabled?e=>YA(e,t,n):null;return S.createElement(MA,bR({},l,{onKeyDown:s}),S.createElement(a,{height:gm}))},JA=()=>{const{pageInfo:e}=kA(),t=0===e.page,{IconComponent:r,styledProps:n}=GA({type:_A.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return S.createElement(MA,n,S.createElement(r,{height:gm}))},ZA=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=kA(),{page:o,rowsPerPage:i}=r;if(t<=TA.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return S.createElement(PA,{variant:"caption"},a)},QA=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=kA(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return S.createElement(S.Fragment,null,S.createElement(PA,{variant:"caption",id:d},u,":"),S.createElement(IA,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},eI=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=kA();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>TA.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=S.createElement(S.Fragment,null,t.rowsPerPageOptions.map((e=>S.createElement("option",{key:e,value:e},e))));return S.createElement(QA,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},tI=1e3,rI="…",nI=({totalPages:e,page:t})=>{const r=Math.min(e,tI),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-tI):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return S.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(S.createElement("option",{key:"startMoreOptions",value:rI,disabled:!0},rI)),o<e-1&&a.push(S.createElement("option",{key:"endMoreOptions",value:rI,disabled:!0},rI)),S.createElement(S.Fragment,null,a)},oI=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=kA(),{page:o}=e;if(t<=TA.SelectPage)return null;const i=S.createElement(nI,{totalPages:r,page:o});return S.createElement(QA,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var iI=T((e=>S.createElement(OA,e,S.createElement(eI,null),S.createElement(oI,null),S.createElement(ZA,null),S.createElement(UA,null),S.createElement(JA,null),S.createElement(XA,null),S.createElement(KA,null))));const aI=e=>S.createElement(DA,e,S.createElement(iI,e)),lI={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},sI=ES(uC,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),uI=ES("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isWordWrapEnabled"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1,isWordWrapEnabled:o=!1})=>{if(n||1===e&&!t)return{...lI,whiteSpace:"nowrap",display:r?"block":void 0};const i=t&&r&&!o||o?"break-word":"break-all";return{...lI,wordBreak:i,display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}}));function cI(e,t){const r=k(!1);w((()=>{r.current?e():r.current=!0}),t)}const dI=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},pI=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?pI(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},fI=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?fI(t):t},mI=e=>null==e?void 0:e.setAttribute("tabIndex","0"),hI=e=>null==e?void 0:e.setAttribute("tabIndex","-1"),gI=e=>e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(hI),bI=e=>{null==e||e.focus(),mI(e)},vI=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${Cm}`);bI(r)}),0)},yI=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o})=>{gI(t);const i=((e,t,r,n={top:0,bottom:0})=>{const o=n.top>0,i=n.top,a=t.getElementsByClassName("sn-table-row").length-1-n.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[s,u]=r;switch(e.key){case Em.Down:s<a&&s++;break;case Em.Up:s>i&&s--;break;case Em.Right:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case Em.Left:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case Em.Home:(Cw(e)||o)&&(s=i),o||(u=0);break;case Em.End:(Cw(e)||o)&&(s=a),o||(u=l);break;case Em.PageDown:s=Math.min(a,s+10);break;case Em.PageUp:s=Math.max(i,s-10)}return[s,u]})(e,t,r,o),a=dI(t,i);return bI(a),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[n])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-a.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(i,t),n(i),{nextCell:a,nextCellCoord:i}},xI=(e,t,r,n)=>{var o;(gI(t),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):bI(dI(t,e))},SI=(e,t,r)=>{w((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${ym}`);if(r.enabled&&!i&&!a&&!t.current&&n){var l;const e=n.querySelector(`.${BS.First}`),t=n.querySelector(`.${BS.Second}`);e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=r.blur)||void 0===l||l.call(r,!1)}})(e,t,r);return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])},EI=(e,t,r)=>{w((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n),i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},CI=(e,t=!1)=>e.key===Em.Esc&&!t||(e.key===Em.Left||e.key===Em.Right)&&ww(e),wI=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===Em.Down||r===Em.Up){const t=e=>r===Em.Down?pI(e):fI(e);rm(e);let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},RI=({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains(jS.Disabled))return void rm(e);const d=null==c?void 0:c.isModal();if(!CI(e,d))switch(e.key){case Em.Space:rm(e),r.isSelectable&&o&&n({type:zS.Select,payload:{cell:r,evt:e,announce:a}});break;case Em.Enter:rm(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case Em.Esc:rm(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case Em.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{(null==t?void 0:t.enabled)&&r&&(e.shiftKey||!e.shiftKey&&!n)&&(rm(e),tm(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case Em.C:rm(e),Cw(e)&&Lm(e.currentTarget);break;default:Aw(e.key)&&(rm(e),(({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s})=>{const u=l.atTop?2:1,c=[r.pageRowIdx+u,r.pageColIdx],d={top:s?u:0,bottom:s&&l.atBottom?1:0},{nextCell:p,nextCellCoord:f}=yI({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});f[0]!==c[0]&&(((e,t,r)=>t.shiftKey&&e&&r.isSelectable)(o,e,r)?n({type:zS.SelectMultiAdd,payload:{cell:r,evt:e,announce:a}}):((e,t,r=!1)=>{r&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,s))})({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d}))}},AI=e=>{const{layout:t,rect:r,theme:n}=sR(oR,(e=>e.baseProps)),[o,i]=E(0),[a,l]=E(0);return q((()=>{if(e.current){var t;const{offsetWidth:r=0,offsetHeight:n=0,clientWidth:o=0,clientHeight:a=0}=null!==(t=e.current)&&void 0!==t?t:{},s=n-a;l(r-o),i(s)}}),[e,t,r,n]),{xScrollbarWidth:o,yScrollbarWidth:a}},II=ES("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),MI=ES(GC,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),PI=ES(PC,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),DI=()=>Pl.jsxs(Pl.Fragment,{children:[Pl.jsx(II,{className:BS.First,"data-testid":BS.First,"aria-live":"polite","aria-atomic":"true"}),Pl.jsx(II,{className:BS.Second,"data-testid":BS.Second,"aria-live":"polite","aria-atomic":"true"})]}),LI=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{w((()=>{const i=()=>{t({type:zS.Reset})},a=()=>{t({type:zS.Clear})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},kI=e=>e.stopPropagation(),OI=({href:e,text:t,interactions:r,color:n})=>S.createElement(fp,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:kI,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t);var _I,TI;const qI=null!==(_I=window.requestIdleCallback)&&void 0!==_I?_I:(e,t)=>{var r;return setTimeout((()=>{e({})}),null!==(r=null==t?void 0:t.timeout)&&void 0!==r?r:0)},NI=null!==(TI=window.cancelIdleCallback)&&void 0!==TI?TI:e=>clearTimeout(e),FI="qDimensionInfo/0",jI="qMeasureInfo/0",zI="x",HI="y",BI=e=>({key:"bars",type:"box",data:{extract:{field:FI,props:{start:0,end:{field:jI}}}},settings:{major:{scale:zI},minor:{scale:HI},box:{maxWidthPx:8,fill:{fn:e}}}}),$I=e=>({key:"p",type:"point",data:{extract:{field:FI,props:{y:{field:jI}}}},settings:{x:{scale:zI},y:{scale:HI},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),WI=({qNum:e})=>void 0===e?0:Math.sign(e),VI=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=Qf(e,null==t?void 0:t.negative,r),a=Qf(e,null==t?void 0:t.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:FI,props:{start:0,end:{field:jI,value:WI}}}},settings:{major:{scale:zI},minor:{scale:HI},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}}}}},GI=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),l=Qf(e,null==t?void 0:t.main,o),s=Qf(e,null==t?void 0:t.max,l),u=Qf(e,null==t?void 0:t.min,l),c=Qf(e,null==t?void 0:t.first,l),d=Qf(e,null==t?void 0:t.last,l);return e=>{const t=HI in e.datum?HI:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?s:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:l}})(e,n,o,i);switch(t){case"bars":return[BI(a)];case"dots":return[$I(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:FI,props:{v:{field:jI}}}},settings:{coordinates:{major:{scale:zI},minor:{scale:HI,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Qf(e,null==n?void 0:n.main,e.getDataColorSpecials().primary));return r?[t,$I(a)]:[t]}case"posNeg":return[VI(e,n)];default:return[]}},UI=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"}),YI=(e,t,r)=>({y:{data:{field:jI},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:FI}},paddingInner:.3,paddingOuter:0,invert:!1,align:0,maxPxStep:12}}),KI=null==$?void 0:$();null==KI||KI.use(B),null==KI||KI.renderer.prio(["canvas"]);const XI=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,miniChartData:i})=>({renderChartWithRequestIdleCallback:O((()=>{if(null===t.current||null!==e.current)return;r.current=qI((()=>{t.current&&(e.current=((e,t,r,n)=>{const{type:o,qMatrix:i,minY:a,maxY:l}=n;return KI.chart({element:e,data:{type:"q",key:"qHyperCube",data:UI(i)},settings:{scales:YI(o,a,l),components:GI(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0}})})(t.current,n,o,i))}),{timeout:250})}),[t,e,r,n,o,i]),safeCancelIdleCallback:O((()=>{null!==r.current&&NI(r.current),r.current=null}),[r])}),JI=({intersectionRoot:e,theme:t,isSnapshot:r,miniChartData:n})=>{const o=k(null),i=k(null),a=k(null),{renderChartWithRequestIdleCallback:l,safeCancelIdleCallback:s}=XI({element:o,chart:i,requestId:a,theme:t,isSnapshot:r,miniChartData:n});return(({element:e,intersectionRoot:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=O((e=>{var t;null!==(t=e.at(0))&&void 0!==t&&t.isIntersecting?n():r()}),[n,r]);w((()=>{if(!e.current||!t)return()=>{};const n=new IntersectionObserver(i,{root:null==t?void 0:t.current});return n.observe(e.current),()=>{var e;n.disconnect(),r(),null===(e=o.current)||void 0===e||e.destroy(),o.current=null}}),[o,e,i,t,r])})({element:o,intersectionRoot:e,safeCancelIdleCallback:s,renderChartWithRequestIdleCallback:l,chart:i}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionRoot:n})=>{w((()=>n?()=>{}:(e(),()=>{var e;t(),null===(e=r.current)||void 0===e||e.destroy(),r.current=null})),[n,t,e,r])})({intersectionRoot:e,safeCancelIdleCallback:s,renderChartWithRequestIdleCallback:l,chart:i}),o},ZI=({height:e,intersectionRoot:t,theme:r,isSnapshot:n,miniChartData:o})=>{const i=JI({intersectionRoot:t,theme:r,isSnapshot:n,miniChartData:o});return S.createElement("div",{"data-testid":"picasso-container",ref:i,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},QI="cell-text",eM=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=sR(oR,(e=>e.baseProps)),{flags:l}=sR(oR,(e=>e.env));return o?Pl.jsx(uI,{"data-testid":QI,ref:t,component:"span",className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,isWordWrapEnabled:l.isEnabled("CLIENT_IM_6997_WORD_WRAP"),children:e}):Pl.jsx(uI,{"data-testid":QI,ref:t,component:"span",className:"sn-table-cell-text",isNumeric:r,lineClamp:null!=i?i:a.grid.contentLineClamp,isWordWrapEnabled:l.isEnabled("CLIENT_IM_6997_WORD_WRAP"),isPagination:n,children:e})},tM=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},rM=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},nM=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=Pl.jsx("img",{src:o,alt:i,style:{...t,width:s?"auto":"100%",height:"100%",maxHeight:r,objectFit:rM(a),objectPosition:tM(l),overflow:"hidden"}});var c;return n?Pl.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:s?r:"100%",overflow:"hidden",display:"flex",justifyContent:s?null==e||null===(c=e.resolvedImagePosition)||void 0===c?void 0:c.horizontal:void 0},children:u}):u},oM=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),iM=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},aM=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),l=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:l,nextColor:s}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:l.color,t:.5-u}:{color:s.color,t:u-.5}:a.gradient?{color:l.color,t:1-(.5+u/2)}:i.gradient?{color:s.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return l&&oe(e.localPaletteColors[t].color).blend(oe(l.color),l.t)},lM=(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:oM(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:iM(n,t,r)})))),n},sM=(e,t,r,n)=>{const o=lM(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=aM(e,a,t);break}n=i}return r})(o,t);return a},uM=(e,t)=>{const r=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),n=r.some((e=>!ub(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||!ub(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)},cM=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=uM(e,t),o=Math.abs(t);return{min:null!=r?r:t-o,max:null!=n?n:t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!ub(t))return 0;let a=r&&ub(r)?Math.min(r,t):0;const l=n.sort(((e,t)=>e.value-t.value)),s=o||i;for(let e=0;e<s.length;e++){if(e===s.length-1||t<l[e].value&&t>=a)return e;a=l[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}};function dM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){dM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})),fM=_(pM);function mM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){mM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})),gM=_(hM);function bM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),S.createElement("use",{fillRule:"evenodd"})),yM=_(vM);function xM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){xM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})),EM=_(SM);function CM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){CM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})),RM=_(wM);function AM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const IM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){AM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})),MM=_(IM);function PM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const DM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){PM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M2 7h12v2H2z"})),LM=_(DM);function kM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const OM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){kM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})),_M=_(OM);function TM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){TM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})),NM=_(qM);function FM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){FM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})),zM=_(jM);function HM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){HM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})),$M=_(BM);function WM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const VM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){WM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})),GM=_(VM);function UM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const YM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){UM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})),KM=_(YM);function XM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const JM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){XM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})),ZM=_(JM);function QM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const eP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){QM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})),tP=_(eP);function rP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"}));function oP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const iP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){oP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M15.738 13.5c.5.8.1 1.5-.8 1.5h-13.9c-1 0-1.3-.7-.8-1.5l6.8-11.9c.5-.8 1.3-.8 1.8 0zm-6.8-2c0-.3-.2-.5-.5-.5h-1c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5zm0-6c0-.3-.2-.5-.5-.5h-1c-.3 0-.5.2-.5.5v4c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5z"})),aP={m:GM,"ï":zM,R:_(nP),S:KM,T:ZM,U:tP,P:NM,Q:MM,"è":_(iP),"¢":EM,"©":yM,"23F4":RM,2013:$M,"&":_M,add:fM,"minus-2":LM,dot:gM},lP=({size:e,iconKey:t,color:r})=>{const n=t&&aP[t]||void 0;return n&&Pl.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e},children:Pl.jsx(n,{style:{height:e}})})},sP=({representation:e,cellValue:t})=>{const r=e.indicatorConditionalColoring,{styleService:n,theme:o}=sR(oR,(e=>e.baseProps));if(!r)return;const{text:i,indicator:a}=e,{showTextValues:l,position:s,applySegmentColors:u}=null!=a?a:{},c=(d=n.measure.values.fontSize,parseInt(d||gw,10));var d;const p=cM(r,t),f=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i||0===(null==i?void 0:i.length)||!((e,t)=>{var r,n,o;return!(!e||0===e.length||!(null!==(r=null===(n=e[t])||void 0===n?void 0:n.gradient)&&void 0!==r?r:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,r.limitPaletteColorIndex))return iM(o,r.limitPaletteColorIndex,n);const a=oM(r.limitRange,t);return sM(o,a,r.limitRange,n)})(r,t,p,o),m=r.segments.paletteColors[(null==p?void 0:p.limitPaletteColorIndex)||0].icon;return l?Pl.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?f:void 0},children:["left"===s&&lP({size:c,iconKey:m,color:f}),Pl.jsx(eM,{isNumeric:!0,children:i}),"right"===s&&lP({size:c,iconKey:m,color:f})]}):lP({size:c,iconKey:m,color:f})},uP=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(null!=t?t:e.grid.contentLineClamp):e.contentLineHeight,cP=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionRoot:i})=>{const{interactions:a,styleService:l,theme:s,layout:u}=sR(oR,(e=>e.baseProps)),c=sR(oR,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let d=t.representation.text;return t.representation.type!==pg.Link||c||(d=Pl.jsx(OI,{href:t.representation.url,text:t.representation.text,interactions:a,color:r.cellForegroundColor})),t.representation.type===pg.Image?Pl.jsx(nM,{representation:t.representation,textStyle:r,maxImageHeight:uP(l,o),wrapInContainer:!n}):t.representation.type===pg.Indicator&&"number"==typeof t.qNum?Pl.jsx(sP,{representation:t.representation,cellValue:+t.qNum}):t.representation.type===pg.MiniChart&&t.representation.miniChart&&!t.isNull?Pl.jsx(ZI,{height:uP(l,o),intersectionRoot:i,miniChartData:t.representation.miniChart,theme:s,isSnapshot:!!u.snapshotData}):Pl.jsx(eM,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:d})},dP=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>r({type:zS.SelectMultiEnd});r({type:zS.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:zS.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:zS.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),pP=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=sR(oR,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:l}=sR(oR,(e=>e.baseProps)),s=sR(oR,(e=>e.setFocusedCellCoord)),u=sR(oR,(e=>e.selectionDispatch)),c=!!l.active&&!!l.select,d=l=>{RI({evt:l,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:u,isSelectionsEnabled:c,setFocusedCellCoord:s,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n})},p=e=>((e,t)=>{e.key===Em.Shift&&t({type:zS.SelectMultiEnd})})(e,u),f=()=>((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;xI([l,a],t,r,n)})(e,i,s,a,n);if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:m,handleMouseOver:h,handleMouseUp:g}=dP(f,e,u,t);return{onKeyDown:d,onKeyUp:p,onMouseDown:m,onMouseUp:g,onMouseOver:h}},fP=(e,t)=>{const{styleService:r}=sR(oR,(e=>e.baseProps)),n=sR(oR,(t=>Mw(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;e.isNull&&(o={...o,...r.nullValues});const i=Ww(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===jS.Selected?{...e,...r}:t===jS.Disabled?{...e,background:`${mw}, ${e.background}`}:e}(C((()=>e.isNull?o:Ww(o,e.qAttrExps,t.qAttrExprInfoIDs)),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:a,representationStyle:i,cellSelectionState:n}},mP=ES(qC,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),hP=ES(iw,{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}}}))),gP=ES(BC,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...yw,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),bP=ES(BC,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...yw,...e,fontWeight:bw,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&r,bottom:!t&&0,verticalAlign:t?"bottom":"top",zIndex:t?1:void 0}))),vP=({cell:e,announce:t,column:r,columnIndex:n,tableWrapperRef:o})=>{const{interactions:i}=sR(oR,(e=>e.baseProps)),{onKeyDown:a,onKeyUp:l,onMouseDown:s,onMouseUp:u,onMouseOver:c}=pP(e,t),{cellStyle:d,representationStyle:p,cellSelectionState:f}=fP(e,r);return Pl.jsx(gP,{cellStyle:d,scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${f} ${Sm}`,title:i.passive?e.representation.text:void 0,onKeyDown:a,onKeyUp:l,onMouseDown:s,onMouseUp:u,onMouseOver:c,children:Pl.jsx(cP,{cell:e,style:p,intersectionRoot:o})})},yP=(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}),xP=()=>{const{columns:e,totalsPosition:t,rows:r}=sR(oR,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=sR(oR,(e=>e.baseProps)),s=sR(oR,(e=>e.headRowHeight)),u=sR(oR,(e=>e.setFocusedCellCoord));return Pl.jsx(iw,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:r.length+1,c];return Pl.jsx(bP,{totalsStyle:{...a.totalRow,...yP(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Sm}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,r,n,o=!1)=>{if(o)rm(e);else if(!CI(e))switch(e.key){case Em.C:rm(e),Cw(e)&&Lm(e.currentTarget);break;case Em.Space:e.preventDefault();break;default:Aw(e.key)&&(rm(e),yI({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}})(e,n,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{xI(d,n,u,i)},children:Pl.jsx(eM,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var SP=T(xP);const EP=({setShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,totalsPosition:a}=sR(oR,(e=>e.tableData)),{selectionsAPI:l,keyboard:s,layout:u,styleService:c}=sR(oR,(e=>e.baseProps)),d=sR(oR,(e=>e.selectionDispatch)),p=!(null===(n=jw(u))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect);return LI({keyboard:s,selectionDispatch:d,selectionsAPI:l,setShouldRefocus:e,tableWrapperRef:t}),Pl.jsxs(mP,{lastRowBottomBorder:c.grid.lastRowBottomBorder,children:[a.atTop?Pl.jsx(SP,{}):void 0,o.map(((e,n)=>Pl.jsx(hP,{hoverColors:c.grid.hoverColors,hover:p,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:n,height:c.contentMinRowHeight,children:i.map(((n,o)=>{const{id:i}=n,a=e[o];return Pl.jsx(vP,{columnIndex:o,cell:a,column:n,announce:r,tableWrapperRef:t},i)}))},`row-${n}`))),a.atBottom?Pl.jsx(SP,{}):void 0]})};var CP=T(EP);const wP=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s}=sR(oR,(e=>e.baseProps)),u=sR(oR,(e=>e.columnWidths)),c=sR(oR,(e=>e.setColumnWidths));if(!l.active)return null;return Pl.jsx(fR,{columnWidth:u[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...u];t[o]=e,c(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>(e=>{hI(e);const t=e.closest(".sn-table-cell");bI(t)})(e.currentTarget),setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:s,columnLabel:i}})};function RP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const AP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){RP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),IP=_(AP);function MP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const PP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){MP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),DP=_(PP);function LP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kP=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){LP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),S.createElement("use",{fillRule:"evenodd"})),OP=_(kP),_P=ES("div")({position:"absolute",left:0,bottom:0}),TP=ES(uC,{shouldForwardProp:e=>!["textAlign"].includes(e)})((({textAlign:e,theme:t})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center"})));ES("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const qP=ES(uC,{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},[`& .${vm}`]:{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"},[`& .${vm}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),NP=ES(uC,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));ES(uC,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),ES(EC)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),ES("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),ES(gC)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),ES("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const FP=ES(BC,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...yw,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));ES("div")({display:"flex",alignItems:"center"});const jP=ES("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:gw,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),zP=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i,forwardRef:a})=>{const{translator:l,changeSortOrder:s,interactions:u,embed:c,app:d,styleService:p,layout:f}=sR(oR,(e=>e.baseProps)),m=sR(oR,(t=>t.columnWidths[e.pageColIdx])),h=sR(oR,(e=>e.env)),g=k(null),b=k(null),v=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=cm({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:bw});return O((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=r-25,u=a?20:0,c=l?20:0;let d=n(t.label);return a&&d+u<=s&&(i=!0,d+=u,l&&d+c<=s&&(o=!0,d+=c)),!a&&l&&d+c<=s&&(o=!0,d+=c),d+24<=s&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n])})({styleService:p,column:e,columnWidth:m}),y=v(),{StartIcon:x,EndIcon:S,LockIcon:E}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n})=>{const o="A"===e?Pl.jsx(IP,{height:gw,"data-testid":"head-cell-sort-ascending-icon"}):Pl.jsx(DP,{height:gw,"data-testid":"head-cell-sort-descending-icon"}),i=r?Pl.jsx(jP,{align:t,children:o}):void 0,a=n?Pl.jsx(NP,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Pl.jsx(OP,{height:gw,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:i,LockIcon:a}:{EndIcon:i,LockIcon:a}})(e,y);o&&(o.current[e.pageColIdx]=y);return Pl.jsxs(qP,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:e.headTextAlign,children:[E,Pl.jsxs(TP,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[x,Pl.jsx(eM,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),S]}),t&&Pl.jsxs(Pl.Fragment,{children:[Pl.jsx(wA,{headerData:e,translator:l,anchorRef:g,handleHeadCellMenuKeyDown:wI,menuAvailabilityFlags:{[SA.Sorting]:!0,[SA.Searching]:!0,[SA.Selections]:!0,[SA.AdjusterHeaderSize]:!0},open:r,setOpen:n,interactions:u,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:c,listboxRef:b},selectionRelatedArgs:{app:d,qStateName:f.qStateName},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:vI},shouldShowMenuIcon:y.shouldShowMenuIcon,env:h}),Pl.jsx(_P,{ref:b}),Pl.jsx(_P,{ref:g})]})]})},HP=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=E(!1);return fm((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Cm)})(t)&&!o&&n(!0),setIsAdjustingWidth:i}},BP=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a}=sR(oR,(e=>e.baseProps)),{columns:l,totalsPosition:s}=sR(oR,(e=>e.tableData)),u=sR(oR,(e=>e.columnWidths[t])),c=sR(oR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=sR(oR,(e=>e.setFocusedCellCoord)),p=sR(oR,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),f=!!n.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=HP({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?HS[e.sortDirection]:void 0,y=m?xm:void 0,x=m?"true":void 0,S=t===r-1,E=[0,e.pageColIdx],C={width:u-(S?8:9),zIndex:l.length-t},w=p&&0===t&&!i.enabled&&f?0:-1;return Pl.jsxs(FP,{headerStyle:{...a.header,...yP(a,s,!0)},background:m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:C,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Sm}`,tabIndex:w,title:n.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!CI(e))switch(e.key){case Em.C:rm(e),Cw(e)&&Lm(e.currentTarget);break;case Em.Enter:case Em.Space:i&&i(e);break;default:Aw(e.key)&&(rm(e),yI({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}}else rm(e)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,isInteractionEnabled:f,handleOpenMenu:g}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(n(r),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):bI(dI(t,r)))})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,keyboard:i,isInteractionEnabled:f}),onClick:g,"aria-sort":v,"aria-controls":y,"aria-expanded":x,"aria-haspopup":"true",children:[Pl.jsx(zP,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),Pl.jsx(wP,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},$P=()=>{var e;const{columns:t}=sR(oR,(e=>e.tableData)),{styleService:r,viewService:n}=sR(oR,(e=>e.baseProps)),o=sR(oR,(e=>e.setHeadRowHeight)),i=sR(oR,(e=>e.columnWidths)),a=k(null);return w((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[r.header.fontSize,i,o]),null!==(e=n.viewState)&&void 0!==e&&e.skipHeader?null:Pl.jsx(ZC,{children:Pl.jsx(iw,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,r)=>Pl.jsx(BP,{column:e,columnIndex:r,columnsLength:t.length},e.id)))})})};var WP=T($P);const VP=e=>{var t,r;const{pageInfo:n,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=n,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=sR(oR,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:C,layout:R,rect:A}=sR(oR,(e=>e.baseProps)),I=sR(oR,(e=>e.focusedCellCoord)),M=sR(oR,(e=>e.setFocusedCellCoord)),P=sR(oR,(e=>e.setYScrollbarWidth)),D=sR(oR,(e=>e.showRightBorder)),L=sR(oR,(e=>e.selectionDispatch)),_=sR(oR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),T=k(!1),q=k(null),N=k(null),{yScrollbarWidth:F}=AI(q),j=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,z=xv(R,C),H=z&&null!==(t=C.scrollLeft)&&void 0!==t?t:0,B=z&&null!==(r=C.rowPartialHeight)&&void 0!==r?r:0,$=O((()=>{T.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),W=O((e=>{o({...n,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[n,o,p,l]),V=O((e=>{o({...n,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,n,o]);return SI(N,T,v),EI(q,i,C),(()=>{const{rootElement:e,keyboard:t}=sR(oR,(e=>e.baseProps)),r=sR(oR,(e=>e.focusedCellCoord));fm((()=>{const n=dI(e,r);t.active?bI(n):(null==n||n.blur(),gI(e))}),[t.active,e])})(),w((()=>{const e=q.current;e&&(e.scrollLeft=H,e.scrollTop=B)}),[n,d,H,B]),cI((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{gI(t);const s=[l.atTop?2:1,e[1]],u=n?s:hE;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=dI(t,u);if(r.current?bI(c):mI(c),r.current=!1,n){var d;const e=null==c||null===(d=c.classList)||void 0===d?void 0:d.contains("selected");a({keys:[`${null==c?void 0:c.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}})({focusedCellCoord:I,rootElement:b,shouldRefocus:T,setFocusedCellCoord:M,isSelectionMode:_,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),cI((()=>{P(F)}),[F]),cI((()=>{L({type:zS.UpdatePageRows,payload:{pageRows:m}})}),[m]),Pl.jsxs(sI,{ref:N,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:r,rowsPerPage:n,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(ww(e)){rm(e);const a=Math.ceil(t/n)-1;e.key===Em.Right&&r<a?(i(),o(r+1)):e.key===Em.Left&&r>0&&(i(),o(r-1))}else if(e.key===Em.Esc&&a.enabled&&!l){var s;rm(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else Rw(e.key)&&rm(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:W,setShouldRefocus:$,keyboard:v,isSelectionMode:_})},"data-testid":"sn-table",children:[Pl.jsx(DI,{}),Pl.jsx(MI,{ref:q,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Pl.jsxs(PI,{stickyHeader:!0,"aria-label":j,borderRight:D?`1px solid ${E.grid.border}`:void 0,children:[Pl.jsx(WP,{}),Pl.jsx(CP,{...e,setShouldRefocus:$,tableWrapperRef:N})]})}),Pl.jsx(aI,{footerContainer:a,pageInfo:n,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:W,handleChangeRowsPerPage:V,isSelectionMode:_})]})};var GP=T(VP),UP=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function YP(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||UP(n)&&UP(o)))return!1;var n,o;return!0}function KP(e,t){var r;void 0===t&&(t=YP);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var XP="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function JP(e){cancelAnimationFrame(e.id)}function ZP(e,t){var r=XP();var n={id:requestAnimationFrame((function o(){XP()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var QP=-1;function eD(e){if(void 0===e&&(e=!1),-1===QP||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),QP=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return QP}var tD=null;function rD(e){if(void 0===e&&(e=!1),null===tD||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?tD="positive-descending":(t.scrollLeft=1,tD=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),tD}return tD}var nD=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function oD(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Dt(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Dt(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=KP((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=KP((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=KP((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(rD()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&JP(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=ZP(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Pt(t,e),t.getDerivedStateFromProps=function(e,t){return iD(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=eD();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(rD()){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&&JP(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?nD:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),R=w[0],I=w[1],M=[];if(n>0&&g)for(var P=R;P<=I;P++)for(var D=E;D<=C;D++)M.push(A(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,D)}));var L=a(this.props,this._instanceProps),k=l(this.props,this._instanceProps);return A(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:vt({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},A(u||c||"div",{children:M,ref:s,style:{height:L,pointerEvents:x?"none":void 0,width:k}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var iD=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},aD=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},lD=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},sD=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},uD=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?cD(e,t,r,i,0,n):dD(e,t,r,Math.max(0,i),n)},cD=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=sD(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},dD=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&sD(e,t,n,r).offset<o;)n+=a,a*=2;return cD(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},pD=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=sD(e,t,r,i),u="column"===e?lD(t,i):aD(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},fD=oD({getColumnOffset:function(e,t,r){return sD("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return uD("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=sD("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=sD("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:aD,getEstimatedTotalWidth:lD,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return pD("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return pD("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return sD("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return uD("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=sD("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=sD("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),mD=function(e,t){return e};function hD(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,Dt(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Dt(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=KP((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=KP((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=KP((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(rD()){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&&JP(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=ZP(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Pt(t,e),t.getDerivedStateFromProps=function(e,t){return gD(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?eD():0:s.scrollHeight>s.clientHeight?eD():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(rD()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&JP(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?mD:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],R=[];if(u>0)for(var I=C;I<=w;I++)R.push(A(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var M=n(this.props,this._instanceProps);return A(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:vt({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},A(l||s||"div",{children:R,ref:a,style:{height:x?"100%":M,pointerEvents:y?"none":void 0,width:x?M:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var gD=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},bD=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},vD=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=bD(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},yD=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&bD(e,r,t).offset<n;)r+=i,i*=2;return vD(e,t,Math.min(r,o-1),Math.floor(r/2),n)},xD=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},SD=hD({getItemOffset:function(e,t,r){return bD(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:xD,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=bD(e,t,o),p=xD(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?vD(e,t,o,0,r):yD(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=bD(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=bD(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 ED(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 CD=["style"],wD=["style"];function RD(e,t){var r=e.style,n=It(e,CD),o=t.style,i=It(t,wD);return!ED(r,o)&&!ED(n,i)}const AD=({style:e})=>Pl.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var ID=S.memo(AD,RD);const MD=e=>{var t;return null===(t=e.at(0))||void 0===t||null===(t=t.contentBoxSize.at(0))||void 0===t?void 0:t.blockSize},PD=(e,t,r)=>{w((()=>{const n=r?r(e):e.current;if(!n)return()=>{};const o=new ResizeObserver(t);return o.observe(n),()=>{o.disconnect()}}),[e,t,r])},DD=()=>{},LD=e=>e.preventDefault();const kD=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,setMeasuredCellHeight:u,lineClamp:c}=n,d=sR(oR,(e=>e.hoverIndex===t)),p=sR(oR,(e=>e.setHoverIndex)),{interactions:f,styleService:m}=sR(oR,(e=>e.baseProps)),h=sR(oR,(e=>e.showRightBorder)),g=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=sR(oR,(e=>e.baseProps)),r=sR(oR,(e=>e.selectionDispatch)),n="object"==typeof e,o=sR(oR,(t=>n?Mw(e,t.selectionState):jS.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=dP(LD,e,r,DD);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=k(null),i=r&&!(null!=r&&r.isNumeric),a=O((r=>{const o=MD(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return PD(o,a),o})(t,e,g,u);let E={borderColor:m.grid.border,...m.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(E={borderColor:m.grid.border,...m.dimension.values}),null!=g&&g.isNull&&(E={...E,...m.nullValues}),"object"==typeof g){var C;const n=((e,t,r,n,o,i)=>{const a=!e.isNull&&t.qAttrExprInfoIDs.length?Ww(o,e.qAttrExps,t.qAttrExprInfoIDs):o;return n===jS.Selected?{...a,...i.selectedColors}:n===jS.Disabled?{...a,color:r?null===(l=i.grid.hoverColors)||void 0===l?void 0:l.color:a.color,background:`${mw}, ${r?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.background:a.background}`}:r?{...a,...i.grid.hoverColors}:a;var l,s})(g,l[e],s&&d,x,E,m),o={rowindex:t,columnindex:e};return Pl.jsx("div",{className:`sn-table-cell ${x} ${Sm}`,style:{...r,...n,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:g.isLastColumn&&!h?"0px":"1px",borderStyle:"solid",justifyContent:g.representation.type===pg.Image&&"fitHeight"===g.representation.imageSize?null===(C=g.representation)||void 0===C||null===(C=C.resolvedImagePosition)||void 0===C?void 0:C.horizontal:g.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:s?()=>p(t):void 0,onMouseLeave:s?()=>p(-1):void 0,title:f.passive?g.representation.text:void 0,...o,children:Pl.jsx(cP,{forwardRef:m.contentStaticLineCount||1===c?void 0:S,cell:g,style:n,lineClamp:c,virtualizedCell:!0})})}return Pl.jsx(ID,{style:{...r,...E,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var OD=S.memo(kD,RD);const _D=e=>{const t=k(e);return t.current=e,t},TD=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,qD=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},ND=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},FD=(e,t,r,n,o,i,a)=>{e.forEach((e=>{e.qMatrix.forEach(((l,s)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:c,pageRowIdx:d}=((e,t,r,n,o,i,a,l,s)=>{var u;const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var r;const o=t+n.qLeft,{colIdx:a,isDim:u,isLocked:m,bodyTextAlign:h,selectionColIdx:g,qAttrExprInfoIndex:b,representation:v,conditionalColoring:y,qMiniChart:x}=i[o];f[o]=null!==(r=f[o])&&void 0!==r?r:{id:lb(),...e,align:vv(e,h),rowIdx:d,colIdx:a,isSelectable:u&&!m,pageRowIdx:p,pageColIdx:o,selectionColIdx:g,isLastRow:d===c.qcy-1,isLastColumn:o===c.qcx-1,isNumeric:cb(e),isNull:dv(e,u),representation:cv(e,v,b,l,y,x)},s(f[o],d,o)})),{row:f,pageRowIdx:p}})(r,l,s,e.qArea,u,n,o,i,a);r[d]=c}))}))},jD=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,gridState:u,setEstimatedCellHeight:c})=>{const d=sR(oR,(e=>e.env)),p=k([]),f=O(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return FD(t,o,n,s,e,d,c),p.current=n,n}),[i,o,s,e,d,c]),[m,h]=E((()=>f(null!=n?n:[])));fm((()=>{h(f(null!=n?n:[]))}),[n]);const g=((e,t)=>{const r=k(new Set),n=k(new Set),o=k(new Set),i=_D(e),a=_D(t),l=C((()=>({enqueue:e=>{const t=TD(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(TD(e))}))}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>h((t=>f(e,t))))),b=O(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(ND(p.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};g.enqueue(e)}}),[p,g]),v=O(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(qD(p.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};g.enqueue(t)}}}),[p,g,o]);return w((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,s=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,l+5),f=Math.min(100,d,r,a+25);return v(i,s,p,f),()=>{g.clear()}}),[e,a,l,o,g,v,u,r]),{rowsInPage:m,loadRows:v,loadColumns:b}},zD=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},HD=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,BD=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=sR(oR,(e=>e.baseProps.styleService)),i=sR(oR,(e=>e.columnWidths)),{estimateLineCount:a}=cm(o.dimension.values),l=Zw(o.dimension.values.fontSize),s=e||t||1===r;return O(((e,t,o)=>{if(s||e.representation.type===pg.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*l,t,o)}),[s,i,a,r,l,n])},$D=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>C((()=>{const{estimatedRowHeight:a,totalRowHeight:l}=e?{totalRowHeight:n*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(r),totalRowHeight:t}})(r.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(n*t,l)}),[e,t,n,r,o,i]),WD=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=sR(oR,(e=>e.baseProps)),[a,l]=E({rowHeights:new Map,cellHeightsInGrid:new Map}),s=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/s))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:s,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{var n;const{layout:o}=sR(oR,(e=>e.baseProps)),i=sR(oR,(e=>e.columnWidths)),{flags:a}=sR(oR,(e=>e.env)),l=!a.isEnabled("CLIENT_IM_6997_WORD_WRAP")||(null===(n=o.multiline)||void 0===n?void 0:n.wrapTextInCells);fm((()=>{var r;null===(r=e.current)||void 0===r||r.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[o.qHyperCube.qSize.qcx,o.qHyperCube.qSize.qcy,r.page,l]),fm((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[i])})({gridRef:n,setState:l,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>O(((o,i,a)=>{F((()=>{e((e=>{var l,s;const u=Math.max(r,o+9),c=Math.min(t,u),d=null!==(l=e.cellHeightsInGrid.get(i))&&void 0!==l?l:e.cellHeightsInGrid.set(i,new Map).get(i);if(!HD(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,zD(d)),null===(s=n.current)||void 0===s||s.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:l,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:BD({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:O((e=>{var t;return c?m:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,m]),totalRowHeight:$D({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:r}),lineClamp:f}};var VD;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(VD||(VD={}));const GD=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>O((({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=VD.None,i=VD.None;return o=n>t?VD.Down:n<t?VD.Up:VD.None,i=r>e?VD.Right:r<e?VD.Left:VD.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,l,u);if(i.current.overscanColumnStartIndex=l,i.current.overscanColumnStopIndex=s,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=l,v=u+o.page*o.rowsPerPage,y=s-l+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===VD.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===VD.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===VD.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===VD.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),UD={enabled:!1},YD=()=>{},KD={current:null};const XD=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),l=C((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},JD=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},ZD={overflow:"hidden",willChange:"auto"};var QD=T(_(((e,t)=>{var r;const{rect:n,columns:o,pageInfo:i,headerAndTotalsHeight:a}=e,{layout:l,model:s,theme:u,viewService:c,styleService:d}=sR(oR,(e=>e.baseProps)),p=sR(oR,(e=>e.columnWidths)),f=sR(oR,(e=>e.initialDataPages)),m=k(null),h=k(null),g=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),b=k(0),v=!(null===(r=jw(l))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:y,visibleRowCount:x,visibleColumnCount:S}=XD(l,i,n,p,d.contentMinRowHeight),{setMeasuredCellHeight:E,setEstimatedCellHeight:R,getRowHeight:A,lineClamp:I,totalRowHeight:M}=WD({rowCount:y,isSnapshot:!!l.snapshotData,viewService:c,gridRef:m,pageInfo:i}),{rowsInPage:P,loadRows:D,loadColumns:L}=jD({layout:l,model:s,theme:u,initialDataPages:f,pageInfo:i,rowCount:y,visibleRowCount:x,visibleColumnCount:S,columns:o,gridState:g,setEstimatedCellHeight:R}),O=GD({layout:l,loadRows:D,loadColumns:L,rowCount:y,pageInfo:i,gridState:g,viewService:c}),_=C((()=>({rowsInPage:P,columns:o,isHoverEnabled:v,lineClamp:I,setMeasuredCellHeight:E})),[P,o,v,I,E]),T=((e,t,r)=>Math.min(e.height-t,r))(n,a,M);return q((()=>{var e;1===b.current&&(null===(e=m.current)||void 0===e||e.scrollToItem({rowIndex:y-1,align:"start"}))})),function(e){const{selectionsAPI:t}=sR(oR,(e=>e.baseProps)),r=sR(oR,(e=>e.selectionDispatch));w((()=>{r({type:zS.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),LI({selectionsAPI:t,selectionDispatch:r,setShouldRefocus:YD,keyboard:UD,tableWrapperRef:KD})}(P),j(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=h.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:T)-T,i=Math.round(o*e);var a,l,s;(b.current=e,1===b.current)?(null===(a=m.current)||void 0===a||a.scrollToItem({rowIndex:y-1,align:"start"}),null===(l=m.current)||void 0===l||l.scrollTo({scrollLeft:t})):null===(s=m.current)||void 0===s||s.scrollTo({scrollTop:i,scrollLeft:t})},element:h.current})),[h,T,y]),Pl.jsx(fD,{"data-key":"body",ref:m,innerRef:h,style:ZD,columnCount:l.qHyperCube.qSize.qcx,columnWidth:e=>p[e],height:T,rowCount:y,rowHeight:A,estimatedRowHeight:c.estimatedRowHeight,width:n.width,itemData:_,onItemsRendered:O,itemKey:JD,className:"sn-table-body",children:OD})})));const eL=({width:e,height:t,children:r})=>Pl.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),tL=(e,t)=>{const r=k(null),n=sR(oR,(e=>e.columnWidths));q((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=O((r=>{const n=MD(r);n&&t(n+9,e)}),[e,t]);return PD(r,o),r},rL=ES("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:void 0}}))),nL=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=r,{interactions:l,styleService:s}=sR(oR,(e=>e.baseProps)),u=sR(oR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),c=sR(oR,(e=>e.showRightBorder)),d=sR(oR,(e=>e.tableData.totalsPosition)),p=!!l.active&&!u,{open:f,setOpen:m,handleOpenMenu:h,setIsAdjustingWidth:g}=HP({isInteractionEnabled:p,columnsData:n}),b=tL(e,a),v=n[e],y=n.length-1===e,x="right"===v.headTextAlign?"row-reverse":"row";return Pl.jsxs(rL,{className:`sn-table-cell ${Sm}`,title:l.passive?v.label:void 0,onClick:h,applicableStyle:{...s.header,...yP(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:y&&!c?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:x,userSelect:"none"},interactions:l,hoverBackground:s.headerMenuHoverBackground,background:f?s.headerMenuActiveBackground:s.header.background,children:[Pl.jsx(zP,{forwardRef:b,column:v,isInteractionEnabled:p,open:f,setOpen:m,allColumnsIconVisibilityStatusRef:i}),Pl.jsx(wP,{column:v,isLastColumn:y,onColumnResize:o,setIsAdjustingWidth:g})]})},oL=e=>{const[t,r]=E(new Map);fm((()=>{r(new Map)}),[e.length]);const n=O(((e,t)=>{r((r=>HD(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>zD(t)),[t]),setMeasuredCellHeight:n}},iL=(e,t,r)=>{j(e,(()=>({scrollTo:e=>{var r;return null===(r=t.current)||void 0===r?void 0:r.scrollTo(e)},element:r.current})),[t,r])},aL=(e,t,r,n,o)=>{fm((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,r,e,n,o])},lL={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},sL=_(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=e,l=k(null),s=k(null),{layout:u,theme:c,styleService:d}=sR(oR,(e=>e.baseProps)),p=sR(oR,(e=>e.columnWidths)),{rowHeight:f,setMeasuredCellHeight:m}=oL(n);return iL(t,l,s),aL(l,u,o,p,c),Pl.jsx(SD,{ref:l,outerRef:s,layout:"horizontal",style:lL,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>p[e],height:Math.max(f+8,d.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:m},children:nL})}));var uL=T(sL);const cL=S.forwardRef(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a}=sR(oR,(e=>e.baseProps));return Pl.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:n,height:o},onScroll:i,children:r})})),dL=({children:e,rect:t})=>Pl.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),pL=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:l,styleService:s}=sR(oR,(e=>e.baseProps)),u=sR(oR,(e=>e.showRightBorder)),c=tL(e,i),d=n[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=n[e],m=a.qHyperCube.qSize.qcx-1===e;return Pl.jsx("div",{className:`sn-table-cell ${Sm}`,title:l.passive?d:void 0,style:{...t,...s.totalRow,...yP(s,o,!1),background:s.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!u?"0px":"1px",borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:p,boxSizing:"border-box",cursor:"default"},children:Pl.jsx(eM,{forwardRef:f?void 0:c,isNumeric:f,children:d})})},fL=_(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i}=e,a=k(null),l=k(null),{layout:s,theme:u,styleService:c}=sR(oR,(e=>e.baseProps)),d=sR(oR,(e=>e.columnWidths)),{rowHeight:p,setMeasuredCellHeight:f}=oL(i);return iL(t,a,l),aL(a,s,n,d,u),Pl.jsx(SD,{ref:a,outerRef:l,layout:"horizontal",style:lL,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,c.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:f},children:pL})}));var mL=T(fL);const hL=e=>{var t;return null===(t=e.current)||void 0===t?void 0:t.element},gL=e=>{var t,r;const[n,o]=E(null!==(t=null===(r=e.current)||void 0===r||null===(r=r.element)||void 0===r?void 0:r.clientHeight)&&void 0!==t?t:0),i=O((e=>{const t=MD(e);t&&o(t)}),[]);return PD(e,i,hL),n},bL=e=>{var t;const{pageInfo:r}=e,{totalsPosition:n,columns:o,paginationNeeded:i}=sR(oR,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=sR(oR,(e=>e.baseProps)),c=sR(oR,(e=>e.columnWidths)),d=sR(oR,(e=>e.setYScrollbarWidth)),p=k(null),f=k(null),m=k(null),h=k(null),{xScrollbarWidth:g,yScrollbarWidth:b}=AI(p),v=k([]),y=C((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,i)),[s,i]),x=C((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=XD(a,r,x,c,0),E=(({headerRef:e,totalsRef:t,totalsPosition:r})=>{const n=gL(e),o=gL(t);return r.atTop||r.atBottom?n+o:n})({totalsPosition:n,headerRef:f,totalsRef:m}),{width:w,height:R}=(({bodyRef:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=sR(oR,(e=>e.baseProps)),a=gL(e)+t,l=r*i.contentMinRowHeight+t;let s=l;return l<n.height&&a>n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({bodyRef:h,headerAndTotalsHeight:E,rowCount:S,stickyContainerRect:x,columnWidths:c}),A=((e,t,r,n)=>O((o=>{var i,a,l;const{scrollHeight:s,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(s-u)));n.scrollTopRatio=p,n.scrollLeft=d,null===(i=r.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(l=t.current)||void 0===l||l.scrollTo(d)}),[n,r,e,t]))(f,m,h,u),I=O((()=>{p.current&&(p.current.scrollTop=0)}),[p]);q((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),q((()=>{p.current&&(p.current.scrollTop=0)}),[r,S,l]),cI((()=>{d(b)}),[b]);const M=Pl.jsx(mL,{rect:x,pageInfo:r,columns:o,ref:m,totals:n},"totals");return Pl.jsx(cL,{ref:p,width:y.width,height:y.height,onScroll:A,children:Pl.jsx(eL,{width:w,height:R,children:Pl.jsxs(dL,{rect:x,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:Pl.jsx(uL,{rect:x,pageInfo:r,columns:o,ref:f,columResizeHandler:I,allColumnsIconVisibilityStatusRef:v}),n.atTop?M:null,Pl.jsx(QD,{ref:h,rect:x,pageInfo:r,columns:o,headerAndTotalsHeight:E}),n.atBottom?M:null]})})})};var vL=T(bL);const yL=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=sR(oR,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=sR(oR,(e=>e.tableData)),c=sR(oR,(e=>e.pageInfo)),d=sR(oR,(e=>e.setPage));return Pl.jsxs(sI,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Pl.jsx(vL,{pageInfo:c}),Pl.jsx(aI,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var xL=T(yL);var SL={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 EL=(e,t)=>o((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(SL).forEach((t=>{e.add(SL[t])}))}}(t),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${BS.First}`),l=e.querySelector(`.${BS.Second}`);let s;r===BS.First?(s=l,r=BS.Second):(s=a,r=BS.First),s.innerHTML=s.innerHTML.endsWith(" ­")?i:`${i} ­`,s.setAttribute("aria-live",o)}})(e,t))),[e,t.language()]),CL={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},wL=({app:e,model:n,rootElement:o,layout:i,interactions:s,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,embed:h,reactRoot:g,applyColumnWidths:b,isFontLoaded:v,viewService:y,env:x})=>{const{direction:S,footerContainer:E}=a(),C=xv(i,y),w=Sv(i,y),R=EL(o,u),A=C?{page:y.page||CL.page,rowsPerPage:y.rowsPerPage||CL.rowsPerPage,rowsPerPageOptions:CL.rowsPerPageOptions}:CL,[I,M]=t(A),[P]=l((async()=>w?async function(e,t,r,n,o,i){var a,l;const{page:s,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),m=null!==(a=o.visibleTop)&&void 0!==a?a:s*u,h=null!==(l=o.visibleHeight)&&void 0!==l?l:Math.min(u,p-m);if(s>0&&m>=p)return n({...r,page:0}),null;if(h*d>pv)return n({...r,rowsPerPage:fv(d,c),page:0}),null;const g=p>10,b=mv(t,o),v=yv(t),y=!!t.snapshotData,x=y?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:m,qLeft:0,qHeight:h,qWidth:d}]);o&&!y&&(o.qTop=m,o.qHeight=h,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const r=[];return v.forEach(((n,o)=>{r[o]={id:lb(),...e[o],align:vv(e[o],n.bodyTextAlign),rowIdx:t+m,colIdx:n.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:n.selectionColIdx,isSelectable:n.isDim&&!n.isLocked,isLastRow:t===h-1,isNumeric:cb(e[o]),isNull:dv(e[o],n.isDim),representation:cv(e[o],n.representation,n.qAttrExprInfoIndex,i,n.conditionalColoring,n.qMiniChart)}})),r})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,i,I,M,y,x):null),[i,I,n,w]);r((()=>{!!(w&&g&&n&&(i.snapshotData||e)&&i&&P&&p&&d&&c&&v&&h)&&function(e,t){const{app:r,model:n,direction:o,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,env:v,...y}=e,x=uR(o);null==t||t.render(Pl.jsx(To,{stylisPlugins:"rtl"===o?[mE]:void 0,children:Pl.jsx(wS,{theme:x,children:Pl.jsx(lR,{app:r,model:n,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,env:v,children:Pl.jsx(GP,{...y,direction:o})})})}))}({app:e,model:n,rootElement:o,layout:i,tableData:P,direction:S,pageInfo:I,setPageInfo:M,interactions:s,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,footerContainer:E,announce:R,embed:h,applyColumnWidths:b,viewService:y,env:x},g)}),[e,n,g,P,s,S,d,f.active,R,p,b,w,i,c,h,o,I,M,u,m,E,v,x])},RL=e=>{const t=o((()=>dm(e)),[e]);return r((()=>()=>t.unmount()),[t]),t},AL=(e,t)=>o((()=>((e,t)=>{if(t)return async(r,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=r,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=n!==l||s;s||(c.splice(c.indexOf(i),1),c.unshift(i),d.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${c.join(",")}]`})),p&&d.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(d,!0)}})(e.qDimensionInfo.length,t)),[e.qDimensionInfo.length,t]);const IL=({model:e,layout:t,shouldRender:r,page:n})=>{const[o]=l((async()=>{if(r&&e)return(async(e,t,r)=>{let{qDataPages:n}=t.qHyperCube;if(0!==r||void 0===n||0===n.length){const o=r*Math.min(Sw,t.qHyperCube.qSize.qcy);n=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:n,derivedFrom:{layout:t,page:r}}})(e,t,n)}),[e,t,n]),i=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==n;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:i}},ML=({app:e,layout:n,model:i,rect:a,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,env:y})=>{const x=!Sv(n,v),E=o((()=>function(e,t,r){const n=mv(e,r),o=yv(e),i=e.qHyperCube.qSize.qcy,a=Math.min(Sw,i),l=i>Sw&&!!t.active;return{totalsPosition:n,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(n,c,v)),[n,c,v]),{pageInfo:C,setPage:w}=((e,r)=>{const[n,i]=t(0),a=Math.min(Sw,e.qHyperCube.qSize.qcy),l=o((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(r){const t=Math.floor(e.qHyperCube.qSize.qcy/Sw);t<n&&i(t)}return{pageInfo:l,setPage:i}})(n,x),{initialDataPages:R,isLoading:A}=IL({model:i,layout:n,page:C.page,shouldRender:x});r((()=>{var e;x&&s.active&&(null===(e=s.blur)||void 0===e||e.call(s,!1))}),[s.active]),r((()=>{x&&i&&p&&R&&!A&&b&&function(e,t){const{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:x}=e,E=uR("ltr");t.render(Pl.jsx(S.StrictMode,{children:Pl.jsx(wS,{theme:E,children:Pl.jsx(lR,{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:x,children:Pl.jsx(xL,{})})})}))}({app:e,layout:n,model:i,rect:a,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:E,applyColumnWidths:g,setPage:w,pageInfo:C,initialDataPages:R,viewService:v,env:y},h)}),[e,n,i,a,l,s.active,u,c,d,p,x,f,m,h,E,g,w,C,A,R,b,y])},PL=(e,t)=>{const{fontSize:r,fontFamily:n}=Hw(t,e,!1),{fontSize:o,fontFamily:i}=Bw(t,e),[a,s]=l((async()=>(await document.fonts.load(`600 ${r} ${n}`),await document.fonts.load(`${o} ${i}`),!0)),[r,n,o,i]);return s?(console.warn("Failed to load font:",s),!0):!!a},DL={version:JSON.stringify("3.14.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};var LL=()=>({properties:{initial:DL},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:ng,exportProperties:tg,exploration:og});function kL(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=(null==r?void 0:r.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?l.height:0),bottom:n.y+n.height-(t.atBottom?l.height:0)},c=((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})(s,u),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})(s,u),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)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const OL=(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]}},_L=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const TL=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||CL.rowsPerPage,l=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},qL=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=mv(e,t);if(Sv(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=kL(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:TL(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=OL(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(_L(m,h,g)?d:d+1)+c;let v=p+c;const y=OL(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(_L(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:TL(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},NL=({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{s((async i=>{if(!i.snapshotData||!r||i.snapshotData.content)return i;if(r.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=qL(e,t,n);i.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),u((()=>({getViewState:()=>qL(e,t,n)})),[e,t,n])},FL=e=>{const{viewState:t}=a();return o((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(t,e.snapshotData)),[t,e.snapshotData,e.usePagination])},jL=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),zL=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));