@nebula.js/sn-table 6.69.0 → 6.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +1 -1
- package/api-specifications/sn-table.json +1 -1
- package/core/esm/index.js +2 -2
- package/dist/sn-table.js +3 -3
- package/dist/sn-table.systemjs.js +3 -3
- package/package.json +3 -3
- package/sn-table-ext/dist/sn-table.js +3 -3
- package/sn-table-ext/sn-table.qext +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.
|
|
2
|
+
* @nebula.js/sn-table v6.71.0
|
|
3
3
|
* Copyright (c) 2026 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,t){"use strict";var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,v,y,x,S,w,C,E,I,A,R,D,M,k,T,q,P,L,O,N,j,_,z,F,$,B,H,V,W,U,G,K;return{setters:[function(e){n=e.useMemo,r=e.useOptions,o=e.usePromise,i=e.useState,a=e.useEffect,s=e.useTheme,l=e.onContextMenu,c=e.HyperCubeHandler,u=e.onTakeSnapshot,d=e.useImperativeHandle,p=e.useStaleLayout,f=e.useElement,h=e.useApp,m=e.useModel,g=e.useInteractionState,b=e.useTranslator,v=e.useSelections,y=e.useKeyboard,x=e.useRect,S=e.useEmbed},function(e){w=e.default,C=e.createElement,E=e,I=e.isValidElement,A=e.cloneElement,R=e.Children,D=e.useMemo,M=e.useState,k=e.useRef,T=e.createContext,q=e.useReducer,P=e.useEffect,L=e.useDebugValue,O=e.useCallback,N=e.useContext,j=e.useLayoutEffect,_=e.useInsertionEffect,z=e.memo,F=e.forwardRef,$=e.startTransition,B=e.useImperativeHandle,H=e.PureComponent},function(e){V=e.default,W=e,U=e.flushSync},function(e){G=e.default},function(e){K=e.default}],execute:function(){function Y(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function X(e){if("object"==typeof e&&Y(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}e("default",function(e){return{qae:SU(e),ext:WL(e),component(){const t=p(),o=n(()=>_g(),[!1!==t.usePagination]);o.set(cb,e);const i=f();o.set(Gb,i),o.set(fb,t),o.set(Xg,h()),o.set($b,m()),o.set(Ab,g()),o.set(Jb,b()),o.set(Eb,v()),o.set(Pb,r()),o.set(Fb,y()),o.set(Ub,x()),o.set(Zg,S());const a=Em(t,i,wU,CU);o.set(Xb,a),o.set(pb,Lm(a,t,e)),o.set(Jg,kt()),UL(o),l?.((e,t)=>{const n=t.target,r=n?.closest(`.${Hm}`);r?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{Qm(r)}})}),yU({store:o}),fU(o)}}});const J={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}},Z="qcm-color";function Q(...e){const t={type:Z,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===Z)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Y(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(s[1],16),r=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e<0?e=0:e>360&&(e=360),t<0?t=0:t>1&&(t=1),a<0?a=0:a>1&&(a=1);const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e<0?e=0:e>360&&(e=360),t<0?t=0:t>1&&(t=1),a<0?a=0:a>1&&(a=1);const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e<0?e=0:e>360&&(e=360),t<0?t=0:t>1&&(t=1),a<0?a=0:a>1&&(a=1);const l=a*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in J}(e)){const t=J[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function ee(e){let t,n,r=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function te(e){let t,n,r=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=l;if(l===c)t=0,r=0;else{switch(n=l-c,t=0===n?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function ne(e){if(Y(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?X(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function re(e,t){return Y(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:re(Q(e))}function oe(e){return Y(e)?1===e.a?ne(e):re(e):oe(Q(e))}const ie=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function ae(e){return.2126*ie(e.r)+.7152*ie(e.g)+.0722*ie(e.b)}function se(...e){const t=Q(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=ee(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Q(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=Q(...e);return t.invalid||ae(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=ne(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=re(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=oe(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=function(e){let t,n,r;if(Y(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?X(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=ee(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=te(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=te(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>se(o(18*e)),getDarkenedColor:(e=1)=>se(o(18*-e))}}function le(e,t){if(!e||!t)return;const n=ae(e),r=ae(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const ce="#FFFFFF";const 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 de(){return ue}var pe,fe,he=function(){if(fe)return pe;fe=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return pe=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},pe}();function me(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ge(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function be(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(he);var ve=.7,ye=1/ve,xe="\\s*([+-]?\\d+)\\s*",Se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",we="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ce=/^#([0-9a-f]{3,8})$/,Ee=new RegExp(`^rgb\\(${xe},${xe},${xe}\\)$`),Ie=new RegExp(`^rgb\\(${we},${we},${we}\\)$`),Ae=new RegExp(`^rgba\\(${xe},${xe},${xe},${Se}\\)$`),Re=new RegExp(`^rgba\\(${we},${we},${we},${Se}\\)$`),De=new RegExp(`^hsl\\(${Se},${we},${we}\\)$`),Me=new RegExp(`^hsla\\(${Se},${we},${we},${Se}\\)$`),ke={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 Te(){return this.rgb().formatHex()}function qe(){return this.rgb().formatRgb()}function Pe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Le(t):3===n?new _e(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Oe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Oe(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=Ee.exec(e))?new _e(t[1],t[2],t[3],1):(t=Ie.exec(e))?new _e(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ae.exec(e))?Oe(t[1],t[2],t[3],t[4]):(t=Re.exec(e))?Oe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=De.exec(e))?Ve(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Ve(t[1],t[2]/100,t[3]/100,t[4]):ke.hasOwnProperty(e)?Le(ke[e]):"transparent"===e?new _e(NaN,NaN,NaN,0):null}function Le(e){return new _e(e>>16&255,e>>8&255,255&e,1)}function Oe(e,t,n,r){return r<=0&&(e=t=n=NaN),new _e(e,t,n,r)}function Ne(e){return e instanceof be||(e=Pe(e)),e?new _e((e=e.rgb()).r,e.g,e.b,e.opacity):new _e}function je(e,t,n,r){return 1===arguments.length?Ne(e):new _e(e,t,n,null==r?1:r)}function _e(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ze(){return`#${He(this.r)}${He(this.g)}${He(this.b)}`}function Fe(){const e=$e(this.opacity);return`${1===e?"rgb(":"rgba("}${Be(this.r)}, ${Be(this.g)}, ${Be(this.b)}${1===e?")":`, ${e})`}`}function $e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Be(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function He(e){return((e=Be(e))<16?"0":"")+e.toString(16)}function Ve(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ue(e,t,n,r)}function We(e){if(e instanceof Ue)return new Ue(e.h,e.s,e.l,e.opacity);if(e instanceof be||(e=Pe(e)),!e)return new Ue;if(e instanceof Ue)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Ue(a,s,l,e.opacity)}function Ue(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ge(e){return(e=(e||0)%360)<0?e+360:e}function Ke(e){return Math.max(0,Math.min(1,e||0))}function Ye(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}me(be,Pe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Te,formatHex:Te,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return We(this).formatHsl()},formatRgb:qe,toString:qe}),me(_e,je,ge(be,{brighter(e){return e=null==e?ye:Math.pow(ye,e),new _e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ve:Math.pow(ve,e),new _e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _e(Be(this.r),Be(this.g),Be(this.b),$e(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:ze,formatHex:ze,formatHex8:function(){return`#${He(this.r)}${He(this.g)}${He(this.b)}${He(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Fe,toString:Fe})),me(Ue,function(e,t,n,r){return 1===arguments.length?We(e):new Ue(e,t,n,null==r?1:r)},ge(be,{brighter(e){return e=null==e?ye:Math.pow(ye,e),new Ue(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ve:Math.pow(ve,e),new Ue(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new _e(Ye(e>=240?e-240:e+120,o,r),Ye(e,o,r),Ye(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ue(Ge(this.h),Ke(this.s),Ke(this.l),$e(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=$e(this.opacity);return`${1===e?"hsl(":"hsla("}${Ge(this.h)}, ${100*Ke(this.s)}%, ${100*Ke(this.l)}%${1===e?")":`, ${e})`}`}}));const Xe=Math.PI/180,Je=180/Math.PI,Ze=.96422,Qe=.82521,et=4/29,tt=6/29,nt=3*tt*tt,rt=tt*tt*tt;function ot(e){if(e instanceof it)return new it(e.l,e.a,e.b,e.opacity);if(e instanceof ut)return dt(e);e instanceof _e||(e=Ne(e));var t,n,r=ct(e.r),o=ct(e.g),i=ct(e.b),a=at((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=at((.4360747*r+.3850649*o+.1430804*i)/Ze),n=at((.0139322*r+.0971045*o+.7141733*i)/Qe)),new it(116*a-16,500*(t-a),200*(a-n),e.opacity)}function it(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function at(e){return e>rt?Math.pow(e,1/3):e/nt+et}function st(e){return e>tt?e*e*e:nt*(e-et)}function lt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ct(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ut(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function dt(e){if(isNaN(e.h))return new it(e.l,0,0,e.opacity);var t=e.h*Xe;return new it(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}me(it,function(e,t,n,r){return 1===arguments.length?ot(e):new it(e,t,n,null==r?1:r)},ge(be,{brighter(e){return new it(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new it(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new _e(lt(3.1338561*(t=Ze*st(t))-1.6168667*(e=1*st(e))-.4906146*(n=Qe*st(n))),lt(-.9787684*t+1.9161415*e+.033454*n),lt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),me(ut,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ut)return new ut(e.h,e.c,e.l,e.opacity);if(e instanceof it||(e=ot(e)),0===e.a&&0===e.b)return new ut(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Je;return new ut(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ut(e,t,n,null==r?1:r)},ge(be,{brighter(e){return new ut(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ut(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dt(this).rgb()}}));var pt=e=>()=>e;function ft(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):pt(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?ft:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):pt(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=je(e)).r,(t=je(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ft(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var ht="center",mt="bottom";[{key:"NoDataExist",alignment:ht,condition:({layoutService:e})=>{if(!e)return!1;const{x:t,y:n}=e.meta.size;return t*n===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:ht,condition:({layoutService:e})=>!!e&&e.getHyperCubeValue("qMeasureInfo").every(e=>"NaN"===e.qMin&&"NaN"===e.qMax)},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:ht,condition:({layoutService:e})=>{if(!e)return!1;const{isContinuous:t}=e.meta;if(!t)return!1;const n=e.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:ht},{key:"DataRangeIncludingZero",alignment:mt},{key:"LimitedData",alignment:mt},{key:"NegativeOrZeroValues",alignment:mt}].reduce((e,t)=>(e[t.key]=t,e),{});const gt=["__proto__","constructor"];function bt(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if(gt.some(e=>r.includes(e)))return;let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}function vt(e,t=e=>e){const n=function(){let e={};return{get:t=>e[t],set:(t,n)=>(e[t]=n,n),has:t=>t in e,remove(t){delete e[t]},empty(){e={}}}}();return r=>{const o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function yt(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function xt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=St);for(var n,r,o,i,a,s=new It(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new It(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Et)}function St(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Ct(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Et(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}var At;It.prototype=xt.prototype={constructor:It,count:function(){return this.eachAfter(yt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return xt(this).eachBefore(Ct)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},At=function(e){
|
|
7
|
+
System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],function(e,t){"use strict";var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,v,y,x,S,w,C,E,I,A,R,D,M,k,T,q,P,L,O,N,j,_,z,F,$,B,H,V,W,U,G,K;return{setters:[function(e){n=e.useMemo,r=e.useOptions,o=e.usePromise,i=e.useState,a=e.useEffect,s=e.useTheme,l=e.onContextMenu,c=e.HyperCubeHandler,u=e.onTakeSnapshot,d=e.useImperativeHandle,p=e.useStaleLayout,f=e.useElement,h=e.useApp,m=e.useModel,g=e.useInteractionState,b=e.useTranslator,v=e.useSelections,y=e.useKeyboard,x=e.useRect,S=e.useEmbed},function(e){w=e.default,C=e.createElement,E=e,I=e.isValidElement,A=e.cloneElement,R=e.Children,D=e.useMemo,M=e.useState,k=e.useRef,T=e.createContext,q=e.useReducer,P=e.useEffect,L=e.useDebugValue,O=e.useCallback,N=e.useContext,j=e.useLayoutEffect,_=e.useInsertionEffect,z=e.memo,F=e.forwardRef,$=e.startTransition,B=e.useImperativeHandle,H=e.PureComponent},function(e){V=e.default,W=e,U=e.flushSync},function(e){G=e.default},function(e){K=e.default}],execute:function(){function Y(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function X(e){if("object"==typeof e&&Y(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}e("default",function(e){return{qae:wU(e),ext:WL(e),component(){const t=p(),o=n(()=>_g(),[!1!==t.usePagination]);o.set(cb,e);const i=f();o.set(Gb,i),o.set(fb,t),o.set(Xg,h()),o.set($b,m()),o.set(Ab,g()),o.set(Jb,b()),o.set(Eb,v()),o.set(Pb,r()),o.set(Fb,y()),o.set(Ub,x()),o.set(Zg,S());const a=Em(t,i,CU,EU);o.set(Xb,a),o.set(pb,Lm(a,t,e)),o.set(Jg,kt()),UL(o),l?.((e,t)=>{const n=t.target,r=n?.closest(`.${Hm}`);r?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{Qm(r)}})}),xU({store:o}),hU(o)}}});const J={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}},Z="qcm-color";function Q(...e){const t={type:Z,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===Z)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Y(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(s[1],16),r=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e<0?e=0:e>360&&(e=360),t<0?t=0:t>1&&(t=1),a<0?a=0:a>1&&(a=1);const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e<0?e=0:e>360&&(e=360),t<0?t=0:t>1&&(t=1),a<0?a=0:a>1&&(a=1);const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e<0?e=0:e>360&&(e=360),t<0?t=0:t>1&&(t=1),a<0?a=0:a>1&&(a=1);const l=a*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in J}(e)){const t=J[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function ee(e){let t,n,r=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function te(e){let t,n,r=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=l;if(l===c)t=0,r=0;else{switch(n=l-c,t=0===n?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function ne(e){if(Y(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?X(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function re(e,t){return Y(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:re(Q(e))}function oe(e){return Y(e)?1===e.a?ne(e):re(e):oe(Q(e))}const ie=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function ae(e){return.2126*ie(e.r)+.7152*ie(e.g)+.0722*ie(e.b)}function se(...e){const t=Q(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=ee(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Q(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=Q(...e);return t.invalid||ae(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=ne(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=re(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=oe(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=function(e){let t,n,r;if(Y(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?X(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=ee(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=te(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=te(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>se(o(18*e)),getDarkenedColor:(e=1)=>se(o(18*-e))}}function le(e,t){if(!e||!t)return;const n=ae(e),r=ae(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const ce="#FFFFFF";const 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 de(){return ue}var pe,fe,he=function(){if(fe)return pe;fe=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return pe=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},pe}();function me(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ge(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function be(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(he);var ve=.7,ye=1/ve,xe="\\s*([+-]?\\d+)\\s*",Se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",we="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ce=/^#([0-9a-f]{3,8})$/,Ee=new RegExp(`^rgb\\(${xe},${xe},${xe}\\)$`),Ie=new RegExp(`^rgb\\(${we},${we},${we}\\)$`),Ae=new RegExp(`^rgba\\(${xe},${xe},${xe},${Se}\\)$`),Re=new RegExp(`^rgba\\(${we},${we},${we},${Se}\\)$`),De=new RegExp(`^hsl\\(${Se},${we},${we}\\)$`),Me=new RegExp(`^hsla\\(${Se},${we},${we},${Se}\\)$`),ke={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 Te(){return this.rgb().formatHex()}function qe(){return this.rgb().formatRgb()}function Pe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Le(t):3===n?new _e(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Oe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Oe(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=Ee.exec(e))?new _e(t[1],t[2],t[3],1):(t=Ie.exec(e))?new _e(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ae.exec(e))?Oe(t[1],t[2],t[3],t[4]):(t=Re.exec(e))?Oe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=De.exec(e))?Ve(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Ve(t[1],t[2]/100,t[3]/100,t[4]):ke.hasOwnProperty(e)?Le(ke[e]):"transparent"===e?new _e(NaN,NaN,NaN,0):null}function Le(e){return new _e(e>>16&255,e>>8&255,255&e,1)}function Oe(e,t,n,r){return r<=0&&(e=t=n=NaN),new _e(e,t,n,r)}function Ne(e){return e instanceof be||(e=Pe(e)),e?new _e((e=e.rgb()).r,e.g,e.b,e.opacity):new _e}function je(e,t,n,r){return 1===arguments.length?Ne(e):new _e(e,t,n,null==r?1:r)}function _e(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ze(){return`#${He(this.r)}${He(this.g)}${He(this.b)}`}function Fe(){const e=$e(this.opacity);return`${1===e?"rgb(":"rgba("}${Be(this.r)}, ${Be(this.g)}, ${Be(this.b)}${1===e?")":`, ${e})`}`}function $e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Be(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function He(e){return((e=Be(e))<16?"0":"")+e.toString(16)}function Ve(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ue(e,t,n,r)}function We(e){if(e instanceof Ue)return new Ue(e.h,e.s,e.l,e.opacity);if(e instanceof be||(e=Pe(e)),!e)return new Ue;if(e instanceof Ue)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Ue(a,s,l,e.opacity)}function Ue(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ge(e){return(e=(e||0)%360)<0?e+360:e}function Ke(e){return Math.max(0,Math.min(1,e||0))}function Ye(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}me(be,Pe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Te,formatHex:Te,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return We(this).formatHsl()},formatRgb:qe,toString:qe}),me(_e,je,ge(be,{brighter(e){return e=null==e?ye:Math.pow(ye,e),new _e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ve:Math.pow(ve,e),new _e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _e(Be(this.r),Be(this.g),Be(this.b),$e(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:ze,formatHex:ze,formatHex8:function(){return`#${He(this.r)}${He(this.g)}${He(this.b)}${He(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Fe,toString:Fe})),me(Ue,function(e,t,n,r){return 1===arguments.length?We(e):new Ue(e,t,n,null==r?1:r)},ge(be,{brighter(e){return e=null==e?ye:Math.pow(ye,e),new Ue(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ve:Math.pow(ve,e),new Ue(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new _e(Ye(e>=240?e-240:e+120,o,r),Ye(e,o,r),Ye(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ue(Ge(this.h),Ke(this.s),Ke(this.l),$e(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=$e(this.opacity);return`${1===e?"hsl(":"hsla("}${Ge(this.h)}, ${100*Ke(this.s)}%, ${100*Ke(this.l)}%${1===e?")":`, ${e})`}`}}));const Xe=Math.PI/180,Je=180/Math.PI,Ze=.96422,Qe=.82521,et=4/29,tt=6/29,nt=3*tt*tt,rt=tt*tt*tt;function ot(e){if(e instanceof it)return new it(e.l,e.a,e.b,e.opacity);if(e instanceof ut)return dt(e);e instanceof _e||(e=Ne(e));var t,n,r=ct(e.r),o=ct(e.g),i=ct(e.b),a=at((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=at((.4360747*r+.3850649*o+.1430804*i)/Ze),n=at((.0139322*r+.0971045*o+.7141733*i)/Qe)),new it(116*a-16,500*(t-a),200*(a-n),e.opacity)}function it(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function at(e){return e>rt?Math.pow(e,1/3):e/nt+et}function st(e){return e>tt?e*e*e:nt*(e-et)}function lt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ct(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ut(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function dt(e){if(isNaN(e.h))return new it(e.l,0,0,e.opacity);var t=e.h*Xe;return new it(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}me(it,function(e,t,n,r){return 1===arguments.length?ot(e):new it(e,t,n,null==r?1:r)},ge(be,{brighter(e){return new it(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new it(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new _e(lt(3.1338561*(t=Ze*st(t))-1.6168667*(e=1*st(e))-.4906146*(n=Qe*st(n))),lt(-.9787684*t+1.9161415*e+.033454*n),lt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),me(ut,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ut)return new ut(e.h,e.c,e.l,e.opacity);if(e instanceof it||(e=ot(e)),0===e.a&&0===e.b)return new ut(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Je;return new ut(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ut(e,t,n,null==r?1:r)},ge(be,{brighter(e){return new ut(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ut(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dt(this).rgb()}}));var pt=e=>()=>e;function ft(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):pt(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?ft:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):pt(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=je(e)).r,(t=je(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ft(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var ht="center",mt="bottom";[{key:"NoDataExist",alignment:ht,condition:({layoutService:e})=>{if(!e)return!1;const{x:t,y:n}=e.meta.size;return t*n===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:ht,condition:({layoutService:e})=>!!e&&e.getHyperCubeValue("qMeasureInfo").every(e=>"NaN"===e.qMin&&"NaN"===e.qMax)},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:ht,condition:({layoutService:e})=>{if(!e)return!1;const{isContinuous:t}=e.meta;if(!t)return!1;const n=e.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:ht},{key:"DataRangeIncludingZero",alignment:mt},{key:"LimitedData",alignment:mt},{key:"NegativeOrZeroValues",alignment:mt}].reduce((e,t)=>(e[t.key]=t,e),{});const gt=["__proto__","constructor"];function bt(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if(gt.some(e=>r.includes(e)))return;let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}function vt(e,t=e=>e){const n=function(){let e={};return{get:t=>e[t],set:(t,n)=>(e[t]=n,n),has:t=>t in e,remove(t){delete e[t]},empty(){e={}}}}();return r=>{const o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function yt(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function xt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=St);for(var n,r,o,i,a,s=new It(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new It(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Et)}function St(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Ct(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Et(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}var At;It.prototype=xt.prototype={constructor:It,count:function(){return this.eachAfter(yt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return xt(this).eachBefore(Ct)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},At=function(e){
|
|
8
8
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
9
|
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},At({exports:{}});const Rt=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function Dt(e,t){return n(()=>e,t)}const Mt={},kt=()=>{const{viewState:e}=r(),t=(e=>{const t=n(()=>({current:Mt}),[]);return t.current=t.current===Mt?e:t.current,t})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=n(()=>Rt(),[]),l=Dt(e=>{t.current.add(e)},[t]),c=Dt(function(e,t=50){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}(async()=>{await Promise.all(t.current),t.current.clear(),s()},1e3),[s,t]);return o(async()=>{await a},[a]),n(()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:c,waitForPromise:l}),[c,i,e,l])},Tt={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"},qt={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Tt,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_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Pt=12,Lt=14,Ot=16,Nt=24,jt=3,_t=300,zt=400,Ft=600,$t=700,Bt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Wt,Ut,Gt={exports:{}},Kt={};var Yt=(Ut||(Ut=1,Gt.exports=function(){if(Wt)return Kt;Wt=1;var e=w,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return Kt.Fragment=n,Kt.jsx=a,Kt.jsxs=a,Kt}()),Gt.exports);const Xt={black:"#000",white:"#fff"},Jt="#e57373",Zt="#ef5350",Qt="#f44336",en="#d32f2f",tn="#c62828",nn="#f3e5f5",rn="#ce93d8",on="#ba68c8",an="#ab47bc",sn="#9c27b0",ln="#7b1fa2",cn="#e3f2fd",un="#90caf9",dn="#42a5f5",pn="#1976d2",fn="#1565c0",hn="#4fc3f7",mn="#29b6f6",gn="#03a9f4",bn="#0288d1",vn="#01579b",yn="#81c784",xn="#66bb6a",Sn="#4caf50",wn="#388e3c",Cn="#2e7d32",En="#1b5e20",In="#ffb74d",An="#ffa726",Rn="#ff9800",Dn="#f57c00",Mn="#e65100",kn={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 Tn(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 qn=Object.freeze({__proto__:null,default:Tn}),Pn="$$material";function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ln.apply(null,arguments)}function On(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Nn="-ms-",jn="-moz-",_n="-webkit-",zn="comm",Fn="rule",$n="decl",Bn="@keyframes",Hn=Math.abs,Vn=String.fromCharCode,Wn=Object.assign;function Un(e){return e.trim()}function Gn(e,t){return(e=t.exec(e))?e[0]:e}function Kn(e,t,n){return e.replace(t,n)}function Yn(e,t,n){return e.indexOf(t,n)}function Xn(e,t){return 0|e.charCodeAt(t)}function Jn(e,t,n){return e.slice(t,n)}function Zn(e){return e.length}function Qn(e){return e.length}function er(e,t){return t.push(e),e}function tr(e,t){return e.filter(function(e){return!Gn(e,t)})}var nr,rr,or=1,ir=1,ar=0,sr=0,lr=0,cr="";function ur(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:or,column:ir,length:a,return:"",siblings:s}}function dr(e,t){return Wn(ur("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function pr(e){for(;e.root;)e=dr(e.root,{children:[e]});er(e,e.siblings)}function fr(){return lr=sr>0?Xn(cr,--sr):0,ir--,10===lr&&(ir=1,or--),lr}function hr(){return lr=sr<ar?Xn(cr,sr++):0,ir++,10===lr&&(ir=1,or++),lr}function mr(){return Xn(cr,sr)}function gr(){return sr}function br(e,t){return Jn(cr,e,t)}function vr(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 yr(e){return Un(br(sr-1,wr(91===e?e+2:40===e?e+1:e)))}function xr(e){for(;(lr=mr())&&lr<33;)hr();return vr(e)>2||vr(lr)>3?"":" "}function Sr(e,t){for(;--t&&hr()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return br(e,gr()+(t<6&&32==mr()&&32==hr()))}function wr(e){for(;hr();)switch(lr){case e:return sr;case 34:case 39:34!==e&&39!==e&&wr(lr);break;case 40:41===e&&wr(e);break;case 92:hr()}return sr}function Cr(e,t){for(;hr()&&e+lr!==57&&(e+lr!==84||47!==mr()););return"/*"+br(t,sr-1)+"*"+Vn(47===e?e:hr())}function Er(e){for(;!vr(mr());)hr();return br(e,sr)}function Ir(e){return function(e){return cr="",e}(Ar("",null,null,null,[""],e=function(e){return or=ir=1,ar=Zn(cr=e),sr=0,[]}(e),0,[0],e))}function Ar(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,w=r,C=y;g;)switch(h=v,v=hr()){case 40:if(108!=h&&58==Xn(C,d-1)){-1!=Yn(C+=Kn(yr(v),"&","&\f"),"&\f",Hn(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=yr(v);break;case 9:case 10:case 13:case 32:C+=xr(h);break;case 92:C+=Sr(gr()-1,7);continue;case 47:switch(mr()){case 42:case 47:er(Dr(Cr(hr(),gr()),t,n,l),l),5!=vr(h||1)&&5!=vr(mr()||1)||!Zn(C)||" "===Jn(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[c++]=Zn(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(C=Kn(C,/\f/g,"")),f>0&&(Zn(C)-d||0===m&&47===h)&&er(f>32?Mr(C+";",r,n,d-1,l):Mr(Kn(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(er(w=Rr(C,t,n,c,u,o,s,y,x=[],S=[],d,i),i),123===v)if(0===u)Ar(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===Xn(C,3))break;case 108:if(97===Xn(C,2))break;default:u=0;case 100:case 109:case 115:}u?Ar(e,w,w,r&&er(Rr(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,r?x:S):Ar(C,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Zn(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==fr())continue;switch(C+=Vn(v),v*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Zn(C)-1)*b,b=1;break;case 64:45===mr()&&(C+=yr(hr())),p=mr(),u=d=Zn(y=C+=Er(gr())),v++;break;case 45:45===h&&2==Zn(C)&&(m=0)}}return i}function Rr(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=Qn(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=Jn(e,p+1,p=Hn(g=a[m])),x=e;v<h;++v)(x=Un(g>0?f[v]+" "+y:Kn(y,/&\f/g,f[v])))&&(l[b++]=x);return ur(e,t,n,0===o?Fn:s,l,c,u,d)}function Dr(e,t,n,r){return ur(e,t,n,zn,Vn(lr),Jn(e,2,-2),0,r)}function Mr(e,t,n,r,o){return ur(e,t,n,$n,Jn(e,0,r),Jn(e,r+1,-1),r,o)}function kr(e,t,n){switch(function(e,t){return 45^Xn(e,0)?(((t<<2^Xn(e,0))<<2^Xn(e,1))<<2^Xn(e,2))<<2^Xn(e,3):0}(e,t)){case 5103:return _n+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return _n+e+e;case 4855:return _n+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return jn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _n+e+jn+e+Nn+e+e;case 5936:switch(Xn(e,t+11)){case 114:return _n+e+Nn+Kn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _n+e+Nn+Kn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _n+e+Nn+Kn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _n+e+Nn+e+e;case 6165:return _n+e+Nn+"flex-"+e+e;case 5187:return _n+e+Kn(e,/(\w+).+(:[^]+)/,_n+"box-$1$2"+Nn+"flex-$1$2")+e;case 5443:return _n+e+Nn+"flex-item-"+Kn(e,/flex-|-self/g,"")+(Gn(e,/flex-|baseline/)?"":Nn+"grid-row-"+Kn(e,/flex-|-self/g,""))+e;case 4675:return _n+e+Nn+"flex-line-pack"+Kn(e,/align-content|flex-|-self/g,"")+e;case 5548:return _n+e+Nn+Kn(e,"shrink","negative")+e;case 5292:return _n+e+Nn+Kn(e,"basis","preferred-size")+e;case 6060:return _n+"box-"+Kn(e,"-grow","")+_n+e+Nn+Kn(e,"grow","positive")+e;case 4554:return _n+Kn(e,/([^-])(transform)/g,"$1"+_n+"$2")+e;case 6187:return Kn(Kn(Kn(e,/(zoom-|grab)/,_n+"$1"),/(image-set)/,_n+"$1"),e,"")+e;case 5495:case 3959:return Kn(e,/(image-set\([^]*)/,_n+"$1$`$1");case 4968:return Kn(Kn(e,/(.+:)(flex-)?(.*)/,_n+"box-pack:$3"+Nn+"flex-pack:$3"),/space-between/,"justify")+_n+e+e;case 4200:if(!Gn(e,/flex-|baseline/))return Nn+"grid-column-align"+Jn(e,t)+e;break;case 2592:case 3360:return Nn+Kn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Gn(e.props,/grid-\w+-end/)})?~Yn(e+(n=n[t].value),"span",0)?e:Nn+Kn(e,"-start","")+e+Nn+"grid-row-span:"+(~Yn(n,"span",0)?Gn(n,/\d+/):+Gn(n,/\d+/)-+Gn(e,/\d+/))+";":Nn+Kn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return Gn(e.props,/grid-\w+-start/)})?e:Nn+Kn(Kn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Kn(e,/(.+)-inline(.+)/,_n+"$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(Zn(e)-1-t>6)switch(Xn(e,t+1)){case 109:if(45!==Xn(e,t+4))break;case 102:return Kn(e,/(.+:)(.+)-([^]+)/,"$1"+_n+"$2-$3$1"+jn+(108==Xn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Yn(e,"stretch",0)?kr(Kn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Kn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,s){return Nn+n+":"+r+s+(o?Nn+n+"-span:"+(i?a:+a-+r)+s:"")+e});case 4949:if(121===Xn(e,t+6))return Kn(e,":",":"+_n)+e;break;case 6444:switch(Xn(e,45===Xn(e,14)?18:11)){case 120:return Kn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_n+(45===Xn(e,14)?"inline-":"")+"box$3$1"+_n+"$2$3$1"+Nn+"$2box$3")+e;case 100:return Kn(e,":",":"+Nn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Kn(e,"scroll-","scroll-snap-")+e}return e}function Tr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function qr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case $n:return e.return=e.return||e.value;case zn:return"";case Bn:return e.return=e.value+"{"+Tr(e.children,r)+"}";case Fn:if(!Zn(e.value=e.props.join(",")))return""}return Zn(n=Tr(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pr(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $n:return void(e.return=kr(e.value,e.length,n));case Bn:return Tr([dr(e,{value:Kn(e.value,"@","@"+_n)})],r);case Fn:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(Gn(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pr(dr(e,{props:[Kn(t,/:(read-\w+)/,":-moz-$1")]})),pr(dr(e,{props:[t]})),Wn(e,{props:tr(n,r)});break;case"::placeholder":pr(dr(e,{props:[Kn(t,/:(plac\w+)/,":"+_n+"input-$1")]})),pr(dr(e,{props:[Kn(t,/:(plac\w+)/,":-moz-$1")]})),pr(dr(e,{props:[Kn(t,/:(plac\w+)/,Nn+"input-$1")]})),pr(dr(e,{props:[t]})),Wn(e,{props:tr(n,r)})}return""})}}function Lr(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}const Or="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Nr="active",jr="data-styled-version",_r="6.6.0",zr="/*!sc*/\n",Fr="undefined"!=typeof window&&"undefined"!=typeof document;if(!w.createContext)throw Lr(19);function $r(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Br=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(rr=null!==(nr=$r("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==nr?nr:$r("SC_DISABLE_SPEEDY"))&&void 0!==rr?rr:"undefined"!=typeof process&&void 0!==process.env&&!1),Hr="sc-keyframes-",Vr={};let Wr=new Map,Ur=new Map,Gr=1;const Kr=e=>{if(Wr.has(e))return Wr.get(e);for(;Ur.has(Gr);)Gr++;const t=Gr++;return Wr.set(e,t),Ur.set(t,e),t},Yr=e=>Ur.get(e),Xr=(e,t)=>{Gr=t+1,Wr.set(e,t),Ur.set(t,e)},Jr=Object.freeze([]),Zr=Object.freeze({});function Qr(e,t,n=Zr){return e.theme!==n.theme&&e.theme||t||n.theme}const eo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,to=/(^-|-$)/g;function no(e){return e.replace(eo,"-").replace(to,"")}const ro=/(a)(d)/gi,oo=e=>String.fromCharCode(e+(e>25?39:97));function io(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=oo(t%52)+n;return(oo(t%52)+n).replace(ro,"$1-$2")}const ao=5381,so=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},lo=e=>so(ao,e);function co(e){return io(lo(e)>>>0)}function uo(e){return"string"==typeof e&&!0}function po(e){return uo(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const fo=Symbol.for("react.memo"),ho=Symbol.for("react.forward_ref"),mo={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},go={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},bo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vo={[ho]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[fo]:bo};function yo(e){return("type"in(t=e)&&t.type.$$typeof)===fo?bo:"$$typeof"in e?vo[e.$$typeof]:mo;var t}const xo=Object.defineProperty,So=Object.getOwnPropertyNames,wo=Object.getOwnPropertySymbols,Co=Object.getOwnPropertyDescriptor,Eo=Object.getPrototypeOf,Io=Object.prototype;function Ao(e,t,n){if("string"!=typeof t){const r=Eo(t);r&&r!==Io&&Ao(e,r,n);const o=So(t).concat(wo(t)),i=yo(e),a=yo(t);for(let r=0;r<o.length;++r){const s=o[r];if(!(s in go||n&&n[s]||a&&s in a||i&&s in i)){const n=Co(t,s);try{xo(e,s,n)}catch(e){}}}}return e}function Ro(e){return"function"==typeof e}const Do=Symbol.for("react.forward_ref");function Mo(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===Do&&"styledComponentId"in e}function ko(e,t){return e&&t?e+" "+t:e||t||""}function To(e,t){return e.join("")}function qo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Po(e,t,n=!1){if(!n&&!qo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Po(e[n],t[n]);else if(qo(t))for(const n in t)e[n]=Po(e[n],t[n]);return e}function Lo(e,t){Object.defineProperty(e,"toString",{value:t})}const Oo=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw Lr(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let o=0,i=t.length;o<i;o++)this.tag.insertRule(n,t[o])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n;for(let e=r;e<o;e++)t+=this.tag.getRule(e)+zr;return t}},No=`style[${Or}][${jr}="${_r}"]`,jo=new RegExp(`^${Or}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),_o=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,zo=e=>{if(!e)return document;if(_o(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(_o(t))return t}return document},Fo=(e,t,n)=>{const r=n.split(",");let o;for(let n=0,i=r.length;n<i;n++)(o=r[n])&&e.registerName(t,o)},$o=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(zr),o=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const i=n.match(jo);if(i){const t=0|parseInt(i[1],10),n=i[2];0!==t&&(Xr(n,t),Fo(e,n,i[3]),e.getTag().insertRules(t,o)),o.length=0}else o.push(n)}},Bo=e=>{const t=zo(e.options.target).querySelectorAll(No);for(let n=0,r=t.length;n<r;n++){const r=t[n];r&&r.getAttribute(Or)!==Nr&&($o(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let Ho=!1;const Vo=(e,t)=>{if("undefined"==typeof document)throw Lr(20);const n=document.head,r=e||n,o=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${Or}]`));return t[t.length-1]})(r),a=void 0!==i?i.nextSibling:null;o.setAttribute(Or,Nr),o.setAttribute(jr,_r);const s=t||function(){if(!1!==Ho)return Ho;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Ho=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Ho=t.getAttribute("content")||void 0}return Ho="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&o.setAttribute("nonce",s),r.insertBefore(o,a),o},Wo=class{constructor(e,t){this.element=Vo(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw Lr(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},Uo=class{constructor(e,t){this.element=Vo(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let Go=Fr;const Ko={isServer:!Fr,useCSSOMInjection:!Br};class Yo{static registerId(e){return Kr(e)}constructor(e=Zr,t={},n){this.options=Object.assign(Object.assign({},Ko),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Fr&&Go&&(Go=!1,Bo(this)),Lo(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let o=0;o<n;o++){const n=Yr(o);if(void 0===n)continue;const i=e.names.get(n);if(void 0===i||!i.size)continue;const a=t.getGroup(o);if(0===a.length)continue;const s=Or+".g"+o+'[id="'+n+'"]';let l="";for(const e of i)e.length>0&&(l+=e+",");r+=a+s+'{content:"'+l+'"}'+zr}return r})(this))}rehydrate(){!this.server&&Fr&&Bo(this)}reconstructWithOptions(e,t=!0){const n=new Yo(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&Fr&&e.target!==this.options.target&&zo(this.options.target)!==zo(e.target)&&Bo(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new Wo(t,n):new Uo(t,n))(this.options),new Oo(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){Kr(e),e.startsWith(Hr)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(Kr(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(Kr(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Xo=new WeakSet,Jo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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};function Zo(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Jo||e.startsWith("--")?String(t).trim():t+"px"}const Qo=47;function ei(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const ti=Symbol.for("sc-keyframes");function ni(e){return Ro(e)&&!(e.prototype&&e.prototype.isReactComponent)}const ri=e=>null==e||!1===e||""===e,oi=Symbol.for("react.client.reference");function ii(e){return e.$$typeof===oi}function ai(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!ri(r)&&(Array.isArray(r)&&Xo.has(r)||Ro(r)?t.push(ei(n)+":",r,";"):qo(r)?(t.push(n+" {"),ai(r,t),t.push("}")):t.push(ei(n)+": "+Zo(n,r)+";"))}}function si(e,t,n,r,o=[]){if(ri(e))return o;const i=typeof e;if("string"===i)return o.push(e),o;if("function"===i){if(ii(e))return o;if(ni(e)&&t){return si(e(t),t,n,r,o)}return o.push(e),o}if(Array.isArray(e)){for(let i=0;i<e.length;i++)si(e[i],t,n,r,o);return o}return Mo(e)?(o.push(`.${e.styledComponentId}`),o):function(e){return"object"==typeof e&&null!==e&&ti in e}(e)?(n?(e.inject(n,r),o.push(e.getName(r))):o.push(e),o):ii(e)?o:qo(e)?e.toString!==Object.prototype.toString?(o.push(e.toString()),o):(ai(e,o),o):(o.push(e.toString()),o)}const li=lo(_r);class ci{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=so(li,t),this.baseStyle=n,Yo.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let o="";for(let r=0;r<this.rules.length;r++){const i=this.rules[r];if("string"==typeof i)o+=i;else if(i)if(ni(i)){const r=i(e);"string"==typeof r?o+=r:null!=r&&!1!==r&&(o+=To(si(r,e,t,n)))}else o+=To(si(i,e,t,n))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+o:o;let i=this.dynamicNameCache.get(e);if(!i){if(i=io(so(so(this.baseHash,n.hash),o)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,i)}if(!t.hasNameForId(this.componentId,i)){const e=n(o,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}r=ko(r,i)}}return r}}const ui=/&/g;function di(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function pi(e){const t=e.length;let n="",r=0,o=0,i=0,a=!1,s=!1;for(let l=0;l<t;l++){const c=e.charCodeAt(l);if(0!==i||a||c!==Qo||42!==e.charCodeAt(l+1))if(a)42===c&&e.charCodeAt(l+1)===Qo&&(a=!1,l++);else if(34!==c&&39!==c||di(e,l)){if(0===i)if(123===c)o++;else if(125===c){if(o--,o<0){s=!0;let n=l+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,o=0,l=n-1,r=n;continue}0===o&&(n+=e.substring(r,l+1),r=l+1)}else 59===c&&0===o&&(n+=e.substring(r,l+1),r=l+1)}else 0===i?i=c:i===c&&(i=0);else a=!0,l++}return s||0!==o||0!==i?(r<t&&0===o&&0===i&&(n+=e.substring(r)),n):e}function fi(e,t){const n=t+" ",r=","+n;for(let o=0;o<e.length;o++){const i=e[o];if("rule"===i.type){i.value=(n+i.value).replaceAll(",",r);const e=i.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];i.props=t}Array.isArray(i.children)&&"@keyframes"!==i.type&&fi(i.children,t)}return e}function hi({options:e=Zr,plugins:t=Jr}=Zr){let n,r,o;const i=(e,t,o)=>o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===Fn&&e.value.includes("&")&&(o||(o=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(ui,r).replace(o,i))}),e.prefix&&a.push(Pr),a.push(qr);let s=[];const l=function(e){var t=Qn(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(a.concat((d=e=>s.push(e),function(e){e.root||(e=e.return)&&d(e)}))),c=(t,i="",a="",c="&")=>{n=c,r=i,o=void 0;const u=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return pi(e);const r=e.length;let o="",i=0,a=0,s=0,l=0,c=0,u=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||di(e,a))if(0===s)if(t===Qo&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==Qo);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===Qo)o+=e.substring(i,a),a+=2,i=a,u=!0;else if(t===Qo&&a+1<r&&e.charCodeAt(a+1)===Qo){for(o+=e.substring(i,a);a<r&&10!==e.charCodeAt(a);)a++;i=a,u=!0}else 123===t?c++:125===t&&c--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===s?s=t:s===t&&(s=0),a++}return u?(i<r&&(o+=e.substring(i)),0===c?o:pi(o)):0===c?e:pi(e)}(t);let d=Ir(a||i?a+" "+i+" { "+u+" }":u);return e.namespace&&(d=fi(d,e.namespace)),s=[],Tr(d,l),s},u=e;var d;let p=ao;for(let e=0;e<t.length;e++)t[e].name||Lr(15),p=so(p,t[e].name);return(null==u?void 0:u.namespace)&&(p=so(p,u.namespace)),(null==u?void 0:u.prefix)&&(p=so(p,"p")),c.hash=p!==ao?p.toString():"",c}const mi=new Yo,gi=hi(),bi=w.createContext({shouldForwardProp:void 0,styleSheet:mi,stylis:gi,stylisPlugins:void 0});function vi(){return w.useContext(bi)}function yi(e){var t;const n=vi(),{styleSheet:r}=n,o=w.useMemo(()=>{let t=r;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions(void 0!==e.nonce?{target:e.target,nonce:e.nonce}:{target:e.target},!1):void 0!==e.nonce&&(t=t.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,r]),i=w.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?n.stylis:hi({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:n.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,n.stylis,n.stylisPlugins]),a="shouldForwardProp"in e?e.shouldForwardProp:n.shouldForwardProp,s=null!==(t=e.stylisPlugins)&&void 0!==t?t:n.stylisPlugins,l=w.useMemo(()=>({shouldForwardProp:a,styleSheet:o,stylis:i,stylisPlugins:s}),[a,o,i,s]);return w.createElement(bi.Provider,{value:l},e.children)}bi.Consumer;const xi=w.createContext(void 0);xi.Consumer;const Si={};function wi(e,t){const n="string"!=typeof e?"sc":no(e);Si[n]=(Si[n]||0)+1;const r=n+"-"+co(_r+n+Si[n]);return t?t+"-"+r:r}function Ci(e,t,n){const r=Mo(e),o=e,i=!uo(e),{attrs:a=Jr,componentId:s=wi(t.displayName,t.parentComponentId),displayName:l=po(e)}=t,c=t.displayName&&t.componentId?no(t.displayName)+"-"+t.componentId:t.componentId||s,u=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:d}=t;if(r&&o.shouldForwardProp){const e=o.shouldForwardProp;if(t.shouldForwardProp){const n=t.shouldForwardProp;d=(t,r)=>e(t,r)&&n(t,r)}else d=e}const p=new ci(n,c,r?o.componentStyle:void 0);function f(e,t){return function(e,t,n){const{attrs:r,componentStyle:o,defaultProps:i,foldedComponentIds:a,styledComponentId:s,target:l}=e,c=w.useContext(xi),u=vi(),d=e.shouldForwardProp||u.shouldForwardProp,p=Qr(t,c,i)||Zr,[f,h]=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n});let o=null;const i=e.length>1;for(let t=0;t<e.length;t++){const n=e[t],a=Ro(n)?n(i?Object.assign({},r):r):n;for(const e in a)"className"===e?r.className=ko(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):void 0===a[e]?e in r&&(void 0!==r[e]&&(o||(o=[])).push(e),r[e]=void 0):r[e]=a[e]}return"className"in t&&"string"==typeof t.className&&(r.className=ko(r.className,t.className)),[r,o]}(r,t,p),m=o.generateAndInjectStyles(f,u.styleSheet,u.stylis),g=f.as||l,b=uo(g),v=function(e,t,n,r,o,i){const a={};for(const s in e)"$"===s[0]||"as"===s||"theme"===s&&e.theme===n||("forwardedAs"===s?void 0!==e.forwardedAs&&(a.as=e.forwardedAs):void 0===e[s]?"className"===s||o||null!==i&&-1!==i.indexOf(s)||r&&!r(s,t)||(a[s]=void 0):r&&!r(s,t)||(a[s]=e[s]));return a}(f,g,p,d,b,h);let y=ko(a,s);return m&&(y+=" "+m),f.className&&(y+=" "+f.className),v[b&&g.includes("-")?"class":"className"]=y,n&&(v.ref=n),C(g,v)}(h,e,t)}f.displayName=l;let h=w.forwardRef(f);return h.attrs=u,h.componentStyle=p,h.displayName=l,h.shouldForwardProp=d,h.foldedComponentIds=r?ko(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=c,h.target=r?o.target:e,Object.defineProperty(h,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(const n of t)Po(e,n,!0);return e}({},o.defaultProps,e):e}}),Lo(h,()=>`.${h.styledComponentId}`),i&&Ao(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var Ei=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function Ii(e,t){const n=[e[0]];for(let r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}const Ai=e=>(Xo.add(e),e);function Ri(e,...t){if(Ro(e)||qo(e))return Ai(si(Ii(Jr,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?si(n):Ai(si(Ii(n,t)))}function Di(e,t,n=Zr){if(!t)throw Lr(1,t);const r=(r,...o)=>e(t,n,Ri(r,...o));return r.attrs=r=>Di(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Di(e,t,Object.assign(Object.assign({},n),r)),r}const Mi=e=>Di(Ci,e),ki=Mi;Ei.forEach(e=>{ki[e]=Mi(e)});let Ti=class{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(Ro(n)&&!Mo(n))return!1}return!0}(e),Yo.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){const o=this.componentId;if(this.isStatic){if(n.hasNameForId(o,o+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{const i=this.computeRules(e,t,n,r);n.insertRules(o,i.name,i.rules)}return}const i=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&i){const t=i.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){const o=To(si(this.rules,t,n,r)),i={name:this.componentId+e,rules:r(o,"")};return this.instanceRules.set(e,i),i}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};var qi;class Pi{constructor(e,t){this[qi]=!0,this.inject=(e,t=gi)=>{const n=this.getName(t);if(!e.hasNameForId(this.id,n)){const r=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,r)}},this.name=e,this.id=Hr+e,this.rules=t,Kr(this.id),Lo(this,()=>{throw Lr(12,String(this.name))})}getName(e=gi){return e.hash?this.name+io(+e.hash>>>0):this.name}}function Li(e,...t){const n=To(Ri(e,...t)),r=co(n);return new Pi(r,n)}qi=ti;var Oi,Ni,ji,_i,zi,Fi={exports:{}};function $i(){if(Ni)return Oi;Ni=1;return Oi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Bi(){if(_i)return ji;_i=1;var e=$i();function t(){}function n(){}return n.resetWarningCache=t,ji=function(){function r(t,n,r,o,i,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Hi(){return zi||(zi=1,Fi.exports=Bi()()),Fi.exports}var Vi=Ht(Hi());function Wi(e){const{injectFirst:t,children:n}=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 n}Wi.propTypes={children:Vi.node,injectFirst:Vi.bool};const Ui=function(e,...t){const n=Ri(e,...t),r=`sc-global-${co(JSON.stringify(n))}`,o=new Ti(n,r),i=e=>{const t=vi(),n=w.useContext(xi);let i;{const e=w.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(r)),i=e.current}t.styleSheet.server&&a(i,e,t.styleSheet,n,t.stylis);{const s=o.isStatic?[i,t.styleSheet,o]:[i,e,t.styleSheet,n,t.stylis,o],l=w.useRef(o);w.useLayoutEffect(()=>{t.styleSheet.server||(l.current!==o&&(t.styleSheet.clearRules(r),l.current=o),a(i,e,t.styleSheet,n,t.stylis))},s),w.useLayoutEffect(()=>()=>{t.styleSheet.server||o.removeStyles(i,t.styleSheet)},[i,t.styleSheet,o])}return t.styleSheet.server&&o.instanceRules.delete(i),null};function a(e,t,n,r,a){if(o.isStatic)o.renderStyles(e,Vr,n,a);else{const s=Object.assign(Object.assign({},t),{theme:Qr(t,r,i.defaultProps)});o.renderStyles(e,s,n,a)}}return w.memo(i)}(e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r});
|
|
10
10
|
/**
|
|
@@ -106,4 +106,4 @@ function Gi(e,t){let n;return n=t?ki(e).withConfig({displayName:t.label,shouldFo
|
|
|
106
106
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
107
107
|
* See the License for the specific language governing permissions and
|
|
108
108
|
* limitations under the License.
|
|
109
|
-
*/var YL=(GL||(GL=1,function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+n+"|"+u+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+n+"|"+u+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+n+"|"+u+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,I=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+c+v+"[^;}]+;?)","gi"),R=new RegExp("("+c+"[^\\}]*?})","gi"),D=new RegExp("("+a+")ltr","gi"),M=new RegExp("("+a+")rtl","gi"),k=new RegExp(l+"(left)"+b+y+v,"gi"),T=new RegExp(l+"(right)"+b+y+v,"gi"),q=new RegExp(l+"(left)"+x,"gi"),P=new RegExp(l+"(right)"+x,"gi"),L=/(:dir\( *)ltr( *\))/g,O=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),B=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),H=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,n){var r,o;return t.split("(").length>t.split(")").length?e:("%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n)}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter(function(e){return e}),o=n.slice(6,10).filter(function(e){return e}),i=n[10]||"";return t+(o.length?Z(r)+" / "+Z(o):Z(r))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,n){return t+ee(n)}function ne(e,t,n,r,o){return t+n+ee(r)+o}function re(e,t,n,r,o){return t+n+r+ee(o)}return{transform:function(n,o){var i=new r(A,"`NOFLIP_SINGLE`"),a=new r(R,"`NOFLIP_CLASS`"),s=new r(I,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(L,"$1`TMPLTR`$2").replace(O,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(n=n.replace(q,"$1"+e).replace(P,"$1left").replace(w,"right")),n=n.replace(D,"$1"+e).replace(M,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(T,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(V,Q).replace(W,te).replace(U,re).replace(G,re).replace(K,te).replace(Y,ne).replace(X,ne).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(B,J).replace(H,J),n=i.detokenize(a.detokenize(s.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(KL,KL.exports)),KL.exports),XL=Ht(YL),JL="comm",ZL="rule",QL="decl",eO=Math.abs,tO=String.fromCharCode;function nO(e){return e.trim()}function rO(e,t,n){return e.replace(t,n)}function oO(e,t){return 0|e.charCodeAt(t)}function iO(e,t,n){return e.slice(t,n)}function aO(e){return e.length}function sO(e,t){return t.push(e),e}var lO=1,cO=1,uO=0,dO=0,pO=0,fO="";function hO(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:lO,column:cO,length:a,return:"",siblings:s}}function mO(){return pO=dO>0?oO(fO,--dO):0,cO--,10===pO&&(cO=1,lO--),pO}function gO(){return pO=dO<uO?oO(fO,dO++):0,cO++,10===pO&&(cO=1,lO++),pO}function bO(){return oO(fO,dO)}function vO(){return dO}function yO(e,t){return iO(fO,e,t)}function xO(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 SO(e){return nO(yO(dO-1,EO(91===e?e+2:40===e?e+1:e)))}function wO(e){for(;(pO=bO())&&pO<33;)gO();return xO(e)>2||xO(pO)>3?"":" "}function CO(e,t){for(;--t&&gO()&&!(pO<48||pO>102||pO>57&&pO<65||pO>70&&pO<97););return yO(e,vO()+(t<6&&32==bO()&&32==gO()))}function EO(e){for(;gO();)switch(pO){case e:return dO;case 34:case 39:34!==e&&39!==e&&EO(pO);break;case 40:41===e&&EO(e);break;case 92:gO()}return dO}function IO(e,t){for(;gO()&&e+pO!==57&&(e+pO!==84||47!==bO()););return"/*"+yO(t,dO-1)+"*"+tO(47===e?e:gO())}function AO(e){for(;!xO(bO());)gO();return yO(e,dO)}function RO(e){return function(e){return fO="",e}(DO("",null,null,null,[""],e=function(e){return lO=cO=1,uO=aO(fO=e),dO=0,[]}(e),0,[0],e))}function DO(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y=0,x="",S=o,w=i,C=r,E=x;g;)switch(h=y,y=gO()){case 40:108!=h&&58==oO(E,d-1)?(v++,E+="("):E+=SO(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=SO(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=tO(y);break}E+=wO(h);break;case 92:E+=CO(vO()-1,7);continue;case 47:switch(bO()){case 42:case 47:sO(kO(IO(gO(),vO()),t,n,l),l),5!=xO(h||1)&&5!=xO(bO()||1)||!aO(E)||" "===iO(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=aO(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=tO(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=rO(E,/\f/g,"")),f>0&&(aO(E)-d||0===m)&&sO(f>32?TO(E+";",r,n,d-1,l):TO(rO(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(sO(C=MO(E,t,n,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)DO(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===oO(E,3))break;case 108:if(97===oO(E,2))break;default:u=0;case 100:case 109:case 115:}u?DO(e,C,C,r&&sO(MO(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,r?S:w):DO(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+aO(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==mO())continue;switch(E+=tO(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(aO(E)-1)*b,b=1;break;case 64:45===bO()&&(E+=SO(gO())),p=bO(),u=d=aO(x=E+=AO(vO())),y++;break;case 45:45===h&&2==aO(E)&&(m=0)}}return i}function MO(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=iO(e,p+1,p=eO(g=a[m])),x=e;v<h;++v)(x=nO(g>0?f[v]+" "+y:rO(y,/&\f/g,f[v])))&&(l[b++]=x);return hO(e,t,n,0===o?ZL:s,l,c,u,d)}function kO(e,t,n,r){return hO(e,t,n,JL,tO(pO),iO(e,2,-2),0,r)}function TO(e,t,n,r,o){return hO(e,t,n,QL,iO(e,0,r),iO(e,r+1,-1),r,o)}function qO(e,t,n){switch(e.type){case"@import":case QL:case JL:return e.return=e.return||e.value;case ZL:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===JL&&(e.children=e.value)})}var r=function(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}(Array.prototype.concat(e.children),qO);return aO(r)?e.return=e.value+"{"+r+"}":""}function PO(e,t,n,r){if("@keyframes"===e.type||"@supports"===e.type||e.type===ZL&&(!e.parent||"@media"===e.parent.type||e.parent.type===ZL)){var o=XL.transform(qO(e));e.children=o?RO(o)[0].children:[],e.return=""}}Object.defineProperty(PO,"name",{value:"stylisRTLPlugin"});const LO=Hx(({options:e,...t})=>Og(Dm(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);class OO{#y={on:new Map,once:new Map};#x=10;#S(e){this.listenerCount(e)>this.#x&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#w(e,t,n){const r=this.#y[e].get(t)??new Set;r.add(n),this.#y[e].set(t,r),this.#S(t)}setMaxListeners(e){this.#x=e}on(e,t){this.#w("on",e,t)}once(e,t){this.#w("once",e,t)}off(e,t){this.#y.on.get(e)?.delete(t),this.#y.once.get(e)?.delete(t)}emit(e,...t){this.#y.on.get(e)?.forEach(e=>{e(...t)}),this.#y.once.get(e)?.forEach(e=>{e(...t)}),this.#y.once.delete(e)}listenerCount(e){return(this.#y.on.get(e)?.size??0)+(this.#y.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#y.on.clear(),this.#y.once.clear()):(this.#y.on.delete(e),this.#y.once.delete(e))}}const NO=Og(()=>new OO);let jO=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),_O=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),zO=function(e){return e.A="ascending",e.D="descending",e}({}),FO=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const $O=[0,0],BO=e=>"number"==typeof e&&!Number.isNaN(+e),HO=e=>BO(e.qNum),VO=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),WO=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,UO=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),GO=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},KO=(e,t,n)=>{const r={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,c=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{color:s.color,t:.5-c}:{color:l.color,t:c-.5}:a.gradient?{color:s.color,t:1-(.5+c/2)}:i.gradient?{color:l.color,t:c/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return se(e.localPaletteColors[t].color??"").blend(se(s.color??""),s.t)},YO=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort((e,t)=>e.value-t.value),e.limits=n.map(e=>({...e,value:UO(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:GO(r,t,n)}))),r},XO=(e,t,n,r)=>{const o=YO(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=r&&t<i){n=KO(e,a,t);break}r=i}return n})(o,t);return a},JO=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!BO(e));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!BO(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},ZO=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=JO(e,t),o=Math.abs(t);return{min:n??t-o,max:r??t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!BO(t))return 0;let a=n&&BO(n)?Math.min(n,t):0;const s=r.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:o}},QO=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),eN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),tN=F((e,t)=>Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Yt.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),Yt.jsx("use",{fillRule:"evenodd"})]})),nN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),rN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),oN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),iN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M2 7.5h12v1H2z"})})),aN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),sN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),lN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),cN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),uN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),dN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),pN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),fN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),hN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),mN={m:uN,"ï":lN,R:hN,S:dN,T:pN,U:fN,P:sN,Q:oN,"è":F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":nN,"©":tN,"23F4":rN,2013:cN,"&":aN,add:QO,"minus-2":iN,dot:eN},gN=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=ZO(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,n.limitPaletteColorIndex))return GO(o,n.limitPaletteColorIndex,r);const a=UO(n.limitRange,t);return XO(o,a,n.limitRange,r)})(o,t,i,r),{paletteColors:s}=o.segments,l=i?.limitPaletteColorIndex||0,c=s[l]?.icon??"dot",{indicator:u}=e;let d=u?.position||"right";return"rtl"===n&&(d="right"===d?"left":"right"),{color:a,iconKey:c,position:d}},bN=(lm().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),vN=4/3,yN="12px",xN="600",SN="Source Sans Pro, sans-serif",wN={height:"auto",fontSize:yN,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"}},CN=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,EN=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",IN=(e,t,n)=>{if(!t&&"rtl"===n){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},AN=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,RN=(e,t,n)=>"rtl"===e||t&&!n?"0px":"1px",DN=(e,t,n)=>"rtl"===e?t&&!n?"0px":"1px":"0px",MN=24,kN=Ec("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),TN=Ec(md,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:n,isPagination:r})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===n?EN(e,r):void 0})),qN=Ec(md,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:n})=>{const r=e?"24px":"";let o;switch(n){case"left":o={gridTemplateColumns:t?`20px 2fr ${r}`:`1fr ${r}`};break;case"center":{const n=e||t;o={gridTemplateColumns:n?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:n?2:1},[`& .${Fm}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${r} 2fr 20px`:`${r} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${Fm}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),PN=Ec(md,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),LN=Ec(md,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),ON=Ec(Iu,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:n,order:r})=>({padding:"4px !important",width:"fit-content",height:"auto",background:n?t:void 0,"&:hover":{background:e},color:"inherit",order:r})),NN=Og(),jN=Og(0),_N=Og(0),zN=e=>parseInt(e??wN.fontSize,10)*vN,FN=/<[biust]>/g,$N=/<blank>/i,BN=(e,{boldFontWeight:t,combineDecorations:n=!1,allowIndentation:r=!1})=>{const o=e?.toLowerCase().match(FN),i={},a=new Set;let s=0;return o?.forEach(e=>{switch(e){case"<t>":r&&(s++,i.textIndent=`${s}em`);break;case"<b>":i.fontWeight=t;break;case"<i>":i.fontStyle="italic";break;case"<u>":a.add("underline"),i.textDecoration="underline";break;case"<s>":a.add("line-through"),i.textDecoration="line-through"}}),n&&a.size>0&&(i.textDecoration=["underline","line-through"].filter(e=>a.has(e)).join(" ")),Object.keys(i).length>0?i:void 0};const HN=4/3,VN=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function WN(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const UN=(e,t)=>e?{borderBottomColor:dm.DARK_MODE_BORDER,borderRightColor:dm.DARK_MODE_BORDER,borderLeftColor:dm.DARK_MODE_BORDER,borderTopColor:dm.DARK_MODE_BORDER}:{borderLeftColor:dm.BORDER_MEDIUM,borderRightColor:dm.BORDER_MEDIUM,borderTopColor:dm.BORDER_HEAVY,borderBottomColor:t?dm.BORDER_HEAVY:dm.BORDER_LIGHT},GN=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*HN+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},KN=e=>e.components?.find(e=>"theme"===e.key),YN=(e,t,n,r=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:VN(n?.fontColor)?WN(dm.TEXT,t,n?.fontColor):i||dm.TEXT,fontSize:n?.fontSize&&`${n.fontSize}px`||a,padding:n&&"padding"in n?n.padding:void 0,...UN(t.background.isDark,r)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function XN(e,t,n){const r=KN(e)?.header,o=YN("header",t,r,n);return o.background=(e=>{if(void 0===e)return;const t=se(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=hm(o.background??dm.WHITE,Km),o.activeBackground=hm(o.background??dm.WHITE,Ym),o}const JN=(e,t,n)=>{if(!n)return!1;const r=t.indexOf("textStyleExpression");return-1!==r&&(o=e?.qValues?.[r]?.qText,!!o&&$N.test(o));var o},ZN=(e,t,n)=>{const r={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&gm(i);a&&(r[n[t]]=a);const s=BN(i,{boldFontWeight:xN,combineDecorations:!0});var l,c;o={...o,...s,textDecoration:(l=o.textDecoration,c=s?.textDecoration,c?l?[...new Set(`${l} ${c}`.split(/\s+/).filter(e=>e&&"none"!==e))].join(" "):c:l)}}),r.cellBackgroundColor&&!r.cellForegroundColor&&(r.cellForegroundColor=pm(r.cellBackgroundColor)),{...e,...r,color:r.cellForegroundColor||e.color,background:r.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}};function QN(e,t,n){if(!n("TLV_254_TABLE_INDENT_TAG"))return;const r=e.isTotalRow&&n("TLV-2303-SUB-TOTALS");if(e.isNull||r&&t.isDim)return;const o=t.qAttrExprInfoIDs.indexOf("textStyleExpression");return-1!==o?BN(e.qAttrExps?.qValues?.[o]?.qText,{boldFontWeight:xN,allowIndentation:!0})?.textIndent:void 0}const ej=25e4,tj=(e,t)=>t.qAttrExps?.qValues?.[e],nj=e=>{const t=Number(e?.qNum);return void 0!==e?.qNum&&Number.isFinite(t)?t:void 0},rj=e=>{const t=e?.qText?.trim();return t&&"ARGB(0,0,0,0)"!==t.toUpperCase()?gm(t)??void 0:void 0},oj=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,ij=5e6,aj=5e5;const sj={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,n){return{key:lj(e),value:lj(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function lj(e){try{return decodeURIComponent(e)}catch{return e}}function cj(e){if(!(this instanceof cj))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>sj.fromSearchString(t.search)}})}function uj(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}cj.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},cj.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=uj(t.key),t.value?n+=`=${uj(t.value)}`:n+=t.useEqualSign?"=":"";return n};var dj=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},pj=class{decode(e){let t="";const n=new dj(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const fj=e=>e>=0&&e<=1114111,hj=e=>e.match(/[\s]/);var mj=class extends pj{decodeCharacter(e){e.mark();const t=e.next();let n,r,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(n=i,r=0;r<5&&(o=e.next(),null!=o&&!hj(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return fj(a)?String.fromCharCode(a):"�"}},gj=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},bj=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let o,i;if(t.length===n)return i=this._value,this.setValue(r),i;const a=t.charAt(n);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return gj.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return gj.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||gj.newInstanceIfNeeded(e,t,this._value)}},vj=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new bj);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const yj=(()=>{const e=[],t=[],n=new vj;let r,o,i;for(r in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),n.put(i,String.fromCharCode(o)));return n})();var xj=class extends pj{decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,o="";for(t=Math.min(e.remainder().length,yj.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=yj.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&fj(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&fj(r)?String.fromCharCode(r):null}},Sj=class extends pj{decodeCharacter(e){e.mark();const t=e.next();let n,r,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)o=e.nextHex(),null!=o&&(n+=o);return 2===n.length&&(i=parseInt(n,16),fj(i))?String.fromCharCode(i):(e.reset(),null)}};let wj;"undefined"!=typeof document&&(wj=document.createElement("div"));const Cj=Array.prototype.indexOf,Ej=[",",".","_"," "],Ij=[",",".","-","_"," "],Aj={width:["%"],height:["%"]},Rj={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Dj={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Rj.image,"background-color":Rj.color,"border-color":Rj.color,"border-image":Rj.image,color:Rj.color,icon:Rj.image,"list-style-image":Rj.image,"outline-color":Rj.color},Mj={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function kj(e,t,n){let r;if(t){if(Cj)return Cj.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function Tj(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return wj.appendChild(n),t=wj.innerHTML,wj.removeChild(n),t}function qj(e,t,n){let r,o,i,a,s,l,c,u,d;for(e=Lj(e).toLowerCase(),t=Lj(t),i=0;i<Mj.attr_name.length;i++)if(e.match(Mj.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<Mj.attr_val.length;i++)if(t.toLowerCase().match(Mj.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=Aj[e],r||(r=Ij),o="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&kj(c,r)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return n||(o+='"'),o}function Pj(e,t,n){let r,o,i,a,s,l,c,u,d,p;if(e=Lj(e).toLowerCase(),t=Lj(t),kj(e,Mj.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<Mj.css_val.length;r++)if(t.toLowerCase().indexOf(Mj.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=Dj[e],o||(o=Rj.default),i="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&kj(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function Lj(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new xj,new Sj,new mj];for(;!a;){r=n;for(let e=0;e<s.length;e++)i=s[e].decode(n),i!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}const Oj=[];for(let e=0;e<255;e++)Oj[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const Nj={html:e=>Tj(e.unsafe),css(e){let t,n=[];const r=[],o={};let i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=Pj(t,n[t],!0),i+=Pj(t,n[t],!0),o[t]=r[t]);return e.map?o:i},attr(e){let t=[];const n=[],r={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=qj(e,t[e],!0),o+=qj(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function jj(e,t){throw new Error(t)}var _j={canonicalize:Lj,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,n;const r=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Nj.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&jj(this,"Invalid parameter type"),Nj.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&jj(this,"Invalid parameter type"),Nj.attr(e)):void jj(this,"Invalid parameter type")},encodeForAttr:qj,encodeForAttr2:function(e){return qj("nonsens",e,!0)},encodeForCSS:Pj,encodeForHref:function(e){Lj(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new cj(e),n=cj.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+cj.encodeSearchParams(r)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let n,r,o,i,a,s;for(t||(t=Ej),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),kj(o,t)>=0||null==Oj[i]?s+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:Tj,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=Lj(t).toLowerCase():jj(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:n=aj,maxByteSizeImage:r=ij}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=oj.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(o,i,a);return"image/svg+xml"===o?s<=n:s<=r},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const n=function(e){let t=e,n="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const zj=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},Fj=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!_j.isSafeDataURL(t))?{type:WP.Text,url:void 0,text:e,labelStructure:o}:{type:WP.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:zj(r,a),labelStructure:o,imageBox:i},$j=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:WP.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{const r="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=r?n.qYMin:e.qMiniChart.qMin,a=r?n.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:WP.MiniChart,text:r,miniChart:a}},Bj=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=r?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return n?.urlPosition===UP.Attribute?void 0:n?.urlLabel},Hj=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:WP.Link,url:_j.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:WP.Text,url:void 0,text:t,labelStructure:e}}},Vj=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,measureMinMax:a,labelStructure:s,getText:l=e=>e.qText,direction:c,enabledFeatures:u})=>{const d=GP(t),p=l(e);return d===WP.Image&&u[WP.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=tj(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),Fj({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:r;if(-1===n.imageLabel)return Fj({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=tj(n.imageLabel??-1,e)?.qText??r;return Fj({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:WP.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,p,c,s):d===WP.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===UP.Attribute){const i=Bj(n.url??-1,e,t);return Hj({labelStructure:r,text:o||i||"",url:i})}if(i===UP.Dimension){const i=Bj(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),Hj({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:WP.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,s,p):d===WP.Indicator&&u[WP.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:WP.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,p):d===WP.MiniChart&&u[WP.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?$j(e,t,i,p):d===WP.Bar&&u[WP.Bar]?((e,t,n,r,o)=>{const i={type:WP.Text,text:o},a=nj(e);if(!t||void 0===a)return i;const s=t=>{const r=n[t];return void 0===r||r<0?void 0:tj(r,e)},{barRangeMode:l,barColorMode:c,barLabelColorMode:u}=t,d="manual"===l,p=e=>d&&"number"==typeof e&&Number.isFinite(e)?e:void 0,f={value:a,columnMin:p(t.barRangeMin)??r?.qMin??0,columnMax:p(t.barRangeMax)??r?.qMax??0,isManualRange:d,hasNegativeValues:r?.hasNegativeValues,hasPositiveValues:r?.hasPositiveValues,offsetValue:nj(s("barOffset"))??0,thicknessPx:nj(s("barWidth")),label:s("barLabel")?.qText??o,fallbackLabel:o,color:"expression"===c?rj(s("barColor")):void 0,colorPalette:t.barColor,labelColor:"expression"===u?rj(s("barLabelColor")):void 0,labelColorPalette:t.barLabelColor,barEnd:t.barEnd??"none"};return{type:WP.Bar,text:o,bar:f}})(e,t,n,a,p):{type:WP.Text,url:void 0,text:p,labelStructure:s}},Wj=Og(e=>{const t=e(Nb),n=e(yb);return e(xb),{qTop:0,qHeight:0,rowPartialHeight:n?.content?.rowPartialHeight??0,visibleTop:n?.content?.visibleTop??t?.visibleTop,visibleHeight:n?.content?.visibleHeight??t?.visibleHeight,scrollLeft:n?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:n?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:n?.content?.rowsPerPage??t?.rowsPerPage,page:n?.content?.page??t?.page,estimatedRowHeight:n?.content?.estimatedRowHeight??0}}),Uj=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),Gj=({cId:e})=>e??OP(),Kj=["D","T","TS","IV"],Yj=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Xj=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Jj=["January","February","March","April","May","June","July","August","September","October","November","December"],Zj=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qj={D:"YYYY-MM-DD",T:"hh:mm:ss",TS:"YYYY-MM-DD hh:mm:ss"},e_=864e5,t_=2**32,n_=e=>{let t=Math.floor(e),n=Math.round((e-t)*e_);n>=e_&&(t+=1,n=0);const r=t-25569,o=r+719468,i=Math.floor(o/146097),a=o-146097*i,s=Math.floor((a-Math.floor(a/1460)+Math.floor(a/36524)-Math.floor(a/146096))/365),l=a-(365*s+Math.floor(s/4)-Math.floor(s/100)),c=Math.floor((5*l+2)/153),u=c<10?c+2:c-10;return{year:s+400*i+(u<=1?1:0),month:u,date:l-Math.floor((153*c+2)/5)+1,day:(r%7+7+3)%7,h:Math.floor(n/36e5),m:Math.floor(n%36e5/6e4),s:Math.floor(n%6e4/1e3),f:n%1e3}},r_=(e,t)=>String(e).padStart(t,"0"),o_=e=>{const[,t]=e.toString().split(".");return t?Number(`0.${t}`):0},i_=/Y+|y+|M+|W+|w+|D+|d+|h+|H+|m+|s+|S+|f+|F+|t{1,2}|T{1,2}/g,a_=(e,t,n)=>{if(Number.isNaN(e)||!Number.isFinite(e))return String(e);let r,o=(n||("IV"===t?Qj.T:Qj[t])).replace(/\[.+]|\[|]/g,"");"IV"===t?(e<0&&(e=-e,o=`-${o}`),r=((e,t)=>{const n=Math.floor(e);let r=24*o_(e),o=60*o_(r),i=60*o_(o);const a=Math.round(1e3*o_(i));r=Math.floor(r),o=Math.floor(o),i=Math.floor(i),/D+/i.test(t)||(r+=24*n),/h+/i.test(t)||(o+=60*r),/m+/i.test(t)||(i+=60*o);let s=0,l="";if(/w+|t+/i.test(t)){const t=n_(e);s=t.day,l=t.h>=12?"pm":"am"}return{year:0,month:0,day:s,date:n%t_,h:r%t_,m:o%t_,s:i%t_,f:a,t:l}})(e,o)):r=((e,t)=>{const n=n_(e);let r=n.h;return t&&(r%=12,r=r||12),{year:n.year,month:n.month,day:n.day,date:n.date,h:r,m:n.m,s:n.s,f:n.f,t:n.h>=12?"pm":"am"}})(e,/t+/i.test(o));const i=(e=>[[/^(Y+|y+)$/,{Y:`${Number(`${e.year}`.slice(-2))}`,YY:r_(`${e.year}`.slice(-2),2),YYY:r_(`${e.year}`.slice(-3),3),def:t=>r_(`${e.year}`,t.length)}],[/^M+$/,{M:e.month+1,MM:r_(e.month+1,2),MMM:Zj[e.month],def:Jj[e.month]}],[/^(W+|w+)$/,{W:e.day,WW:r_(e.day,2),WWW:Xj[e.day],def:Yj[e.day]}],[/^(D+|d+)$/,{def:t=>r_(e.date,t.length)}],[/^(h+|H+)$/,{h:e.h,def:t=>r_(e.h,t.length)}],[/^m+$/,{m:e.m,def:t=>r_(e.m,t.length)}],[/^(s+|S+)$/,{s:e.s,def:t=>r_(e.s,t.length)}],[/^(f+|F+)$/,{def:t=>{const n=`${e.f}`;return n.length>t.length?n.slice(0,t.length):n.padEnd(t.length,"0")}}],[/^(t{1,2}|T{1,2})$/,{def:t=>(t[0].toUpperCase()===t[0]?e.t.toUpperCase():e.t).slice(0,t.length)}]])(r);return o.replace(i_,e=>((e,t)=>{const n=t.find(([t])=>t.test(e))?.[1];if(!n)return"";const r=Object.keys(n).find(t=>"def"!==t&&(t===e||t.toLowerCase()===e)),o=void 0===r?n.def:n[r];return String("function"==typeof o?o(e):o)})(e,i))},s_=/[#0]/,l_={prefix:"",suffix:""},c_=e=>{const t=e.search(s_);if(-1===t)return l_;let n=t;for(let t=e.length-1;t>n;t--)if(s_.test(e[t])){n=t;break}return{prefix:e.slice(0,t),suffix:e.slice(n+1)}},u_=/\B(?=(\d{3})+(?!\d))/g,d_={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y",[-3]:"m",[-6]:"μ",[-9]:"n",[-12]:"p",[-15]:"f",[-18]:"a",[-21]:"z",[-24]:"y"},p_=e=>Number(e.toPrecision(15)),f_=(e,t,n=!1)=>{if(Number.isNaN(e))return String(e);const{qFmt:r,qType:o,qDec:i=".",qThou:a=","}=t??{};if((e=>Kj.includes(e))(o))return a_(e,o,r);if(!r)return String(e);const[s,l]=r.split(";"),{suffix:c}=c_(s),u=c.startsWith("A"),d=(u?c.slice(1):c).endsWith("%"),{value:p,siPrefix:f}=((e,t,n)=>{let r=t?p_(100*e):e,o="";if(n&&0!==r&&Number.isFinite(r)){let e=Number(r.toExponential().split("e")[1]);e-=e%3,e in d_&&(o=d_[e],r=p_(r/10**e))}return{value:r,siPrefix:o}})(e,d,u),h=p<0,m=h&&l?l:s,{prefix:g,suffix:b}=c_(m),v=u&&b.startsWith("A")?b.slice(1):b,{decimals:y,useThousands:x}=((e,t,n)=>{const r=e.indexOf(".");let o=0;return-1!==r?o=(e.slice(r+1).match(/[#0]/g)??[]).length:n&&(o=String(Math.abs(t)).split(".")[1]?.length??0),{decimals:Math.min(o,100),useThousands:e.includes(",")}})(m,p,n||"U"===o),[S,w]=Math.abs(p).toFixed(y).split("."),C=x?S.replace(u_,a):S;return`${h&&!l?"-":""}${g}${w?`${C}${i}${w}`:C}${f}${v}`},h_=1e4;function m_(e,t){return[...t].reverse().find(t=>t*e<=h_)||Math.floor(h_/e)}function g_(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const n=e.qHyperCube.qDimensionInfo.length>0,r=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(n&&r||!i&&!n)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function b_(e,t,n,r){return t?0===n?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(r)?.qText??""}function v_(e,t){const n=e.qHyperCube.qGrandTotalRow.at(t);return BO(n?.qNum)}function y_(e,t,n,r,o){return e&&!e.auto?r&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:r||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:n?"right":"left",bodyTextAlign:"auto"}}const x_=(e,t,n,r)=>"auto"!==t?t:r||"rtl"!==n?e?"right":"left":e?"left":"right",S_=(e,t)=>{if(!e)return;const{background:n,foreground:r}=e,o=se(n??""),i=se(r??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?hm(s,Km):void 0,c=s?hm(s,Ym):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:pm(s),headerMenuHoverBackground:l,headerMenuActiveBackground:c}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:c}};function w_(e,t,n,r){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,{colIdx:s,pageColIdx:l,visibleDimInfoIdx:c,visibleMeasureInfoIdx:u}=t,d=o.length,p=s<d,f=p?o[s]:i[s-d],h=p&&o[s].qGrouping===Xm.Cyclic,m=s===a[0];let g,b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:I}=f;if(p&&void 0!==c){const e=f;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:g}=e)}else({qMiniChart:b}=f),"bar"===E?.type&&(v=(({qMin:e,qMax:t,qAttrExprInfo:n})=>{if("number"!=typeof e||"number"!=typeof t||!Number.isFinite(e)||!Number.isFinite(t))return;const r=n.find(({id:e})=>"barOffset"===e),o=Number.isFinite(r?.qMin)?r?.qMin:0,i=Number.isFinite(r?.qMax)?r?.qMax:0;return{qMin:Math.min(o,o+e),qMax:Math.max(i,i+t),hasNegativeValues:e<0,hasPositiveValues:t>=0}})(f));const{qFallbackTitle:A,textAlign:R,qAttrExprInfo:D,qSortIndicator:M,qReverseSort:k,qApprMaxGlyphCount:T,columnWidth:q,qLibraryId:P,headerColor:L}=f,O=e.nullValueRepresentation?.text,N=!p&&void 0!==O&&VO(O)?f_(WO(O),f.qNumFormat,f.qIsAutoFormat):void 0;return{isDim:p,isCyclic:h,isLocked:x,fieldId:y,colIdx:s,qLibraryId:P,pageColIdx:l,qApprMaxGlyphCount:T,qReverseSort:k,columnWidth:q??{type:Gm.Auto},selectionColIdx:S,isActivelySorted:m,id:Gj(f),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:D.map(e=>e.id),qAttrExprInfoIndex:Uj(f),sortDirection:M&&"N"!==M?M:"A",totalInfo:b_(e,p,l,u??-1),...!p&&{isTotalNumeric:v_(e,u??-1)},...y_(R,g,p,n,r),representation:E,conditionalColoring:p?void 0:I,qNumFormat:p?void 0:f.qNumFormat,qIsAutoFormat:p?void 0:f.qIsAutoFormat,formattedNullValueText:N,qMiniChart:b,measureMinMax:v,headerColor:S_(L,n)}}const C_=(e,t,n)=>{const{qHyperCube:{qColumnOrder:r,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=((e,t,n)=>{const r=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<r,{qError:a}=i?t[o]:n[o-r];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const n=e<r,o=(n?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:n?s:void 0,visibleMeasureInfoIdx:n?void 0:s-r}})})(r.length===a?r:Array.from(Array(a).keys()),o,i);return s.map(r=>w_(e,r,t,n))},E_=(e,t,n)=>e?n.nullValueRepresentation?.dimensionText??t.qText??"-":n.nullValueRepresentation?.text??t.qText??"-",I_=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,A_={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},R_=Og(e=>{const t=e(D_),n=e(fb),r=e(Wj),o=n.qHyperCube.qSize.qcy,i=r.visibleHeight??t.rowsPerPage,a=r.visibleTop??t.page*i,s=r.visibleHeight??Math.min(i,o-a),l=n.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>h_?{...t,rowsPerPage:m_(l,t.rowsPerPageOptions),page:0}:t}),D_=Og(A_),M_=Og(e=>{const t=e(fb),n=e(Nb),r=e(Wj);return qb(t,n)?{page:r.page||A_.page,rowsPerPage:r.rowsPerPage||A_.rowsPerPage,rowsPerPageOptions:A_.rowsPerPageOptions}:e(R_)},(e,t,n)=>{t(D_,e=>({...e,...n}))}),k_=!0,T_=e=>-1===e.qElemNumber||!!e.qIsTotalCell,q_=Og(async e=>{const t=e(fb),n=e(Nb),r=e(Lb),{page:o,rowsPerPage:i}=e(M_),a=e(Wj),s=e($b),l=e(cb),c=e(mb),u=e(ub),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=g_(t,n),v=C_(t,k_,r),y=u("VNA-977-TABLE-BARS"),x=await(async(e,t,n)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const r=t.qHyperCube.qDataPages.at(0),o=r?.qArea;return r&&o?.qLeft===n.qLeft&&o.qTop===n.qTop&&o.qWidth===n.qWidth&&o.qHeight>=n.qHeight?[{...r,qMatrix:r.qMatrix.slice(0,n.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[n]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});c||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const S=x.at(0)?.qMatrix.map((e,n)=>{const o=[],i=e.some(T_);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&I_(c,a.isDim),p=u||d?E_(a.isDim,c,t):c.qText,f=u?VO(p):HO(c),g=HO(c)&&!VO(c.qText??"");o[s]={id:OP(),...c,align:x_(f,a.bodyTextAlign,r,k_),rowIdx:n+h,colIdx:a.colIdx,pageRowIdx:n,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i&&!d,isTotalRow:i,isLastRow:n===m-1,isNumeric:f,isDual:g,isNull:(!u||!f)&&I_(c,a.isDim),qNumFormat:a.qNumFormat,qIsAutoFormat:a.qIsAutoFormat,formattedNullValueText:a.formattedNullValueText,representation:Vj({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,measureMinMax:a.measureMinMax,getText:()=>p,direction:r,enabledFeatures:{[WP.Image]:!0,[WP.Indicator]:!0,[WP.MiniChart]:!0,[WP.Bar]:!a.isDim&&y}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),P_=wv(q_,e=>e),L_=Og(e=>{const t=e(fb),n=e(Nb),r=e(Ab),o=e(Lb),i=C_(t,false,o),a=g_(t,n),s=t.qHyperCube.qSize.qcy,l=Math.min(ej,s),c=s>ej&&!!r.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:c}}),O_={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},N_=Og(),j_=Og(e=>{const t=e(_b),n=e(N_);return n||(t?e(P_)??O_:e(L_))}),__=Og(e=>e(j_).totalsPosition),z_=Og(e=>e(j_).columns),F_=Og(e=>e(z_).length),$_=Og(e=>e(j_).rows),B_=Og(e=>e(j_).totalRowCount),H_=Og(e=>e(j_).totalColumnCount),V_=Og(e=>e(j_).paginationNeeded),W_=Og(e=>{const t=e(Gb),n=e(Xb),r=e(fb),o=e(__),i=e($_),a=o.atTop,s=function(e,t,n,r){const o=KN(e)?.content,i=YN("content",t,o);i.background=t.background.color;const a=GN(i.fontSize,n,r),s=o?.hoverColor,l=o?.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),u=t.getStyle("object","","straightTableV2.content.hover.color"),d=VN(l)||!!u,p=VN(s)||!!c,f=d||p;let h;h=VN(s)?WN(dm.HOVER,t,s):c||(d?"":dm.HOVER);const m=f?WN(pm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(r,n,i.length,t),l=XN(r,n,!a),c=function(e,t,n){const r=KN(e)?.content,o=YN("content",t,r),{borderBottomColor:i,borderTopColor:a,background:s}=XN(e,t,n);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(r,n,a);return{body:s,head:l,totals:c}}),U_=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},G_=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=U_(e,t?.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},K_=(e,t,n,r=dm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=G_(e,t,n);return Sm(i,o,a,r)??r},Y_=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return yN}},X_=e=>e?.some(e=>"italic"===e)?"italic":"normal",J_=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?xN:"normal",Z_=e=>!1===e?1:3,Q_=e=>e?.some(e=>"underline"===e)?"underline":"none",ez=Og(e=>{const t=e(Nb),n=e(_b),r=e(Xb),o=e(fb),i=e(W_),{header:a,dimensionValues:s,measureValues:l,totalValues:c,subTotalValues:u,nullValues:d,dimensionNullValues:p,grid:f,content:h}=KN(o)??{},m=n?dm.WHITE:dm.TRANSPARENT,g=K_(r,a,"object.straightTableV2.dimension.label.name.backgroundColor",m),b=t?.maxLineCount??h?.rowHeight??r.getStyle("object.straightTableV2","grid","lineClamp"),v=p??d;return{header:{fontFamily:a?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??SN,fontSize:Y_(a?.fontSize??r.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:X_(a?.fontStyle),fontWeight:J_(a?.fontStyle,xN),textDecoration:Q_(a?.fontStyle),color:U_(r,a?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??dm.TEXT,background:g},headerMenuHoverBackground:hm(g,Km),headerMenuActiveBackground:hm(g,Ym),dimension:{values:{fontFamily:s?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??SN,fontSize:Y_(s?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:X_(s?.fontStyle),fontWeight:J_(s?.fontStyle,"normal"),textDecoration:Q_(s?.fontStyle),color:U_(r,s?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??dm.TEXT,background:G_(r,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??dm.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??r.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??SN,fontSize:Y_(l?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:X_(l?.fontStyle),fontWeight:J_(l?.fontStyle,"normal"),textDecoration:Q_(l?.fontStyle),color:U_(r,l?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??dm.TEXT,background:G_(r,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??dm.TRANSPARENT}},totalRow:{fontFamily:c?.fontFamily??r.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??SN,fontSize:Y_(c?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:X_(c?.fontStyle),fontWeight:J_(c?.fontStyle,xN),textDecoration:Q_(c?.fontStyle),color:U_(r,c?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??dm.TEXT,background:K_(r,c,"object.straightTableV2.total.label.value.backgroundColor",m)},subTotalRow:{fontFamily:u?.fontFamily??r.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??SN,fontSize:Y_(u?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:X_(u?.fontStyle),fontWeight:J_(u?.fontStyle,xN),textDecoration:Q_(u?.fontStyle),color:U_(r,u?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??dm.TEXT,background:K_(r,u,"object.straightTableV2.subTotal.label.value.backgroundColor",m)},dimensionNull:{fontStyle:X_(v?.fontStyle),fontWeight:J_(v?.fontStyle,"normal"),textDecoration:Q_(v?.fontStyle),color:U_(r,v?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??dm.TEXT,background:U_(r,v?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??dm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:X_(d?.fontStyle),fontWeight:J_(d?.fontStyle,"normal"),textDecoration:Q_(d?.fontStyle),color:U_(r,d?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??dm.TEXT,background:U_(r,d?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??dm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:b??Z_(o.multiline?.wrapTextInCells),headerLineClamp:Z_(o.multiline?.wrapTextInHeaders),border:U_(r,f?.border)??r.getStyle("object.straightTableV2","grid","borderColor")??(r.background.isDark?dm.DARK_MODE_BORDER:dm.BORDER_MEDIUM),divider:U_(r,f?.divider)??r.getStyle("object.straightTableV2.grid","","divider.borderColor")??dm.BORDER_HEAVY,hoverColors:{color:U_(r,h?.hoverFontColor)??r.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:U_(r,h?.hoverColor)??r.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!f?.zebraStripes?.show,odd:{color:U_(r,f?.zebraStripes?.color?.odd),background:U_(r,f?.zebraStripes?.background?.odd)},even:{color:U_(r,f?.zebraStripes?.color?.even),background:U_(r,f?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===U_(r,v?.background),overrideDimNullValueColor:void 0===U_(r,v?.fontColor),overrideMeasNullValueBackground:void 0===U_(r,d?.background),overrideMeasNullValueColor:void 0===U_(r,d?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:fm(r),contentStaticLineCount:b}}),tz=Og(e=>{const t=e(ez);return Math.max(zN(t.header.fontSize)+8,32)}),nz=Og(e=>{const t=e(ez),n=zN(t.totalRow.fontSize);return Math.max(n+9,24)}),rz=Og(e=>{const t=e(ez),n=e(gb),r=e(bb);return Math.max(n>0?zN(t.dimension.values.fontSize):0,r>0?zN(t.measure.values.fontSize):0)}),oz=Og(e=>{const t=e(ez),n=e(rz),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),iz=Og(e=>{const t=e(ez),n=zN(t.subTotalRow.fontSize),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),az=(e,t,n)=>{if(!e.length)return[];const r=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:c},label:u,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{r[a]=Math.min(Um.PixelsMax,Math.max(Um.PixelsMin,f)),i-=r[a]};switch(s){case Gm.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?Um.PixelsDefault:+e)(l),h();break;case Gm.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?Um.PercentageDefault:+e)(c)/100*t,h();break;case Gm.FitToContent:e.representation?.type===WP.Image?o.push(a):(f=n(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case Gm.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{r[t]=Math.max(Um.AutoMinTable,e)})}return r},sz=Og(e=>{const t=e(ez),n=e(j_).totalsPosition,r=e(Sb),{measureText:o}=e(LO({...t.header,fontWeight:xN})),{measureText:i}=e(LO({...t.totalRow,fontWeight:xN})),{estimateWidth:a}=e(LO(t.dimension.values)),{estimateWidth:s}=e(LO(t.measure.values)),l=n.atBottom||n.atTop;return(e,t,n,c,u,d,p)=>{let f;if(r){const t=4;let n=25;n+=t+24,c&&(n+=20+t),u&&(n+=20),f=o(e)+n}else{let t=9;t+=16,p&&(t+=MN),t+=MN,t+=MN,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(n))}}),lz=Og(null),cz=Og(e=>{const t=e(j_),n=e(Ub).width,r=e(_N),o=e(sz);return az(t.columns,n-r,o)}),uz=Og(e=>e(lz)??e(cz),(e,t,n)=>{t(lz,n)}),dz=Gv(e=>{const t=e(NO);!1===e(NN)&&t.emit("done-adjusting-column-width")}),pz=Gv((e,t)=>{e(fb),t(lz,null)}),fz=Og(e=>e(uz).reduce((e,t)=>e+t,0)),hz=({children:e})=>(Gg(pz),Gg(dz),e);function mz(e){const t=lm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),ac({...t,direction:e})}const gz={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},bz={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},vz=Ec("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...gz},"&::-moz-range-track":{...gz},"&::-ms-track":{...gz},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...bz},"&::-moz-range-thumb":{...bz},"&::-ms-thumb":{...bz},"&: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"}})),yz=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:u,direction:d="ltr"})=>{const p=jm({translator:u.translator}),f=k({initWidth:e,columnWidth:e,initX:0}),h=n?0:1,m=r&&!c,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};Om(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,Um.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:Gm.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{vm(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{vm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},I=!r&&s?e=>{if(e.key===Vm.Left||e.key===Vm.Right){vm(e);const t=5,n=e.key===Vm.Left?t:-t,r="rtl"===d?n:-n;l?.(!0),y(f.current.columnWidth+r)}else e.key===Vm.Space||e.key===Vm.Enter?(vm(e),s(e),l?.(!1),x()):e.key===Vm.Esc&&(vm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return Yt.jsx(vz,{style:b,hoverColor:o,isLastColumn:n,className:Wm,"data-testid":Wm,onMouseDown:e=>{vm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:Gm.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(vm(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:I,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":Um.PixelsMin,"aria-valuemax":Um.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},xz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),Sz=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null},wz=Ec(md,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),Cz=Ec(xz,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Ez=Ec(Tf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Iz=Ec(cp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),Az=Ec(Nf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),Rz=Ec(Nf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:n?"rgba(0, 0, 0, 0.05)":"transparent"})),Dz=Ec("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),Mz=Ec("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),kz=Ec(Tu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),Tz=Ec(rf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),qz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),Pz=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?Pz(t):t:e.parentElement?.children?.[0]},Lz=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?Lz(t):t},Oz=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===Vm.Down||t===Vm.Up){const n=e=>t===Vm.Down?Pz(e):Lz(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},Nz=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let jz={};const _z=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:u})=>{const[d,p]=M(!1),f=w.useRef(null),h=O(e=>{e.stopPropagation(),p(!1)},[p]);return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(Rz,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),jz={}),a?.length&&(p(!0),jz[r]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:Oz,children:[l?Yt.jsx(Dz,{direction:c,isPagination:u}):null,Yt.jsxs(Mz,{children:[Yt.jsx(Tz,{direction:c,isPagination:u,children:Yt.jsx(o,{})}),Yt.jsx(kz,{variant:"body2",children:r})]}),a?.length?Yt.jsx(qz,{}):null]},t),a?.length?Yt.jsx(Bz,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:Nz(a,jz),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},zz=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&Yt.jsx(Az,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>Yt.jsx(_z,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),Fz=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[zz({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?Yt.jsx(Iz,{"data-testid":"group-divider",variant:"middle"}):void 0]),$z={appear:0,enter:0,exit:0},Bz=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?Yt.jsx(Ez,{className:$m,open:t,anchorEl:e,onClose:n,transitionDuration:$z,MenuListProps:{id:Bm},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:Fz({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,Hz=({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:o,onPopoverClose:i})=>O(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:o,onPopoverClose:i})}},[e,t,n,r?.qStateName,o,i]),Vz=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),Wz=(e,t)=>e.some(e=>t[e]>0),Uz={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Gz=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=M(null),[a,s]=M(Uz);return Om(()=>{e||(s(Uz),i(null))},[e]),P(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=Vz(t,n),c=await r.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:Wz(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Wz(["qSelected"],e),canSelectPossible:Wz(["qOption"],e),canSelectAlternative:Wz(["qAlternative"],e),canSelectExcluded:Wz(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Kz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),Yz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),Xz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})})),Jz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),Zz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),Qz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),eF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),tF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})})),nF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})})),rF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),oF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),iF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),aF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let sF=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const lF="/qListObjectDef",cF=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[sF.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),r(!1)},icon:Kz,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),r(!1)},icon:Jz,enabled:s,isActive:!!n&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:eF,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:uP,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[sF.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:tF,enabled:!0}]}]),!e.isLocked&&n[sF.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:aF,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(lF))},icon:nF,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(lF))},icon:iF,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(lF))},icon:rF,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(lF))},icon:oF,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(lF))},icon:Yz,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:Qz,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:Zz,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[sF.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),u?.(c)},icon:Xz,enabled:!0}]}]),f},uF=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:u,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=_m})=>{const v=k(null),y=jm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=r,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:I}=Gz({open:e,headerData:r,app:C,qStateName:u?.qStateName}),A=Sz({model:f,headerData:r}),R=Hz({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),D=O(e=>{e.stopPropagation(),t(!1)},[t]),M=O(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?Yt.jsxs(wz,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:Fm,onClick:!1===g?M:void 0,ref:v,isAccessibleHeader:g,children:[s?Yt.jsx(Cz,{height:b,className:zm,"data-testid":zm,isInteractionsActive:i.active??!1,children:Yt.jsx(xz,{})}):null,Yt.jsx(Bz,{open:e,anchorEl:!1===g?v.current:n.current,onClose:D,menuGroups:cF({headerData:r,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:R,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:I,anchorRef:n,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},dF=e=>e.isDark?{background:e.color,borderColor:dm.DARK_MODE_BORDER,color:dm.DARK_MODE_TEXT,disabledColor:dm.DARK_MODE_DISABLED,iconColor:dm.DARK_MODE_TEXT}:{background:e.color,borderColor:dm.BORDER_MEDIUM,color:dm.TEXT,disabledColor:dm.DISABLED},pF=Ec(md,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`})),fF=Ec(gh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),hF=Ec(Id,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)})),mF=Ec(Tu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),gF=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=D(()=>dF(r.background),[r]);if(!n.active)return null;const a=o?Yt.jsx(pF,{footerStyle:i,children:e}):null;return t?V.createPortal(e,t):a},bF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),vF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),yF=T({}),xF=()=>N(yF),SF=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(u)?0:-1,v=D(()=>dF(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=jm({translator:d}),S=D(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,n,r,o,i,a,s,l,c,u,x,p,f,h,m,v,b,y,g]);return Yt.jsx(yF.Provider,{value:S,children:e})},wF=({disabledCondition:e,pageNumber:t,type:n,footerStyle:r,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:r,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${n}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let CF=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),EF=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const IF=()=>{const{direction:e,pageInfo:t,width:n,interactions:r,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=xF(),c=0===t.page,u=wF({type:CF.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:r,tabIndex:l});return n<=(o?.firstPage||EF.FirstPage)?null:Yt.jsx(hF,{...u,disabled:!r.active,children:"rtl"===e?Yt.jsx(vF,{height:_m}):Yt.jsx(bF,{height:_m})})},AF=(e,t,n=!1)=>{n&&e.key===Vm.Tab&&!e.shiftKey&&(vm(e),bm(e.target,t,!1))},RF=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:c,translator:u,tabIndex:d}=xF(),p=t.page>=r-1,f=wF({type:CF.LastPage,disabledCondition:p,pageNumber:r-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=n.enabled?e=>{AF(e,n,o)}:void 0;return i<=(s?.lastPage||EF.LastPage)?null:Yt.jsx(hF,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?Yt.jsx(bF,{height:_m}):Yt.jsx(vF,{height:_m})})},DF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),MF=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=xF(),d=t.page>=r-1,p=wF({type:CF.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>EF.FirstPage&&i>EF.LastPage)&&n.enabled?e=>{AF(e,n,o)}:void 0;return Yt.jsx(hF,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?Yt.jsx(DF,{height:_m}):Yt.jsx(qz,{height:_m})})},kF=()=>{const{direction:e,pageInfo:t,interactions:n,footerStyle:r,handleChangePage:o,translator:i,tabIndex:a}=xF(),s=0===t.page,l=wF({type:CF.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:r,handleChangePage:o,translator:i,interactions:n,tabIndex:a});return Yt.jsx(hF,{...l,disabled:!n.active,children:"rtl"===e?Yt.jsx(qz,{height:_m}):Yt.jsx(DF,{height:_m})})},TF=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=xF(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||EF.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return Yt.jsx(mF,{variant:"caption",dir:"ltr",children:s})},qF=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=xF(),c=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${c}`,f={tabIndex:s,id:`${d}-${c}`,"data-testid":d,"aria-labelledby":p};return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(mF,{variant:"caption",id:p,children:[u,":"]}),Yt.jsx(fF,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},PF=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=xF();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||EF.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=Yt.jsx(Yt.Fragment,{children:e.rowsPerPageOptions.map(e=>Yt.jsx("option",{value:e,children:e},e))});return Yt.jsx(qF,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},LF=1e3,OF="…",NF=({totalPages:e,page:t})=>{const n=Math.min(e,LF),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-LF):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return Yt.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(Yt.jsx("option",{value:OF,disabled:!0,children:OF},"startMoreOptions")),o<e-1&&a.push(Yt.jsx("option",{value:OF,disabled:!0,children:OF},"endMoreOptions")),Yt.jsx(Yt.Fragment,{children:a})},jF=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=xF(),{page:i}=e;if(t<=(o?.selectPage||EF.SelectPage))return null;const a=Yt.jsx(NF,{totalPages:n,page:i});return Yt.jsx(qF,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var _F=z(e=>Yt.jsxs(SF,{...e,children:[Yt.jsx(PF,{}),Yt.jsx(jF,{}),Yt.jsx(TF,{}),Yt.jsx(IF,{}),Yt.jsx(kF,{}),Yt.jsx(MF,{}),Yt.jsx(RF,{})]}));const zF=e=>Yt.jsx(gF,{...e,children:Yt.jsx(_F,{...e})}),FF=(e,t,n)=>{const r=n.size,o=r>=t.size;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},$F=(e,t,n)=>{n&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},BF=e=>e.ctrlKey||e.metaKey,HF=e=>e.shiftKey&&BF(e),VF=e=>[Vm.Left,Vm.Right,Vm.Up,Vm.Down].includes(e),WF=e=>e.shiftKey&&VF(e.key),UF=e=>{return t=e.key,(VF(t)||[Vm.Home,Vm.End,Vm.PageUp,Vm.PageDown].includes(t))&&!HF(e);var t},GF=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)n?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(r)}return l=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?(new Map).set(r,o):(e.has(r)?e.delete(r):e.set(r,o),new Map(e))})(l,i,s),FF(a,r,l),l.size?(n?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(n?.cancel(),{...e,rows:l,colIdx:-1})},KF=(e,t)=>{const{api:n,rows:r,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:c}=t;if(!(a||"key"in c&&WF(c)))return e;-1===o&&n?.begin(["/qHyperCubeDef"]);const u=((e,t,n,r,o)=>{if(!n.isSelectable)return t;const i=new Map(t);if("key"in r&&WF(r)){i.set(n.qElemNumber,n.rowIdx);const t=r.key===Vm.Down?1:-1,o=e[n.pageRowIdx+t][n.pageColIdx];return o.isSelectable&&i.set(o.qElemNumber,n.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),s=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=s;t++){const n=e[t][o.pageColIdx];n.isSelectable&&i.set(n.qElemNumber,n.rowIdx)}return i})(i,r,s,c,a);return FF(l,r,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},YF=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(n.values()),[r]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},XF=(e,t)=>{switch(t.type){case _O.Select:return GF(e,t.payload);case _O.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case _O.SelectMouseUp:return((e,t)=>YF(e.isSelectMultiValues||e.firstCell!==t.cell?e:GF(e,t)))(e,t.payload);case _O.SelectMultiAdd:return KF(e,t.payload);case _O.SelectMultiEnd:return YF(e);case _O.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case _O.Clear:return e.rows.size?{...e,rows:new Map}:e;case _O.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},JF=Og(e=>{const t=e(Eb);return function(e,t){return Og(e,function(e,n,r){n(this,t(e(this),r))})}({pageRows:e(j_).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},XF)}),ZF=Og(e=>e(e(JF)),(e,t,n)=>{t(e(JF),n)}),QF=Hx(e=>Og(t=>{const{colIdx:n,rows:r,api:o}=t(ZF);return"object"==typeof e&&o?.isModal()?n!==e.selectionColIdx?jO.Disabled:r.has(e.qElemNumber)?jO.Selected:jO.Possible:jO.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),e$=Og(e=>{const t=e(fz),n=e(Ub).width,r=e(_N);return t>0&&t+r<n}),t$=()=>{const[e,t]=M(!1);return Yk({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?Yt.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},n$=(e,{atTop:t,atBottom:n},r)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!r&&n?e.grid.divider:e.grid.border,borderBottomColor:r&&!t||!r&&t?e.grid.divider:e.grid.border}),r$=Og(e=>{const t=e(gb),n=e(Bb);if(void 0!==n)return async(e,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,c=o?i:i-t,u=await n.getEffectiveProperties(),{qInterColumnSortOrder:d}=u.qHyperCubeDef,p=[],f=r!==s||l;if(!o){const e=u.qHyperCubeDef.qMeasures.at(c)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${c}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}if(!l){const e=[i,...d.filter(e=>e!==i)];p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${e.join(",")}]`})}f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),n.applyPatches(p,!0)}}),o$=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},i$=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r})=>(e>n?e--:t>n&&(t--,e=r),[t,e]),a$=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r,lastRowIdx:o})=>(e<r?e++:t<o&&(t++,e=n),[t,e]),s$=e=>e.atTop?2:1,l$=(e,t)=>({top:e?s$(t):0,bottom:e&&t.atBottom?1:0}),c$=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],u$=e=>e?.setAttribute("tabIndex","0"),d$=e=>e?.setAttribute("tabIndex","-1"),p$=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(d$)},f$=e=>{e?.focus(),u$(e)},h$=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${Wm}`);f$(t)},0)},m$=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o,direction:i})=>{p$(t);const a=((e,t,n,r,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[c,u]=n;switch(e.key){case Vm.Down:c<s&&c++;break;case Vm.Up:c>a&&c--;break;case Vm.Right:if(i)break;[c,u]="rtl"===r?i$({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):a$({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case Vm.Left:if(i)break;[c,u]="rtl"===r?a$({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):i$({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case Vm.Home:(BF(e)||i)&&(c=a),i||(u=0);break;case Vm.End:(BF(e)||i)&&(c=s),i||(u=l);break;case Vm.PageDown:c=Math.min(s,c+10);break;case Vm.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,n,i,o),s=c$(t,a);return f$(s),((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(!n?.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[r].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-i.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),r(a),{nextCell:s,nextCellCoord:a}},g$=(e,t,n,r)=>{p$(t),n(e),r.enabled&&!r.active?r.focus?.():f$(c$(t,e))},b$=(e,t,n)=>{const r=e.currentTarget;if(!r)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${$m}`))return;const i=!!o&&r.contains(o);!n.enabled||t.current||i||(e=>{const t=e.querySelector(`.${FO.First}`),n=e.querySelector(`.${FO.Second}`);t&&n&&(t.innerHTML="",n.innerHTML="")})(r),((e,t,n)=>{const r=e.currentTarget;if(!n.enabled||t.current||!r)return;const o=e.relatedTarget??document.activeElement;o&&r.contains(o)||n.blur?.(!1)})(e,t,n)},v$=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),y$=Ec(Lh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:n,background:r,color:o})=>({...wN,...e,cursor:t.active?"pointer":"default",background:r,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?n:r}})),x$=Ec("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:yN,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),S$=parseInt(yN,10)/2,w$=Ec("div")({position:"absolute",bottom:-S$,left:`calc(50% - ${S$}px)`}),C$=Ec(Xh)({position:"sticky",top:0,zIndex:1}),E$={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},I$=Ec(md)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),A$=Ec("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isDual"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:n=!1,isNumeric:r=!1,isDual:o=!1})=>r&&!o||1===e&&!t?{...E$,whiteSpace:"nowrap",display:n?"block":void 0}:{...E$,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),R$=Ec("div",{shouldForwardProp:e=>"indentation"!==e&&"isFlex"!==e&&"justifyContent"!==e})(({indentation:e,isFlex:t,justifyContent:n})=>({width:"100%",height:"100%",boxSizing:"border-box",minWidth:0,paddingInlineStart:`min(${e}, 50%)`,...t&&{display:"flex",justifyContent:n,alignItems:"inherit"}})),D$=Ec("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),M$="cell-text",k$=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=Gg(ez);return o?Yt.jsx(A$,{"data-testid":M$,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:r,isHeadCell:!0,style:{direction:n?"ltr":void 0},children:e}):Yt.jsx(A$,{"data-testid":M$,ref:t,className:"sn-table-cell-text",isDual:i,isNumeric:n,lineClamp:a??s.grid.contentLineClamp,isPagination:r,style:{direction:n?"ltr":void 0},children:e})},T$=e=>{const{column:t,isInteractionEnabled:n,open:r,setOpen:o,isPagination:i,forwardRef:a}=e,s=Gg(vb),l=Gg(r$),c=Gg(Lb),u=Gg(Ab),d=Gg(Zg),p=Gg(Jb),f=Gg(Xg),h=Gg(uz)[t.pageColIdx],m=Gg($b),g=k(null),b=k(null),v=(({column:e,columnWidth:t})=>{const n=Gg(ez),{measureText:r}=Mm({fontSize:n.header.fontSize,fontFamily:n.header.fontFamily,fontWeight:xN});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,c=t-25,u=s?20:0,d=l?20:0;let p=r(e.label);return s&&p+u<=c&&(a=!0,p+=u,l&&p+d<=c&&(i=!0,p+=d)),!s&&l&&p+d<=c&&(i=!0,p+=d),p+24<=c&&(o=!0),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:n,shouldShowLockIcon:r},o)=>{const i="A"===e?Yt.jsx(Kz,{height:yN,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(Jz,{height:yN,"data-testid":"head-cell-sort-descending-icon"}),a=n?Yt.jsx(x$,{align:t,dir:o,children:i}):void 0,s=r?Yt.jsx(PN,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Yt.jsx(v$,{height:yN,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return Yt.jsxs(qN,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:IN(t,i,c),children:[S,Yt.jsxs(TN,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,Yt.jsx(k$,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),n?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(uF,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[sF.Sorting]:!0,[sF.Searching]:!0,[sF.Selections]:!0,[sF.AdjusterHeaderSize]:!0},open:r,setOpen:o,interactions:u,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),l?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:h$},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),Yt.jsx(kN,{ref:b,direction:c,isPagination:i}),Yt.jsx(kN,{ref:g,direction:c})]}):null]})},q$=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),P$=(e,t)=>e.isCyclic&&t,L$=({column:e})=>{const t=Gg(ez),n=Gg(Lb),r=Gg($b),o=w.useRef(null),[i,a]=w.useState(!1),s=Sz({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(ON,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:Yt.jsx(q$,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),Yt.jsx(Bz,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(n)},enabled:!0,icon:uP,isActive:e.groupDimensionPos===n}))}]],anchorEl:o.current,direction:n,isPagination:!1})]})},O$=e=>e.isLocked,N$=({column:e})=>{const t=Gg(Xg),n=Gg(vb),r=Gg(db),o=Gg(ez);return Yt.jsx(ON,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,onClick:o=>{o.stopPropagation(),(async(e,t,n,r={warn:()=>{},error:()=>{}})=>{const o=Vz(t??"$",n);let i;try{const t=await(e?.createSessionObject(o));i=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){r.error({msg:"Failed to unlock field from table header",payload:e})}finally{i&&(await(e?.destroySessionObject(i))||r.error({msg:"Failed to destroy session object when unlocking field from table header"}))}})(t,n,e,r)},children:Yt.jsx(v$,{height:16,"data-testid":"head-cell-lock-icon"})})},j$=({column:e,menuIconRef:t,open:n,setOpen:r})=>{const o=Gg(ez);return Yt.jsx(ON,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:n,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),r(e=>!e)},ref:t,children:Yt.jsx(xz,{height:16})})},_$=({anchorRef:e,column:t,isPagination:n,listboxRef:r,open:o,setOpen:i})=>{const a=Gg(Xg),s=Gg(Lb),l=Gg(Zg),c=Gg(Ab),u=Gg($b),d=Gg(vb),p=Gg(Jb),f=Gg(r$);return Yt.jsx(uF,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[sF.Sorting]:!0,[sF.Searching]:!0,[sF.Selections]:!0,[sF.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),f?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:r},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:h$},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:n})},z$=Og();z$.onMount=e=>{const t=new Map,n=new ResizeObserver(e=>{for(const n of e){const e=t.get(n.target);e&&e.current(n)}});return e({callbacks:t,observer:n}),()=>{t.clear(),n.disconnect()}};const F$=({ref:e,callback:t})=>{const n=Gg(z$),r=k(t);r.current=t,j(()=>{const t=e.current;return void 0===n?()=>{}:(t&&(n.callbacks.set(t,r),n.observer.observe(t)),()=>{t&&(n.callbacks.delete(t),n.observer.unobserve(t))})},[e,r,n])},$$=Ec(md)({display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",boxSizing:"border-box"}),B$=({children:e})=>{const t=w.useRef(null),[n,r]=M(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=D(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=O(e=>{const t=new Set,n=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const r=e.props.minWidth+1;void 0===e.props.prio||i+r<=n?i+=r:t.add(e.key)}),r(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return F$({ref:t,callback:i}),Yt.jsx($$,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!n.has(e.key))})},H$=({children:e})=>e,V$=(e,t)=>!e.isLocked&&e.isDim&&t,W$=({column:e,open:t,setOpen:n})=>{const r=Gg(ez),o=Gg(vb),i=Gg(Lb),a=Gg(Zg);Gg(Xg);const s=w.useRef(null),l=O(()=>{n(!1)},[n]),c=Hz({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return Yt.jsx(ON,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),n(!0)},children:Yt.jsx(tF,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},U$=({column:e})=>{const{sortDirection:t,isActivelySorted:n}=e,r="A"===t?Yt.jsx(hN,{height:yN,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(dN,{height:yN,"data-testid":"head-cell-sort-descending-icon"});return n?Yt.jsx(w$,{children:r}):void 0},G$=0,K$=1,Y$=2,X$=3,J$=e=>{const{column:t,open:n,setOpen:r,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=Gg(ez),c=Gg(Lb),{measureText:u}=Mm(l.header),[d,p]=M(!1),f=k(null),h=k(null),m=k(null),g="number"==typeof a&&a>Um.PixelsMin+18;return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(B$,{children:[Yt.jsx(H$,{prio:Y$,minWidth:MN,children:O$(t)?Yt.jsx(N$,{column:t}):null},"Lock"),Yt.jsx(H$,{prio:K$,minWidth:MN,children:P$(t,s)?Yt.jsx(L$,{column:t}):null},"Cyclic"),Yt.jsx(H$,{ignore:!0,children:Yt.jsx(U$,{column:t})},"Sort"),Yt.jsx(H$,{minWidth:u(t.label)+8,children:Yt.jsx(LN,{justifyContent:t.headTextAlign,children:Yt.jsx(k$,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),Yt.jsx(H$,{prio:g?void 0:G$,minWidth:MN,children:d||V$(t,s)?Yt.jsx(W$,{open:d,setOpen:p,column:t}):null},"Search"),Yt.jsx(H$,{prio:X$,minWidth:MN,children:s?Yt.jsx(j$,{menuIconRef:m,column:t,open:n,setOpen:r}):null},"Menu")]}),s?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(kN,{ref:h,direction:c,isPagination:o}),Yt.jsx(kN,{ref:f,direction:c}),Yt.jsx(_$,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:n,setOpen:r})]}):null]})},Z$=Ec("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:n})=>({...t,background:e,color:n})),Q$=()=>{},eB=({column:e,isPagination:t})=>{const n=Gg(ez),r=Gg(Lb),o=Gg(e$),i=Gg(__),a=!1,s=Gg(Sb)?T$:J$;return Yt.jsx(Z$,{className:"sn-table-cell",applicableStyle:{...n.header,...n$(n,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:RN(r,a,o),borderLeftWidth:DN(r,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??n.header.background,color:e.headerColor?.color??n.header.color,children:Yt.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:Q$})})},tB=({isPagination:e})=>{const t=Gg(z_),[n,r]=M();Yk({onDragStart:e=>{const t=e.operation.source?.id;r(t)},onDragEnd:()=>{}});const o=n?t.find(e=>e.id===n):void 0;return o?Yt.jsx(Ak,{children:Yt.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:Yt.jsx(eB,{column:o,isPagination:e})})}):null},nB=Og(async e=>{e(fb);const t=e(Bb),n=await(t?.getEffectiveProperties());return n&&structuredClone(n)}),rB=wv(nB,e=>e),oB=Og(e=>e(rB)?.qHyperCubeDef),iB=[qM.configure({activationConstraints:[new DM.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],aB=QM.plugins.filter(e=>e!==eD),sB=(e,t,n)=>{const r=JSON.stringify(t),o=JSON.stringify(n);if(r!==o)return{qPath:e,qOp:"Replace",qValue:o}},lB=(e,t,n,r,o)=>{if(!e||!t||r===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,visibleColumnIds:r,sourceId:o,targetId:i})=>{const a=NP({qDimensions:e,qMeasures:t}),s=[...e,...t],l=r.findIndex(e=>e===o),c=r.findIndex(e=>e===i);if(l<0||c<0||l===c)return;const u=((e,t,n)=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r})(r,l,c),d=new Map(u.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const n=d.get(e.id),r=d.get(t.id);return void 0===n||void 0===r?0:n-r}),f=p.filter(e=>e.isDimension).map(e=>e.def),h=p.filter(e=>!e.isDimension).map(e=>e.def),m=[...f,...h],g=new Map(m.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:f,qMeasures:h,qInterColumnSortOrder:jP({previousColumns:s,nextColumns:m,qInterColumnSortOrder:n}),qColumnOrder:u.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:n.map(e=>e.id),sourceId:r,targetId:o});if(!i)return;const a=[sB("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),sB("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),sB("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),sB("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},cB=({children:e})=>{const t=Gg(Bb),n=Gg(oB),r=Gg(z_);return Yt.jsx(Ck,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&lB(t,n,r,o,i)},sensors:iB,plugins:aB,children:e})};function uB(e,t){const n=k(!1);P(()=>{n.current?e():n.current=!0},t)}const dB=(e,t)=>{const n=Gg(Fb);P(()=>{const r=e.current;if(!r)return;const o=e=>{b$(e,t,n)};return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}},[e,t,n])},pB=Og($O),fB=Hx(e=>Og(t=>{const[n,r]=t(pB);return 0===n&&r===e})),hB=()=>{const e=Gg(Jg);P(()=>{e.notifyIsDoneRendering()})};var mB={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 gB=Og(e=>{const t=e(Jb),n=e(Gb),r=e(db);let o;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(mB).forEach(t=>{e.add(mB[t])})}(t),({keys:e,politeness:i="polite"})=>{const a=e.map(e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)}).join(" "),s=n.querySelector(`.${FO.First}`),l=n.querySelector(`.${FO.Second}`);if(!s||!l)return void r.error({msg:"could not find aria-live elements, which means accessibility is not working properly"});let c;o===FO.First?(c=l,o=FO.Second):(c=s,o=FO.First),c.innerHTML=c.innerHTML.endsWith(" ")?a:`${a} `,c.setAttribute("aria-live",i)}}),bB=(e,t)=>{const n=Gg(gB),r=Gg(Gb),o=Gg(H_),i=Gg(B_),a=Gg($_),s=Gg(__),[l,c]=Yg(pB),u=Gg(Cb),d=Gg(Fb);uB(()=>{const t=((e,t,n=!1)=>{const r=[s$(t),e[1]];return n?r:$O})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(p$(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=c$(t,e);n.current?(f$(s),n.current=!1):u$(s),r&&(a({keys:[s?.textContent??""]}),$F(a,s,r))})({resetCellCoord:t,rootElement:r,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:n})},[a.length,i,o,t])},vB=e=>{vm(e),BF(e)&&Qm(e.currentTarget)},yB=e=>{UF(e.evt)&&(vm(e.evt),m$(e))},xB=e=>{const{evt:t,totalsPosition:n,cell:r,isSelectionMode:o}=e;if(!UF(t))return;vm(t);const i=((e,t)=>[e.pageRowIdx+s$(t),e.pageColIdx])(r,n),a=l$(o,n),{nextCell:s,nextCellCoord:l}=m$({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:n,selectionDispatch:r,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&n.isSelectable?r({type:_O.SelectMultiAdd,payload:{cell:n,evt:e,announce:o}}):$F(o,a,i)})({...e,nextCell:s})},SB=e=>{const{evt:t}=e;HF(t)?(({evt:e,totalRowCount:t,rowsPerPage:n,page:r,updateShouldRefocus:o,handleChangePage:i})=>{vm(e);const a=Math.ceil(t/n)-1;e.key===Vm.Right&&r<a?(o(),i(r+1)):e.key===Vm.Left&&r>0&&(o(),i(r-1))})(e):t.key===Vm.Esc?(({evt:e,keyboard:t,isSelectionMode:n})=>{t.enabled&&!n&&(vm(e),t.blur?.(!0))})(e):VF(t.key)&&vm(t)},wB=e=>{const{evt:t,selectionsAPI:n}=e;if(t.currentTarget.classList.contains(jO.Disabled))return void vm(t);const r={...e,isSelectionMode:!!n?.isModal()};switch(t.key){case Vm.Space:(({evt:e,cell:t,isSelectionsEnabled:n,selectionDispatch:r,announce:o})=>{vm(e),t.isSelectable&&n&&r({type:_O.Select,payload:{cell:t,evt:e,announce:o}})})(r);break;case Vm.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{vm(n),e&&(t?.confirm(),r({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(r);break;case Vm.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{e&&(vm(n),t?.cancel(),r({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(r);break;case Vm.C:vB(t);break;case Vm.Tab:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{const o=e.shiftKey||!r;t.enabled&&n&&o&&(vm(e),bm(e.currentTarget,t,e.shiftKey))})(r);break;default:xB(r)}},CB=e=>{const t=Gg(NN),n=Kg(jN),r=Kg(_N),o=Gg(NO),i=k();F$({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);r(e-o),n(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),P(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},EB=Ec("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),IB=Ec(_h,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),AB=Ec(wh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),RB=()=>Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(EB,{className:FO.First,"data-testid":FO.First,"aria-live":"polite","aria-atomic":"true"}),Yt.jsx(EB,{className:FO.Second,"data-testid":FO.Second,"aria-live":"polite","aria-atomic":"true"})]}),DB=e=>{const t=k(new Map),n=k(null);P(()=>{n.current=e(t.current),t.current.forEach((e,t)=>{n.current?.observe(t)});const r=t.current,o=n.current;return()=>{o.disconnect(),r.clear()}},[e,n,t]);const r=O((e,r)=>{t.current.set(e,r),n.current?.observe(e)},[t,n]),o=O(e=>{t.current.delete(e),n.current?.unobserve(e)},[n,t]);return D(()=>({addTask:r,removeTask:o}),[r,o])},MB=e=>new ResizeObserver(t=>{t.forEach(t=>{const n=e.get(t.target);n?.(t)})}),kB=()=>DB(MB),TB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Gg(Eb),r=Gg(Fb),o=Kg(ZF);P(()=>{const i=()=>{o({type:_O.Reset})},a=()=>{o({type:_O.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():r.enabled&&r.blur?.(!0),i()};return n?.on("deactivated",i),n?.on("canceled",i),n?.on("confirmed",s),n?.on("cleared",a),()=>{n?.removeListener("deactivated",i),n?.removeListener("canceled",i),n?.removeListener("confirmed",s),n?.removeListener("cleared",a)}},[n,r,o,e,t])},qB="min(50px, 20%)",PB=({bar:e,height:t})=>{const{value:n,offsetValue:r,columnMin:o,columnMax:i,isManualRange:a,thicknessPx:s,barEnd:l}=e,c=a?o:Math.min(o,0);let u=a?i:Math.max(i,0);u>c||(u=c+1);const d=r,p=r+n,f=n>=0,h=Math.min(d,p),m=Math.max(d,p),g=Math.round(((e,t,n)=>Math.max(t,Math.min(n,e)))(s??("none"===l?1*t:4),2,Math.max(2,t-2))),b=Math.min(((e,t)=>"circle"===e?2*t:"box"===e?t+4:0)(l,g),t),v=Math.min(d,p)<c,y=Math.max(d,p)>u,x="none"===l?25:10+("none"===l?0:b/2+2);return{rangeMin:c,rangeMax:u,hasRoomAtMin:e.hasNegativeValues??(a||c<0||!f),hasRoomAtMax:e.hasPositiveValues??(a||i>=0||f),low:h,high:m,valueEnd:f?m:h,growsTowardsHigh:f,overflowMin:v,overflowMax:y,hasBar:m>h&&m>c&&h<u,thicknessPx:g,capSize:b,hasZeroAxis:c<=0&&u>=0,oobSizePx:x}},LB=Ec("div")({position:"relative",width:"100%",overflow:"hidden"}),OB=Ec("div")({position:"absolute"}),NB=Ec("span")({position:"absolute",top:0,height:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),jB=Ec("svg")({position:"absolute",display:"block"}),_B=({shape:e,pointsRight:t,width:n,height:r})=>{if("slice"===e)return`M0 0L${n-8} ${r}L0 ${r}ZM8 0L${n} ${r}L${n} 0Z`;const o=n/2,i=o*Math.sin(Math.PI/3),a=t?o/2:1.5*o;return`M${a} ${o-i}L${t?n:0} ${o}L${a} ${o+i}Z`},zB=({height:e,theme:t,bar:n,direction:r,fontFamily:o,fontSize:i,textDecoration:a})=>{const s=(({bar:e,height:t,isRtl:n})=>{const r=PB({bar:e,height:t}),{rangeMin:o,rangeMax:i,low:a,high:s,overflowMin:l,overflowMax:c,thicknessPx:u,capSize:d,oobSizePx:p}=r,f=r.hasRoomAtMin?qB:"0px",h=r.hasRoomAtMax?qB:"0px",m=f,g=`calc(100% - ${h})`,b=e=>{const t=(Math.min(Math.max(e,o),i)-o)/(i-o);return`calc(${f} + ${t} * (100% - ${f} - ${h}))`},v="none"===e.barEnd,y=v?25:10,x=c?`max(${g} - ${p}px, ${l?m:b(a)})`:b(s),S=l?`min(${m} + ${p}px, ${c?g:b(s)})`:b(a),w=r.growsTowardsHigh?x:S,C=e=>Math.floor((t-e)/2),E=C(u),I=d>0?d/2+4:4,A=e=>{const t=v?u:10;return{key:e,shape:v?"slice":"triangle",pointsRight:"max"===e!==n,width:y,height:t,style:{..."min"===e?{insetInlineStart:f}:{insetInlineEnd:h},top:C(t),width:y,height:t}}};return{zeroAxis:r.hasZeroAxis?{insetInlineStart:`calc(${b(0)} - 0.5px)`,top:0,width:1,height:"100%"}:void 0,bar:r.hasBar?{insetInlineStart:S,width:`max(1px, ${x} - ${S})`,top:E,height:u}:void 0,cap:r.hasBar&&d>0?{insetInlineStart:`calc(${w} - ${d/2}px)`,top:C(d),width:d,height:d,borderRadius:"circle"===e.barEnd?"50%":void 0}:void 0,label:e.label?r.growsTowardsHigh?{insetInlineStart:c?`calc(${g} + 4px)`:l?`max(${x} + ${I}px, ${m} + ${y+4}px)`:`calc(${x} + ${I}px)`,insetInlineEnd:"4px",textAlign:"start"}:{insetInlineStart:"4px",insetInlineEnd:`calc(100% - ${l?`calc(${m} - 4px)`:c?`min(${S} - ${I}px, ${g} - ${y+4}px)`:`calc(${S} - ${I}px)`})`,textAlign:"end"}:void 0,markers:[l?A("min"):void 0,c?A("max"):void 0].filter(e=>void 0!==e)}})({bar:n,height:e,isRtl:"rtl"===r}),l=n.color??mm(t,n.colorPalette,t.getDataColorSpecials().primary),c=n.labelColor??mm(t,n.labelColorPalette,"inherit");return Yt.jsxs(LB,{"data-testid":"bar-container",role:"img","aria-label":n.label||n.fallbackLabel,title:n.label||n.fallbackLabel,dir:r,style:{height:e},children:[s.zeroAxis?Yt.jsx(OB,{"data-testid":"bar-zero-axis",style:{...s.zeroAxis,backgroundColor:"#d0d0d0"}}):null,s.bar?Yt.jsx(OB,{"data-testid":"bar",style:{...s.bar,backgroundColor:l}}):null,s.cap?Yt.jsx(OB,{"data-testid":"bar-end-cap",style:{...s.cap,backgroundColor:l}}):null,s.label?Yt.jsx(NB,{"data-testid":"bar-label",style:{...s.label,fontFamily:o,fontSize:i??"14px",textDecoration:a,lineHeight:`${e}px`,color:c},children:n.label}):null,s.markers.map(e=>Yt.jsx(jB,{"data-testid":`bar-oob-${e.key}`,width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:e.style,children:Yt.jsx("path",{d:_B(e),fill:l})},e.key))]})},FB=e=>{e.stopPropagation()},$B=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:FB,color:dm.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),BB=({href:e,text:t,interactions:n,color:r})=>Yt.jsx(Op,{...$B({href:e,text:t,interactions:n,color:r}),children:t}),HB=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),VB=window.cancelIdleCallback??(e=>{clearTimeout(e)});let WB=0,UB=0,GB=0;const KB="qDimensionInfo/0",YB="qMeasureInfo/0",XB="x",JB="y",ZB=e=>({key:"bars",type:"box",data:{extract:{field:KB,props:{start:0,end:{field:YB}}}},settings:{major:{scale:XB},minor:{scale:JB},box:{maxWidthPx:8,fill:{fn:e}}}}),QB=e=>({key:"p",type:"point",data:{extract:{field:KB,props:{y:{field:YB}}}},settings:{x:{scale:XB},y:{scale:JB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),eH=({qNum:e})=>void 0===e?0:Math.sign(e),tH=(e,t)=>{const{primary:n,nil:r,others:o}=e.getDataColorSpecials(),i=mm(e,t?.negative,n),a=mm(e,t?.positive,n);return{key:"pos-neg",type:"box",data:{extract:{field:KB,props:{start:0,end:{field:YB,value:eH}}}},settings:{major:{scale:XB},minor:{scale:JB},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?r:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},nH=(e,{type:t,showDots:n,colors:r,colorMin:o,colorMax:i})=>{const a=((e,t,n,r)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=mm(e,t?.main,o),l=mm(e,t?.max,s),c=mm(e,t?.min,s),u=mm(e,t?.first,s),d=mm(e,t?.last,s);return e=>{const t=JB in e.datum?JB:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=r?l:e.datum[t].value<=n?c:e.data.items.at(0)===e.datum?u:e.data.items.at(-1)===e.datum?d:s}})(e,r,o,i);switch(t){case"bars":return[ZB(a)];case"dots":return[QB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:KB,props:{v:{field:YB}}}},settings:{coordinates:{major:{scale:XB},minor:{scale:JB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(mm(e,r?.main,e.getDataColorSpecials().primary));return n?[t,QB(a)]:[t]}case"posNeg":return[tH(e,r)];default:return[]}},rH=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"}),oH=(e,t,n,r)=>({y:{data:{field:YB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:n},x:{data:{extract:{field:KB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===r,align:"rtl"===r?1:0,maxPxStep:12}}),iH=K();iH.use(G),iH.renderer.prio(["canvas"]);const aH={resolve:()=>{},promise:{}},sH=({chart:e,element:t,theme:n,isSnapshot:r,direction:o,miniChartData:i,downloadService:a})=>{const{resolveChartPromise:s,addChartPromiseToQueue:l}=(e=>{const t=k(e.isDownloadedAsPDForImage?Rt():aH);return{addChartPromiseToQueue:O(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(a),c=k(null),u=O(()=>{null!==t.current&&null===e.current&&(l(),c.current=(e=>{const t=performance.now();if(t-WB>50&&(WB=t,UB=0),UB+=1,0===GB&&UB<=20)return e(),()=>{};GB+=1;let n=!1;const r=()=>{n||(n=!0,GB-=1)},o=HB(()=>{r(),e()},{timeout:2e3});return()=>{VB(o),r()}})(()=>{c.current=null,t.current&&(e.current=(({element:e,theme:t,isSnapshot:n,miniChartData:r,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:c}=r;return iH.chart({element:e,data:{type:"q",key:"qHyperCube",data:rH(s)},settings:{scales:oH(a,l,c,i),components:nH(t,r),strategy:n?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:r,miniChartData:i,direction:o,onChartRendered:s}))}))},[t,e,l,n,r,i,o,s]);return{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:O(()=>{c.current?.(),c.current=null,s()},[s])}},lH=e=>{const t=k(null),n=k(!1);return O(r=>{const o=r.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(VB(e.current),e.current=null)})(t),n.current?0!==o?null!==e.current&&(t.current=HB(()=>{e.current?.update()},{timeout:2e3})):n.current=!1:n.current=!0},[e])},cH=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:n,isSnapshot:r,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:u}=sH({element:s,chart:l,theme:n,isSnapshot:r,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:r,chart:o})=>{const i=O(e=>{e.isIntersecting?r():n()},[r,n]);P(()=>{if(!e.current||!t)return()=>{};const r=e.current;return t.addTask(r,i),()=>{t.removeTask(r),n(),o.current?.destroy(),o.current=null}},[o,e,t,n,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:u,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionObserverTaskScheduler:r})=>{P(()=>r?()=>{}:(e(),()=>{t(),n.current?.destroy(),n.current=null}),[r,t,e,n])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:u,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:n})=>{const r=lH(t);P(()=>{const t=e.current;return t?(n.addTask(t,r),()=>{n.removeTask(t)}):()=>{}},[e,r,n])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},uH=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=cH({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return Yt.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},dH=e=>{let t="center",n="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?n="left":"flex-end"===e?.horizontal&&(n="right"),`${n} ${t}`},pH=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},fH=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const o=Gg(Lb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=Yt.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:n,objectFit:pH(s),objectPosition:dH(l),overflow:"hidden"}});return r?Yt.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?n:"100%",overflow:"hidden",display:"flex",justifyContent:c?CN(o,e):void 0},children:u}):u},hH=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&mN[t];return o&&Yt.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:Yt.jsx(o,{style:{height:e}})})},mH=({representation:e,cellValue:t,paginationCellAlign:n})=>{const r=Gg(ez),o=Gg(Lb),i=Gg(Xb),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=gN(e,t,o,i),d=(p=r.measure.values.fontSize,parseInt(p||yN,10));var p;const{color:f,iconKey:h,position:m}=u||{};return l?Yt.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?f:void 0},children:["left"===m&&hH({size:d,iconKey:h,color:f}),Yt.jsx(k$,{isNumeric:!0,children:a}),"right"===m&&hH({size:d,iconKey:h,color:f})]}):hH({size:d,iconKey:h,color:f})},gH=(e,t,n)=>e.contentStaticLineCount?t*(n??e.grid.contentLineClamp):t,bH=({forwardRef:e,cell:t,style:n,isBlank:r,virtualizedCell:o,lineClamp:i,intersectionObserverTaskScheduler:a,resizeObserverTaskScheduler:s,paginationCellAlign:l})=>{const c=Gg(ez),u=Gg(rz),d=Gg(Jg),p=Gg(fb),f=Gg(Xb),h=Gg(Lb),m=Gg(Ab),g=Gg(Cb);if(r)return null;if(t.representation.type===WP.Image&&!t.representation.url?.trim())return null;if(t.representation.type===WP.Image)return Yt.jsx(fH,{representation:t.representation,textStyle:n,maxImageHeight:gH(c,u,i),wrapInContainer:!o});const b=WO(t.qIsNull?t.representation.text:t.qNum);let v=t.representation;if(t.qIsNull&&t.isNumeric&&!Number.isNaN(b)){const e=t.formattedNullValueText??f_(b,t.qNumFormat,t.qIsAutoFormat);v={...t.representation,text:e}}let y=v.text;return t.representation.type!==WP.Link||g||t.isNull||(y=Yt.jsx(BB,{href:t.representation.url,text:t.representation.text,interactions:m,color:n.cellForegroundColor})),t.representation.type!==WP.Indicator||Number.isNaN(b)?t.representation.type===WP.MiniChart&&t.representation.miniChart&&!t.isNull?Yt.jsx(uH,{height:gH(c,u,i),intersectionObserverTaskScheduler:a,resizeObserverTaskScheduler:s,miniChartData:t.representation.miniChart,theme:f,isSnapshot:!!p.snapshotData,direction:h,downloadService:d}):t.representation.type===WP.Bar&&t.representation.bar&&!t.isNull?Yt.jsx(zB,{height:gH(c,u,i),bar:t.representation.bar,theme:f,direction:h,fontFamily:c.measure.values.fontFamily,fontSize:n.fontSize??c.measure.values.fontSize,textDecoration:n.textDecoration}):Yt.jsx(k$,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:i,isPagination:!o,children:y}):Yt.jsx(mH,{representation:v,cellValue:b,paginationCellAlign:o?void 0:l})},vH=e=>{const t=Yt.jsx(bH,{...e});return e.indentation?Yt.jsx(R$,{indentation:e.indentation,isFlex:!!e.virtualizedCell,justifyContent:e.justifyContent,children:t}):t},yH=()=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:Yt.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),xH=Ec("div")({"& path":{stroke:"none !important"}}),SH=({children:e,cellSelectionState:t,hideTickIcon:n})=>t!==jO.Selected||n?e:Yt.jsxs(D$,{children:[e,Yt.jsx(xH,{children:Yt.jsx(yH,{})})]}),wH=e=>{const t=function(){const e=Ek(),t=ak(()=>null==e?void 0:e.dragOperation.source,[e]),n=ak(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return n.value}}}();return t.source&&t.source.id!==e?.5:1},CH=(e,t,n,r)=>({handleMouseDown:r=>{e?.(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{n({type:_O.SelectMultiEnd})};n({type:_O.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:_O.SelectMultiAdd,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:_O.SelectMouseUp,payload:{cell:t,evt:e,announce:r}})}}),EH=e=>{const t=Gg(V_),n=Gg(__),r=Gg(gB),o=Gg(Gb),i=Gg(Lb),a=Kg(pB),s=Kg(ZF),l=Gg(Fb),c=Gg(Mb),u=Gg(Eb),d=d=>{wB({evt:d,rootElement:o,selectionsAPI:u,cell:e,selectionDispatch:s,isSelectionsEnabled:c,setFocusedCellCoord:a,announce:r,keyboard:l,paginationNeeded:t,totalsPosition:n,direction:i})},p=e=>{((e,t)=>{e.key===Vm.Shift&&t({type:_O.SelectMultiEnd})})(e,s)},f=()=>{((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;g$([s,a],t,n,r)})(e,o,a,l,n)};if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=CH(f,e,s,r);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},IH=e=>{P(()=>()=>{QF.remove(e)},[e])},AH=(e,t,n,r)=>{if(!n.isNull)return e;const o=r?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=r?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=r?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},RH=(e,t,n)=>{const{color:r,background:o}=e.grid.zebraStripes[n];return{...t,...r?{color:r}:void 0,...o?{background:o}:void 0}},DH=(e,t,n)=>{if(t.grid.zebraStripes.show){const r=(n.rowIdx+1)%2==0;return RH(t,e,r?"even":"odd")}return e},MH=(e,t)=>{const n=Gg(ez),r=Gg(QF(e)),o=Gg(ub),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS"),a=o("TLV_2710_TABLE_BLANK_TAG"),s=(e.isNull||!(i&&t.isDim))&&JN(e.qAttrExps,t.qAttrExprInfoIDs,a);IH(e);let l=t.isDim?n.dimension.values:n.measure.values;l=DH(l,n,e),l=i?n.subTotalRow:l,l=AH(l,n,e,t.isDim);const c=e.isNull||i&&t.isDim?l:ZN(l,e.qAttrExps,t.qAttrExprInfoIDs),u=i?c:function(e,t,n){return t===jO.Selected?{...e,...n}:t===jO.Disabled?{...e,background:`${bN}, ${e.background}`}:e}(c,r,n.selectedColors);return{cellStyle:{...u,borderColor:n.grid.border},representationStyle:c,isBlank:s,indentation:QN(e,t,o),cellSelectionState:r}},kH=Ec(Mh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),TH=Ec(Xh,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:n})=>({height:n,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),qH=Ec(Lh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...wN,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),PH=Ec(Lh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...wN,...e,fontWeight:xN,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?n:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),LH=({cell:e,column:t,columnIndex:n,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o})=>{const i=Gg(Lb),a=Gg(Ab),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=EH(e),{cellStyle:p,representationStyle:f,isBlank:h,indentation:m,cellSelectionState:g}=MH(e,t),b=wH(t.id);return Yt.jsx(qH,{cellStyle:{...p,opacity:b},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${g} ${Hm}`,title:a.passive&&!h?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:Yt.jsx(SH,{cellSelectionState:g,hideTickIcon:!!e.isTotalRow,children:Yt.jsx(vH,{cell:e,style:f,isBlank:h,indentation:m,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o,paginationCellAlign:AN(i,e.align)})})})},OH=Og(0),NH=({column:e,totalsPosition:t,onKeyDown:n,onMouseDown:r})=>{const o=Gg(ez),i=Gg(Db),a=Gg(OH),s=wH(e.id);return Yt.jsx(PH,{totalsStyle:{...o.totalRow,...n$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Hm}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:n,onMouseDown:r,children:Yt.jsx(k$,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},jH=()=>{const e=Gg(__),t=Gg(z_),n=Gg($_),r=Gg(Gb),o=Gg(Rb),i=Gg(Lb),a=Kg(pB),s=Gg(Cb),l=Gg(Fb);return Yt.jsx(Xh,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:n.length+1,c];return Yt.jsx(NH,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:n,isInteractionEnabled:r}=e;if(!t&&r)switch(n.key){case Vm.C:vB(n);break;case Vm.Space:n.preventDefault();break;default:yB(e)}else vm(n)})({evt:e,rootElement:r,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{g$(u,r,a,l)}},t.id)})})};var _H=z(jH);const zH=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Gg($_),r=Gg(__),o=Gg(z_),i=Gg(ez),a=Gg(oz),s=Gg(iz),l=Gg(fb),c=!!KN(l)?.content?.hoverEffect;TB({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=O(t=>new IntersectionObserver(e=>{e.forEach(e=>{const n=t.get(e.target);n?.(e)})},{root:e.current}),[e]);return DB(t)})(t),d=kB();return Yt.jsxs(kH,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[r.atTop?Yt.jsx(_H,{}):void 0,n.map((e,t)=>{const n=e.at(0)?.isTotalRow??!1;return Yt.jsx(TH,{hoverColors:i.grid.hoverColors,hover:c,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:n?s:a,children:o.map((t,n)=>{const{id:r}=t,o=e[n];return Yt.jsx(LH,{columnIndex:n,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},r)})},`row-${t}`)}),r.atBottom?Yt.jsx(_H,{}):void 0]})};var FH=z(zH);const $H=(e,t)=>!!e?.skipHeader||!!t.hideHeader,BH=Og(e=>{const t=e(fb),n=e($b);if(n)return(e,{isDim:r,colIdx:o})=>{const i=r?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[r?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};n.applyPatches([l],!0)}}),HH=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,a=Gg(BH),s=Gg(Lb),l=Gg(Rb),c=Gg(Jb),[u,d]=Yg(uz);if(!l)return null;return Yt.jsx(yz,{columnWidth:u.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{n?.();const t=[...u];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{d$(e);const t=e.closest(".sn-table-cell");f$(t)})(e.currentTarget)},setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},VH=e=>e.target?.getAttribute("class")?.includes(Wm),WH=({isInteractionEnabled:e,column:t})=>{const[n,r]=M(!1),o=Gg(r$),i=Gg(NN);return{open:n,setOpen:r,handleOpenMenu:t=>{!e||VH(t)||i||r(!0)},toggleSortOrder:n=>{e&&!VH(n)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(n)&&(n.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var UH=class extends wI{constructor(e,t){super(e,t),this.boundingRectangle=ES(null),this.destroy=LS(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:n}=t;if(n.initialized){const{element:e}=this.options,n="function"==typeof e?e(t):e;if(!n)return;let r;const o=()=>{this.boundingRectangle.value=NI(n)},i=()=>{r||(r=setTimeout(()=>{o(),r=void 0},25))},a=new ResizeObserver(o);return a.observe(n),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:n}=e;if(!t)return n;const r=this.boundingRectangle.value;if(!r)return n;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,c=o.center.y-a/2,u=function(e,t,n){const r=uT({},t);return e.boundingRectangle.top+t.y<=n.top?r.y=n.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=n.top+n.height&&(r.y=n.top+n.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=n.left?r.x=n.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=n.left+n.width&&(r.x=n.left+n.width-e.boundingRectangle.right),r}(new eC(l,c,s,a),n,r);return u}};UH.configure=zC(UH);const GH=({invert:e})=>({dragOperation:t,droppable:n})=>{if(!n.shape)return null;const{shape:r}=t;if(!r)return null;const o=function(e){return e.sortable?.index}(n);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=r.current;return"left"===a&&l.left+.3*l.width<=n.shape.center.x||"right"===a&&l.right-.3*l.width>=n.shape.center.x?{id:n.id,value:1/Qw.distance(n.shape.center,s),type:XE.Collision,priority:YE.Normal}:null},KH=[UH.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],YH=(e,t)=>{const n=Gg(Lb),r=!Gg(Tb);return Rq({id:e.id,disabled:r,index:t,type:"item",accept:"item",group:"column",modifiers:KH,data:e,plugins:e=>[...e,XD.configure({feedback:"clone"})],collisionDetector:GH({invert:"rtl"===n})})},XH=({column:e,columnIndex:t,columnsLength:n})=>{const r=Gg(ez),o=Gg(Gb),i=Gg(Lb),a=Gg(Ab),s=Gg(z_),l=Gg(__),c=Gg(uz)[t],u=Kg(pB),d=Gg(fB(t)),p=Gg(Tb),f=Gg(Fb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=WH({isInteractionEnabled:p,column:e}),v=Kg(NN),{ref:y,isDragging:x}=YH(e,t),S=wH(e.id),w=Gg(Sb),C=w?T$:J$,E=e.isActivelySorted?zO[e.sortDirection]:void 0,I=h?Bm:void 0,A=h?"true":void 0,R=t===n-1,D=[0,e.pageColIdx],M={width:c,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return Yt.jsxs(y$,{"data-dragging":x,ref:y,headerStyle:{...r.header,...n$(r,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground:e.headerColor?.background??r.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,color:e.headerColor?.color??r.header.color,interactions:a,style:M,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Hm}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:n,handleOpenMenu:r}=e;if(t)switch(n.key){case Vm.C:vB(n);break;case Vm.Enter:case Vm.Space:r?.(n);break;default:yB(e)}else vm(n)})({evt:e,rootElement:o,cellCoord:D,setFocusedCellCoord:u,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&g$(n,t,r,o)})({evt:e,rootElement:o,cellCoord:D,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":I,"aria-expanded":A,"aria-haspopup":"true",children:[Yt.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),Yt.jsx(HH,{column:e,isLastColumn:R,setIsAdjustingWidth:v})]},e.id)},JH=()=>{const e=Gg(z_),t=Gg(ez),n=Gg(fb),r=Gg(Nb),o=Kg(OH),i=Gg(uz),a=k(null),s=$H(r,n);return P(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),Yt.jsx(Vh,{style:{visibility:s?"collapse":void 0},children:Yt.jsx(C$,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,n)=>Yt.jsx(XH,{column:t,columnIndex:n,columnsLength:e.length},t.id))})})};var ZH=z(JH);var QH=z(()=>{const e=Gg(gB),[t,n]=Yg(M_),{page:r,rowsPerPage:o}=t,i=Gg(Ob),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=Gg(j_),p=Gg(ez),f=Gg(Wj),h=Gg(fb),m=Gg(Xb),g=Gg(Ub),b=Gg(Gb),v=Gg(Nb),y=Gg(Lb),x=Gg(Ab),S=Gg(Jb),w=Gg(e$),C=Kg(ZF),E=Gg(Cb),I=Gg(Fb),A=k(!1),R=k(null),D=k(null),M=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=qb(h,v),q=T?f.scrollLeft??0:0,L=T?f.rowPartialHeight??0:0,N=O(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=O(r=>{n({...t,page:r}),e({keys:[["SNTable.Pagination.PageStatusReport",(r+1).toString(),l.toString()]],politeness:"assertive"})},[t,n,l,e]),_=O(r=>{n({...t,page:0,rowsPerPage:r}),e({keys:[["SNTable.Pagination.RowsPerPageChange",r.toString()]],politeness:"assertive"})},[e,t,n]);return(e=>{const t=Gg(Lb),n=Gg(Wj);P(()=>{const r=e.current;if(!r)return;const o=e=>{((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth,{scrollLeft:o}=n;let i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&e.preventDefault()})(e,"rtl"===t,r)},i=e=>{n.scrollLeft=e.currentTarget?.scrollLeft||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}},[e,t,n])})(R),dB(D,A),(()=>{const e=Gg(Gb),t=Gg(Fb),n=Gg(pB);Om(()=>{const r=c$(e,n);t.active?f$(r):(r?.blur(),p$(e))},[t.active,e])})(),bB(A,r),P(()=>{const e=R.current;e&&(e.scrollLeft=q,e.scrollTop=L)},[t,s,q,L]),uB(()=>{C({type:_O.UpdatePageRows,payload:{pageRows:u}})},[u]),hB(),CB(R),Yt.jsxs(cB,{children:[Yt.jsxs(I$,{ref:D,dir:y,onKeyDown:e=>{SB({evt:e,totalRowCount:s,page:r,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:I,isSelectionMode:E})},"data-testid":"sn-table",children:[Yt.jsx(RB,{}),Yt.jsxs(IB,{ref:R,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[Yt.jsxs(AB,{stickyHeader:!0,"aria-label":M,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[Yt.jsx(ZH,{}),Yt.jsx(FH,{updateShouldRefocus:N,tableWrapperRef:D})]}),Yt.jsx(t$,{})]}),Yt.jsx(zF,{footerContainer:i,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:I,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),Yt.jsx(tB,{isPagination:!0})]})});const eV=Og(0),tV=Og(e=>{const t=e(hb);return Math.min(ej,t)}),nV=Og(e=>{const t=e(hb);return t===ej?0:Math.floor(t/ej)}),rV=Og(e=>{const t=e(eV),n=e(nV);return Math.min(t,n)}),oV=Og(e=>({page:e(rV),rowsPerPage:e(tV),rowsPerPageOptions:[]}),(e,t,n)=>{const r=e(nV);t(eV,Math.max(0,Math.min(n,r)))}),iV=Og(null),aV=Og(null),sV=Og(e=>{const t=e(oV),n=e(hb);return Math.min(t.rowsPerPage,n-t.page*t.rowsPerPage)}),lV=Og(null),cV=Og(null),uV=Og(e=>e(__).atTop?2:1),dV=Og(e=>e(__).atTop?1:e(uV)+e(sV)),pV=Og(e=>l$(Boolean(e(Cb)),e(__))),fV=Og(e=>({firstBodyRowIdx:e(uV),totalsRowIdx:e(dV),allowedRows:e(pV)})),hV=Og(e=>({rootElement:e(Gb),totalsPosition:e(__),rowCount:e(sV),colCount:e(F_),columnWidths:e(uz)})),mV=Og(e=>({scrollToCell:e(lV),scrollableContainerElement:e(cV)})),gV=Og(e=>({keyboard:e(Fb),isInSelectionMode:e(Cb),selectionsAPI:e(Eb),isSelectionsEnabled:e(Mb)})),bV=Og(e=>({direction:e(Lb),isInteractionEnabled:e(Tb),paginationNeeded:e(V_),announce:e(gB),shouldRefocusRef:e(iV)})),vV=10,yV=e=>e.atTop?2:1,xV=(e,[t,n],r,o)=>{const i=yV(r);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${n}"]`);if(r.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${n}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${n}"]`):e.querySelector(`.sn-table-totals-row [data-col="${n}"]`)},SV=(e,t,n,r,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=n,d=c-yV(r),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,u),m=requestAnimationFrame(()=>{if(g())return;const e=((e,t)=>{if(!e||!t)return!1;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom&&n.left>=r.left&&n.right<=r.right})(xV(t,n,r,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},wV=(e,t,n,r,o,i)=>e<i?[t,e+1]:t<r?[t+1,o]:[t,e],CV=(e,t,n,r,o,i)=>e>o?[t,e-1]:t>n?[t-1,i]:[t,e],EV=(e,[t,n],r,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,c=a.top,u=r-1-a.bottom,d=o-1;switch(e.key){case Vm.Down:case Vm.Up:t=((e,t,n,r)=>e===Vm.Down&&t<r?t+1:e===Vm.Up&&t>n?t-1:t)(e.key,t,c,u);break;case Vm.Right:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?CV(e,t,n,0,o,i):wV(e,t,0,r,o,i))(n,t,c,u,0,d,i));break;case Vm.Left:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?wV(e,t,0,r,o,i):CV(e,t,n,0,o,i))(n,t,c,u,0,d,i));break;case Vm.Home:l?t=Math.max(c,t-vV):(BF(e)&&(t=c),n=0);break;case Vm.End:l?t=Math.min(u,t+vV):(BF(e)&&(t=u),n=d);break;case Vm.PageDown:t=Math.min(u,t+vV);break;case Vm.PageUp:if(l)t=Math.max(c,t-vV);else{const e=s?yV(s):1,n=t-e;t=n>0&&n<=vV?e:Math.max(c,t-vV)}}return[t,n]},IV=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},AV=[Vm.Home,Vm.End,Vm.PageUp,Vm.PageDown],RV=()=>{const e=k(!1),t=k(0),n=k(0),r=k(null),o=k(null),i=k(null),a=k(0),s=Kg(pB),l=Kg(ZF),c=Gg(ub)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=Gg(hV),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=Gg(fV),{scrollToCell:v,scrollableContainerElement:y}=Gg(mV),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=Gg(gV),{direction:E,announce:I,isInteractionEnabled:A,paginationNeeded:R,shouldRefocusRef:M}=Gg(bV),T=D(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let n=0;n<e.length;n++)t[n+1]=t[n]+(e[n]??0);return t})(h),[h]);P(()=>()=>{t.current+=1,n.current+=1,a.current+=1,r.current?.(),r.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const q=O((e,t,n,r)=>{const o=t=>{if(r&&!r())return void n?.(!1);const i=xV(u,e,d,p);if(i)return document.activeElement!==i&&o$(i),document.activeElement===i?void n?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void n?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):n?.(!1)};requestAnimationFrame(()=>{o(t)})},[u,d,p]),L=O((e,t)=>{const r=a.current+1;a.current=r;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==r)return;if(n.current!==t)return;if(u instanceof HTMLElement&&!u.isConnected)return;if(Date.now()>s||i>=5)return;const c=document.activeElement;c&&c!==document.body&&c!==document.documentElement||(i+=1,M&&(M.current=!0),o.current?.(),o.current=SV(v,u,e,d,p,y,10,()=>a.current===r&&n.current===t,()=>{q(e,300,()=>{M&&(M.current=!1)},()=>a.current===r&&n.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[q,u,p,v,y,M,d]),N=O(()=>(M&&(M.current=!0),t.current+=1,t.current),[M]),j=O(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=O((e,n)=>{const r=o=>{t.current===e&&(i.current?.(),i.current=SV(v,u,n,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=xV(u,n,d,p);i&&document.activeElement!==i&&o$(i),o>0?requestAnimationFrame(()=>{r(o-1)}):t.current===e&&M&&(M.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{r(300)})})},[u,d,p,v,M,y]),z=O((e,t)=>{if(!UF(e))return;vm(e),j(),n.current+=1;const o=n.current;a.current+=1,r.current?.(),r.current=null;const i=((e,t)=>yV(t)+e+(t.atBottom?1:0))(p,d),l=EV(e,t,i,f,E,g,d);IV(u),s(l);const[,c]=l,[,h]=t;return c!==h&&((e,t,n)=>{if(!e)return;const r=t[n]??0,o=t[n+1]??r,{scrollLeft:i,clientWidth:a}=e;r<i?e.scrollLeft=r:o>i+a&&(e.scrollLeft=o-a)})(y,T,c),M&&(M.current=!0),r.current=SV(v,u,l,d,p,y,10,()=>n.current===o,()=>{q(l,300,t=>{var n;M&&(M.current=!1),t&&(n=e.key,AV.includes(n))&&L(l,o)},()=>n.current===o)}),l},[u,d,p,f,E,v,s,g,y,M,q,j,T,L]),F=O(e=>{e.key===Vm.Esc?x.enabled&&!S&&(vm(e),x.blur?.(!0)):VF(e.key)&&vm(e)},[x,S]),$=O((e,t,n)=>{switch(e.key){case Vm.C:vm(e),A&&(e.ctrlKey||e.metaKey)&&Qm(e.currentTarget);break;case Vm.Enter:case Vm.Space:if(!A){vm(e);break}n?.(e);break;default:z(e,[0,t])}},[z,A]),B=O((t,r,o,i)=>{const a=[r+m,o];switch(t.key){case Vm.Space:if(vm(t),i.isSelectable&&C){e.current=!0;const n=N();l({type:_O.Select,payload:{cell:i,evt:t,announce:I}}),_(n,a)}break;case Vm.Enter:if(vm(t),e.current=!1,S){N(),s($O),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),n.current+=1;const t=n.current;q($O,300,()=>{M&&(M.current=!1)},()=>n.current===t)}break;case Vm.Esc:if(e.current=!1,S){vm(t);const e=N();w?.cancel(),_(e,a)}break;case Vm.C:vm(t),A&&(t.ctrlKey||t.metaKey)&&Qm(t.currentTarget);break;case Vm.Tab:{const e=t.shiftKey||!R;x.enabled&&S&&e&&(vm(t),bm(t.currentTarget,x,t.shiftKey));break}default:{const n=t.key===Vm.Left||t.key===Vm.Right,r=S||Boolean(w?.isModal())||e.current;if(n&&r){vm(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:_O.SelectMultiAdd,payload:{cell:i,evt:t,announce:I}});break}}},[m,z,C,l,I,S,w,x,R,A,N,_,s,v,y,q,M]),H=O(t=>{t.key===Vm.Space&&(e.current=!1),t.key===Vm.Shift&&l({type:_O.SelectMultiEnd})},[l]),V=O((e,t)=>{if(S)vm(e);else{if(e.key!==Vm.Space)return e.key===Vm.C?(vm(e),void(A&&(e.ctrlKey||e.metaKey)&&Qm(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,A]),W=O(e=>{j(),n.current+=1;const t=n.current;IV(u),s(e),x.enabled&&x.focus?.(),q(e,2,n=>{n&&L(e,t)},()=>n.current===t)},[u,s,x,q,j,L]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:B,handleBodyKeyUp:H,handleTotalsKeyDown:V,focusHeadCellOnClick:O(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:O((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:O(e=>{c&&W([b,e])},[W,b,c])}};var DV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function MV(e,t){return e===t||!(!DV(e)||!DV(t))}function kV(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!MV(e[n],t[n]))return!1;return!0}function TV(e,t){var n;void 0===t&&(t=kV);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var qV="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function PV(e){cancelAnimationFrame(e.id)}function LV(e,t){var n=qV();var r={id:requestAnimationFrame(function o(){qV()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var OV=-1;function NV(e){if(void 0===e&&(e=!1),-1===OV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),OV=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return OV}var jV=null;function _V(e){if(void 0===e&&(e=!1),null===jV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?jV="positive-descending":(t.scrollLeft=1,jV=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),jV}return jV}var zV=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function FV(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Wc(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Wc(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=TV(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=TV(function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=TV(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(_V()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&PV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=LV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Oc(t,e),t.getDerivedStateFromProps=function(e,t){return $V(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=NV();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(_V()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&PV(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?zV:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],I=this._getVerticalRangeToRender(),A=I[0],R=I[1],D=[];if(r>0&&g)for(var M=A;M<=R;M++)for(var k=w;k<=E;k++)D.push(C(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,k)}));var T=a(this.props,this._instanceProps),q=s(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Ln({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(c||u||"div",{children:D,ref:l,style:{height:T,pointerEvents:x?"none":void 0,width:q}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(H),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var $V=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},BV=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},HV=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},VV=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var c=a+1;c<=n;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},WV=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?UV(e,t,n,i,0,r):GV(e,t,n,Math.max(0,i),r)},UV=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=VV(e,t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},GV=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&VV(e,t,r,n).offset<o;)r+=a,a*=2;return UV(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},KV=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=VV(e,t,n,i),c="column"===e?HV(t,i):BV(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=u+s?"auto":"center"),r){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);default:return o>=d&&o<=u?o:d>u||o<d?d:u}},YV=FV({getColumnOffset:function(e,t,n){return VV("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return WV("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=VV("column",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=VV("column",e,c,r).size;return c},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:BV,getEstimatedTotalWidth:HV,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return KV("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return KV("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return VV("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return WV("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=VV("row",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=VV("row",e,c,r).size;return c},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),XV=function(e,t){return e};function JV(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,Wc(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Wc(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=TV(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=TV(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=TV(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(_V()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&PV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=LV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Oc(t,e),t.getDerivedStateFromProps=function(e,t){return ZV(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?NV():0:l.scrollHeight>l.clientHeight?NV():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(_V()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&PV(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?XV:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],I=w[1],A=[];if(c>0)for(var R=E;R<=I;R++)A.push(C(t,{data:u,key:p(R,u),index:R,isScrolling:b?y:void 0,style:this._getItemStyle(R)}));var D=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Ln({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:A,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?D:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(H),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ZV=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},QV=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},eW=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=QV(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},tW=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&QV(e,n,t).offset<r;)n+=i,i*=2;return eW(e,t,Math.min(n,o-1),Math.floor(n/2),r)},nW=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},rW=JV({getItemOffset:function(e,t,n){return QV(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:nW,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=QV(e,t,o),p=nW(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===n&&(n=r>=h-u&&r<=f+u?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?eW(e,t,o,0,n):tW(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=QV(e,t,r),d=n+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=QV(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function oW(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var iW=["style"],aW=["style"];function sW(e,t){var n=e.style,r=On(e,iW),o=t.style,i=On(t,aW);return!oW(n,o)&&!oW(r,i)}const lW=Og(0),cW=Og(0),uW=Og(0),dW=Og(e=>e(lW)+e(cW)),pW=Og(e=>{const t=e(Ub),n=e(V_),r=t.height-(n?41:0);return{width:t.width,height:r}}),fW=Og(e=>{const t=e(pW),n=e(jN),r=e(_N);return{width:t.width-r,height:t.height-n}}),hW=Og(e=>{const t=e(fW),n=e(dW),r=e(uW);return Math.min(t.height-n,r)}),mW=Og(-1),gW=Hx(e=>Og(t=>t(mW)===e)),bW=({style:e})=>Yt.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var vW=w.memo(bW,sW);const yW=Og(e=>{const t=e(fW),n=e(oz),r=e(dW),o=e(uW)+r,i=e(sV)*n+r;return o<2*t.height?o:i}),xW=Og(e=>e(yW)<=e(pW).height),SW=()=>{},wW=e=>{e.preventDefault()};const CW=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:c,onKeyDown:u,onKeyUp:d,onCellClick:p}=r,f=Gg(gW(t)),h=Kg(mW),m=Gg(ez),g=Gg(Lb),b=Gg(Db),v=Gg(Tb),y=Gg(e$),x=Gg(ub),S=Gg(xW),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:I,cellSelectionState:A}=function(e){const t="object"==typeof e,n=Gg(Mb),r=Kg(ZF),o=Gg(QF(e));if(IH(e),t&&n){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=CH(wW,e,r,SW);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),R=((e,t,n,r)=>{const o=k(null),i=n&&(!n.isNumeric||n.isDual),a=n?.isTotalRow??!1,s=O(n=>{const o=n.contentBoxSize.at(0)?.blockSize;o&&i&&r(o,e,t,a)},[a,t,r,e,i]);return F$({ref:o,callback:s}),o})(t,e,w,s),D=i[e]?.isDim?m.dimension.values:m.measure.values,M=wH(i[e].id);if("object"==typeof w){const{style:r,isBlank:o}=((e,t,n,r,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS"),l=a("TLV_2710_TABLE_BLANK_TAG"),c=(e.isNull||!(s&&t.isDim))&&JN(e.qAttrExps,t.qAttrExprInfoIDs,l);let u=DH(o,i,e);u=s?i.subTotalRow:u,u=AH(u,i,e,t.isDim);const d=e.isNull||s&&t.isDim?u:ZN(u,e.qAttrExps,t.qAttrExprInfoIDs);return r!==jO.Selected||s?r!==jO.Disabled||s?n?{style:{...d,...i.grid.hoverColors},isBlank:c}:{style:d,isBlank:c}:{style:{...d,color:n?i.grid.hoverColors?.color:d.color,background:`${bN}, ${n?i.grid.hoverColors?.background:d.background}`},isBlank:c}:{style:{...d,...i.selectedColors},isBlank:c}})(w,i[e],a&&f,A,D,m,x),s={rowindex:t,columnindex:e},k=((e,t)=>e.representation.type===WP.Image&&"fitHeight"===e.representation.imageSize?CN(t,e.representation):e.align)(w,g),T=n=>{v&&p?.(t,e),C?.(n)},q=u?n=>{u(n,t,e,w)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${A} ${Hm}`,tabIndex:-1,style:{...n,...r,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:RN(g,w.isLastColumn,y),borderLeftWidth:DN(g,w.isLastColumn,y),justifyContent:k,borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:M},onMouseDown:T,onMouseUp:I,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:q,onKeyUp:d,title:b&&!o?w.representation.text:void 0,...s,children:Yt.jsx(SH,{cellSelectionState:A,hideTickIcon:!!w.isTotalRow,children:Yt.jsx(vH,{forwardRef:m.contentStaticLineCount||1===l?void 0:R,cell:w,style:r,isBlank:o,indentation:QN(w,i[e],x),justifyContent:k,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return Yt.jsx(vW,{style:{...n,...D,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:M}})};var EW=z(CW,sW);const IW=wv(Og(async e=>{const t=e(fb),n=e($b),r=e(oV).page,{qDataPages:o}=t.qHyperCube;if(0!==r||0===o.length){const e=r*Math.min(ej,t.qHyperCube.qSize.qcy);if(n&&"getHyperCubeData"in n)return n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),AW=Og(e=>{const t=e(sV),n=e(fW),r=e(oz);return Math.min(t,Math.ceil(n.height/r))}),RW=Og(e=>{const t=e(uz),n=e(fW);return t.reduce((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),DW=e=>{const t=k(e);return t.current=e,t},MW=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,kW=e=>-1===e.qElemNumber||!!e.qIsTotalCell,TW=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},qW=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some(e=>!e[t])},PW=(e,t,n,r,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,c)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,n,r,o,i,a,s,l,c)=>{const{qSize:u}=a.qHyperCube,d=r.qTop+n,p=o+n,f=e[p]??[],h=t.some(kW);return t.forEach((e,t)=>{const n=t+r.qLeft;if(f.at(n))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w,measureMinMax:C,qNumFormat:E,qIsAutoFormat:I,formattedNullValueText:A}=i[n],R=!m&&e.qIsNull,D=m&&I_(e,m),M=R||D?E_(m,e,a):e.qText,k=R?VO(M):HO(e),T=HO(e)&&!VO(e.qText??"");f[n]={id:OP(),...e,align:x_(k,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h&&!D,isTotalRow:h,pageRowIdx:p,pageColIdx:n,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:n===u.qcx-1,isNumeric:k,isDual:T,isNull:(!R||!k)&&I_(e,m),qNumFormat:E,qIsAutoFormat:I,formattedNullValueText:A,representation:Vj({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,measureMinMax:C,getText:()=>M,direction:c,enabledFeatures:{[WP.Image]:!0,[WP.Indicator]:!0,[WP.MiniChart]:!0,[WP.Bar]:!m&&s.flags.isEnabled("VNA-977-TABLE-BARS")}})},l(f[n],d,n)}),{row:f,pageRowIdx:p}})(n,l,c,e.qArea,u,r,o,i,a,s);n[p]=d})})},LW=({gridState:e,setEstimatedCellHeight:t})=>{const n=Gg(fb),r=Gg(Xb),o=Gg($b),i=Gg(cb),a=Gg(Lb),s=Gg(oV),l=Gg(IW),c=Gg(z_),u=Gg(sV),d=Gg(AW),p=Gg(RW),f=k([]),h=O((e,r)=>{const o=Array.isArray(r)?r.slice(0,u):(e=>Array(e).fill(void 0))(u);return PW(e,s,o,c,n,i,t,a),f.current=o,o},[u,s,c,n,i,t,a]),[m,g]=M(()=>h(l??[]));Om(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const n=Gg(db),r=k(new Set),o=k(new Set),i=k(new Set),a=DW(e),s=DW(t),l=D(()=>({enqueue:e=>{const t=MW(e);i.current.has(t)||(r.current.add(e),i.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),o.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),n=await a.current(t);o.current.has(e)&&s.current(n)}catch(t){e.forEach(e=>{i.current.delete(MW(e))}),n.error({msg:"Failed to fetch pages",payload:t})}finally{o.current.delete(e)}}},75))},clear:()=>{r.current.clear(),o.current.clear(),i.current.clear()}}),[n,a,s]);return l})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=O((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(qW(f.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(e)}},[b]),y=O((e,t,n,r)=>{for(let o=t;o<t+r;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(TW(f.current,e,t,n,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(t)}}},[b,s]);return P(()=>{if(void 0===l)return;const{qcx:t,qcy:r}=n.qHyperCube.qSize,o=e.current.overscanRowStartIndex,i=e.current.overscanColumnStartIndex,a=o+s.page*s.rowsPerPage,c=t-i,u=s.rowsPerPage-o,f=Math.min(100,c,t,p+5),h=Math.min(100,u,r,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,n,d,p,s,b,y,e,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},OW=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},NW=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,jW=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=Gg(ez),i=Gg(uz),{estimateLineCount:a}=Mm(o.dimension.values),s=zN(o.dimension.values.fontSize),l=e||t||1===n;return O((e,t,o)=>{if(l||e.representation.type===WP.Image||e.isNumeric&&!e.isDual)return;const c=(e=>Math.max(0,e-24-1))(i[o]),u=e.representation.text?a({text:e.representation.text,maxWidth:c,isNumeric:!1}):1,d=Math.min(n,Math.max(1,u));r(d*s,t,o,e.isTotalRow??!1)},[l,i,a,n,s,r])},_W=({isStaticNbrOfLines:e,minRowHeight:t,state:n,staticRowHeight:r=0})=>{const o=Gg(Wj);j(()=>{const i=e?r:((e,t)=>{const n=0===t?0:e/t;return Math.ceil(n)})(n.sumHeight,n.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,n,r,o])},zW=({isSnapshot:e,gridRef:t})=>{const n=Gg(ez),r=Gg(sV),[o,i]=M(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=Gg(rz),s=Gg(oz),l=Gg(iz),c=!!n.contentStaticLineCount,u=Math.max(8e6/r,s,l)-9,d=u+9,p=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(u/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:n})=>n?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:c});(({gridRef:e,setState:t})=>{const n=Gg(fb),r=Gg(oV),o=Gg(uz),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;Om(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),Om(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:n})=>{const r=Gg(oz),o=Gg(iz);return O((i,a,s,l=!1)=>{$(()=>{e(e=>{const c=l?o:r,u=Math.max(c,i+9),d=Math.min(t,u),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!NW(p.get(s),d))return e;const f={...e},h=e.rowHeights.get(a);p.set(s,d);const m=void 0===h||d>=h?d:OW(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,n.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,r,o,n])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>O((o,i,a,s)=>{e||t||1===n||r(o,i,a,s)},[e,t,n,r]))({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),g=jW({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=O(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return _W({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},FW=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const n=O(e=>{const n=e.contentBoxSize.at(0)?.blockSize;void 0!==n&&t(n)},[t]);F$({ref:e,callback:n})};let $W=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const BW=({loadRows:e,loadColumns:t,gridState:n})=>{const r=Gg(Wj),o=Gg(fb),i=Gg(oV),a=Gg(sV);return O(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:c,overscanRowStopIndex:u,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},n,r)=>{let o,i;return o=r>t?$W.Down:r<t?$W.Up:$W.None,i=n>e?$W.Right:n<e?$W.Left:$W.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,c);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=c,n.current.overscanRowStopIndex=u,c>a)return;const b=s,v=c+i.page*i.rowsPerPage,y=l-s+1,x=u-c+1;if(r.visibleLeft=d,r.visibleWidth=p-d+1,r.visibleTop=f+i.page*i.rowsPerPage,r.visibleHeight=h-f+1,r.page=i.page,r.rowsPerPage=i.rowsPerPage,m===$W.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===$W.Up){const t=x+25,n=i.page*i.rowsPerPage,r=Math.max(n,v-25);e(b,r,y,t)}if(g===$W.Right){const e=o.qHyperCube.qSize.qcx-b,n=y+5,r=Math.min(e,n);t(b,v,r,x)}else if(g===$W.Left){const e=Math.max(0,b-5),n=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,n,x)}},[n,a,i.page,i.rowsPerPage,r,e,o.qHyperCube.qSize.qcx,t])};const HW=({columnIndex:e,data:t,rowIndex:n})=>{const r=t.rowsInPage[n]?.[e];return r?.id??`${n}-${e}`},VW=(e,t)=>{if(!e||!t)return;const n=e.scrollHeight-e.clientHeight,r=Math.round(n*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==r&&(e.scrollTop=r)},WW={overflow:"hidden",willChange:"auto"},UW=F((e,t)=>{const{handleBodyKeyDown:n,handleBodyKeyUp:r,focusBodyCellOnClick:o}=RV(),i=Gg(z_),a=Gg(fW),s=Kg(uW),l=Gg(hW),c=Gg(Wj),u=Gg(fb),d=Gg(Lb),p=Gg(uz),f=Gg(sV),h=Gg(cV),m=Kg(lV),g=k(null),b=k(null),v=k(null),y=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=k(0),S=!!KN(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:I}=zW({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:A,loadRows:R,loadColumns:M}=LW({gridState:y,setEstimatedCellHeight:C}),T=BW({loadRows:R,loadColumns:M,gridState:y}),q=kB(),L=D(()=>({rowsInPage:A,columns:i,isHoverEnabled:S,lineClamp:I,setMeasuredCellHeight:w,resizeObserverTaskScheduler:q,onKeyDown:n,onKeyUp:r,onCellClick:o}),[A,i,S,I,w,q,n,r,o]);return j(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=Kg(ZF),{shouldRefocusRef:n}=Gg(bV),r=Gg(Gb),o=Gg(aV);P(()=>{t({type:_O.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=O(()=>{n&&(n.current=r.contains(document.activeElement))},[n,r]);TB({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(A),B(t,()=>({interpolatedScrollTo:(e,t)=>{const n=(v.current?.clientHeight??l)-l,r=Math.round(n*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:r,scrollLeft:t})}}),[v,l,f]),P(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),VW(h,b.current)}),()=>{m(null)}),[h,m]),FW(v,s),Yt.jsx(YV,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:WW,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:L,onItemsRendered:T,itemKey:HW,className:"sn-table-body",direction:d,children:EW})});var GW=z(UW);const KW=({children:e})=>{const t=Gg(fz),n=Gg(yW);return Yt.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n},children:e})},YW=(e,t)=>{const n=k(null),r=Gg(uz);j(()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)},[t,n,e,r.length]);const o=O(n=>{const r=n.contentBoxSize.at(0)?.blockSize;r&&t(r+9,e)},[e,t]);return F$({ref:n,callback:o}),n},XW=Ec("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:n,applicableStyle:r,color:o})=>({...r,background:n,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),JW=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Gg(ez),c=Gg(Lb),u=Gg(Ab),d=Gg(e$),p=Kg(NN),f=Gg(__),h=Gg(Tb),m=Gg(uz)[e],g=Gg(Fb),b=Gg(fB(e)),v=r[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=WH({isInteractionEnabled:h,column:v}),C=Gg(Sb),E=YW(e,i),I=r.length-1===e,A=C?T$:J$,{ref:R,isDragging:D}=YH(v,e),M=wH(v.id),k=b&&!g.enabled&&h?0:-1,T=a?t=>{a(t,e,S)}:void 0;return Yt.jsxs(XW,{"data-dragging":D,ref:R,className:`sn-table-cell ${Hm}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...n$(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:RN(c,I,d),borderLeftWidth:DN(c,I,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:M},interactions:u,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:k,onKeyDown:T,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[Yt.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),Yt.jsx(HH,{column:v,isLastColumn:I,onColumnResize:o,setIsAdjustingWidth:p})]})},ZW=e=>{const[t,n]=M(new Map);Om(()=>{n(new Map)},[e.length]);const r=O((e,t)=>{n(n=>NW(n.get(t),e)?new Map(n).set(t,e):n)},[]);return{rowHeight:D(()=>OW(t),[t]),setMeasuredCellHeight:r}},QW=(e,t)=>{B(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},eU=e=>{const t=Gg(Xb),n=Gg(fb),r=Gg(oV),o=Gg(uz);Om(()=>{e.current?.resetAfterIndex(0,!1)},[n,r,e,o,t])},tU={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},nU=F((e,t)=>{const{columResizeHandler:n}=e,r=Gg(z_),o=Gg(fW),i=Kg(lW),a=w.useRef(null),s=k(null),l=Gg(tz),c=Gg(fb),u=Gg(Nb),d=Gg(Lb),p=Gg(uz),{rowHeight:f,setMeasuredCellHeight:h}=ZW(r),m=$H(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=RV();return QW(t,a),eU(a),FW(s,i),Yt.jsx(rW,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...tU,...m?{display:"none"}:void 0},itemCount:r.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>r[e].id,itemData:{columns:r,columResizeHandler:n,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:JW})});var rU=z(nU);const oU=F((e,t)=>{const{children:n,onScroll:r}=e,o=Gg(Lb),i=Gg(kb),{width:a,height:s}=Gg(pW),l=Kg(cV),c=O(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return Yt.jsx("div",{"data-testid":"scrollable-container",ref:c,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:r,dir:o,tabIndex:-1,children:n})}),iU=({children:e})=>{const t=Gg(Lb),n=Gg(fW);return Yt.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:n.width,height:n.height},children:e})},aU=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Gg(ez),c=Gg(fb),u=Gg(Lb),d=Gg(Db),p=Gg(Tb),f=Gg(e$),h=Gg(xW),m=YW(e,i),g=r[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=r[e],y=c.qHyperCube.qSize.qcx-1===e,x=wH(r[e].id),S=a?t=>{a(t,e)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${Hm}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...n$(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:RN(u,y,f),borderLeftWidth:DN(u,y,f),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:h&&o.atBottom||o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:b,textAlign:b,boxSizing:"border-box",cursor:"default",opacity:x},children:Yt.jsx(k$,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},sU=F((e,t)=>{const{totals:n}=e,r=Gg(z_),o=Gg(fW),i=Kg(cW),a=k(null),s=k(null),l=Gg(nz),c=Gg(Lb),u=Gg(fb),d=Gg(uz),{rowHeight:p,setMeasuredCellHeight:f}=ZW(r),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=RV();return QW(t,a),eU(a),FW(s,i),Yt.jsx(rW,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:tU,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:r,totals:n,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:c,children:aU})});var lU=z(sU);const cU=(e,t,n)=>{const r=Gg(Lb),o=Gg(Wj);return O(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,c=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,r),u=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=u,o.scrollLeft=c,n.current?.interpolatedScrollTo(Number.isNaN(u)?0:u,c),e.current?.scrollTo(c),t.current?.scrollTo(c)},[o,n,e,t,r])};var uU=z(()=>{const e=Gg(__),t=k(null),n=k(null),r=k(null),o=k(null),i=cU(n,r,o),a=O(()=>{t.current&&(t.current.scrollTop=0)},[t]);hB(),(e=>{const t=Gg(F_),n=Gg(oV),r=Gg(Xb),o=Gg(sV);P(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),P(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[n,o,r,e])})(t),CB(t);const s=Yt.jsx(lU,{ref:r,totals:e},"totals");return Yt.jsxs(cB,{children:[Yt.jsx(oU,{ref:t,onScroll:i,children:Yt.jsxs(KW,{children:[Yt.jsxs(iU,{children:[Yt.jsx(rU,{ref:n,columResizeHandler:a}),e.atTop?s:null,Yt.jsx(GW,{ref:o}),e.atBottom?s:null]}),Yt.jsx(t$,{})]})}),Yt.jsx(tB,{isPagination:!1})]})});const dU=()=>{const e=Gg(fb),t=Gg(Ub),n=Gg(Ab),{paginationNeeded:r,totalRowCount:o,totalColumnCount:i,totalPages:a}=Gg(j_),s=Gg(Xb),l=Gg(Jb),c=Gg(Fb),[u,d]=Yg(oV),p=k(null),f=k(!1),h=Kg(iV),m=Kg(aV);P(()=>{h(f)},[h]);const g=w.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=RV();return(()=>{const e=Gg(Gb),{keyboard:t}=Gg(gV),n=Gg(pB),r=Gg(__),o=Gg(sV),{scrollToCell:i}=Gg(mV),{shouldRefocusRef:a}=Gg(bV),s=k({focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}),l=k(null),c=k(null);j(()=>{s.current={focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}},[n,r,o,i,e]),P(()=>{let e=!1;const{focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:u}=s.current;if("function"==typeof u.querySelector){if(t.active){const[t,a]=n,d=r.atTop?2:1;if(t>=d&&t<d+o){null!==c.current&&(cancelAnimationFrame(c.current),c.current=null),i?.(t-d,a);const n=t=>{if(e)return;const r=xV(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);r&&document.activeElement!==r&&o$(r),r&&document.activeElement===r||t>0&&(l.current=requestAnimationFrame(()=>{n(t-1)}))};l.current=requestAnimationFrame(()=>{e||n(5)})}else{const e=xV(u,n,r,o);e&&o$(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),c.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const n=xV(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);n?.blur(),IV(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==c.current&&(cancelAnimationFrame(c.current),c.current=null)}}},[t.active,e,a])})(),dB(p,f),Yt.jsxs(I$,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[Yt.jsx(RB,{}),Yt.jsx(uU,{}),Yt.jsx(zF,{paginationNeeded:r,handleChangePage:e=>{d(e)},pageInfo:u,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:c,translator:l,theme:s,interactions:n,rect:t,layout:e})]})};var pU=z(dU);const fU=e=>{const t=e.get($b),n=e.get(_b),r=e.get(pb),o=e.get(Lb);a(()=>{r&&t&&(n?function(e){const t=e.get(Lb),n=e.get(Yb),r=mz(t);n.render(Yt.jsx(yi,{stylisPlugins:"rtl"===t?[PO]:void 0,children:Yt.jsx(Ac,{theme:r,children:Yt.jsx($g,{store:e,children:Yt.jsx(hz,{children:Yt.jsx(QH,{})})})})}))}(e):function(e){const t=e.get(Lb),n=e.get(Yb),r=mz(t);n.render(Yt.jsx(w.StrictMode,{children:Yt.jsx(Ac,{theme:r,children:Yt.jsx($g,{store:e,children:Yt.jsx(hz,{children:Yt.jsx(pU,{})})})})}))}(e))},[r,n,e,t,o])};function hU(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=n.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),c={top:r.y+i.height+(t.atTop?s.height:0),bottom:r.y+r.height-(t.atBottom?s.height:0)},u=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(l,c),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(l,c),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(l,c,u);return{visibleRowStartIndex:u,visibleRowEndIndex:d,rowPartialHeight:p}}const mU=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},gU=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const bU=(e,t,n,r,o)=>{if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||A_.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},vU=(e,t,n,r,o)=>{if(r&&!r.isMultiPage)return r;const i=g_(e,r);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=hU(n,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:bU(a,o,e,t,r),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=n?.getBoundingClientRect(),o=n?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:c=0}=t,u=l*c,d=a-u,p=d+s-1,f=mU(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+u,visibleRowEndIndex:p+u};const g=r.y+r.height,b=(gU(h,m,g)?d:d+1)+u;let v=p+u;const y=mU(p,o),x=y?.getBoundingClientRect();return y&&x&&(gU(x,m,g)||(v=p-1+u)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:bU(s,a,e,t,r),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},yU=({store:e})=>{const t=e.get(fb),n=e.get($b),r=e.get(Gb),o=e.get(Wb),i=e.get(Nb),a=e.get(_b);u(async s=>{const l=s;if(!l.snapshotData||!n||l.snapshotData.content)return l;if("getHyperCubeData"in n){const s=e.get(Wj),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=vU(t,s,r,i,a);l.qHyperCube.qDataPages=await n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),d(()=>({getViewState:()=>vU(t,e.get(Wj),r,i,a)}),[t,e,r,a])},xU={version:JSON.stringify("6.69.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[],accessibleHeader:!1};var SU=e=>({properties:{initial:xU},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>vv({...t,env:e}),exportProperties:pv,exploration:IP(e)});const wU=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),CU=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});
|
|
109
|
+
*/var YL=(GL||(GL=1,function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+n+"|"+u+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+n+"|"+u+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+n+"|"+u+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,I=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+c+v+"[^;}]+;?)","gi"),R=new RegExp("("+c+"[^\\}]*?})","gi"),D=new RegExp("("+a+")ltr","gi"),M=new RegExp("("+a+")rtl","gi"),k=new RegExp(l+"(left)"+b+y+v,"gi"),T=new RegExp(l+"(right)"+b+y+v,"gi"),q=new RegExp(l+"(left)"+x,"gi"),P=new RegExp(l+"(right)"+x,"gi"),L=/(:dir\( *)ltr( *\))/g,O=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),B=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),H=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,n){var r,o;return t.split("(").length>t.split(")").length?e:("%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n)}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter(function(e){return e}),o=n.slice(6,10).filter(function(e){return e}),i=n[10]||"";return t+(o.length?Z(r)+" / "+Z(o):Z(r))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,n){return t+ee(n)}function ne(e,t,n,r,o){return t+n+ee(r)+o}function re(e,t,n,r,o){return t+n+r+ee(o)}return{transform:function(n,o){var i=new r(A,"`NOFLIP_SINGLE`"),a=new r(R,"`NOFLIP_CLASS`"),s=new r(I,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(L,"$1`TMPLTR`$2").replace(O,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(n=n.replace(q,"$1"+e).replace(P,"$1left").replace(w,"right")),n=n.replace(D,"$1"+e).replace(M,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(T,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(V,Q).replace(W,te).replace(U,re).replace(G,re).replace(K,te).replace(Y,ne).replace(X,ne).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(B,J).replace(H,J),n=i.detokenize(a.detokenize(s.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(KL,KL.exports)),KL.exports),XL=Ht(YL),JL="comm",ZL="rule",QL="decl",eO=Math.abs,tO=String.fromCharCode;function nO(e){return e.trim()}function rO(e,t,n){return e.replace(t,n)}function oO(e,t){return 0|e.charCodeAt(t)}function iO(e,t,n){return e.slice(t,n)}function aO(e){return e.length}function sO(e,t){return t.push(e),e}var lO=1,cO=1,uO=0,dO=0,pO=0,fO="";function hO(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:lO,column:cO,length:a,return:"",siblings:s}}function mO(){return pO=dO>0?oO(fO,--dO):0,cO--,10===pO&&(cO=1,lO--),pO}function gO(){return pO=dO<uO?oO(fO,dO++):0,cO++,10===pO&&(cO=1,lO++),pO}function bO(){return oO(fO,dO)}function vO(){return dO}function yO(e,t){return iO(fO,e,t)}function xO(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 SO(e){return nO(yO(dO-1,EO(91===e?e+2:40===e?e+1:e)))}function wO(e){for(;(pO=bO())&&pO<33;)gO();return xO(e)>2||xO(pO)>3?"":" "}function CO(e,t){for(;--t&&gO()&&!(pO<48||pO>102||pO>57&&pO<65||pO>70&&pO<97););return yO(e,vO()+(t<6&&32==bO()&&32==gO()))}function EO(e){for(;gO();)switch(pO){case e:return dO;case 34:case 39:34!==e&&39!==e&&EO(pO);break;case 40:41===e&&EO(e);break;case 92:gO()}return dO}function IO(e,t){for(;gO()&&e+pO!==57&&(e+pO!==84||47!==bO()););return"/*"+yO(t,dO-1)+"*"+tO(47===e?e:gO())}function AO(e){for(;!xO(bO());)gO();return yO(e,dO)}function RO(e){return function(e){return fO="",e}(DO("",null,null,null,[""],e=function(e){return lO=cO=1,uO=aO(fO=e),dO=0,[]}(e),0,[0],e))}function DO(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y=0,x="",S=o,w=i,C=r,E=x;g;)switch(h=y,y=gO()){case 40:108!=h&&58==oO(E,d-1)?(v++,E+="("):E+=SO(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=SO(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=tO(y);break}E+=wO(h);break;case 92:E+=CO(vO()-1,7);continue;case 47:switch(bO()){case 42:case 47:sO(kO(IO(gO(),vO()),t,n,l),l),5!=xO(h||1)&&5!=xO(bO()||1)||!aO(E)||" "===iO(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=aO(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=tO(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=rO(E,/\f/g,"")),f>0&&(aO(E)-d||0===m)&&sO(f>32?TO(E+";",r,n,d-1,l):TO(rO(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(sO(C=MO(E,t,n,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)DO(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===oO(E,3))break;case 108:if(97===oO(E,2))break;default:u=0;case 100:case 109:case 115:}u?DO(e,C,C,r&&sO(MO(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,r?S:w):DO(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+aO(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==mO())continue;switch(E+=tO(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(aO(E)-1)*b,b=1;break;case 64:45===bO()&&(E+=SO(gO())),p=bO(),u=d=aO(x=E+=AO(vO())),y++;break;case 45:45===h&&2==aO(E)&&(m=0)}}return i}function MO(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=iO(e,p+1,p=eO(g=a[m])),x=e;v<h;++v)(x=nO(g>0?f[v]+" "+y:rO(y,/&\f/g,f[v])))&&(l[b++]=x);return hO(e,t,n,0===o?ZL:s,l,c,u,d)}function kO(e,t,n,r){return hO(e,t,n,JL,tO(pO),iO(e,2,-2),0,r)}function TO(e,t,n,r,o){return hO(e,t,n,QL,iO(e,0,r),iO(e,r+1,-1),r,o)}function qO(e,t,n){switch(e.type){case"@import":case QL:case JL:return e.return=e.return||e.value;case ZL:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===JL&&(e.children=e.value)})}var r=function(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}(Array.prototype.concat(e.children),qO);return aO(r)?e.return=e.value+"{"+r+"}":""}function PO(e,t,n,r){if("@keyframes"===e.type||"@supports"===e.type||e.type===ZL&&(!e.parent||"@media"===e.parent.type||e.parent.type===ZL)){var o=XL.transform(qO(e));e.children=o?RO(o)[0].children:[],e.return=""}}Object.defineProperty(PO,"name",{value:"stylisRTLPlugin"});const LO=Hx(({options:e,...t})=>Og(Dm(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);class OO{#y={on:new Map,once:new Map};#x=10;#S(e){this.listenerCount(e)>this.#x&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#w(e,t,n){const r=this.#y[e].get(t)??new Set;r.add(n),this.#y[e].set(t,r),this.#S(t)}setMaxListeners(e){this.#x=e}on(e,t){this.#w("on",e,t)}once(e,t){this.#w("once",e,t)}off(e,t){this.#y.on.get(e)?.delete(t),this.#y.once.get(e)?.delete(t)}emit(e,...t){this.#y.on.get(e)?.forEach(e=>{e(...t)}),this.#y.once.get(e)?.forEach(e=>{e(...t)}),this.#y.once.delete(e)}listenerCount(e){return(this.#y.on.get(e)?.size??0)+(this.#y.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#y.on.clear(),this.#y.once.clear()):(this.#y.on.delete(e),this.#y.once.delete(e))}}const NO=Og(()=>new OO);let jO=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),_O=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),zO=function(e){return e.A="ascending",e.D="descending",e}({}),FO=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const $O=[0,0],BO=e=>"number"==typeof e&&!Number.isNaN(+e),HO=e=>BO(e.qNum),VO=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),WO=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,UO=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),GO=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},KO=(e,t,n)=>{const r={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,c=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{color:s.color,t:.5-c}:{color:l.color,t:c-.5}:a.gradient?{color:s.color,t:1-(.5+c/2)}:i.gradient?{color:l.color,t:c/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return se(e.localPaletteColors[t].color??"").blend(se(s.color??""),s.t)},YO=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort((e,t)=>e.value-t.value),e.limits=n.map(e=>({...e,value:UO(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:GO(r,t,n)}))),r},XO=(e,t,n,r)=>{const o=YO(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=r&&t<i){n=KO(e,a,t);break}r=i}return n})(o,t);return a},JO=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!BO(e));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!BO(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},ZO=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=JO(e,t),o=Math.abs(t);return{min:n??t-o,max:r??t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!BO(t))return 0;let a=n&&BO(n)?Math.min(n,t):0;const s=r.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:o}},QO=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),eN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),tN=F((e,t)=>Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Yt.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),Yt.jsx("use",{fillRule:"evenodd"})]})),nN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),rN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),oN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),iN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M2 7.5h12v1H2z"})})),aN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),sN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),lN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),cN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),uN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),dN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),pN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),fN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),hN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),mN={m:uN,"ï":lN,R:hN,S:dN,T:pN,U:fN,P:sN,Q:oN,"è":F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":nN,"©":tN,"23F4":rN,2013:cN,"&":aN,add:QO,"minus-2":iN,dot:eN},gN=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=ZO(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,n.limitPaletteColorIndex))return GO(o,n.limitPaletteColorIndex,r);const a=UO(n.limitRange,t);return XO(o,a,n.limitRange,r)})(o,t,i,r),{paletteColors:s}=o.segments,l=i?.limitPaletteColorIndex||0,c=s[l]?.icon??"dot",{indicator:u}=e;let d=u?.position||"right";return"rtl"===n&&(d="right"===d?"left":"right"),{color:a,iconKey:c,position:d}},bN=(lm().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),vN=4/3,yN="12px",xN="600",SN="Source Sans Pro, sans-serif",wN={height:"auto",fontSize:yN,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"}},CN=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,EN=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",IN=(e,t,n)=>{if(!t&&"rtl"===n){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},AN=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,RN=(e,t,n)=>"rtl"===e||t&&!n?"0px":"1px",DN=(e,t,n)=>"rtl"===e?t&&!n?"0px":"1px":"0px",MN=24,kN=Ec("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),TN=Ec(md,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:n,isPagination:r})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===n?EN(e,r):void 0})),qN=Ec(md,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:n})=>{const r=e?"24px":"";let o;switch(n){case"left":o={gridTemplateColumns:t?`20px 2fr ${r}`:`1fr ${r}`};break;case"center":{const n=e||t;o={gridTemplateColumns:n?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:n?2:1},[`& .${Fm}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${r} 2fr 20px`:`${r} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${Fm}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),PN=Ec(md,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),LN=Ec(md,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),ON=Ec(Iu,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:n,order:r})=>({padding:"4px !important",width:"fit-content",height:"auto",background:n?t:void 0,"&:hover":{background:e},color:"inherit",order:r})),NN=Og(),jN=Og(0),_N=Og(0),zN=e=>parseInt(e??wN.fontSize,10)*vN,FN=/<[biust]>/g,$N=/<blank>/i,BN=(e,{boldFontWeight:t,combineDecorations:n=!1,allowIndentation:r=!1})=>{const o=e?.toLowerCase().match(FN),i={},a=new Set;let s=0;return o?.forEach(e=>{switch(e){case"<t>":r&&(s++,i.textIndent=`${s}em`);break;case"<b>":i.fontWeight=t;break;case"<i>":i.fontStyle="italic";break;case"<u>":a.add("underline"),i.textDecoration="underline";break;case"<s>":a.add("line-through"),i.textDecoration="line-through"}}),n&&a.size>0&&(i.textDecoration=["underline","line-through"].filter(e=>a.has(e)).join(" ")),Object.keys(i).length>0?i:void 0};const HN=4/3,VN=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function WN(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const UN=(e,t)=>e?{borderBottomColor:dm.DARK_MODE_BORDER,borderRightColor:dm.DARK_MODE_BORDER,borderLeftColor:dm.DARK_MODE_BORDER,borderTopColor:dm.DARK_MODE_BORDER}:{borderLeftColor:dm.BORDER_MEDIUM,borderRightColor:dm.BORDER_MEDIUM,borderTopColor:dm.BORDER_HEAVY,borderBottomColor:t?dm.BORDER_HEAVY:dm.BORDER_LIGHT},GN=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*HN+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},KN=e=>e.components?.find(e=>"theme"===e.key),YN=(e,t,n,r=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:VN(n?.fontColor)?WN(dm.TEXT,t,n?.fontColor):i||dm.TEXT,fontSize:n?.fontSize&&`${n.fontSize}px`||a,padding:n&&"padding"in n?n.padding:void 0,...UN(t.background.isDark,r)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function XN(e,t,n){const r=KN(e)?.header,o=YN("header",t,r,n);return o.background=(e=>{if(void 0===e)return;const t=se(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=hm(o.background??dm.WHITE,Km),o.activeBackground=hm(o.background??dm.WHITE,Ym),o}const JN=(e,t,n)=>{if(!n)return!1;const r=t.indexOf("textStyleExpression");return-1!==r&&(o=e?.qValues?.[r]?.qText,!!o&&$N.test(o));var o},ZN=(e,t,n)=>{const r={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&gm(i);a&&(r[n[t]]=a);const s=BN(i,{boldFontWeight:xN,combineDecorations:!0});var l,c;o={...o,...s,textDecoration:(l=o.textDecoration,c=s?.textDecoration,c?l?[...new Set(`${l} ${c}`.split(/\s+/).filter(e=>e&&"none"!==e))].join(" "):c:l)}}),r.cellBackgroundColor&&!r.cellForegroundColor&&(r.cellForegroundColor=pm(r.cellBackgroundColor)),{...e,...r,color:r.cellForegroundColor||e.color,background:r.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}};function QN(e,t,n){if(!n("TLV_254_TABLE_INDENT_TAG"))return;const r=e.isTotalRow&&n("TLV-2303-SUB-TOTALS");if(e.isNull||r&&t.isDim)return;const o=t.qAttrExprInfoIDs.indexOf("textStyleExpression");return-1!==o?BN(e.qAttrExps?.qValues?.[o]?.qText,{boldFontWeight:xN,allowIndentation:!0})?.textIndent:void 0}const ej=25e4,tj=(e,t)=>t.qAttrExps?.qValues?.[e],nj=e=>{const t=Number(e?.qNum);return void 0!==e?.qNum&&Number.isFinite(t)?t:void 0},rj=e=>{const t=e?.qText?.trim();return t&&"ARGB(0,0,0,0)"!==t.toUpperCase()?gm(t)??void 0:void 0},oj=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,ij=5e6,aj=5e5;const sj={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,n){return{key:lj(e),value:lj(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function lj(e){try{return decodeURIComponent(e)}catch{return e}}function cj(e){if(!(this instanceof cj))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>sj.fromSearchString(t.search)}})}function uj(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}cj.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},cj.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=uj(t.key),t.value?n+=`=${uj(t.value)}`:n+=t.useEqualSign?"=":"";return n};var dj=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},pj=class{decode(e){let t="";const n=new dj(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const fj=e=>e>=0&&e<=1114111,hj=e=>e.match(/[\s]/);var mj=class extends pj{decodeCharacter(e){e.mark();const t=e.next();let n,r,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(n=i,r=0;r<5&&(o=e.next(),null!=o&&!hj(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return fj(a)?String.fromCharCode(a):"�"}},gj=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},bj=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let o,i;if(t.length===n)return i=this._value,this.setValue(r),i;const a=t.charAt(n);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return gj.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return gj.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||gj.newInstanceIfNeeded(e,t,this._value)}},vj=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new bj);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const yj=(()=>{const e=[],t=[],n=new vj;let r,o,i;for(r in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),n.put(i,String.fromCharCode(o)));return n})();var xj=class extends pj{decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,o="";for(t=Math.min(e.remainder().length,yj.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=yj.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&fj(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&fj(r)?String.fromCharCode(r):null}},Sj=class extends pj{decodeCharacter(e){e.mark();const t=e.next();let n,r,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)o=e.nextHex(),null!=o&&(n+=o);return 2===n.length&&(i=parseInt(n,16),fj(i))?String.fromCharCode(i):(e.reset(),null)}};let wj;"undefined"!=typeof document&&(wj=document.createElement("div"));const Cj=Array.prototype.indexOf,Ej=[",",".","_"," "],Ij=[",",".","-","_"," "],Aj={width:["%"],height:["%"]},Rj={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Dj={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Rj.image,"background-color":Rj.color,"border-color":Rj.color,"border-image":Rj.image,color:Rj.color,icon:Rj.image,"list-style-image":Rj.image,"outline-color":Rj.color},Mj={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function kj(e,t,n){let r;if(t){if(Cj)return Cj.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function Tj(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return wj.appendChild(n),t=wj.innerHTML,wj.removeChild(n),t}function qj(e,t,n){let r,o,i,a,s,l,c,u,d;for(e=Lj(e).toLowerCase(),t=Lj(t),i=0;i<Mj.attr_name.length;i++)if(e.match(Mj.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<Mj.attr_val.length;i++)if(t.toLowerCase().match(Mj.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=Aj[e],r||(r=Ij),o="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&kj(c,r)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return n||(o+='"'),o}function Pj(e,t,n){let r,o,i,a,s,l,c,u,d,p;if(e=Lj(e).toLowerCase(),t=Lj(t),kj(e,Mj.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<Mj.css_val.length;r++)if(t.toLowerCase().indexOf(Mj.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=Dj[e],o||(o=Rj.default),i="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&kj(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function Lj(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new xj,new Sj,new mj];for(;!a;){r=n;for(let e=0;e<s.length;e++)i=s[e].decode(n),i!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}const Oj=[];for(let e=0;e<255;e++)Oj[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const Nj={html:e=>Tj(e.unsafe),css(e){let t,n=[];const r=[],o={};let i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=Pj(t,n[t],!0),i+=Pj(t,n[t],!0),o[t]=r[t]);return e.map?o:i},attr(e){let t=[];const n=[],r={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=qj(e,t[e],!0),o+=qj(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function jj(e,t){throw new Error(t)}var _j={canonicalize:Lj,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,n;const r=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Nj.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&jj(this,"Invalid parameter type"),Nj.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&jj(this,"Invalid parameter type"),Nj.attr(e)):void jj(this,"Invalid parameter type")},encodeForAttr:qj,encodeForAttr2:function(e){return qj("nonsens",e,!0)},encodeForCSS:Pj,encodeForHref:function(e){Lj(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new cj(e),n=cj.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+cj.encodeSearchParams(r)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let n,r,o,i,a,s;for(t||(t=Ej),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),kj(o,t)>=0||null==Oj[i]?s+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:Tj,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=Lj(t).toLowerCase():jj(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:n=aj,maxByteSizeImage:r=ij}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=oj.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(o,i,a);return"image/svg+xml"===o?s<=n:s<=r},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const n=function(e){let t=e,n="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const zj=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},Fj=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!_j.isSafeDataURL(t))?{type:WP.Text,url:void 0,text:e,labelStructure:o}:{type:WP.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:zj(r,a),labelStructure:o,imageBox:i},$j=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:WP.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{const r="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=r?n.qYMin:e.qMiniChart.qMin,a=r?n.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:WP.MiniChart,text:r,miniChart:a}},Bj=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=r?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return n?.urlPosition===UP.Attribute?void 0:n?.urlLabel},Hj=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:WP.Link,url:_j.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:WP.Text,url:void 0,text:t,labelStructure:e}}},Vj=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,measureMinMax:a,labelStructure:s,getText:l=e=>e.qText,direction:c,enabledFeatures:u})=>{const d=GP(t),p=l(e);return d===WP.Image&&u[WP.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=tj(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),Fj({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:r;if(-1===n.imageLabel)return Fj({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=tj(n.imageLabel??-1,e)?.qText??r;return Fj({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:WP.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,p,c,s):d===WP.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===UP.Attribute){const i=Bj(n.url??-1,e,t);return Hj({labelStructure:r,text:o||i||"",url:i})}if(i===UP.Dimension){const i=Bj(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),Hj({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:WP.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,s,p):d===WP.Indicator&&u[WP.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:WP.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,p):d===WP.MiniChart&&u[WP.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?$j(e,t,i,p):d===WP.Bar&&u[WP.Bar]?((e,t,n,r,o)=>{const i={type:WP.Text,text:o},a=nj(e);if(!t||void 0===a)return i;const s=t=>{const r=n[t];return void 0===r||r<0?void 0:tj(r,e)},{barRangeMode:l,barColorMode:c,barLabelColorMode:u}=t,d="manual"===l,p=e=>d&&"number"==typeof e&&Number.isFinite(e)?e:void 0,f={value:a,columnMin:p(t.barRangeMin)??r?.qMin??0,columnMax:p(t.barRangeMax)??r?.qMax??0,isManualRange:d,hasNegativeValues:r?.hasNegativeValues,hasPositiveValues:r?.hasPositiveValues,offsetValue:nj(s("barOffset"))??0,thicknessPx:nj(s("barWidth")),label:s("barLabel")?.qText??o,fallbackLabel:o,color:"expression"===c?rj(s("barColor")):void 0,colorPalette:t.barColor,labelColor:"expression"===u?rj(s("barLabelColor")):void 0,labelColorPalette:t.barLabelColor,barEnd:t.barEnd??"none"};return{type:WP.Bar,text:o,bar:f}})(e,t,n,a,p):{type:WP.Text,url:void 0,text:p,labelStructure:s}},Wj=Og(e=>{const t=e(Nb),n=e(yb);return e(xb),{qTop:0,qHeight:0,rowPartialHeight:n?.content?.rowPartialHeight??0,visibleTop:n?.content?.visibleTop??t?.visibleTop,visibleHeight:n?.content?.visibleHeight??t?.visibleHeight,scrollLeft:n?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:n?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:n?.content?.rowsPerPage??t?.rowsPerPage,page:n?.content?.page??t?.page,estimatedRowHeight:n?.content?.estimatedRowHeight??0}}),Uj=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),Gj=({cId:e})=>e??OP(),Kj=["D","T","TS","IV"],Yj=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Xj=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Jj=["January","February","March","April","May","June","July","August","September","October","November","December"],Zj=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qj={D:"YYYY-MM-DD",T:"hh:mm:ss",TS:"YYYY-MM-DD hh:mm:ss"},e_=864e5,t_=2**32,n_=e=>{let t=Math.floor(e),n=Math.round((e-t)*e_);n>=e_&&(t+=1,n=0);const r=t-25569,o=r+719468,i=Math.floor(o/146097),a=o-146097*i,s=Math.floor((a-Math.floor(a/1460)+Math.floor(a/36524)-Math.floor(a/146096))/365),l=a-(365*s+Math.floor(s/4)-Math.floor(s/100)),c=Math.floor((5*l+2)/153),u=c<10?c+2:c-10;return{year:s+400*i+(u<=1?1:0),month:u,date:l-Math.floor((153*c+2)/5)+1,day:(r%7+7+3)%7,h:Math.floor(n/36e5),m:Math.floor(n%36e5/6e4),s:Math.floor(n%6e4/1e3),f:n%1e3}},r_=(e,t)=>String(e).padStart(t,"0"),o_=e=>{const[,t]=e.toString().split(".");return t?Number(`0.${t}`):0},i_=/Y+|y+|M+|W+|w+|D+|d+|h+|H+|m+|s+|S+|f+|F+|t{1,2}|T{1,2}/g,a_=(e,t,n)=>{if(Number.isNaN(e)||!Number.isFinite(e))return String(e);let r,o=(n||("IV"===t?Qj.T:Qj[t])).replace(/\[.+]|\[|]/g,"");"IV"===t?(e<0&&(e=-e,o=`-${o}`),r=((e,t)=>{const n=Math.floor(e);let r=24*o_(e),o=60*o_(r),i=60*o_(o);const a=Math.round(1e3*o_(i));r=Math.floor(r),o=Math.floor(o),i=Math.floor(i),/D+/i.test(t)||(r+=24*n),/h+/i.test(t)||(o+=60*r),/m+/i.test(t)||(i+=60*o);let s=0,l="";if(/w+|t+/i.test(t)){const t=n_(e);s=t.day,l=t.h>=12?"pm":"am"}return{year:0,month:0,day:s,date:n%t_,h:r%t_,m:o%t_,s:i%t_,f:a,t:l}})(e,o)):r=((e,t)=>{const n=n_(e);let r=n.h;return t&&(r%=12,r=r||12),{year:n.year,month:n.month,day:n.day,date:n.date,h:r,m:n.m,s:n.s,f:n.f,t:n.h>=12?"pm":"am"}})(e,/t+/i.test(o));const i=(e=>[[/^(Y+|y+)$/,{Y:`${Number(`${e.year}`.slice(-2))}`,YY:r_(`${e.year}`.slice(-2),2),YYY:r_(`${e.year}`.slice(-3),3),def:t=>r_(`${e.year}`,t.length)}],[/^M+$/,{M:e.month+1,MM:r_(e.month+1,2),MMM:Zj[e.month],def:Jj[e.month]}],[/^(W+|w+)$/,{W:e.day,WW:r_(e.day,2),WWW:Xj[e.day],def:Yj[e.day]}],[/^(D+|d+)$/,{def:t=>r_(e.date,t.length)}],[/^(h+|H+)$/,{h:e.h,def:t=>r_(e.h,t.length)}],[/^m+$/,{m:e.m,def:t=>r_(e.m,t.length)}],[/^(s+|S+)$/,{s:e.s,def:t=>r_(e.s,t.length)}],[/^(f+|F+)$/,{def:t=>{const n=`${e.f}`;return n.length>t.length?n.slice(0,t.length):n.padEnd(t.length,"0")}}],[/^(t{1,2}|T{1,2})$/,{def:t=>(t[0].toUpperCase()===t[0]?e.t.toUpperCase():e.t).slice(0,t.length)}]])(r);return o.replace(i_,e=>((e,t)=>{const n=t.find(([t])=>t.test(e))?.[1];if(!n)return"";const r=Object.keys(n).find(t=>"def"!==t&&(t===e||t.toLowerCase()===e)),o=void 0===r?n.def:n[r];return String("function"==typeof o?o(e):o)})(e,i))},s_=/[#0]/,l_={prefix:"",suffix:""},c_=e=>{const t=e.search(s_);if(-1===t)return l_;let n=t;for(let t=e.length-1;t>n;t--)if(s_.test(e[t])){n=t;break}return{prefix:e.slice(0,t),suffix:e.slice(n+1)}},u_=/\B(?=(\d{3})+(?!\d))/g,d_={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y",[-3]:"m",[-6]:"μ",[-9]:"n",[-12]:"p",[-15]:"f",[-18]:"a",[-21]:"z",[-24]:"y"},p_=e=>Number(e.toPrecision(15)),f_=(e,t,n=!1)=>{if(Number.isNaN(e))return String(e);const{qFmt:r,qType:o,qDec:i=".",qThou:a=","}=t??{};if((e=>Kj.includes(e))(o))return a_(e,o,r);if(!r)return String(e);const[s,l]=r.split(";"),{suffix:c}=c_(s),u=c.startsWith("A"),d=(u?c.slice(1):c).endsWith("%"),{value:p,siPrefix:f}=((e,t,n)=>{let r=t?p_(100*e):e,o="";if(n&&0!==r&&Number.isFinite(r)){let e=Number(r.toExponential().split("e")[1]);e-=e%3,e in d_&&(o=d_[e],r=p_(r/10**e))}return{value:r,siPrefix:o}})(e,d,u),h=p<0,m=h&&l?l:s,{prefix:g,suffix:b}=c_(m),v=u&&b.startsWith("A")?b.slice(1):b,{decimals:y,useThousands:x}=((e,t,n)=>{const r=e.indexOf(".");let o=0;return-1!==r?o=(e.slice(r+1).match(/[#0]/g)??[]).length:n&&(o=String(Math.abs(t)).split(".")[1]?.length??0),{decimals:Math.min(o,100),useThousands:e.includes(",")}})(m,p,n||"U"===o),[S,w]=Math.abs(p).toFixed(y).split("."),C=x?S.replace(u_,a):S;return`${h&&!l?"-":""}${g}${w?`${C}${i}${w}`:C}${f}${v}`},h_=1e4;function m_(e,t){return[...t].reverse().find(t=>t*e<=h_)||Math.floor(h_/e)}function g_(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const n=e.qHyperCube.qDimensionInfo.length>0,r=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(n&&r||!i&&!n)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function b_(e,t,n,r){return t?0===n?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(r)?.qText??""}function v_(e,t){const n=e.qHyperCube.qGrandTotalRow.at(t);return BO(n?.qNum)}function y_(e,t,n,r,o){return e&&!e.auto?r&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:r||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:n?"right":"left",bodyTextAlign:"auto"}}const x_=(e,t,n,r)=>"auto"!==t?t:r||"rtl"!==n?e?"right":"left":e?"left":"right",S_=(e,t)=>{if(!e)return;const{background:n,foreground:r}=e,o=se(n??""),i=se(r??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?hm(s,Km):void 0,c=s?hm(s,Ym):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:pm(s),headerMenuHoverBackground:l,headerMenuActiveBackground:c}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:c}};function w_(e,t,n,r){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,{colIdx:s,pageColIdx:l,visibleDimInfoIdx:c,visibleMeasureInfoIdx:u}=t,d=o.length,p=s<d,f=p?o[s]:i[s-d],h=p&&o[s].qGrouping===Xm.Cyclic,m=s===a[0];let g,b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:I}=f;if(p&&void 0!==c){const e=f;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:g}=e)}else({qMiniChart:b}=f),"bar"===E?.type&&(v=(({qMin:e,qMax:t,qAttrExprInfo:n})=>{if("number"!=typeof e||"number"!=typeof t||!Number.isFinite(e)||!Number.isFinite(t))return;const r=n.find(({id:e})=>"barOffset"===e),o=Number.isFinite(r?.qMin)?r?.qMin:0,i=Number.isFinite(r?.qMax)?r?.qMax:0;return{qMin:Math.min(o,o+e),qMax:Math.max(i,i+t),hasNegativeValues:e<0,hasPositiveValues:t>=0}})(f));const{qFallbackTitle:A,textAlign:R,qAttrExprInfo:D,qSortIndicator:M,qReverseSort:k,qApprMaxGlyphCount:T,columnWidth:q,qLibraryId:P,headerColor:L}=f,O=e.nullValueRepresentation?.text,N=!p&&void 0!==O&&VO(O)?f_(WO(O),f.qNumFormat,f.qIsAutoFormat):void 0;return{isDim:p,isCyclic:h,isLocked:x,fieldId:y,colIdx:s,qLibraryId:P,pageColIdx:l,qApprMaxGlyphCount:T,qReverseSort:k,columnWidth:q??{type:Gm.Auto},selectionColIdx:S,isActivelySorted:m,id:Gj(f),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:D.map(e=>e.id),qAttrExprInfoIndex:Uj(f),sortDirection:M&&"N"!==M?M:"A",totalInfo:b_(e,p,l,u??-1),...!p&&{isTotalNumeric:v_(e,u??-1)},...y_(R,g,p,n,r),representation:E,conditionalColoring:p?void 0:I,qNumFormat:p?void 0:f.qNumFormat,qIsAutoFormat:p?void 0:f.qIsAutoFormat,formattedNullValueText:N,qMiniChart:b,measureMinMax:v,headerColor:S_(L,n)}}const C_=(e,t,n)=>{const{qHyperCube:{qColumnOrder:r,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=((e,t,n)=>{const r=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<r,{qError:a}=i?t[o]:n[o-r];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const n=e<r,o=(n?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:n?s:void 0,visibleMeasureInfoIdx:n?void 0:s-r}})})(r.length===a?r:Array.from(Array(a).keys()),o,i);return s.map(r=>w_(e,r,t,n))},E_=(e,t,n)=>e?n.nullValueRepresentation?.dimensionText??t.qText??"-":n.nullValueRepresentation?.text??t.qText??"-",I_=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,A_={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},R_=Og(e=>{const t=e(D_),n=e(fb),r=e(Wj),o=n.qHyperCube.qSize.qcy,i=r.visibleHeight??t.rowsPerPage,a=r.visibleTop??t.page*i,s=r.visibleHeight??Math.min(i,o-a),l=n.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>h_?{...t,rowsPerPage:m_(l,t.rowsPerPageOptions),page:0}:t}),D_=Og(A_),M_=Og(e=>{const t=e(fb),n=e(Nb),r=e(Wj);return qb(t,n)?{page:r.page||A_.page,rowsPerPage:r.rowsPerPage||A_.rowsPerPage,rowsPerPageOptions:A_.rowsPerPageOptions}:e(R_)},(e,t,n)=>{t(D_,e=>({...e,...n}))}),k_=!0,T_=e=>-1===e.qElemNumber||!!e.qIsTotalCell,q_=Og(async e=>{const t=e(fb),n=e(Nb),r=e(Lb),{page:o,rowsPerPage:i}=e(M_),a=e(Wj),s=e($b),l=e(cb),c=e(mb),u=e(ub),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=g_(t,n),v=C_(t,k_,r),y=u("VNA-977-TABLE-BARS"),x=await(async(e,t,n)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const r=t.qHyperCube.qDataPages.at(0),o=r?.qArea;return r&&o?.qLeft===n.qLeft&&o.qTop===n.qTop&&o.qWidth===n.qWidth&&o.qHeight>=n.qHeight?[{...r,qMatrix:r.qMatrix.slice(0,n.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[n]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});c||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const S=x.at(0)?.qMatrix.map((e,n)=>{const o=[],i=e.some(T_);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&I_(c,a.isDim),p=u||d?E_(a.isDim,c,t):c.qText,f=u?VO(p):HO(c),g=HO(c)&&!VO(c.qText??"");o[s]={id:OP(),...c,align:x_(f,a.bodyTextAlign,r,k_),rowIdx:n+h,colIdx:a.colIdx,pageRowIdx:n,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i&&!d,isTotalRow:i,isLastRow:n===m-1,isNumeric:f,isDual:g,isNull:(!u||!f)&&I_(c,a.isDim),qNumFormat:a.qNumFormat,qIsAutoFormat:a.qIsAutoFormat,formattedNullValueText:a.formattedNullValueText,representation:Vj({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,measureMinMax:a.measureMinMax,getText:()=>p,direction:r,enabledFeatures:{[WP.Image]:!0,[WP.Indicator]:!0,[WP.MiniChart]:!0,[WP.Bar]:!a.isDim&&y}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),P_=wv(q_,e=>e),L_=Og(e=>{const t=e(fb),n=e(Nb),r=e(Ab),o=e(Lb),i=C_(t,false,o),a=g_(t,n),s=t.qHyperCube.qSize.qcy,l=Math.min(ej,s),c=s>ej&&!!r.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:c}}),O_={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},N_=Og(),j_=Og(e=>{const t=e(_b),n=e(N_);return n||(t?e(P_)??O_:e(L_))}),__=Og(e=>e(j_).totalsPosition),z_=Og(e=>e(j_).columns),F_=Og(e=>e(z_).length),$_=Og(e=>e(j_).rows),B_=Og(e=>e(j_).totalRowCount),H_=Og(e=>e(j_).totalColumnCount),V_=Og(e=>e(j_).paginationNeeded),W_=Og(e=>{const t=e(Gb),n=e(Xb),r=e(fb),o=e(__),i=e($_),a=o.atTop,s=function(e,t,n,r){const o=KN(e)?.content,i=YN("content",t,o);i.background=t.background.color;const a=GN(i.fontSize,n,r),s=o?.hoverColor,l=o?.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),u=t.getStyle("object","","straightTableV2.content.hover.color"),d=VN(l)||!!u,p=VN(s)||!!c,f=d||p;let h;h=VN(s)?WN(dm.HOVER,t,s):c||(d?"":dm.HOVER);const m=f?WN(pm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(r,n,i.length,t),l=XN(r,n,!a),c=function(e,t,n){const r=KN(e)?.content,o=YN("content",t,r),{borderBottomColor:i,borderTopColor:a,background:s}=XN(e,t,n);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(r,n,a);return{body:s,head:l,totals:c}}),U_=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},G_=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=U_(e,t?.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},K_=(e,t,n,r=dm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=G_(e,t,n);return Sm(i,o,a,r)??r},Y_=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return yN}},X_=e=>e?.some(e=>"italic"===e)?"italic":"normal",J_=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?xN:"normal",Z_=e=>!1===e?1:3,Q_=e=>e?.some(e=>"underline"===e)?"underline":"none",ez=Og(e=>{const t=e(Nb),n=e(_b),r=e(Xb),o=e(fb),i=e(W_),{header:a,dimensionValues:s,measureValues:l,totalValues:c,subTotalValues:u,nullValues:d,dimensionNullValues:p,grid:f,content:h}=KN(o)??{},m=n?dm.WHITE:dm.TRANSPARENT,g=K_(r,a,"object.straightTableV2.dimension.label.name.backgroundColor",m),b=t?.maxLineCount??h?.rowHeight??r.getStyle("object.straightTableV2","grid","lineClamp"),v=p??d;return{header:{fontFamily:a?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??SN,fontSize:Y_(a?.fontSize??r.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:X_(a?.fontStyle),fontWeight:J_(a?.fontStyle,xN),textDecoration:Q_(a?.fontStyle),color:U_(r,a?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??dm.TEXT,background:g},headerMenuHoverBackground:hm(g,Km),headerMenuActiveBackground:hm(g,Ym),dimension:{values:{fontFamily:s?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??SN,fontSize:Y_(s?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:X_(s?.fontStyle),fontWeight:J_(s?.fontStyle,"normal"),textDecoration:Q_(s?.fontStyle),color:U_(r,s?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??dm.TEXT,background:G_(r,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??dm.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??r.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??SN,fontSize:Y_(l?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:X_(l?.fontStyle),fontWeight:J_(l?.fontStyle,"normal"),textDecoration:Q_(l?.fontStyle),color:U_(r,l?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??dm.TEXT,background:G_(r,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??dm.TRANSPARENT}},totalRow:{fontFamily:c?.fontFamily??r.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??SN,fontSize:Y_(c?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:X_(c?.fontStyle),fontWeight:J_(c?.fontStyle,xN),textDecoration:Q_(c?.fontStyle),color:U_(r,c?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??dm.TEXT,background:K_(r,c,"object.straightTableV2.total.label.value.backgroundColor",m)},subTotalRow:{fontFamily:u?.fontFamily??r.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??SN,fontSize:Y_(u?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:X_(u?.fontStyle),fontWeight:J_(u?.fontStyle,xN),textDecoration:Q_(u?.fontStyle),color:U_(r,u?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??dm.TEXT,background:K_(r,u,"object.straightTableV2.subTotal.label.value.backgroundColor",m)},dimensionNull:{fontStyle:X_(v?.fontStyle),fontWeight:J_(v?.fontStyle,"normal"),textDecoration:Q_(v?.fontStyle),color:U_(r,v?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??dm.TEXT,background:U_(r,v?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??dm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:X_(d?.fontStyle),fontWeight:J_(d?.fontStyle,"normal"),textDecoration:Q_(d?.fontStyle),color:U_(r,d?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??dm.TEXT,background:U_(r,d?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??dm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:b??Z_(o.multiline?.wrapTextInCells),headerLineClamp:Z_(o.multiline?.wrapTextInHeaders),border:U_(r,f?.border)??r.getStyle("object.straightTableV2","grid","borderColor")??(r.background.isDark?dm.DARK_MODE_BORDER:dm.BORDER_MEDIUM),divider:U_(r,f?.divider)??r.getStyle("object.straightTableV2.grid","","divider.borderColor")??dm.BORDER_HEAVY,hoverColors:{color:U_(r,h?.hoverFontColor)??r.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:U_(r,h?.hoverColor)??r.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!f?.zebraStripes?.show,odd:{color:U_(r,f?.zebraStripes?.color?.odd),background:U_(r,f?.zebraStripes?.background?.odd)},even:{color:U_(r,f?.zebraStripes?.color?.even),background:U_(r,f?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===U_(r,v?.background),overrideDimNullValueColor:void 0===U_(r,v?.fontColor),overrideMeasNullValueBackground:void 0===U_(r,d?.background),overrideMeasNullValueColor:void 0===U_(r,d?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:fm(r),contentStaticLineCount:b}}),tz=Og(e=>{const t=e(ez);return Math.max(zN(t.header.fontSize)+8,32)}),nz=Og(e=>{const t=e(ez),n=zN(t.totalRow.fontSize);return Math.max(n+9,24)}),rz=Og(e=>{const t=e(ez),n=e(gb),r=e(bb);return Math.max(n>0?zN(t.dimension.values.fontSize):0,r>0?zN(t.measure.values.fontSize):0)}),oz=Og(e=>{const t=e(ez),n=e(rz),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),iz=Og(e=>{const t=e(ez),n=zN(t.subTotalRow.fontSize),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),az=(e,t,n)=>{if(!e.length)return[];const r=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:c},label:u,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{r[a]=Math.min(Um.PixelsMax,Math.max(Um.PixelsMin,f)),i-=r[a]};switch(s){case Gm.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?Um.PixelsDefault:+e)(l),h();break;case Gm.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?Um.PercentageDefault:+e)(c)/100*t,h();break;case Gm.FitToContent:e.representation?.type===WP.Image?o.push(a):(f=n(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case Gm.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{r[t]=Math.max(Um.AutoMinTable,e)})}return r},sz=Og(e=>{const t=e(ez),n=e(j_).totalsPosition,r=e(Sb),{measureText:o}=e(LO({...t.header,fontWeight:xN})),{measureText:i}=e(LO({...t.totalRow,fontWeight:xN})),{estimateWidth:a}=e(LO(t.dimension.values)),{estimateWidth:s}=e(LO(t.measure.values)),l=n.atBottom||n.atTop;return(e,t,n,c,u,d,p)=>{let f;if(r){const t=4;let n=25;n+=t+24,c&&(n+=20+t),u&&(n+=20),f=o(e)+n}else{let t=9;t+=16,p&&(t+=MN),t+=MN,t+=MN,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(n))}}),lz=Og(null),cz=Og(e=>{const t=e(j_),n=e(Ub).width,r=e(_N),o=e(sz);return az(t.columns,n-r,o)}),uz=Og(e=>e(lz)??e(cz),(e,t,n)=>{t(lz,n)}),dz=Gv(e=>{const t=e(NO);!1===e(NN)&&t.emit("done-adjusting-column-width")}),pz=Gv((e,t)=>{e(fb),t(lz,null)}),fz=Og(e=>e(uz).reduce((e,t)=>e+t,0)),hz=({children:e})=>(Gg(pz),Gg(dz),e);function mz(e){const t=lm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),ac({...t,direction:e})}const gz={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},bz={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},vz=Ec("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...gz},"&::-moz-range-track":{...gz},"&::-ms-track":{...gz},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...bz},"&::-moz-range-thumb":{...bz},"&::-ms-thumb":{...bz},"&: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"}})),yz=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:u,direction:d="ltr"})=>{const p=jm({translator:u.translator}),f=k({initWidth:e,columnWidth:e,initX:0}),h=n?0:1,m=r&&!c,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};Om(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,Um.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:Gm.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{vm(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{vm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},I=!r&&s?e=>{if(e.key===Vm.Left||e.key===Vm.Right){vm(e);const t=5,n=e.key===Vm.Left?t:-t,r="rtl"===d?n:-n;l?.(!0),y(f.current.columnWidth+r)}else e.key===Vm.Space||e.key===Vm.Enter?(vm(e),s(e),l?.(!1),x()):e.key===Vm.Esc&&(vm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return Yt.jsx(vz,{style:b,hoverColor:o,isLastColumn:n,className:Wm,"data-testid":Wm,onMouseDown:e=>{vm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:Gm.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(vm(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:I,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":Um.PixelsMin,"aria-valuemax":Um.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},xz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),Sz=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null},wz=Ec(md,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),Cz=Ec(xz,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Ez=Ec(Tf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Iz=Ec(cp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),Az=Ec(Nf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),Rz=Ec(Nf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:n?"rgba(0, 0, 0, 0.05)":"transparent"})),Dz=Ec("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),Mz=Ec("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),kz=Ec(Tu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),Tz=Ec(rf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),qz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),Pz=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?Pz(t):t:e.parentElement?.children?.[0]},Lz=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?Lz(t):t},Oz=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===Vm.Down||t===Vm.Up){const n=e=>t===Vm.Down?Pz(e):Lz(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},Nz=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let jz={};const _z=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:u})=>{const[d,p]=M(!1),f=w.useRef(null),h=O(e=>{e.stopPropagation(),p(!1)},[p]);return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(Rz,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),jz={}),a?.length&&(p(!0),jz[r]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:Oz,children:[l?Yt.jsx(Dz,{direction:c,isPagination:u}):null,Yt.jsxs(Mz,{children:[Yt.jsx(Tz,{direction:c,isPagination:u,children:Yt.jsx(o,{})}),Yt.jsx(kz,{variant:"body2",children:r})]}),a?.length?Yt.jsx(qz,{}):null]},t),a?.length?Yt.jsx(Bz,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:Nz(a,jz),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},zz=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&Yt.jsx(Az,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>Yt.jsx(_z,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),Fz=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[zz({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?Yt.jsx(Iz,{"data-testid":"group-divider",variant:"middle"}):void 0]),$z={appear:0,enter:0,exit:0},Bz=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?Yt.jsx(Ez,{className:$m,open:t,anchorEl:e,onClose:n,transitionDuration:$z,MenuListProps:{id:Bm},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:Fz({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,Hz=({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:o,onPopoverClose:i})=>O(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:o,onPopoverClose:i})}},[e,t,n,r?.qStateName,o,i]),Vz=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),Wz=(e,t)=>e.some(e=>t[e]>0),Uz={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Gz=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=M(null),[a,s]=M(Uz);return Om(()=>{e||(s(Uz),i(null))},[e]),P(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=Vz(t,n),c=await r.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:Wz(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Wz(["qSelected"],e),canSelectPossible:Wz(["qOption"],e),canSelectAlternative:Wz(["qAlternative"],e),canSelectExcluded:Wz(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Kz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),Yz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),Xz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})})),Jz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),Zz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),Qz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),eF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),tF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})})),nF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})})),rF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),oF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),iF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),aF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let sF=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const lF="/qListObjectDef",cF=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[sF.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),r(!1)},icon:Kz,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),r(!1)},icon:Jz,enabled:s,isActive:!!n&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:eF,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:uP,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[sF.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:tF,enabled:!0}]}]),!e.isLocked&&n[sF.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:aF,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(lF))},icon:nF,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(lF))},icon:iF,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(lF))},icon:rF,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(lF))},icon:oF,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(lF))},icon:Yz,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:Qz,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:Zz,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[sF.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),u?.(c)},icon:Xz,enabled:!0}]}]),f},uF=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:u,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=_m})=>{const v=k(null),y=jm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=r,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:I}=Gz({open:e,headerData:r,app:C,qStateName:u?.qStateName}),A=Sz({model:f,headerData:r}),R=Hz({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),D=O(e=>{e.stopPropagation(),t(!1)},[t]),M=O(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?Yt.jsxs(wz,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:Fm,onClick:!1===g?M:void 0,ref:v,isAccessibleHeader:g,children:[s?Yt.jsx(Cz,{height:b,className:zm,"data-testid":zm,isInteractionsActive:i.active??!1,children:Yt.jsx(xz,{})}):null,Yt.jsx(Bz,{open:e,anchorEl:!1===g?v.current:n.current,onClose:D,menuGroups:cF({headerData:r,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:R,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:I,anchorRef:n,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},dF=e=>e.isDark?{background:e.color,borderColor:dm.DARK_MODE_BORDER,color:dm.DARK_MODE_TEXT,disabledColor:dm.DARK_MODE_DISABLED,iconColor:dm.DARK_MODE_TEXT}:{background:e.color,borderColor:dm.BORDER_MEDIUM,color:dm.TEXT,disabledColor:dm.DISABLED},pF=Ec(md,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`})),fF=Ec(gh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),hF=Ec(Id,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)})),mF=Ec(Tu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),gF=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=D(()=>dF(r.background),[r]);if(!n.active)return null;const a=o?Yt.jsx(pF,{footerStyle:i,children:e}):null;return t?V.createPortal(e,t):a},bF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),vF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),yF=T({}),xF=()=>N(yF),SF=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(u)?0:-1,v=D(()=>dF(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=jm({translator:d}),S=D(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,n,r,o,i,a,s,l,c,u,x,p,f,h,m,v,b,y,g]);return Yt.jsx(yF.Provider,{value:S,children:e})},wF=({disabledCondition:e,pageNumber:t,type:n,footerStyle:r,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:r,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${n}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let CF=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),EF=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const IF=()=>{const{direction:e,pageInfo:t,width:n,interactions:r,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=xF(),c=0===t.page,u=wF({type:CF.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:r,tabIndex:l});return n<=(o?.firstPage||EF.FirstPage)?null:Yt.jsx(hF,{...u,disabled:!r.active,children:"rtl"===e?Yt.jsx(vF,{height:_m}):Yt.jsx(bF,{height:_m})})},AF=(e,t,n=!1)=>{n&&e.key===Vm.Tab&&!e.shiftKey&&(vm(e),bm(e.target,t,!1))},RF=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:c,translator:u,tabIndex:d}=xF(),p=t.page>=r-1,f=wF({type:CF.LastPage,disabledCondition:p,pageNumber:r-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=n.enabled?e=>{AF(e,n,o)}:void 0;return i<=(s?.lastPage||EF.LastPage)?null:Yt.jsx(hF,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?Yt.jsx(bF,{height:_m}):Yt.jsx(vF,{height:_m})})},DF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),MF=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=xF(),d=t.page>=r-1,p=wF({type:CF.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>EF.FirstPage&&i>EF.LastPage)&&n.enabled?e=>{AF(e,n,o)}:void 0;return Yt.jsx(hF,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?Yt.jsx(DF,{height:_m}):Yt.jsx(qz,{height:_m})})},kF=()=>{const{direction:e,pageInfo:t,interactions:n,footerStyle:r,handleChangePage:o,translator:i,tabIndex:a}=xF(),s=0===t.page,l=wF({type:CF.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:r,handleChangePage:o,translator:i,interactions:n,tabIndex:a});return Yt.jsx(hF,{...l,disabled:!n.active,children:"rtl"===e?Yt.jsx(qz,{height:_m}):Yt.jsx(DF,{height:_m})})},TF=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=xF(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||EF.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return Yt.jsx(mF,{variant:"caption",dir:"ltr",children:s})},qF=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=xF(),c=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${c}`,f={tabIndex:s,id:`${d}-${c}`,"data-testid":d,"aria-labelledby":p};return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(mF,{variant:"caption",id:p,children:[u,":"]}),Yt.jsx(fF,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},PF=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=xF();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||EF.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=Yt.jsx(Yt.Fragment,{children:e.rowsPerPageOptions.map(e=>Yt.jsx("option",{value:e,children:e},e))});return Yt.jsx(qF,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},LF=1e3,OF="…",NF=({totalPages:e,page:t})=>{const n=Math.min(e,LF),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-LF):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return Yt.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(Yt.jsx("option",{value:OF,disabled:!0,children:OF},"startMoreOptions")),o<e-1&&a.push(Yt.jsx("option",{value:OF,disabled:!0,children:OF},"endMoreOptions")),Yt.jsx(Yt.Fragment,{children:a})},jF=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=xF(),{page:i}=e;if(t<=(o?.selectPage||EF.SelectPage))return null;const a=Yt.jsx(NF,{totalPages:n,page:i});return Yt.jsx(qF,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var _F=z(e=>Yt.jsxs(SF,{...e,children:[Yt.jsx(PF,{}),Yt.jsx(jF,{}),Yt.jsx(TF,{}),Yt.jsx(IF,{}),Yt.jsx(kF,{}),Yt.jsx(MF,{}),Yt.jsx(RF,{})]}));const zF=e=>Yt.jsx(gF,{...e,children:Yt.jsx(_F,{...e})}),FF=(e,t,n)=>{const r=n.size,o=r>=t.size;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},$F=(e,t,n)=>{n&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},BF=e=>e.ctrlKey||e.metaKey,HF=e=>e.shiftKey&&BF(e),VF=e=>[Vm.Left,Vm.Right,Vm.Up,Vm.Down].includes(e),WF=e=>e.shiftKey&&VF(e.key),UF=e=>{return t=e.key,(VF(t)||[Vm.Home,Vm.End,Vm.PageUp,Vm.PageDown].includes(t))&&!HF(e);var t},GF=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)n?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(r)}return l=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?(new Map).set(r,o):(e.has(r)?e.delete(r):e.set(r,o),new Map(e))})(l,i,s),FF(a,r,l),l.size?(n?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(n?.cancel(),{...e,rows:l,colIdx:-1})},KF=(e,t)=>{const{api:n,rows:r,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:c}=t;if(!(a||"key"in c&&WF(c)))return e;-1===o&&n?.begin(["/qHyperCubeDef"]);const u=((e,t,n,r,o)=>{if(!n.isSelectable)return t;const i=new Map(t);if("key"in r&&WF(r)){i.set(n.qElemNumber,n.rowIdx);const t=r.key===Vm.Down?1:-1,o=e[n.pageRowIdx+t][n.pageColIdx];return o.isSelectable&&i.set(o.qElemNumber,n.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),s=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=s;t++){const n=e[t][o.pageColIdx];n.isSelectable&&i.set(n.qElemNumber,n.rowIdx)}return i})(i,r,s,c,a);return FF(l,r,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},YF=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(n.values()),[r]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},XF=(e,t)=>{switch(t.type){case _O.Select:return GF(e,t.payload);case _O.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case _O.SelectMouseUp:return((e,t)=>YF(e.isSelectMultiValues||e.firstCell!==t.cell?e:GF(e,t)))(e,t.payload);case _O.SelectMultiAdd:return KF(e,t.payload);case _O.SelectMultiEnd:return YF(e);case _O.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case _O.Clear:return e.rows.size?{...e,rows:new Map}:e;case _O.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},JF=Og(e=>{const t=e(Eb);return function(e,t){return Og(e,function(e,n,r){n(this,t(e(this),r))})}({pageRows:e(j_).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},XF)}),ZF=Og(e=>e(e(JF)),(e,t,n)=>{t(e(JF),n)}),QF=Hx(e=>Og(t=>{const{colIdx:n,rows:r,api:o}=t(ZF);return"object"==typeof e&&o?.isModal()?n!==e.selectionColIdx?jO.Disabled:r.has(e.qElemNumber)?jO.Selected:jO.Possible:jO.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),e$=Og(e=>{const t=e(fz),n=e(Ub).width,r=e(_N);return t>0&&t+r<n}),t$=()=>{const[e,t]=M(!1);return Yk({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?Yt.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},n$=(e,{atTop:t,atBottom:n},r)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!r&&n?e.grid.divider:e.grid.border,borderBottomColor:r&&!t||!r&&t?e.grid.divider:e.grid.border}),r$=Og(e=>{const t=e(gb),n=e(Bb);if(void 0!==n)return async(e,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,c=o?i:i-t,u=await n.getEffectiveProperties(),{qInterColumnSortOrder:d}=u.qHyperCubeDef,p=[],f=r!==s||l;if(!o){const e=u.qHyperCubeDef.qMeasures.at(c)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${c}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}if(!l){const e=[i,...d.filter(e=>e!==i)];p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${e.join(",")}]`})}f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),n.applyPatches(p,!0)}}),o$=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},i$=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r})=>(e>n?e--:t>n&&(t--,e=r),[t,e]),a$=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r,lastRowIdx:o})=>(e<r?e++:t<o&&(t++,e=n),[t,e]),s$=e=>e.atTop?2:1,l$=(e,t)=>({top:e?s$(t):0,bottom:e&&t.atBottom?1:0}),c$=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],u$=e=>e?.setAttribute("tabIndex","0"),d$=e=>e?.setAttribute("tabIndex","-1"),p$=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(d$)},f$=e=>{e?.focus(),u$(e)},h$=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${Wm}`);f$(t)},0)},m$=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o,direction:i})=>{p$(t);const a=((e,t,n,r,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[c,u]=n;switch(e.key){case Vm.Down:c<s&&c++;break;case Vm.Up:c>a&&c--;break;case Vm.Right:if(i)break;[c,u]="rtl"===r?i$({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):a$({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case Vm.Left:if(i)break;[c,u]="rtl"===r?a$({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):i$({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case Vm.Home:(BF(e)||i)&&(c=a),i||(u=0);break;case Vm.End:(BF(e)||i)&&(c=s),i||(u=l);break;case Vm.PageDown:c=Math.min(s,c+10);break;case Vm.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,n,i,o),s=c$(t,a);return f$(s),((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(!n?.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[r].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-i.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),r(a),{nextCell:s,nextCellCoord:a}},g$=(e,t,n,r)=>{p$(t),n(e),r.enabled&&!r.active?r.focus?.():f$(c$(t,e))},b$=(e,t,n)=>{const r=e.currentTarget;if(!r)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${$m}`))return;const i=!!o&&r.contains(o);!n.enabled||t.current||i||(e=>{const t=e.querySelector(`.${FO.First}`),n=e.querySelector(`.${FO.Second}`);t&&n&&(t.textContent="",n.textContent="")})(r),((e,t,n)=>{const r=e.currentTarget;if(!n.enabled||t.current||!r)return;const o=e.relatedTarget??document.activeElement;o&&r.contains(o)||n.blur?.(!1)})(e,t,n)},v$=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),y$=Ec(Lh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:n,background:r,color:o})=>({...wN,...e,cursor:t.active?"pointer":"default",background:r,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?n:r}})),x$=Ec("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:yN,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),S$=parseInt(yN,10)/2,w$=Ec("div")({position:"absolute",bottom:-S$,left:`calc(50% - ${S$}px)`}),C$=Ec(Xh)({position:"sticky",top:0,zIndex:1}),E$={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},I$=Ec(md)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),A$=Ec("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isDual"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:n=!1,isNumeric:r=!1,isDual:o=!1})=>r&&!o||1===e&&!t?{...E$,whiteSpace:"nowrap",display:n?"block":void 0}:{...E$,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),R$=Ec("div",{shouldForwardProp:e=>"indentation"!==e&&"isFlex"!==e&&"justifyContent"!==e})(({indentation:e,isFlex:t,justifyContent:n})=>({width:"100%",height:"100%",boxSizing:"border-box",minWidth:0,paddingInlineStart:`min(${e}, 50%)`,...t&&{display:"flex",justifyContent:n,alignItems:"inherit"}})),D$=Ec("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),M$="cell-text",k$=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=Gg(ez);return o?Yt.jsx(A$,{"data-testid":M$,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:r,isHeadCell:!0,style:{direction:n?"ltr":void 0},children:e}):Yt.jsx(A$,{"data-testid":M$,ref:t,className:"sn-table-cell-text",isDual:i,isNumeric:n,lineClamp:a??s.grid.contentLineClamp,isPagination:r,style:{direction:n?"ltr":void 0},children:e})},T$=e=>{const{column:t,isInteractionEnabled:n,open:r,setOpen:o,isPagination:i,forwardRef:a}=e,s=Gg(vb),l=Gg(r$),c=Gg(Lb),u=Gg(Ab),d=Gg(Zg),p=Gg(Jb),f=Gg(Xg),h=Gg(uz)[t.pageColIdx],m=Gg($b),g=k(null),b=k(null),v=(({column:e,columnWidth:t})=>{const n=Gg(ez),{measureText:r}=Mm({fontSize:n.header.fontSize,fontFamily:n.header.fontFamily,fontWeight:xN});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,c=t-25,u=s?20:0,d=l?20:0;let p=r(e.label);return s&&p+u<=c&&(a=!0,p+=u,l&&p+d<=c&&(i=!0,p+=d)),!s&&l&&p+d<=c&&(i=!0,p+=d),p+24<=c&&(o=!0),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:n,shouldShowLockIcon:r},o)=>{const i="A"===e?Yt.jsx(Kz,{height:yN,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(Jz,{height:yN,"data-testid":"head-cell-sort-descending-icon"}),a=n?Yt.jsx(x$,{align:t,dir:o,children:i}):void 0,s=r?Yt.jsx(PN,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Yt.jsx(v$,{height:yN,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return Yt.jsxs(qN,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:IN(t,i,c),children:[S,Yt.jsxs(TN,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,Yt.jsx(k$,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),n?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(uF,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[sF.Sorting]:!0,[sF.Searching]:!0,[sF.Selections]:!0,[sF.AdjusterHeaderSize]:!0},open:r,setOpen:o,interactions:u,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),l?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:h$},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),Yt.jsx(kN,{ref:b,direction:c,isPagination:i}),Yt.jsx(kN,{ref:g,direction:c})]}):null]})},q$=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),P$=(e,t)=>e.isCyclic&&t,L$=({column:e})=>{const t=Gg(ez),n=Gg(Lb),r=Gg($b),o=w.useRef(null),[i,a]=w.useState(!1),s=Sz({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(ON,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:Yt.jsx(q$,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),Yt.jsx(Bz,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(n)},enabled:!0,icon:uP,isActive:e.groupDimensionPos===n}))}]],anchorEl:o.current,direction:n,isPagination:!1})]})},O$=e=>e.isLocked,N$=({column:e})=>{const t=Gg(Xg),n=Gg(vb),r=Gg(db),o=Gg(ez);return Yt.jsx(ON,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,onClick:o=>{o.stopPropagation(),(async(e,t,n,r={warn:()=>{},error:()=>{}})=>{const o=Vz(t??"$",n);let i;try{const t=await(e?.createSessionObject(o));i=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){r.error({msg:"Failed to unlock field from table header",payload:e})}finally{i&&(await(e?.destroySessionObject(i))||r.error({msg:"Failed to destroy session object when unlocking field from table header"}))}})(t,n,e,r)},children:Yt.jsx(v$,{height:16,"data-testid":"head-cell-lock-icon"})})},j$=({column:e,menuIconRef:t,open:n,setOpen:r})=>{const o=Gg(ez);return Yt.jsx(ON,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:n,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),r(e=>!e)},ref:t,children:Yt.jsx(xz,{height:16})})},_$=({anchorRef:e,column:t,isPagination:n,listboxRef:r,open:o,setOpen:i})=>{const a=Gg(Xg),s=Gg(Lb),l=Gg(Zg),c=Gg(Ab),u=Gg($b),d=Gg(vb),p=Gg(Jb),f=Gg(r$);return Yt.jsx(uF,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[sF.Sorting]:!0,[sF.Searching]:!0,[sF.Selections]:!0,[sF.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),f?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:r},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:h$},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:n})},z$=Og();z$.onMount=e=>{const t=new Map,n=new ResizeObserver(e=>{for(const n of e){const e=t.get(n.target);e&&e.current(n)}});return e({callbacks:t,observer:n}),()=>{t.clear(),n.disconnect()}};const F$=({ref:e,callback:t})=>{const n=Gg(z$),r=k(t);r.current=t,j(()=>{const t=e.current;return void 0===n?()=>{}:(t&&(n.callbacks.set(t,r),n.observer.observe(t)),()=>{t&&(n.callbacks.delete(t),n.observer.unobserve(t))})},[e,r,n])},$$=Ec(md)({display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",boxSizing:"border-box"}),B$=({children:e})=>{const t=w.useRef(null),[n,r]=M(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=D(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=O(e=>{const t=new Set,n=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const r=e.props.minWidth+1;void 0===e.props.prio||i+r<=n?i+=r:t.add(e.key)}),r(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return F$({ref:t,callback:i}),Yt.jsx($$,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!n.has(e.key))})},H$=({children:e})=>e,V$=(e,t)=>!e.isLocked&&e.isDim&&t,W$=({column:e,open:t,setOpen:n})=>{const r=Gg(ez),o=Gg(vb),i=Gg(Lb),a=Gg(Zg);Gg(Xg);const s=w.useRef(null),l=O(()=>{n(!1)},[n]),c=Hz({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return Yt.jsx(ON,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),n(!0)},children:Yt.jsx(tF,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},U$=({column:e})=>{const{sortDirection:t,isActivelySorted:n}=e,r="A"===t?Yt.jsx(hN,{height:yN,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(dN,{height:yN,"data-testid":"head-cell-sort-descending-icon"});return n?Yt.jsx(w$,{children:r}):void 0},G$=0,K$=1,Y$=2,X$=3,J$=e=>{const{column:t,open:n,setOpen:r,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=Gg(ez),c=Gg(Lb),{measureText:u}=Mm(l.header),[d,p]=M(!1),f=k(null),h=k(null),m=k(null),g="number"==typeof a&&a>Um.PixelsMin+18;return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(B$,{children:[Yt.jsx(H$,{prio:Y$,minWidth:MN,children:O$(t)?Yt.jsx(N$,{column:t}):null},"Lock"),Yt.jsx(H$,{prio:K$,minWidth:MN,children:P$(t,s)?Yt.jsx(L$,{column:t}):null},"Cyclic"),Yt.jsx(H$,{ignore:!0,children:Yt.jsx(U$,{column:t})},"Sort"),Yt.jsx(H$,{minWidth:u(t.label)+8,children:Yt.jsx(LN,{justifyContent:t.headTextAlign,children:Yt.jsx(k$,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),Yt.jsx(H$,{prio:g?void 0:G$,minWidth:MN,children:d||V$(t,s)?Yt.jsx(W$,{open:d,setOpen:p,column:t}):null},"Search"),Yt.jsx(H$,{prio:X$,minWidth:MN,children:s?Yt.jsx(j$,{menuIconRef:m,column:t,open:n,setOpen:r}):null},"Menu")]}),s?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(kN,{ref:h,direction:c,isPagination:o}),Yt.jsx(kN,{ref:f,direction:c}),Yt.jsx(_$,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:n,setOpen:r})]}):null]})},Z$=Ec("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:n})=>({...t,background:e,color:n})),Q$=()=>{},eB=({column:e,isPagination:t})=>{const n=Gg(ez),r=Gg(Lb),o=Gg(e$),i=Gg(__),a=!1,s=Gg(Sb)?T$:J$;return Yt.jsx(Z$,{className:"sn-table-cell",applicableStyle:{...n.header,...n$(n,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:RN(r,a,o),borderLeftWidth:DN(r,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??n.header.background,color:e.headerColor?.color??n.header.color,children:Yt.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:Q$})})},tB=({isPagination:e})=>{const t=Gg(z_),[n,r]=M();Yk({onDragStart:e=>{const t=e.operation.source?.id;r(t)},onDragEnd:()=>{}});const o=n?t.find(e=>e.id===n):void 0;return o?Yt.jsx(Ak,{children:Yt.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:Yt.jsx(eB,{column:o,isPagination:e})})}):null},nB=Og(async e=>{e(fb);const t=e(Bb),n=await(t?.getEffectiveProperties());return n&&structuredClone(n)}),rB=wv(nB,e=>e),oB=Og(e=>e(rB)?.qHyperCubeDef),iB=[qM.configure({activationConstraints:[new DM.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],aB=QM.plugins.filter(e=>e!==eD),sB=(e,t,n)=>{const r=JSON.stringify(t),o=JSON.stringify(n);if(r!==o)return{qPath:e,qOp:"Replace",qValue:o}},lB=(e,t,n,r,o)=>{if(!e||!t||r===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,visibleColumnIds:r,sourceId:o,targetId:i})=>{const a=NP({qDimensions:e,qMeasures:t}),s=[...e,...t],l=r.findIndex(e=>e===o),c=r.findIndex(e=>e===i);if(l<0||c<0||l===c)return;const u=((e,t,n)=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r})(r,l,c),d=new Map(u.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const n=d.get(e.id),r=d.get(t.id);return void 0===n||void 0===r?0:n-r}),f=p.filter(e=>e.isDimension).map(e=>e.def),h=p.filter(e=>!e.isDimension).map(e=>e.def),m=[...f,...h],g=new Map(m.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:f,qMeasures:h,qInterColumnSortOrder:jP({previousColumns:s,nextColumns:m,qInterColumnSortOrder:n}),qColumnOrder:u.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:n.map(e=>e.id),sourceId:r,targetId:o});if(!i)return;const a=[sB("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),sB("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),sB("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),sB("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},cB=({children:e})=>{const t=Gg(Bb),n=Gg(oB),r=Gg(z_);return Yt.jsx(Ck,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&lB(t,n,r,o,i)},sensors:iB,plugins:aB,children:e})};function uB(e,t){const n=k(!1);P(()=>{n.current?e():n.current=!0},t)}const dB=(e,t)=>{const n=Gg(Fb);P(()=>{const r=e.current;if(!r)return;const o=e=>{b$(e,t,n)};return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}},[e,t,n])},pB=Og($O),fB=Hx(e=>Og(t=>{const[n,r]=t(pB);return 0===n&&r===e})),hB=()=>{const e=Gg(Jg);P(()=>{e.notifyIsDoneRendering()})};var mB={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 gB=Og(e=>{const t=e(Jb),n=e(Gb),r=e(db);let o;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(mB).forEach(t=>{e.add(mB[t])})}(t),({keys:e,politeness:i="polite"})=>{const a=e.map(e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)}).join(" "),s=n.querySelector(`.${FO.First}`),l=n.querySelector(`.${FO.Second}`);if(!s||!l)return void r.error({msg:"could not find aria-live elements, which means accessibility is not working properly"});let c;o===FO.First?(c=l,o=FO.Second):(c=s,o=FO.First),c.textContent=c.textContent?.endsWith(" ")?a:`${a} `,c.setAttribute("aria-live",i)}}),bB=(e,t)=>{const n=Gg(gB),r=Gg(Gb),o=Gg(H_),i=Gg(B_),a=Gg($_),s=Gg(__),[l,c]=Yg(pB),u=Gg(Cb),d=Gg(Fb);uB(()=>{const t=((e,t,n=!1)=>{const r=[s$(t),e[1]];return n?r:$O})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(p$(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=c$(t,e);n.current?(f$(s),n.current=!1):u$(s),r&&(a({keys:[s?.textContent??""]}),$F(a,s,r))})({resetCellCoord:t,rootElement:r,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:n})},[a.length,i,o,t])},vB=e=>{vm(e),BF(e)&&Qm(e.currentTarget)},yB=e=>{UF(e.evt)&&(vm(e.evt),m$(e))},xB=e=>{const{evt:t,totalsPosition:n,cell:r,isSelectionMode:o}=e;if(!UF(t))return;vm(t);const i=((e,t)=>[e.pageRowIdx+s$(t),e.pageColIdx])(r,n),a=l$(o,n),{nextCell:s,nextCellCoord:l}=m$({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:n,selectionDispatch:r,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&n.isSelectable?r({type:_O.SelectMultiAdd,payload:{cell:n,evt:e,announce:o}}):$F(o,a,i)})({...e,nextCell:s})},SB=e=>{const{evt:t}=e;HF(t)?(({evt:e,totalRowCount:t,rowsPerPage:n,page:r,updateShouldRefocus:o,handleChangePage:i})=>{vm(e);const a=Math.ceil(t/n)-1;e.key===Vm.Right&&r<a?(o(),i(r+1)):e.key===Vm.Left&&r>0&&(o(),i(r-1))})(e):t.key===Vm.Esc?(({evt:e,keyboard:t,isSelectionMode:n})=>{t.enabled&&!n&&(vm(e),t.blur?.(!0))})(e):VF(t.key)&&vm(t)},wB=e=>{const{evt:t,selectionsAPI:n}=e;if(t.currentTarget.classList.contains(jO.Disabled))return void vm(t);const r={...e,isSelectionMode:!!n?.isModal()};switch(t.key){case Vm.Space:(({evt:e,cell:t,isSelectionsEnabled:n,selectionDispatch:r,announce:o})=>{vm(e),t.isSelectable&&n&&r({type:_O.Select,payload:{cell:t,evt:e,announce:o}})})(r);break;case Vm.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{vm(n),e&&(t?.confirm(),r({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(r);break;case Vm.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{e&&(vm(n),t?.cancel(),r({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(r);break;case Vm.C:vB(t);break;case Vm.Tab:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{const o=e.shiftKey||!r;t.enabled&&n&&o&&(vm(e),bm(e.currentTarget,t,e.shiftKey))})(r);break;default:xB(r)}},CB=e=>{const t=Gg(NN),n=Kg(jN),r=Kg(_N),o=Gg(NO),i=k();F$({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);r(e-o),n(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),P(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},EB=Ec("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),IB=Ec(_h,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),AB=Ec(wh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),RB=()=>Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(EB,{className:FO.First,"data-testid":FO.First,"aria-live":"polite","aria-atomic":"true"}),Yt.jsx(EB,{className:FO.Second,"data-testid":FO.Second,"aria-live":"polite","aria-atomic":"true"})]}),DB=e=>{const t=k(new Map),n=k(null);P(()=>{n.current=e(t.current),t.current.forEach((e,t)=>{n.current?.observe(t)});const r=t.current,o=n.current;return()=>{o.disconnect(),r.clear()}},[e,n,t]);const r=O((e,r)=>{t.current.set(e,r),n.current?.observe(e)},[t,n]),o=O(e=>{t.current.delete(e),n.current?.unobserve(e)},[n,t]);return D(()=>({addTask:r,removeTask:o}),[r,o])},MB=e=>new ResizeObserver(t=>{t.forEach(t=>{const n=e.get(t.target);n?.(t)})}),kB=()=>DB(MB),TB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Gg(Eb),r=Gg(Fb),o=Kg(ZF);P(()=>{const i=()=>{o({type:_O.Reset})},a=()=>{o({type:_O.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():r.enabled&&r.blur?.(!0),i()};return n?.on("deactivated",i),n?.on("canceled",i),n?.on("confirmed",s),n?.on("cleared",a),()=>{n?.removeListener("deactivated",i),n?.removeListener("canceled",i),n?.removeListener("confirmed",s),n?.removeListener("cleared",a)}},[n,r,o,e,t])},qB="min(50px, 20%)",PB=({bar:e,height:t})=>{const{value:n,offsetValue:r,columnMin:o,columnMax:i,isManualRange:a,thicknessPx:s,barEnd:l}=e,c=a?o:Math.min(o,0);let u=a?i:Math.max(i,0);u>c||(u=c+1);const d=r,p=r+n,f=n>=0,h=Math.min(d,p),m=Math.max(d,p),g=Math.round(((e,t,n)=>Math.max(t,Math.min(n,e)))(s??("none"===l?1*t:4),2,Math.max(2,t-2))),b=Math.min(((e,t)=>"circle"===e?2*t:"box"===e?t+4:0)(l,g),t),v=Math.min(d,p)<c,y=Math.max(d,p)>u,x="none"===l?25:10+("none"===l?0:b/2+2);return{rangeMin:c,rangeMax:u,hasRoomAtMin:e.hasNegativeValues??(a||c<0||!f),hasRoomAtMax:e.hasPositiveValues??(a||i>=0||f),low:h,high:m,valueEnd:f?m:h,growsTowardsHigh:f,overflowMin:v,overflowMax:y,hasBar:m>h&&m>c&&h<u,thicknessPx:g,capSize:b,hasZeroAxis:c<=0&&u>=0,oobSizePx:x}},LB=Ec("div")({position:"relative",width:"100%",overflow:"hidden"}),OB=Ec("div")({position:"absolute"}),NB=Ec("span")({position:"absolute",top:0,height:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),jB=Ec("svg")({position:"absolute",display:"block"}),_B=({shape:e,pointsRight:t,width:n,height:r})=>{if("slice"===e)return`M0 0L${n-8} ${r}L0 ${r}ZM8 0L${n} ${r}L${n} 0Z`;const o=n/2,i=o*Math.sin(Math.PI/3),a=t?o/2:1.5*o;return`M${a} ${o-i}L${t?n:0} ${o}L${a} ${o+i}Z`},zB=({height:e,theme:t,bar:n,direction:r,fontFamily:o,fontSize:i,textDecoration:a})=>{const s=(({bar:e,height:t,isRtl:n})=>{const r=PB({bar:e,height:t}),{rangeMin:o,rangeMax:i,low:a,high:s,overflowMin:l,overflowMax:c,thicknessPx:u,capSize:d,oobSizePx:p}=r,f=r.hasRoomAtMin?qB:"0px",h=r.hasRoomAtMax?qB:"0px",m=f,g=`calc(100% - ${h})`,b=e=>{const t=(Math.min(Math.max(e,o),i)-o)/(i-o);return`calc(${f} + ${t} * (100% - ${f} - ${h}))`},v="none"===e.barEnd,y=v?25:10,x=c?`max(${g} - ${p}px, ${l?m:b(a)})`:b(s),S=l?`min(${m} + ${p}px, ${c?g:b(s)})`:b(a),w=r.growsTowardsHigh?x:S,C=e=>Math.floor((t-e)/2),E=C(u),I=d>0?d/2+4:4,A=e=>{const t=v?u:10;return{key:e,shape:v?"slice":"triangle",pointsRight:"max"===e!==n,width:y,height:t,style:{..."min"===e?{insetInlineStart:f}:{insetInlineEnd:h},top:C(t),width:y,height:t}}};return{zeroAxis:r.hasZeroAxis?{insetInlineStart:`calc(${b(0)} - 0.5px)`,top:0,width:1,height:"100%"}:void 0,bar:r.hasBar?{insetInlineStart:S,width:`max(1px, ${x} - ${S})`,top:E,height:u}:void 0,cap:r.hasBar&&d>0?{insetInlineStart:`calc(${w} - ${d/2}px)`,top:C(d),width:d,height:d,borderRadius:"circle"===e.barEnd?"50%":void 0}:void 0,label:e.label?r.growsTowardsHigh?{insetInlineStart:c?`calc(${g} + 4px)`:l?`max(${x} + ${I}px, ${m} + ${y+4}px)`:`calc(${x} + ${I}px)`,insetInlineEnd:"4px",textAlign:"start"}:{insetInlineStart:"4px",insetInlineEnd:`calc(100% - ${l?`calc(${m} - 4px)`:c?`min(${S} - ${I}px, ${g} - ${y+4}px)`:`calc(${S} - ${I}px)`})`,textAlign:"end"}:void 0,markers:[l?A("min"):void 0,c?A("max"):void 0].filter(e=>void 0!==e)}})({bar:n,height:e,isRtl:"rtl"===r}),l=n.color??mm(t,n.colorPalette,t.getDataColorSpecials().primary),c=n.labelColor??mm(t,n.labelColorPalette,"inherit");return Yt.jsxs(LB,{"data-testid":"bar-container",role:"img","aria-label":n.label||n.fallbackLabel,title:n.label||n.fallbackLabel,dir:r,style:{height:e},children:[s.zeroAxis?Yt.jsx(OB,{"data-testid":"bar-zero-axis",style:{...s.zeroAxis,backgroundColor:"#d0d0d0"}}):null,s.bar?Yt.jsx(OB,{"data-testid":"bar",style:{...s.bar,backgroundColor:l}}):null,s.cap?Yt.jsx(OB,{"data-testid":"bar-end-cap",style:{...s.cap,backgroundColor:l}}):null,s.label?Yt.jsx(NB,{"data-testid":"bar-label",style:{...s.label,fontFamily:o,fontSize:i??"14px",textDecoration:a,lineHeight:`${e}px`,color:c},children:n.label}):null,s.markers.map(e=>Yt.jsx(jB,{"data-testid":`bar-oob-${e.key}`,width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:e.style,children:Yt.jsx("path",{d:_B(e),fill:l})},e.key))]})},FB=e=>{e.stopPropagation()},$B=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:FB,color:dm.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),BB=({href:e,text:t,interactions:n,color:r})=>Yt.jsx(Op,{...$B({href:e,text:t,interactions:n,color:r}),children:t}),HB=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),VB=window.cancelIdleCallback??(e=>{clearTimeout(e)});let WB=0,UB=0,GB=0;const KB="qDimensionInfo/0",YB="qMeasureInfo/0",XB="x",JB="y",ZB=e=>({key:"bars",type:"box",data:{extract:{field:KB,props:{start:0,end:{field:YB}}}},settings:{major:{scale:XB},minor:{scale:JB},box:{maxWidthPx:8,fill:{fn:e}}}}),QB=e=>({key:"p",type:"point",data:{extract:{field:KB,props:{y:{field:YB}}}},settings:{x:{scale:XB},y:{scale:JB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),eH=({qNum:e})=>void 0===e?0:Math.sign(e),tH=(e,t)=>{const{primary:n,nil:r,others:o}=e.getDataColorSpecials(),i=mm(e,t?.negative,n),a=mm(e,t?.positive,n);return{key:"pos-neg",type:"box",data:{extract:{field:KB,props:{start:0,end:{field:YB,value:eH}}}},settings:{major:{scale:XB},minor:{scale:JB},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?r:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},nH=(e,{type:t,showDots:n,colors:r,colorMin:o,colorMax:i})=>{const a=((e,t,n,r)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=mm(e,t?.main,o),l=mm(e,t?.max,s),c=mm(e,t?.min,s),u=mm(e,t?.first,s),d=mm(e,t?.last,s);return e=>{const t=JB in e.datum?JB:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=r?l:e.datum[t].value<=n?c:e.data.items.at(0)===e.datum?u:e.data.items.at(-1)===e.datum?d:s}})(e,r,o,i);switch(t){case"bars":return[ZB(a)];case"dots":return[QB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:KB,props:{v:{field:YB}}}},settings:{coordinates:{major:{scale:XB},minor:{scale:JB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(mm(e,r?.main,e.getDataColorSpecials().primary));return n?[t,QB(a)]:[t]}case"posNeg":return[tH(e,r)];default:return[]}},rH=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"}),oH=(e,t,n,r)=>({y:{data:{field:YB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:n},x:{data:{extract:{field:KB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===r,align:"rtl"===r?1:0,maxPxStep:12}}),iH=K();iH.use(G),iH.renderer.prio(["canvas"]);const aH={resolve:()=>{},promise:{}},sH=({chart:e,element:t,theme:n,isSnapshot:r,direction:o,miniChartData:i,downloadService:a})=>{const{resolveChartPromise:s,addChartPromiseToQueue:l}=(e=>{const t=k(e.isDownloadedAsPDForImage?Rt():aH);return{addChartPromiseToQueue:O(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(a),c=k(null),u=O(()=>{null!==t.current&&null===e.current&&(l(),c.current=(e=>{const t=performance.now();if(t-WB>50&&(WB=t,UB=0),UB+=1,0===GB&&UB<=20)return e(),()=>{};GB+=1;let n=!1;const r=()=>{n||(n=!0,GB-=1)},o=HB(()=>{r(),e()},{timeout:2e3});return()=>{VB(o),r()}})(()=>{c.current=null,t.current&&(e.current=(({element:e,theme:t,isSnapshot:n,miniChartData:r,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:c}=r;return iH.chart({element:e,data:{type:"q",key:"qHyperCube",data:rH(s)},settings:{scales:oH(a,l,c,i),components:nH(t,r),strategy:n?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:r,miniChartData:i,direction:o,onChartRendered:s}))}))},[t,e,l,n,r,i,o,s]);return{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:O(()=>{c.current?.(),c.current=null,s()},[s])}},lH=e=>{const t=k(null),n=k(!1);return O(r=>{const o=r.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(VB(e.current),e.current=null)})(t),n.current?0!==o?null!==e.current&&(t.current=HB(()=>{e.current?.update()},{timeout:2e3})):n.current=!1:n.current=!0},[e])},cH=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:n,isSnapshot:r,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:u}=sH({element:s,chart:l,theme:n,isSnapshot:r,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:r,chart:o})=>{const i=O(e=>{e.isIntersecting?r():n()},[r,n]);P(()=>{if(!e.current||!t)return()=>{};const r=e.current;return t.addTask(r,i),()=>{t.removeTask(r),n(),o.current?.destroy(),o.current=null}},[o,e,t,n,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:u,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionObserverTaskScheduler:r})=>{P(()=>r?()=>{}:(e(),()=>{t(),n.current?.destroy(),n.current=null}),[r,t,e,n])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:u,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:n})=>{const r=lH(t);P(()=>{const t=e.current;return t?(n.addTask(t,r),()=>{n.removeTask(t)}):()=>{}},[e,r,n])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},uH=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=cH({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return Yt.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},dH=e=>{let t="center",n="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?n="left":"flex-end"===e?.horizontal&&(n="right"),`${n} ${t}`},pH=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},fH=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const o=Gg(Lb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=Yt.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:n,objectFit:pH(s),objectPosition:dH(l),overflow:"hidden"}});return r?Yt.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?n:"100%",overflow:"hidden",display:"flex",justifyContent:c?CN(o,e):void 0},children:u}):u},hH=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&mN[t];return o&&Yt.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:Yt.jsx(o,{style:{height:e}})})},mH=({representation:e,cellValue:t,paginationCellAlign:n})=>{const r=Gg(ez),o=Gg(Lb),i=Gg(Xb),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=gN(e,t,o,i),d=(p=r.measure.values.fontSize,parseInt(p||yN,10));var p;const{color:f,iconKey:h,position:m}=u||{};return l?Yt.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?f:void 0},children:["left"===m&&hH({size:d,iconKey:h,color:f}),Yt.jsx(k$,{isNumeric:!0,children:a}),"right"===m&&hH({size:d,iconKey:h,color:f})]}):hH({size:d,iconKey:h,color:f})},gH=(e,t,n)=>e.contentStaticLineCount?t*(n??e.grid.contentLineClamp):t,bH=({forwardRef:e,cell:t,style:n,isBlank:r,virtualizedCell:o,lineClamp:i,intersectionObserverTaskScheduler:a,resizeObserverTaskScheduler:s,paginationCellAlign:l})=>{const c=Gg(ez),u=Gg(rz),d=Gg(Jg),p=Gg(fb),f=Gg(Xb),h=Gg(Lb),m=Gg(Ab),g=Gg(Cb);if(r)return null;if(t.representation.type===WP.Image&&!t.representation.url?.trim())return null;if(t.representation.type===WP.Image)return Yt.jsx(fH,{representation:t.representation,textStyle:n,maxImageHeight:gH(c,u,i),wrapInContainer:!o});const b=WO(t.qIsNull?t.representation.text:t.qNum);let v=t.representation;if(t.qIsNull&&t.isNumeric&&!Number.isNaN(b)){const e=t.formattedNullValueText??f_(b,t.qNumFormat,t.qIsAutoFormat);v={...t.representation,text:e}}let y=v.text;return t.representation.type!==WP.Link||g||t.isNull||(y=Yt.jsx(BB,{href:t.representation.url,text:t.representation.text,interactions:m,color:n.cellForegroundColor})),t.representation.type!==WP.Indicator||Number.isNaN(b)?t.representation.type===WP.MiniChart&&t.representation.miniChart&&!t.isNull?Yt.jsx(uH,{height:gH(c,u,i),intersectionObserverTaskScheduler:a,resizeObserverTaskScheduler:s,miniChartData:t.representation.miniChart,theme:f,isSnapshot:!!p.snapshotData,direction:h,downloadService:d}):t.representation.type===WP.Bar&&t.representation.bar&&!t.isNull?Yt.jsx(zB,{height:gH(c,u,i),bar:t.representation.bar,theme:f,direction:h,fontFamily:c.measure.values.fontFamily,fontSize:n.fontSize??c.measure.values.fontSize,textDecoration:n.textDecoration}):Yt.jsx(k$,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:i,isPagination:!o,children:y}):Yt.jsx(mH,{representation:v,cellValue:b,paginationCellAlign:o?void 0:l})},vH=e=>{const t=Yt.jsx(bH,{...e});return e.indentation?Yt.jsx(R$,{indentation:e.indentation,isFlex:!!e.virtualizedCell,justifyContent:e.justifyContent,children:t}):t},yH=()=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:Yt.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),xH=Ec("div")({"& path":{stroke:"none !important"}}),SH=({children:e,cellSelectionState:t,hideTickIcon:n})=>t!==jO.Selected||n?e:Yt.jsxs(D$,{children:[e,Yt.jsx(xH,{children:Yt.jsx(yH,{})})]}),wH=e=>{const t=function(){const e=Ek(),t=ak(()=>null==e?void 0:e.dragOperation.source,[e]),n=ak(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return n.value}}}();return t.source&&t.source.id!==e?.5:1},CH=(e,t,n,r)=>({handleMouseDown:r=>{e?.(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{n({type:_O.SelectMultiEnd})};n({type:_O.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:_O.SelectMultiAdd,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:_O.SelectMouseUp,payload:{cell:t,evt:e,announce:r}})}}),EH=e=>{const t=Gg(V_),n=Gg(__),r=Gg(gB),o=Gg(Gb),i=Gg(Lb),a=Kg(pB),s=Kg(ZF),l=Gg(Fb),c=Gg(Mb),u=Gg(Eb),d=d=>{wB({evt:d,rootElement:o,selectionsAPI:u,cell:e,selectionDispatch:s,isSelectionsEnabled:c,setFocusedCellCoord:a,announce:r,keyboard:l,paginationNeeded:t,totalsPosition:n,direction:i})},p=e=>{((e,t)=>{e.key===Vm.Shift&&t({type:_O.SelectMultiEnd})})(e,s)},f=()=>{((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;g$([s,a],t,n,r)})(e,o,a,l,n)};if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=CH(f,e,s,r);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},IH=e=>{P(()=>()=>{QF.remove(e)},[e])},AH=(e,t,n,r)=>{if(!n.isNull)return e;const o=r?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=r?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=r?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},RH=(e,t,n)=>{const{color:r,background:o}=e.grid.zebraStripes[n];return{...t,...r?{color:r}:void 0,...o?{background:o}:void 0}},DH=(e,t,n)=>{if(t.grid.zebraStripes.show){const r=(n.rowIdx+1)%2==0;return RH(t,e,r?"even":"odd")}return e},MH=(e,t)=>{const n=Gg(ez),r=Gg(QF(e)),o=Gg(ub),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS"),a=o("TLV_2710_TABLE_BLANK_TAG"),s=(e.isNull||!(i&&t.isDim))&&JN(e.qAttrExps,t.qAttrExprInfoIDs,a);IH(e);let l=t.isDim?n.dimension.values:n.measure.values;l=DH(l,n,e),l=i?n.subTotalRow:l,l=AH(l,n,e,t.isDim);const c=e.isNull||i&&t.isDim?l:ZN(l,e.qAttrExps,t.qAttrExprInfoIDs),u=i?c:function(e,t,n){return t===jO.Selected?{...e,...n}:t===jO.Disabled?{...e,background:`${bN}, ${e.background}`}:e}(c,r,n.selectedColors);return{cellStyle:{...u,borderColor:n.grid.border},representationStyle:c,isBlank:s,indentation:QN(e,t,o),cellSelectionState:r}},kH=Ec(Mh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),TH=Ec(Xh,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:n})=>({height:n,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),qH=Ec(Lh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...wN,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),PH=Ec(Lh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...wN,...e,fontWeight:xN,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?n:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),LH=({cell:e,column:t,columnIndex:n,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o})=>{const i=Gg(Lb),a=Gg(Ab),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=EH(e),{cellStyle:p,representationStyle:f,isBlank:h,indentation:m,cellSelectionState:g}=MH(e,t),b=wH(t.id);return Yt.jsx(qH,{cellStyle:{...p,opacity:b},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${g} ${Hm}`,title:a.passive&&!h?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:Yt.jsx(SH,{cellSelectionState:g,hideTickIcon:!!e.isTotalRow,children:Yt.jsx(vH,{cell:e,style:f,isBlank:h,indentation:m,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o,paginationCellAlign:AN(i,e.align)})})})},OH=Og(0),NH=({column:e,totalsPosition:t,onKeyDown:n,onMouseDown:r})=>{const o=Gg(ez),i=Gg(Db),a=Gg(OH),s=wH(e.id);return Yt.jsx(PH,{totalsStyle:{...o.totalRow,...n$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Hm}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:n,onMouseDown:r,children:Yt.jsx(k$,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},jH=()=>{const e=Gg(__),t=Gg(z_),n=Gg($_),r=Gg(Gb),o=Gg(Rb),i=Gg(Lb),a=Kg(pB),s=Gg(Cb),l=Gg(Fb);return Yt.jsx(Xh,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:n.length+1,c];return Yt.jsx(NH,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:n,isInteractionEnabled:r}=e;if(!t&&r)switch(n.key){case Vm.C:vB(n);break;case Vm.Space:n.preventDefault();break;default:yB(e)}else vm(n)})({evt:e,rootElement:r,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{g$(u,r,a,l)}},t.id)})})};var _H=z(jH);const zH=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Gg($_),r=Gg(__),o=Gg(z_),i=Gg(ez),a=Gg(oz),s=Gg(iz),l=Gg(fb),c=!!KN(l)?.content?.hoverEffect;TB({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=O(t=>new IntersectionObserver(e=>{e.forEach(e=>{const n=t.get(e.target);n?.(e)})},{root:e.current}),[e]);return DB(t)})(t),d=kB();return Yt.jsxs(kH,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[r.atTop?Yt.jsx(_H,{}):void 0,n.map((e,t)=>{const n=e.at(0)?.isTotalRow??!1;return Yt.jsx(TH,{hoverColors:i.grid.hoverColors,hover:c,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:n?s:a,children:o.map((t,n)=>{const{id:r}=t,o=e[n];return Yt.jsx(LH,{columnIndex:n,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},r)})},`row-${t}`)}),r.atBottom?Yt.jsx(_H,{}):void 0]})};var FH=z(zH);const $H=(e,t)=>!!e?.skipHeader||!!t.hideHeader,BH=Og(e=>{const t=e(fb),n=e($b);if(n)return(e,{isDim:r,colIdx:o})=>{const i=r?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[r?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};n.applyPatches([l],!0)}}),HH=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,a=Gg(BH),s=Gg(Lb),l=Gg(Rb),c=Gg(Jb),[u,d]=Yg(uz);if(!l)return null;return Yt.jsx(yz,{columnWidth:u.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{n?.();const t=[...u];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{d$(e);const t=e.closest(".sn-table-cell");f$(t)})(e.currentTarget)},setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},VH=e=>e.target?.getAttribute("class")?.includes(Wm),WH=({isInteractionEnabled:e,column:t})=>{const[n,r]=M(!1),o=Gg(r$),i=Gg(NN);return{open:n,setOpen:r,handleOpenMenu:t=>{!e||VH(t)||i||r(!0)},toggleSortOrder:n=>{e&&!VH(n)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(n)&&(n.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var UH=class extends wI{constructor(e,t){super(e,t),this.boundingRectangle=ES(null),this.destroy=LS(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:n}=t;if(n.initialized){const{element:e}=this.options,n="function"==typeof e?e(t):e;if(!n)return;let r;const o=()=>{this.boundingRectangle.value=NI(n)},i=()=>{r||(r=setTimeout(()=>{o(),r=void 0},25))},a=new ResizeObserver(o);return a.observe(n),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:n}=e;if(!t)return n;const r=this.boundingRectangle.value;if(!r)return n;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,c=o.center.y-a/2,u=function(e,t,n){const r=uT({},t);return e.boundingRectangle.top+t.y<=n.top?r.y=n.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=n.top+n.height&&(r.y=n.top+n.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=n.left?r.x=n.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=n.left+n.width&&(r.x=n.left+n.width-e.boundingRectangle.right),r}(new eC(l,c,s,a),n,r);return u}};UH.configure=zC(UH);const GH=({invert:e})=>({dragOperation:t,droppable:n})=>{if(!n.shape)return null;const{shape:r}=t;if(!r)return null;const o=function(e){return e.sortable?.index}(n);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=r.current;return"left"===a&&l.left+.3*l.width<=n.shape.center.x||"right"===a&&l.right-.3*l.width>=n.shape.center.x?{id:n.id,value:1/Qw.distance(n.shape.center,s),type:XE.Collision,priority:YE.Normal}:null},KH=[UH.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],YH=(e,t)=>{const n=Gg(Lb),r=!Gg(Tb);return Rq({id:e.id,disabled:r,index:t,type:"item",accept:"item",group:"column",modifiers:KH,data:e,plugins:e=>[...e,XD.configure({feedback:"clone"})],collisionDetector:GH({invert:"rtl"===n})})},XH=({column:e,columnIndex:t,columnsLength:n})=>{const r=Gg(ez),o=Gg(Gb),i=Gg(Lb),a=Gg(Ab),s=Gg(z_),l=Gg(__),c=Gg(uz)[t],u=Kg(pB),d=Gg(fB(t)),p=Gg(Tb),f=Gg(Fb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=WH({isInteractionEnabled:p,column:e}),v=Kg(NN),{ref:y,isDragging:x}=YH(e,t),S=wH(e.id),w=Gg(Sb),C=w?T$:J$,E=e.isActivelySorted?zO[e.sortDirection]:void 0,I=h?Bm:void 0,A=h?"true":void 0,R=t===n-1,D=[0,e.pageColIdx],M={width:c,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return Yt.jsxs(y$,{"data-dragging":x,ref:y,headerStyle:{...r.header,...n$(r,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground:e.headerColor?.background??r.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,color:e.headerColor?.color??r.header.color,interactions:a,style:M,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Hm}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:n,handleOpenMenu:r}=e;if(t)switch(n.key){case Vm.C:vB(n);break;case Vm.Enter:case Vm.Space:r?.(n);break;default:yB(e)}else vm(n)})({evt:e,rootElement:o,cellCoord:D,setFocusedCellCoord:u,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&g$(n,t,r,o)})({evt:e,rootElement:o,cellCoord:D,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":I,"aria-expanded":A,"aria-haspopup":"true",children:[Yt.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),Yt.jsx(HH,{column:e,isLastColumn:R,setIsAdjustingWidth:v})]},e.id)},JH=()=>{const e=Gg(z_),t=Gg(ez),n=Gg(fb),r=Gg(Nb),o=Kg(OH),i=Gg(uz),a=k(null),s=$H(r,n);return P(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),Yt.jsx(Vh,{style:{visibility:s?"collapse":void 0},children:Yt.jsx(C$,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,n)=>Yt.jsx(XH,{column:t,columnIndex:n,columnsLength:e.length},t.id))})})};var ZH=z(JH);var QH=z(()=>{const e=Gg(gB),[t,n]=Yg(M_),{page:r,rowsPerPage:o}=t,i=Gg(Ob),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=Gg(j_),p=Gg(ez),f=Gg(Wj),h=Gg(fb),m=Gg(Xb),g=Gg(Ub),b=Gg(Gb),v=Gg(Nb),y=Gg(Lb),x=Gg(Ab),S=Gg(Jb),w=Gg(e$),C=Kg(ZF),E=Gg(Cb),I=Gg(Fb),A=k(!1),R=k(null),D=k(null),M=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=qb(h,v),q=T?f.scrollLeft??0:0,L=T?f.rowPartialHeight??0:0,N=O(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=O(r=>{n({...t,page:r}),e({keys:[["SNTable.Pagination.PageStatusReport",(r+1).toString(),l.toString()]],politeness:"assertive"})},[t,n,l,e]),_=O(r=>{n({...t,page:0,rowsPerPage:r}),e({keys:[["SNTable.Pagination.RowsPerPageChange",r.toString()]],politeness:"assertive"})},[e,t,n]);return(e=>{const t=Gg(Lb),n=Gg(Wj);P(()=>{const r=e.current;if(!r)return;const o=e=>{((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth,{scrollLeft:o}=n;let i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&e.preventDefault()})(e,"rtl"===t,r)},i=e=>{n.scrollLeft=e.currentTarget?.scrollLeft||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}},[e,t,n])})(R),dB(D,A),(()=>{const e=Gg(Gb),t=Gg(Fb),n=Gg(pB);Om(()=>{const r=c$(e,n);t.active?f$(r):(r?.blur(),p$(e))},[t.active,e])})(),bB(A,r),P(()=>{const e=R.current;e&&(e.scrollLeft=q,e.scrollTop=L)},[t,s,q,L]),uB(()=>{C({type:_O.UpdatePageRows,payload:{pageRows:u}})},[u]),hB(),CB(R),Yt.jsxs(cB,{children:[Yt.jsxs(I$,{ref:D,dir:y,onKeyDown:e=>{SB({evt:e,totalRowCount:s,page:r,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:I,isSelectionMode:E})},"data-testid":"sn-table",children:[Yt.jsx(RB,{}),Yt.jsxs(IB,{ref:R,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[Yt.jsxs(AB,{stickyHeader:!0,"aria-label":M,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[Yt.jsx(ZH,{}),Yt.jsx(FH,{updateShouldRefocus:N,tableWrapperRef:D})]}),Yt.jsx(t$,{})]}),Yt.jsx(zF,{footerContainer:i,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:I,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),Yt.jsx(tB,{isPagination:!0})]})});const eV=Og(0),tV=Og(e=>{const t=e(hb);return Math.min(ej,t)}),nV=Og(e=>{const t=e(hb);return t===ej?0:Math.floor(t/ej)}),rV=Og(e=>{const t=e(eV),n=e(nV);return Math.min(t,n)}),oV=Og(e=>({page:e(rV),rowsPerPage:e(tV),rowsPerPageOptions:[]}),(e,t,n)=>{const r=e(nV);t(eV,Math.max(0,Math.min(n,r)))}),iV=Og(null),aV=Og(null),sV=Og(e=>{const t=e(oV),n=e(hb);return Math.min(t.rowsPerPage,n-t.page*t.rowsPerPage)}),lV=Og(null),cV=Og(null),uV=Og(e=>e(__).atTop?2:1),dV=Og(e=>e(__).atTop?1:e(uV)+e(sV)),pV=Og(e=>l$(Boolean(e(Cb)),e(__))),fV=Og(e=>({firstBodyRowIdx:e(uV),totalsRowIdx:e(dV),allowedRows:e(pV)})),hV=Og(e=>({rootElement:e(Gb),totalsPosition:e(__),rowCount:e(sV),colCount:e(F_),columnWidths:e(uz)})),mV=Og(e=>({scrollToCell:e(lV),scrollableContainerElement:e(cV)})),gV=Og(e=>({keyboard:e(Fb),isInSelectionMode:e(Cb),selectionsAPI:e(Eb),isSelectionsEnabled:e(Mb)})),bV=Og(e=>({direction:e(Lb),isInteractionEnabled:e(Tb),paginationNeeded:e(V_),announce:e(gB),shouldRefocusRef:e(iV)})),vV=10,yV=e=>e.atTop?2:1,xV=(e,[t,n],r,o)=>{const i=yV(r);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${n}"]`);if(r.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${n}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${n}"]`):e.querySelector(`.sn-table-totals-row [data-col="${n}"]`)},SV=(e,t,n,r,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=n,d=c-yV(r),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,u),m=requestAnimationFrame(()=>{if(g())return;const e=((e,t)=>{if(!e||!t)return!1;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom&&n.left>=r.left&&n.right<=r.right})(xV(t,n,r,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},wV=(e,t,n,r,o,i)=>e<i?[t,e+1]:t<r?[t+1,o]:[t,e],CV=(e,t,n,r,o,i)=>e>o?[t,e-1]:t>n?[t-1,i]:[t,e],EV=(e,[t,n],r,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,c=a.top,u=r-1-a.bottom,d=o-1;switch(e.key){case Vm.Down:case Vm.Up:t=((e,t,n,r)=>e===Vm.Down&&t<r?t+1:e===Vm.Up&&t>n?t-1:t)(e.key,t,c,u);break;case Vm.Right:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?CV(e,t,n,0,o,i):wV(e,t,0,r,o,i))(n,t,c,u,0,d,i));break;case Vm.Left:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?wV(e,t,0,r,o,i):CV(e,t,n,0,o,i))(n,t,c,u,0,d,i));break;case Vm.Home:l?t=Math.max(c,t-vV):(BF(e)&&(t=c),n=0);break;case Vm.End:l?t=Math.min(u,t+vV):(BF(e)&&(t=u),n=d);break;case Vm.PageDown:t=Math.min(u,t+vV);break;case Vm.PageUp:if(l)t=Math.max(c,t-vV);else{const e=s?yV(s):1,n=t-e;t=n>0&&n<=vV?e:Math.max(c,t-vV)}}return[t,n]},IV=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},AV=[Vm.Home,Vm.End,Vm.PageUp,Vm.PageDown],RV=()=>{const e=k(!1),t=k(0),n=k(0),r=k(null),o=k(null),i=k(null),a=k(0),s=Kg(pB),l=Kg(ZF),c=Gg(ub)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=Gg(hV),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=Gg(fV),{scrollToCell:v,scrollableContainerElement:y}=Gg(mV),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=Gg(gV),{direction:E,announce:I,isInteractionEnabled:A,paginationNeeded:R,shouldRefocusRef:M}=Gg(bV),T=D(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let n=0;n<e.length;n++)t[n+1]=t[n]+(e[n]??0);return t})(h),[h]);P(()=>()=>{t.current+=1,n.current+=1,a.current+=1,r.current?.(),r.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const q=O((e,t,n,r)=>{const o=t=>{if(r&&!r())return void n?.(!1);const i=xV(u,e,d,p);if(i)return document.activeElement!==i&&o$(i),document.activeElement===i?void n?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void n?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):n?.(!1)};requestAnimationFrame(()=>{o(t)})},[u,d,p]),L=O((e,t)=>{const r=a.current+1;a.current=r;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==r)return;if(n.current!==t)return;if(u instanceof HTMLElement&&!u.isConnected)return;if(Date.now()>s||i>=5)return;const c=document.activeElement;c&&c!==document.body&&c!==document.documentElement||(i+=1,M&&(M.current=!0),o.current?.(),o.current=SV(v,u,e,d,p,y,10,()=>a.current===r&&n.current===t,()=>{q(e,300,()=>{M&&(M.current=!1)},()=>a.current===r&&n.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[q,u,p,v,y,M,d]),N=O(()=>(M&&(M.current=!0),t.current+=1,t.current),[M]),j=O(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=O((e,n)=>{const r=o=>{t.current===e&&(i.current?.(),i.current=SV(v,u,n,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=xV(u,n,d,p);i&&document.activeElement!==i&&o$(i),o>0?requestAnimationFrame(()=>{r(o-1)}):t.current===e&&M&&(M.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{r(300)})})},[u,d,p,v,M,y]),z=O((e,t)=>{if(!UF(e))return;vm(e),j(),n.current+=1;const o=n.current;a.current+=1,r.current?.(),r.current=null;const i=((e,t)=>yV(t)+e+(t.atBottom?1:0))(p,d),l=EV(e,t,i,f,E,g,d);IV(u),s(l);const[,c]=l,[,h]=t;return c!==h&&((e,t,n)=>{if(!e)return;const r=t[n]??0,o=t[n+1]??r,{scrollLeft:i,clientWidth:a}=e;r<i?e.scrollLeft=r:o>i+a&&(e.scrollLeft=o-a)})(y,T,c),M&&(M.current=!0),r.current=SV(v,u,l,d,p,y,10,()=>n.current===o,()=>{q(l,300,t=>{var n;M&&(M.current=!1),t&&(n=e.key,AV.includes(n))&&L(l,o)},()=>n.current===o)}),l},[u,d,p,f,E,v,s,g,y,M,q,j,T,L]),F=O(e=>{e.key===Vm.Esc?x.enabled&&!S&&(vm(e),x.blur?.(!0)):VF(e.key)&&vm(e)},[x,S]),$=O((e,t,n)=>{switch(e.key){case Vm.C:vm(e),A&&(e.ctrlKey||e.metaKey)&&Qm(e.currentTarget);break;case Vm.Enter:case Vm.Space:if(!A){vm(e);break}n?.(e);break;default:z(e,[0,t])}},[z,A]),B=O((t,r,o,i)=>{const a=[r+m,o];switch(t.key){case Vm.Space:if(vm(t),i.isSelectable&&C){e.current=!0;const n=N();l({type:_O.Select,payload:{cell:i,evt:t,announce:I}}),_(n,a)}break;case Vm.Enter:if(vm(t),e.current=!1,S){N(),s($O),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),n.current+=1;const t=n.current;q($O,300,()=>{M&&(M.current=!1)},()=>n.current===t)}break;case Vm.Esc:if(e.current=!1,S){vm(t);const e=N();w?.cancel(),_(e,a)}break;case Vm.C:vm(t),A&&(t.ctrlKey||t.metaKey)&&Qm(t.currentTarget);break;case Vm.Tab:{const e=t.shiftKey||!R;x.enabled&&S&&e&&(vm(t),bm(t.currentTarget,x,t.shiftKey));break}default:{const n=t.key===Vm.Left||t.key===Vm.Right,r=S||Boolean(w?.isModal())||e.current;if(n&&r){vm(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:_O.SelectMultiAdd,payload:{cell:i,evt:t,announce:I}});break}}},[m,z,C,l,I,S,w,x,R,A,N,_,s,v,y,q,M]),H=O(t=>{t.key===Vm.Space&&(e.current=!1),t.key===Vm.Shift&&l({type:_O.SelectMultiEnd})},[l]),V=O((e,t)=>{if(S)vm(e);else{if(e.key!==Vm.Space)return e.key===Vm.C?(vm(e),void(A&&(e.ctrlKey||e.metaKey)&&Qm(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,A]),W=O(e=>{j(),n.current+=1;const t=n.current;IV(u),s(e),x.enabled&&x.focus?.(),q(e,2,n=>{n&&L(e,t)},()=>n.current===t)},[u,s,x,q,j,L]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:B,handleBodyKeyUp:H,handleTotalsKeyDown:V,focusHeadCellOnClick:O(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:O((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:O(e=>{c&&W([b,e])},[W,b,c])}};var DV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function MV(e,t){return e===t||!(!DV(e)||!DV(t))}function kV(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!MV(e[n],t[n]))return!1;return!0}function TV(e,t){var n;void 0===t&&(t=kV);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var qV="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function PV(e){cancelAnimationFrame(e.id)}function LV(e,t){var n=qV();var r={id:requestAnimationFrame(function o(){qV()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var OV=-1;function NV(e){if(void 0===e&&(e=!1),-1===OV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),OV=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return OV}var jV=null;function _V(e){if(void 0===e&&(e=!1),null===jV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?jV="positive-descending":(t.scrollLeft=1,jV=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),jV}return jV}var zV=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function FV(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Wc(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Wc(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=TV(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=TV(function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=TV(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(_V()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&PV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=LV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Oc(t,e),t.getDerivedStateFromProps=function(e,t){return $V(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=NV();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(_V()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&PV(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?zV:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],I=this._getVerticalRangeToRender(),A=I[0],R=I[1],D=[];if(r>0&&g)for(var M=A;M<=R;M++)for(var k=w;k<=E;k++)D.push(C(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,k)}));var T=a(this.props,this._instanceProps),q=s(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Ln({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(c||u||"div",{children:D,ref:l,style:{height:T,pointerEvents:x?"none":void 0,width:q}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(H),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var $V=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},BV=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},HV=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},VV=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var c=a+1;c<=n;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},WV=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?UV(e,t,n,i,0,r):GV(e,t,n,Math.max(0,i),r)},UV=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=VV(e,t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},GV=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&VV(e,t,r,n).offset<o;)r+=a,a*=2;return UV(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},KV=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=VV(e,t,n,i),c="column"===e?HV(t,i):BV(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=u+s?"auto":"center"),r){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);default:return o>=d&&o<=u?o:d>u||o<d?d:u}},YV=FV({getColumnOffset:function(e,t,n){return VV("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return WV("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=VV("column",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=VV("column",e,c,r).size;return c},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:BV,getEstimatedTotalWidth:HV,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return KV("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return KV("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return VV("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return WV("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=VV("row",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=VV("row",e,c,r).size;return c},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),XV=function(e,t){return e};function JV(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,Wc(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Wc(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=TV(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=TV(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=TV(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(_V()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&PV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=LV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Oc(t,e),t.getDerivedStateFromProps=function(e,t){return ZV(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?NV():0:l.scrollHeight>l.clientHeight?NV():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(_V()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&PV(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?XV:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],I=w[1],A=[];if(c>0)for(var R=E;R<=I;R++)A.push(C(t,{data:u,key:p(R,u),index:R,isScrolling:b?y:void 0,style:this._getItemStyle(R)}));var D=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Ln({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:A,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?D:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(H),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ZV=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},QV=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},eW=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=QV(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},tW=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&QV(e,n,t).offset<r;)n+=i,i*=2;return eW(e,t,Math.min(n,o-1),Math.floor(n/2),r)},nW=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},rW=JV({getItemOffset:function(e,t,n){return QV(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:nW,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=QV(e,t,o),p=nW(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===n&&(n=r>=h-u&&r<=f+u?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?eW(e,t,o,0,n):tW(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=QV(e,t,r),d=n+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=QV(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function oW(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var iW=["style"],aW=["style"];function sW(e,t){var n=e.style,r=On(e,iW),o=t.style,i=On(t,aW);return!oW(n,o)&&!oW(r,i)}const lW=Og(0),cW=Og(0),uW=Og(0),dW=Og(e=>e(lW)+e(cW)),pW=Og(e=>{const t=e(Ub),n=e(V_),r=t.height-(n?41:0);return{width:t.width,height:r}}),fW=Og(e=>{const t=e(pW),n=e(jN),r=e(_N);return{width:t.width-r,height:t.height-n}}),hW=Og(e=>{const t=e(fW),n=e(dW),r=e(uW);return Math.min(t.height-n,r)}),mW=Og(-1),gW=Hx(e=>Og(t=>t(mW)===e)),bW=({style:e})=>Yt.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var vW=w.memo(bW,sW);const yW=Og(e=>{const t=e(fW),n=e(oz),r=e(dW),o=e(uW)+r,i=e(sV)*n+r;return o<2*t.height?o:i}),xW=Og(e=>e(yW)<=e(pW).height),SW=(e,t,n,r)=>{const o=n&&(!n.isNumeric||n.isDual),i=n?.isTotalRow??!1;return(e=>{const t=Gg(z$),n=k(e);n.current=e;const r=k(null);return O(e=>{const o=r.current;o!==e&&(o&&t&&(t.callbacks.delete(o),t.observer.unobserve(o)),r.current=e,e&&t&&(t.callbacks.set(e,n),t.observer.observe(e)))},[t])})(O(n=>{const a=n.contentBoxSize.at(0)?.blockSize;a&&o&&r(a,e,t,i)},[i,t,r,e,o]))},wW=()=>{},CW=e=>{e.preventDefault()};const EW=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:c,onKeyDown:u,onKeyUp:d,onCellClick:p}=r,f=Gg(gW(t)),h=Kg(mW),m=Gg(ez),g=Gg(Lb),b=Gg(Db),v=Gg(Tb),y=Gg(e$),x=Gg(ub),S=Gg(xW),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:I,cellSelectionState:A}=function(e){const t="object"==typeof e,n=Gg(Mb),r=Kg(ZF),o=Gg(QF(e));if(IH(e),t&&n){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=CH(CW,e,r,wW);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),R=SW(t,e,w,s),D=i[e]?.isDim?m.dimension.values:m.measure.values,M=wH(i[e].id);if("object"==typeof w){const{style:r,isBlank:o}=((e,t,n,r,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS"),l=a("TLV_2710_TABLE_BLANK_TAG"),c=(e.isNull||!(s&&t.isDim))&&JN(e.qAttrExps,t.qAttrExprInfoIDs,l);let u=DH(o,i,e);u=s?i.subTotalRow:u,u=AH(u,i,e,t.isDim);const d=e.isNull||s&&t.isDim?u:ZN(u,e.qAttrExps,t.qAttrExprInfoIDs);return r!==jO.Selected||s?r!==jO.Disabled||s?n?{style:{...d,...i.grid.hoverColors},isBlank:c}:{style:d,isBlank:c}:{style:{...d,color:n?i.grid.hoverColors?.color:d.color,background:`${bN}, ${n?i.grid.hoverColors?.background:d.background}`},isBlank:c}:{style:{...d,...i.selectedColors},isBlank:c}})(w,i[e],a&&f,A,D,m,x),s={rowindex:t,columnindex:e},k=((e,t)=>e.representation.type===WP.Image&&"fitHeight"===e.representation.imageSize?CN(t,e.representation):e.align)(w,g),T=n=>{v&&p?.(t,e),C?.(n)},q=u?n=>{u(n,t,e,w)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${A} ${Hm}`,tabIndex:-1,style:{...n,...r,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:RN(g,w.isLastColumn,y),borderLeftWidth:DN(g,w.isLastColumn,y),justifyContent:k,borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:M},onMouseDown:T,onMouseUp:I,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:q,onKeyUp:d,title:b&&!o?w.representation.text:void 0,...s,children:Yt.jsx(SH,{cellSelectionState:A,hideTickIcon:!!w.isTotalRow,children:Yt.jsx(vH,{forwardRef:m.contentStaticLineCount||1===l?void 0:R,cell:w,style:r,isBlank:o,indentation:QN(w,i[e],x),justifyContent:k,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return Yt.jsx(vW,{style:{...n,...D,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:M}})};var IW=z(EW,sW);const AW=wv(Og(async e=>{const t=e(fb),n=e($b),r=e(oV).page,{qDataPages:o}=t.qHyperCube;if(0!==r||0===o.length){const e=r*Math.min(ej,t.qHyperCube.qSize.qcy);if(n&&"getHyperCubeData"in n)return n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),RW=Og(e=>{const t=e(sV),n=e(fW),r=e(oz);return Math.min(t,Math.ceil(n.height/r))}),DW=Og(e=>{const t=e(uz),n=e(fW);return t.reduce((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),MW=e=>{const t=k(e);return t.current=e,t},kW=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,TW=e=>-1===e.qElemNumber||!!e.qIsTotalCell,qW=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},PW=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some(e=>!e[t])},LW=(e,t,n,r,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,c)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,n,r,o,i,a,s,l,c)=>{const{qSize:u}=a.qHyperCube,d=r.qTop+n,p=o+n,f=e[p]??[],h=t.some(TW);return t.forEach((e,t)=>{const n=t+r.qLeft;if(f.at(n))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w,measureMinMax:C,qNumFormat:E,qIsAutoFormat:I,formattedNullValueText:A}=i[n],R=!m&&e.qIsNull,D=m&&I_(e,m),M=R||D?E_(m,e,a):e.qText,k=R?VO(M):HO(e),T=HO(e)&&!VO(e.qText??"");f[n]={id:OP(),...e,align:x_(k,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h&&!D,isTotalRow:h,pageRowIdx:p,pageColIdx:n,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:n===u.qcx-1,isNumeric:k,isDual:T,isNull:(!R||!k)&&I_(e,m),qNumFormat:E,qIsAutoFormat:I,formattedNullValueText:A,representation:Vj({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,measureMinMax:C,getText:()=>M,direction:c,enabledFeatures:{[WP.Image]:!0,[WP.Indicator]:!0,[WP.MiniChart]:!0,[WP.Bar]:!m&&s.flags.isEnabled("VNA-977-TABLE-BARS")}})},l(f[n],d,n)}),{row:f,pageRowIdx:p}})(n,l,c,e.qArea,u,r,o,i,a,s);n[p]=d})})},OW=({gridState:e,setEstimatedCellHeight:t})=>{const n=Gg(fb),r=Gg(Xb),o=Gg($b),i=Gg(cb),a=Gg(Lb),s=Gg(oV),l=Gg(AW),c=Gg(z_),u=Gg(sV),d=Gg(RW),p=Gg(DW),f=k([]),h=O((e,r)=>{const o=Array.isArray(r)?r.slice(0,u):(e=>Array(e).fill(void 0))(u);return LW(e,s,o,c,n,i,t,a),f.current=o,o},[u,s,c,n,i,t,a]),[m,g]=M(()=>h(l??[]));Om(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const n=Gg(db),r=k(new Set),o=k(new Set),i=k(new Set),a=MW(e),s=MW(t),l=D(()=>({enqueue:e=>{const t=kW(e);i.current.has(t)||(r.current.add(e),i.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),o.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),n=await a.current(t);o.current.has(e)&&s.current(n)}catch(t){e.forEach(e=>{i.current.delete(kW(e))}),n.error({msg:"Failed to fetch pages",payload:t})}finally{o.current.delete(e)}}},75))},clear:()=>{r.current.clear(),o.current.clear(),i.current.clear()}}),[n,a,s]);return l})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=O((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(PW(f.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(e)}},[b]),y=O((e,t,n,r)=>{for(let o=t;o<t+r;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(qW(f.current,e,t,n,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(t)}}},[b,s]);return P(()=>{if(void 0===l)return;const{qcx:t,qcy:r}=n.qHyperCube.qSize,o=e.current.overscanRowStartIndex,i=e.current.overscanColumnStartIndex,a=o+s.page*s.rowsPerPage,c=t-i,u=s.rowsPerPage-o,f=Math.min(100,c,t,p+5),h=Math.min(100,u,r,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,n,d,p,s,b,y,e,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},NW=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},jW=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,_W=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=Gg(ez),i=Gg(uz),{estimateLineCount:a}=Mm(o.dimension.values),s=zN(o.dimension.values.fontSize),l=e||t||1===n;return O((e,t,o)=>{if(l||e.representation.type===WP.Image||e.isNumeric&&!e.isDual)return;const c=(e=>Math.max(0,e-24-1))(i[o]),u=e.representation.text?a({text:e.representation.text,maxWidth:c,isNumeric:!1}):1,d=Math.min(n,Math.max(1,u));r(d*s,t,o,e.isTotalRow??!1)},[l,i,a,n,s,r])},zW=({isStaticNbrOfLines:e,minRowHeight:t,state:n,staticRowHeight:r=0})=>{const o=Gg(Wj);j(()=>{const i=e?r:((e,t)=>{const n=0===t?0:e/t;return Math.ceil(n)})(n.sumHeight,n.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,n,r,o])},FW=({isSnapshot:e,gridRef:t})=>{const n=Gg(ez),r=Gg(sV),[o,i]=M(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=Gg(rz),s=Gg(oz),l=Gg(iz),c=!!n.contentStaticLineCount,u=Math.max(8e6/r,s,l)-9,d=u+9,p=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(u/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:n})=>n?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:c});(({gridRef:e,setState:t})=>{const n=Gg(fb),r=Gg(oV),o=Gg(uz),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;Om(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),Om(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:n})=>{const r=Gg(oz),o=Gg(iz);return O((i,a,s,l=!1)=>{$(()=>{e(e=>{const c=l?o:r,u=Math.max(c,i+9),d=Math.min(t,u),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!jW(p.get(s),d))return e;const f={...e},h=e.rowHeights.get(a);p.set(s,d);const m=void 0===h||d>=h?d:NW(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,n.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,r,o,n])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>O((o,i,a,s)=>{e||t||1===n||r(o,i,a,s)},[e,t,n,r]))({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),g=_W({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=O(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return zW({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},$W=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const n=O(e=>{const n=e.contentBoxSize.at(0)?.blockSize;void 0!==n&&t(n)},[t]);F$({ref:e,callback:n})};let BW=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const HW=({loadRows:e,loadColumns:t,gridState:n})=>{const r=Gg(Wj),o=Gg(fb),i=Gg(oV),a=Gg(sV);return O(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:c,overscanRowStopIndex:u,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},n,r)=>{let o,i;return o=r>t?BW.Down:r<t?BW.Up:BW.None,i=n>e?BW.Right:n<e?BW.Left:BW.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,c);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=c,n.current.overscanRowStopIndex=u,c>a)return;const b=s,v=c+i.page*i.rowsPerPage,y=l-s+1,x=u-c+1;if(r.visibleLeft=d,r.visibleWidth=p-d+1,r.visibleTop=f+i.page*i.rowsPerPage,r.visibleHeight=h-f+1,r.page=i.page,r.rowsPerPage=i.rowsPerPage,m===BW.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===BW.Up){const t=x+25,n=i.page*i.rowsPerPage,r=Math.max(n,v-25);e(b,r,y,t)}if(g===BW.Right){const e=o.qHyperCube.qSize.qcx-b,n=y+5,r=Math.min(e,n);t(b,v,r,x)}else if(g===BW.Left){const e=Math.max(0,b-5),n=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,n,x)}},[n,a,i.page,i.rowsPerPage,r,e,o.qHyperCube.qSize.qcx,t])};const VW=({columnIndex:e,data:t,rowIndex:n})=>{const r=t.rowsInPage[n]?.[e];return r?.id??`${n}-${e}`},WW=(e,t)=>{if(!e||!t)return;const n=e.scrollHeight-e.clientHeight,r=Math.round(n*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==r&&(e.scrollTop=r)},UW={overflow:"hidden",willChange:"auto"},GW=F((e,t)=>{const{handleBodyKeyDown:n,handleBodyKeyUp:r,focusBodyCellOnClick:o}=RV(),i=Gg(z_),a=Gg(fW),s=Kg(uW),l=Gg(hW),c=Gg(Wj),u=Gg(fb),d=Gg(Lb),p=Gg(uz),f=Gg(sV),h=Gg(cV),m=Kg(lV),g=k(null),b=k(null),v=k(null),y=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=k(0),S=!!KN(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:I}=FW({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:A,loadRows:R,loadColumns:M}=OW({gridState:y,setEstimatedCellHeight:C}),T=HW({loadRows:R,loadColumns:M,gridState:y}),q=kB(),L=D(()=>({rowsInPage:A,columns:i,isHoverEnabled:S,lineClamp:I,setMeasuredCellHeight:w,resizeObserverTaskScheduler:q,onKeyDown:n,onKeyUp:r,onCellClick:o}),[A,i,S,I,w,q,n,r,o]);return j(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=Kg(ZF),{shouldRefocusRef:n}=Gg(bV),r=Gg(Gb),o=Gg(aV);P(()=>{t({type:_O.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=O(()=>{n&&(n.current=r.contains(document.activeElement))},[n,r]);TB({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(A),B(t,()=>({interpolatedScrollTo:(e,t)=>{const n=(v.current?.clientHeight??l)-l,r=Math.round(n*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:r,scrollLeft:t})}}),[v,l,f]),P(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),WW(h,b.current)}),()=>{m(null)}),[h,m]),$W(v,s),Yt.jsx(YV,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:UW,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:L,onItemsRendered:T,itemKey:VW,className:"sn-table-body",direction:d,children:IW})});var KW=z(GW);const YW=({children:e})=>{const t=Gg(fz),n=Gg(yW);return Yt.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n},children:e})},XW=(e,t)=>{const n=k(null),r=Gg(uz);j(()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)},[t,n,e,r.length]);const o=O(n=>{const r=n.contentBoxSize.at(0)?.blockSize;r&&t(r+9,e)},[e,t]);return F$({ref:n,callback:o}),n},JW=Ec("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:n,applicableStyle:r,color:o})=>({...r,background:n,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),ZW=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Gg(ez),c=Gg(Lb),u=Gg(Ab),d=Gg(e$),p=Kg(NN),f=Gg(__),h=Gg(Tb),m=Gg(uz)[e],g=Gg(Fb),b=Gg(fB(e)),v=r[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=WH({isInteractionEnabled:h,column:v}),C=Gg(Sb),E=XW(e,i),I=r.length-1===e,A=C?T$:J$,{ref:R,isDragging:D}=YH(v,e),M=wH(v.id),k=b&&!g.enabled&&h?0:-1,T=a?t=>{a(t,e,S)}:void 0;return Yt.jsxs(JW,{"data-dragging":D,ref:R,className:`sn-table-cell ${Hm}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...n$(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:RN(c,I,d),borderLeftWidth:DN(c,I,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:M},interactions:u,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:k,onKeyDown:T,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[Yt.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),Yt.jsx(HH,{column:v,isLastColumn:I,onColumnResize:o,setIsAdjustingWidth:p})]})},QW=e=>{const[t,n]=M(new Map);Om(()=>{n(new Map)},[e.length]);const r=O((e,t)=>{n(n=>jW(n.get(t),e)?new Map(n).set(t,e):n)},[]);return{rowHeight:D(()=>NW(t),[t]),setMeasuredCellHeight:r}},eU=(e,t)=>{B(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},tU=e=>{const t=Gg(Xb),n=Gg(fb),r=Gg(oV),o=Gg(uz);Om(()=>{e.current?.resetAfterIndex(0,!1)},[n,r,e,o,t])},nU={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},rU=F((e,t)=>{const{columResizeHandler:n}=e,r=Gg(z_),o=Gg(fW),i=Kg(lW),a=w.useRef(null),s=k(null),l=Gg(tz),c=Gg(fb),u=Gg(Nb),d=Gg(Lb),p=Gg(uz),{rowHeight:f,setMeasuredCellHeight:h}=QW(r),m=$H(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=RV();return eU(t,a),tU(a),$W(s,i),Yt.jsx(rW,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...nU,...m?{display:"none"}:void 0},itemCount:r.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>r[e].id,itemData:{columns:r,columResizeHandler:n,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:ZW})});var oU=z(rU);const iU=F((e,t)=>{const{children:n,onScroll:r}=e,o=Gg(Lb),i=Gg(kb),{width:a,height:s}=Gg(pW),l=Kg(cV),c=O(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return Yt.jsx("div",{"data-testid":"scrollable-container",ref:c,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:r,dir:o,tabIndex:-1,children:n})}),aU=({children:e})=>{const t=Gg(Lb),n=Gg(fW);return Yt.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:n.width,height:n.height},children:e})},sU=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Gg(ez),c=Gg(fb),u=Gg(Lb),d=Gg(Db),p=Gg(Tb),f=Gg(e$),h=Gg(xW),m=XW(e,i),g=r[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=r[e],y=c.qHyperCube.qSize.qcx-1===e,x=wH(r[e].id),S=a?t=>{a(t,e)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${Hm}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...n$(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:RN(u,y,f),borderLeftWidth:DN(u,y,f),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:h&&o.atBottom||o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:b,textAlign:b,boxSizing:"border-box",cursor:"default",opacity:x},children:Yt.jsx(k$,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},lU=F((e,t)=>{const{totals:n}=e,r=Gg(z_),o=Gg(fW),i=Kg(cW),a=k(null),s=k(null),l=Gg(nz),c=Gg(Lb),u=Gg(fb),d=Gg(uz),{rowHeight:p,setMeasuredCellHeight:f}=QW(r),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=RV();return eU(t,a),tU(a),$W(s,i),Yt.jsx(rW,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:nU,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:r,totals:n,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:c,children:sU})});var cU=z(lU);const uU=(e,t,n)=>{const r=Gg(Lb),o=Gg(Wj);return O(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,c=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,r),u=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=u,o.scrollLeft=c,n.current?.interpolatedScrollTo(Number.isNaN(u)?0:u,c),e.current?.scrollTo(c),t.current?.scrollTo(c)},[o,n,e,t,r])};var dU=z(()=>{const e=Gg(__),t=k(null),n=k(null),r=k(null),o=k(null),i=uU(n,r,o),a=O(()=>{t.current&&(t.current.scrollTop=0)},[t]);hB(),(e=>{const t=Gg(F_),n=Gg(oV),r=Gg(Xb),o=Gg(sV);P(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),P(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[n,o,r,e])})(t),CB(t);const s=Yt.jsx(cU,{ref:r,totals:e},"totals");return Yt.jsxs(cB,{children:[Yt.jsx(iU,{ref:t,onScroll:i,children:Yt.jsxs(YW,{children:[Yt.jsxs(aU,{children:[Yt.jsx(oU,{ref:n,columResizeHandler:a}),e.atTop?s:null,Yt.jsx(KW,{ref:o}),e.atBottom?s:null]}),Yt.jsx(t$,{})]})}),Yt.jsx(tB,{isPagination:!1})]})});const pU=()=>{const e=Gg(fb),t=Gg(Ub),n=Gg(Ab),{paginationNeeded:r,totalRowCount:o,totalColumnCount:i,totalPages:a}=Gg(j_),s=Gg(Xb),l=Gg(Jb),c=Gg(Fb),[u,d]=Yg(oV),p=k(null),f=k(!1),h=Kg(iV),m=Kg(aV);P(()=>{h(f)},[h]);const g=w.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=RV();return(()=>{const e=Gg(Gb),{keyboard:t}=Gg(gV),n=Gg(pB),r=Gg(__),o=Gg(sV),{scrollToCell:i}=Gg(mV),{shouldRefocusRef:a}=Gg(bV),s=k({focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}),l=k(null),c=k(null);j(()=>{s.current={focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}},[n,r,o,i,e]),P(()=>{let e=!1;const{focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:u}=s.current;if("function"==typeof u.querySelector){if(t.active){const[t,a]=n,d=r.atTop?2:1;if(t>=d&&t<d+o){null!==c.current&&(cancelAnimationFrame(c.current),c.current=null),i?.(t-d,a);const n=t=>{if(e)return;const r=xV(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);r&&document.activeElement!==r&&o$(r),r&&document.activeElement===r||t>0&&(l.current=requestAnimationFrame(()=>{n(t-1)}))};l.current=requestAnimationFrame(()=>{e||n(5)})}else{const e=xV(u,n,r,o);e&&o$(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),c.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const n=xV(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);n?.blur(),IV(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==c.current&&(cancelAnimationFrame(c.current),c.current=null)}}},[t.active,e,a])})(),dB(p,f),Yt.jsxs(I$,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[Yt.jsx(RB,{}),Yt.jsx(dU,{}),Yt.jsx(zF,{paginationNeeded:r,handleChangePage:e=>{d(e)},pageInfo:u,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:c,translator:l,theme:s,interactions:n,rect:t,layout:e})]})};var fU=z(pU);const hU=e=>{const t=e.get($b),n=e.get(_b),r=e.get(pb),o=e.get(Lb);a(()=>{r&&t&&(n?function(e){const t=e.get(Lb),n=e.get(Yb),r=mz(t);n.render(Yt.jsx(yi,{stylisPlugins:"rtl"===t?[PO]:void 0,children:Yt.jsx(Ac,{theme:r,children:Yt.jsx($g,{store:e,children:Yt.jsx(hz,{children:Yt.jsx(QH,{})})})})}))}(e):function(e){const t=e.get(Lb),n=e.get(Yb),r=mz(t);n.render(Yt.jsx(w.StrictMode,{children:Yt.jsx(Ac,{theme:r,children:Yt.jsx($g,{store:e,children:Yt.jsx(hz,{children:Yt.jsx(fU,{})})})})}))}(e))},[r,n,e,t,o])};function mU(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=n.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),c={top:r.y+i.height+(t.atTop?s.height:0),bottom:r.y+r.height-(t.atBottom?s.height:0)},u=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(l,c),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(l,c),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(l,c,u);return{visibleRowStartIndex:u,visibleRowEndIndex:d,rowPartialHeight:p}}const gU=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},bU=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const vU=(e,t,n,r,o)=>{if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||A_.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},yU=(e,t,n,r,o)=>{if(r&&!r.isMultiPage)return r;const i=g_(e,r);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=mU(n,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:vU(a,o,e,t,r),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=n?.getBoundingClientRect(),o=n?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:c=0}=t,u=l*c,d=a-u,p=d+s-1,f=gU(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+u,visibleRowEndIndex:p+u};const g=r.y+r.height,b=(bU(h,m,g)?d:d+1)+u;let v=p+u;const y=gU(p,o),x=y?.getBoundingClientRect();return y&&x&&(bU(x,m,g)||(v=p-1+u)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:vU(s,a,e,t,r),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},xU=({store:e})=>{const t=e.get(fb),n=e.get($b),r=e.get(Gb),o=e.get(Wb),i=e.get(Nb),a=e.get(_b);u(async s=>{const l=s;if(!l.snapshotData||!n||l.snapshotData.content)return l;if("getHyperCubeData"in n){const s=e.get(Wj),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=yU(t,s,r,i,a);l.qHyperCube.qDataPages=await n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),d(()=>({getViewState:()=>yU(t,e.get(Wj),r,i,a)}),[t,e,r,a])},SU={version:JSON.stringify("6.71.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[],accessibleHeader:!1};var wU=e=>({properties:{initial:SU},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>vv({...t,env:e}),exportProperties:pv,exploration:IP(e)});const CU=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),EU=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});
|