@nebula.js/sn-table 6.36.0 → 6.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.
|
|
2
|
+
* @nebula.js/sn-table v6.37.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,R,I,A,k,P,D,M,T,q,O,L,N,j,_,z,F,$,H,B,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,R=e.isValidElement,I=e.cloneElement,A=e.Children,k=e.useMemo,P=e.useState,D=e.useRef,M=e.createContext,T=e.useReducer,q=e.useEffect,O=e.useDebugValue,L=e.useCallback,N=e.useContext,j=e.useLayoutEffect,_=e.useInsertionEffect,z=e.memo,F=e.forwardRef,$=e.startTransition,H=e.useImperativeHandle,B=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:CJ(e),ext:NF(e),component(){const t=p(),o=n(()=>eb(),[!1!==t.usePagination]);o.set(mb,e);const i=f();o.set(Zb,i),o.set(vb,t),o.set(pb,h()),o.set(Ub,m()),o.set(Mb,g()),o.set(nv,b()),o.set(Pb,v()),o.set(_b,r()),o.set(Wb,y()),o.set(Jb,x()),o.set(hb,S());const a=$m(t,i,EJ,RJ);o.set(tv,a),o.set(bb,Jm(a,t,e)),o.set(fb,$t()),jF(o),l?.((e,t)=>{const n=t.target,r=n?.closest(`.${ag}`);r?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{gg(r)}})}),SJ({store:o}),mJ(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=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let 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=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let 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=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let 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";function ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var de,pe="top",fe="top-right",he="right",me="bottom-right",ge="bottom",be="bottom-left",ve="left",ye="top-left";ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(de={},"equal-equal",[pe,ge]),"equal-higher",[ge,me]),"equal-lower",[pe,fe]),"equal-void",[pe,ge]),"higher-equal",[ve,be,pe,fe]),"higher-higher-acute",[ge,be,ve,fe]),"higher-higher-obtuse",[ge,pe]),"higher-lower-negative",[pe,fe,he]),"higher-lower-positive",[ge,be,ve]),"higher-void",[pe]),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(de,"lower-equal",[pe]),"lower-higher-negative",[pe,ye]),"lower-higher-positive",[me]),"lower-lower-acute",[pe,ye,ve,fe,he]),"lower-lower-obtuse",[pe,ge]),"lower-void",[pe]),"void-equal",[pe]),"void-higher",[pe,ge]),"void-lower",[pe,ge,ve]),"void-void",[pe]),ue(de,"unclassified",[pe,ge,he,ve,fe,me,be,ye]);var xe,Se,we=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Ce=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Ee(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Ce:we}var Re=function(){if(Se)return xe;Se=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 xe=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},xe}();function Ie(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ae(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ke(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Re);var Pe=.7,De=1/Pe,Me="\\s*([+-]?\\d+)\\s*",Te="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Oe=/^#([0-9a-f]{3,8})$/,Le=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),Ne=new RegExp(`^rgb\\(${qe},${qe},${qe}\\)$`),je=new RegExp(`^rgba\\(${Me},${Me},${Me},${Te}\\)$`),_e=new RegExp(`^rgba\\(${qe},${qe},${qe},${Te}\\)$`),ze=new RegExp(`^hsl\\(${Te},${qe},${qe}\\)$`),Fe=new RegExp(`^hsla\\(${Te},${qe},${qe},${Te}\\)$`),$e={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 He(){return this.rgb().formatHex()}function Be(){return this.rgb().formatRgb()}function Ve(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Oe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?We(t):3===n?new Ye(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ue(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=Le.exec(e))?new Ye(t[1],t[2],t[3],1):(t=Ne.exec(e))?new Ye(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=je.exec(e))?Ue(t[1],t[2],t[3],t[4]):(t=_e.exec(e))?Ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ze.exec(e))?tt(t[1],t[2]/100,t[3]/100,1):(t=Fe.exec(e))?tt(t[1],t[2]/100,t[3]/100,t[4]):$e.hasOwnProperty(e)?We($e[e]):"transparent"===e?new Ye(NaN,NaN,NaN,0):null}function We(e){return new Ye(e>>16&255,e>>8&255,255&e,1)}function Ue(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ye(e,t,n,r)}function Ge(e){return e instanceof ke||(e=Ve(e)),e?new Ye((e=e.rgb()).r,e.g,e.b,e.opacity):new Ye}function Ke(e,t,n,r){return 1===arguments.length?Ge(e):new Ye(e,t,n,null==r?1:r)}function Ye(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xe(){return`#${et(this.r)}${et(this.g)}${et(this.b)}`}function Je(){const e=Ze(this.opacity);return`${1===e?"rgb(":"rgba("}${Qe(this.r)}, ${Qe(this.g)}, ${Qe(this.b)}${1===e?")":`, ${e})`}`}function Ze(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function et(e){return((e=Qe(e))<16?"0":"")+e.toString(16)}function tt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rt(e,t,n,r)}function nt(e){if(e instanceof rt)return new rt(e.h,e.s,e.l,e.opacity);if(e instanceof ke||(e=Ve(e)),!e)return new rt;if(e instanceof rt)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 rt(a,s,l,e.opacity)}function rt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ot(e){return(e=(e||0)%360)<0?e+360:e}function it(e){return Math.max(0,Math.min(1,e||0))}function at(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ie(ke,Ve,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:He,formatHex:He,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nt(this).formatHsl()},formatRgb:Be,toString:Be}),Ie(Ye,Ke,Ae(ke,{brighter(e){return e=null==e?De:Math.pow(De,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ye(Qe(this.r),Qe(this.g),Qe(this.b),Ze(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:Xe,formatHex:Xe,formatHex8:function(){return`#${et(this.r)}${et(this.g)}${et(this.b)}${et(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Je,toString:Je})),Ie(rt,function(e,t,n,r){return 1===arguments.length?nt(e):new rt(e,t,n,null==r?1:r)},Ae(ke,{brighter(e){return e=null==e?De:Math.pow(De,e),new rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new rt(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 Ye(at(e>=240?e-240:e+120,o,r),at(e,o,r),at(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new rt(ot(this.h),it(this.s),it(this.l),Ze(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=Ze(this.opacity);return`${1===e?"hsl(":"hsla("}${ot(this.h)}, ${100*it(this.s)}%, ${100*it(this.l)}%${1===e?")":`, ${e})`}`}}));const st=Math.PI/180,lt=180/Math.PI,ct=.96422,ut=.82521,dt=4/29,pt=6/29,ft=3*pt*pt,ht=pt*pt*pt;function mt(e){if(e instanceof gt)return new gt(e.l,e.a,e.b,e.opacity);if(e instanceof St)return wt(e);e instanceof Ye||(e=Ge(e));var t,n,r=xt(e.r),o=xt(e.g),i=xt(e.b),a=bt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=bt((.4360747*r+.3850649*o+.1430804*i)/ct),n=bt((.0139322*r+.0971045*o+.7141733*i)/ut)),new gt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function gt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function bt(e){return e>ht?Math.pow(e,1/3):e/ft+dt}function vt(e){return e>pt?e*e*e:ft*(e-dt)}function yt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function xt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function St(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function wt(e){if(isNaN(e.h))return new gt(e.l,0,0,e.opacity);var t=e.h*st;return new gt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ie(gt,function(e,t,n,r){return 1===arguments.length?mt(e):new gt(e,t,n,null==r?1:r)},Ae(ke,{brighter(e){return new gt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new gt(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 Ye(yt(3.1338561*(t=ct*vt(t))-1.6168667*(e=1*vt(e))-.4906146*(n=ut*vt(n))),yt(-.9787684*t+1.9161415*e+.033454*n),yt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ie(St,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof St)return new St(e.h,e.c,e.l,e.opacity);if(e instanceof gt||(e=mt(e)),0===e.a&&0===e.b)return new St(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*lt;return new St(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new St(e,t,n,null==r?1:r)},Ae(ke,{brighter(e){return new St(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new St(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return wt(this).rgb()}}));var Ct=e=>()=>e;function Et(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ct(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?Et: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):Ct(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Ke(e)).r,(t=Ke(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Et(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 Rt="center",It="bottom";[{key:"NoDataExist",alignment:Rt,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Rt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Rt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Rt},{key:"DataRangeIncludingZero",alignment:It},{key:"LimitedData",alignment:It},{key:"NegativeOrZeroValues",alignment:It}].reduce(function(e,t){return e[t.key]=t,e},{});var At,kt=["__proto__","constructor"];function Pt(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!kt.some(function(e){return r.includes(e)})){for(var i=e,a=0;a<r.length-1;++a){var s=r[a];void 0===i[s]&&(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}void 0!==n?i[o]=n:delete i[o]}}}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function Mt(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 Tt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ot)):void 0===t&&(t=qt);for(var n,r,o,i,a,s=new jt(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 jt(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Nt)}function qt(e){return e.children}function Ot(e){return Array.isArray(e)?e[1]:null}function Lt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Nt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function jt(e){this.data=e,this.depth=this.height=0,this.parent=null}jt.prototype=Tt.prototype={constructor:jt,count:function(){return this.eachAfter(Mt)},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 Tt(this).eachBefore(Lt)},[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,R,I,A,k,P,D,M,T,q,O,L,N,j,_,z,F,$,H,B,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,R=e.isValidElement,I=e.cloneElement,A=e.Children,k=e.useMemo,P=e.useState,D=e.useRef,M=e.createContext,T=e.useReducer,q=e.useEffect,O=e.useDebugValue,L=e.useCallback,N=e.useContext,j=e.useLayoutEffect,_=e.useInsertionEffect,z=e.memo,F=e.forwardRef,$=e.startTransition,H=e.useImperativeHandle,B=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:kJ(e),ext:$F(e),component(){const t=p(),o=n(()=>eb(),[!1!==t.usePagination]);o.set(mb,e);const i=f();o.set(Zb,i),o.set(vb,t),o.set(pb,h()),o.set(Ub,m()),o.set(Mb,g()),o.set(nv,b()),o.set(Pb,v()),o.set(_b,r()),o.set(Wb,y()),o.set(Jb,x()),o.set(hb,S());const a=$m(t,i,PJ,DJ);o.set(tv,a),o.set(bb,Jm(a,t,e)),o.set(fb,$t()),HF(o),l?.((e,t)=>{const n=t.target,r=n?.closest(`.${ag}`);r?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{gg(r)}})}),IJ({store:o}),xJ(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=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let 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=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let 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=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let 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";function ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var de,pe="top",fe="top-right",he="right",me="bottom-right",ge="bottom",be="bottom-left",ve="left",ye="top-left";ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(de={},"equal-equal",[pe,ge]),"equal-higher",[ge,me]),"equal-lower",[pe,fe]),"equal-void",[pe,ge]),"higher-equal",[ve,be,pe,fe]),"higher-higher-acute",[ge,be,ve,fe]),"higher-higher-obtuse",[ge,pe]),"higher-lower-negative",[pe,fe,he]),"higher-lower-positive",[ge,be,ve]),"higher-void",[pe]),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(de,"lower-equal",[pe]),"lower-higher-negative",[pe,ye]),"lower-higher-positive",[me]),"lower-lower-acute",[pe,ye,ve,fe,he]),"lower-lower-obtuse",[pe,ge]),"lower-void",[pe]),"void-equal",[pe]),"void-higher",[pe,ge]),"void-lower",[pe,ge,ve]),"void-void",[pe]),ue(de,"unclassified",[pe,ge,he,ve,fe,me,be,ye]);var xe,Se,we=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Ce=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Ee(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Ce:we}var Re=function(){if(Se)return xe;Se=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 xe=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},xe}();function Ie(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ae(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ke(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Re);var Pe=.7,De=1/Pe,Me="\\s*([+-]?\\d+)\\s*",Te="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Oe=/^#([0-9a-f]{3,8})$/,Le=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),Ne=new RegExp(`^rgb\\(${qe},${qe},${qe}\\)$`),je=new RegExp(`^rgba\\(${Me},${Me},${Me},${Te}\\)$`),_e=new RegExp(`^rgba\\(${qe},${qe},${qe},${Te}\\)$`),ze=new RegExp(`^hsl\\(${Te},${qe},${qe}\\)$`),Fe=new RegExp(`^hsla\\(${Te},${qe},${qe},${Te}\\)$`),$e={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 He(){return this.rgb().formatHex()}function Be(){return this.rgb().formatRgb()}function Ve(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Oe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?We(t):3===n?new Ye(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ue(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=Le.exec(e))?new Ye(t[1],t[2],t[3],1):(t=Ne.exec(e))?new Ye(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=je.exec(e))?Ue(t[1],t[2],t[3],t[4]):(t=_e.exec(e))?Ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ze.exec(e))?tt(t[1],t[2]/100,t[3]/100,1):(t=Fe.exec(e))?tt(t[1],t[2]/100,t[3]/100,t[4]):$e.hasOwnProperty(e)?We($e[e]):"transparent"===e?new Ye(NaN,NaN,NaN,0):null}function We(e){return new Ye(e>>16&255,e>>8&255,255&e,1)}function Ue(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ye(e,t,n,r)}function Ge(e){return e instanceof ke||(e=Ve(e)),e?new Ye((e=e.rgb()).r,e.g,e.b,e.opacity):new Ye}function Ke(e,t,n,r){return 1===arguments.length?Ge(e):new Ye(e,t,n,null==r?1:r)}function Ye(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xe(){return`#${et(this.r)}${et(this.g)}${et(this.b)}`}function Je(){const e=Ze(this.opacity);return`${1===e?"rgb(":"rgba("}${Qe(this.r)}, ${Qe(this.g)}, ${Qe(this.b)}${1===e?")":`, ${e})`}`}function Ze(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function et(e){return((e=Qe(e))<16?"0":"")+e.toString(16)}function tt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rt(e,t,n,r)}function nt(e){if(e instanceof rt)return new rt(e.h,e.s,e.l,e.opacity);if(e instanceof ke||(e=Ve(e)),!e)return new rt;if(e instanceof rt)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 rt(a,s,l,e.opacity)}function rt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ot(e){return(e=(e||0)%360)<0?e+360:e}function it(e){return Math.max(0,Math.min(1,e||0))}function at(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ie(ke,Ve,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:He,formatHex:He,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nt(this).formatHsl()},formatRgb:Be,toString:Be}),Ie(Ye,Ke,Ae(ke,{brighter(e){return e=null==e?De:Math.pow(De,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ye(Qe(this.r),Qe(this.g),Qe(this.b),Ze(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:Xe,formatHex:Xe,formatHex8:function(){return`#${et(this.r)}${et(this.g)}${et(this.b)}${et(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Je,toString:Je})),Ie(rt,function(e,t,n,r){return 1===arguments.length?nt(e):new rt(e,t,n,null==r?1:r)},Ae(ke,{brighter(e){return e=null==e?De:Math.pow(De,e),new rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new rt(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 Ye(at(e>=240?e-240:e+120,o,r),at(e,o,r),at(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new rt(ot(this.h),it(this.s),it(this.l),Ze(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=Ze(this.opacity);return`${1===e?"hsl(":"hsla("}${ot(this.h)}, ${100*it(this.s)}%, ${100*it(this.l)}%${1===e?")":`, ${e})`}`}}));const st=Math.PI/180,lt=180/Math.PI,ct=.96422,ut=.82521,dt=4/29,pt=6/29,ft=3*pt*pt,ht=pt*pt*pt;function mt(e){if(e instanceof gt)return new gt(e.l,e.a,e.b,e.opacity);if(e instanceof St)return wt(e);e instanceof Ye||(e=Ge(e));var t,n,r=xt(e.r),o=xt(e.g),i=xt(e.b),a=bt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=bt((.4360747*r+.3850649*o+.1430804*i)/ct),n=bt((.0139322*r+.0971045*o+.7141733*i)/ut)),new gt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function gt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function bt(e){return e>ht?Math.pow(e,1/3):e/ft+dt}function vt(e){return e>pt?e*e*e:ft*(e-dt)}function yt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function xt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function St(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function wt(e){if(isNaN(e.h))return new gt(e.l,0,0,e.opacity);var t=e.h*st;return new gt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ie(gt,function(e,t,n,r){return 1===arguments.length?mt(e):new gt(e,t,n,null==r?1:r)},Ae(ke,{brighter(e){return new gt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new gt(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 Ye(yt(3.1338561*(t=ct*vt(t))-1.6168667*(e=1*vt(e))-.4906146*(n=ut*vt(n))),yt(-.9787684*t+1.9161415*e+.033454*n),yt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ie(St,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof St)return new St(e.h,e.c,e.l,e.opacity);if(e instanceof gt||(e=mt(e)),0===e.a&&0===e.b)return new St(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*lt;return new St(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new St(e,t,n,null==r?1:r)},Ae(ke,{brighter(e){return new St(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new St(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return wt(this).rgb()}}));var Ct=e=>()=>e;function Et(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ct(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?Et: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):Ct(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Ke(e)).r,(t=Ke(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Et(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 Rt="center",It="bottom";[{key:"NoDataExist",alignment:Rt,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Rt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Rt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Rt},{key:"DataRangeIncludingZero",alignment:It},{key:"LimitedData",alignment:It},{key:"NegativeOrZeroValues",alignment:It}].reduce(function(e,t){return e[t.key]=t,e},{});var At,kt=["__proto__","constructor"];function Pt(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!kt.some(function(e){return r.includes(e)})){for(var i=e,a=0;a<r.length-1;++a){var s=r[a];void 0===i[s]&&(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}void 0!==n?i[o]=n:delete i[o]}}}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function Mt(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 Tt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ot)):void 0===t&&(t=qt);for(var n,r,o,i,a,s=new jt(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 jt(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Nt)}function qt(e){return e.children}function Ot(e){return Array.isArray(e)?e[1]:null}function Lt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Nt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function jt(e){this.data=e,this.depth=this.height=0,this.parent=null}jt.prototype=Tt.prototype={constructor:jt,count:function(){return this.eachAfter(Mt)},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 Tt(this).eachBefore(Lt)},[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 _t=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function zt(e,t){return n(()=>e,t)}const Ft={},$t=()=>{const{viewState:e}=r(),t=(e=>{const t=n(()=>({current:Ft}),[]);return t.current=t.current===Ft?e:t.current,t})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=n(()=>_t(),[]),l=zt(e=>{t.current.add(e)},[t]),c=zt(function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(r,i)},n)}}(async()=>{await Promise.all(t.current),t.current.clear(),s()},1e3),[s,t]);return o(async()=>{await a},[a]),n(()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:c,waitForPromise:l}),[c,i,e,l])},Ht={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"},Bt={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",...Ht,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)"},Vt=12,Wt=14,Ut=16,Gt=24,Kt=3,Yt=300,Xt=400,Jt=600,Zt=700,Qt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function en(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tn(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{}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 nn,rn,on={exports:{}},an={};var sn=(rn||(rn=1,on.exports=function(){if(nn)return an;nn=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 an.Fragment=n,an.jsx=a,an.jsxs=a,an}()),on.exports);const ln={black:"#000",white:"#fff"},cn="#e57373",un="#ef5350",dn="#f44336",pn="#d32f2f",fn="#c62828",hn="#f3e5f5",mn="#ce93d8",gn="#ba68c8",bn="#ab47bc",vn="#9c27b0",yn="#7b1fa2",xn="#e3f2fd",Sn="#90caf9",wn="#42a5f5",Cn="#1976d2",En="#1565c0",Rn="#4fc3f7",In="#29b6f6",An="#03a9f4",kn="#0288d1",Pn="#01579b",Dn="#81c784",Mn="#66bb6a",Tn="#4caf50",qn="#388e3c",On="#2e7d32",Ln="#1b5e20",Nn="#ffb74d",jn="#ffa726",_n="#ff9800",zn="#f57c00",Fn="#e65100",$n={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 Hn(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 Bn=Object.freeze({__proto__:null,default:Hn}),Vn="$$material";function Wn(){return Wn=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},Wn.apply(null,arguments)}function Un(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 Gn="-ms-",Kn="-moz-",Yn="-webkit-",Xn="comm",Jn="rule",Zn="decl",Qn="@keyframes",er=Math.abs,tr=String.fromCharCode,nr=Object.assign;function rr(e){return e.trim()}function or(e,t){return(e=t.exec(e))?e[0]:e}function ir(e,t,n){return e.replace(t,n)}function ar(e,t,n){return e.indexOf(t,n)}function sr(e,t){return 0|e.charCodeAt(t)}function lr(e,t,n){return e.slice(t,n)}function cr(e){return e.length}function ur(e){return e.length}function dr(e,t){return t.push(e),e}function pr(e,t){return e.filter(function(e){return!or(e,t)})}var fr,hr,mr=1,gr=1,br=0,vr=0,yr=0,xr="";function Sr(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:mr,column:gr,length:a,return:"",siblings:s}}function wr(e,t){return nr(Sr("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Cr(e){for(;e.root;)e=wr(e.root,{children:[e]});dr(e,e.siblings)}function Er(){return yr=vr>0?sr(xr,--vr):0,gr--,10===yr&&(gr=1,mr--),yr}function Rr(){return yr=vr<br?sr(xr,vr++):0,gr++,10===yr&&(gr=1,mr++),yr}function Ir(){return sr(xr,vr)}function Ar(){return vr}function kr(e,t){return lr(xr,e,t)}function Pr(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 Dr(e){return rr(kr(vr-1,qr(91===e?e+2:40===e?e+1:e)))}function Mr(e){for(;(yr=Ir())&&yr<33;)Rr();return Pr(e)>2||Pr(yr)>3?"":" "}function Tr(e,t){for(;--t&&Rr()&&!(yr<48||yr>102||yr>57&&yr<65||yr>70&&yr<97););return kr(e,Ar()+(t<6&&32==Ir()&&32==Rr()))}function qr(e){for(;Rr();)switch(yr){case e:return vr;case 34:case 39:34!==e&&39!==e&&qr(yr);break;case 40:41===e&&qr(e);break;case 92:Rr()}return vr}function Or(e,t){for(;Rr()&&e+yr!==57&&(e+yr!==84||47!==Ir()););return"/*"+kr(t,vr-1)+"*"+tr(47===e?e:Rr())}function Lr(e){for(;!Pr(Ir());)Rr();return kr(e,vr)}function Nr(e){return function(e){return xr="",e}(jr("",null,null,null,[""],e=function(e){return mr=gr=1,br=cr(xr=e),vr=0,[]}(e),0,[0],e))}function jr(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=Rr()){case 40:if(108!=h&&58==sr(C,d-1)){-1!=ar(C+=ir(Dr(v),"&","&\f"),"&\f",er(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Dr(v);break;case 9:case 10:case 13:case 32:C+=Mr(h);break;case 92:C+=Tr(Ar()-1,7);continue;case 47:switch(Ir()){case 42:case 47:dr(zr(Or(Rr(),Ar()),t,n,l),l),5!=Pr(h||1)&&5!=Pr(Ir()||1)||!cr(C)||" "===lr(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[c++]=cr(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(C=ir(C,/\f/g,"")),f>0&&(cr(C)-d||0===m&&47===h)&&dr(f>32?Fr(C+";",r,n,d-1,l):Fr(ir(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(dr(w=_r(C,t,n,c,u,o,s,y,x=[],S=[],d,i),i),123===v)if(0===u)jr(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===sr(C,3))break;case 108:if(97===sr(C,2))break;default:u=0;case 100:case 109:case 115:}u?jr(e,w,w,r&&dr(_r(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,r?x:S):jr(C,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+cr(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Er())continue;switch(C+=tr(v),v*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(cr(C)-1)*b,b=1;break;case 64:45===Ir()&&(C+=Dr(Rr())),p=Ir(),u=d=cr(y=C+=Lr(Ar())),v++;break;case 45:45===h&&2==cr(C)&&(m=0)}}return i}function _r(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=ur(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=lr(e,p+1,p=er(g=a[m])),x=e;v<h;++v)(x=rr(g>0?f[v]+" "+y:ir(y,/&\f/g,f[v])))&&(l[b++]=x);return Sr(e,t,n,0===o?Jn:s,l,c,u,d)}function zr(e,t,n,r){return Sr(e,t,n,Xn,tr(yr),lr(e,2,-2),0,r)}function Fr(e,t,n,r,o){return Sr(e,t,n,Zn,lr(e,0,r),lr(e,r+1,-1),r,o)}function $r(e,t,n){switch(function(e,t){return 45^sr(e,0)?(((t<<2^sr(e,0))<<2^sr(e,1))<<2^sr(e,2))<<2^sr(e,3):0}(e,t)){case 5103:return Yn+"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 Yn+e+e;case 4855:return Yn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Kn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yn+e+Kn+e+Gn+e+e;case 5936:switch(sr(e,t+11)){case 114:return Yn+e+Gn+ir(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yn+e+Gn+ir(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yn+e+Gn+ir(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Yn+e+Gn+e+e;case 6165:return Yn+e+Gn+"flex-"+e+e;case 5187:return Yn+e+ir(e,/(\w+).+(:[^]+)/,Yn+"box-$1$2"+Gn+"flex-$1$2")+e;case 5443:return Yn+e+Gn+"flex-item-"+ir(e,/flex-|-self/g,"")+(or(e,/flex-|baseline/)?"":Gn+"grid-row-"+ir(e,/flex-|-self/g,""))+e;case 4675:return Yn+e+Gn+"flex-line-pack"+ir(e,/align-content|flex-|-self/g,"")+e;case 5548:return Yn+e+Gn+ir(e,"shrink","negative")+e;case 5292:return Yn+e+Gn+ir(e,"basis","preferred-size")+e;case 6060:return Yn+"box-"+ir(e,"-grow","")+Yn+e+Gn+ir(e,"grow","positive")+e;case 4554:return Yn+ir(e,/([^-])(transform)/g,"$1"+Yn+"$2")+e;case 6187:return ir(ir(ir(e,/(zoom-|grab)/,Yn+"$1"),/(image-set)/,Yn+"$1"),e,"")+e;case 5495:case 3959:return ir(e,/(image-set\([^]*)/,Yn+"$1$`$1");case 4968:return ir(ir(e,/(.+:)(flex-)?(.*)/,Yn+"box-pack:$3"+Gn+"flex-pack:$3"),/space-between/,"justify")+Yn+e+e;case 4200:if(!or(e,/flex-|baseline/))return Gn+"grid-column-align"+lr(e,t)+e;break;case 2592:case 3360:return Gn+ir(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,or(e.props,/grid-\w+-end/)})?~ar(e+(n=n[t].value),"span",0)?e:Gn+ir(e,"-start","")+e+Gn+"grid-row-span:"+(~ar(n,"span",0)?or(n,/\d+/):+or(n,/\d+/)-+or(e,/\d+/))+";":Gn+ir(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return or(e.props,/grid-\w+-start/)})?e:Gn+ir(ir(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ir(e,/(.+)-inline(.+)/,Yn+"$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(cr(e)-1-t>6)switch(sr(e,t+1)){case 109:if(45!==sr(e,t+4))break;case 102:return ir(e,/(.+:)(.+)-([^]+)/,"$1"+Yn+"$2-$3$1"+Kn+(108==sr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ar(e,"stretch",0)?$r(ir(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ir(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,s){return Gn+n+":"+r+s+(o?Gn+n+"-span:"+(i?a:+a-+r)+s:"")+e});case 4949:if(121===sr(e,t+6))return ir(e,":",":"+Yn)+e;break;case 6444:switch(sr(e,45===sr(e,14)?18:11)){case 120:return ir(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Yn+(45===sr(e,14)?"inline-":"")+"box$3$1"+Yn+"$2$3$1"+Gn+"$2box$3")+e;case 100:return ir(e,":",":"+Gn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ir(e,"scroll-","scroll-snap-")+e}return e}function Hr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Br(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Zn:return e.return=e.return||e.value;case Xn:return"";case Qn:return e.return=e.value+"{"+Hr(e.children,r)+"}";case Jn:if(!cr(e.value=e.props.join(",")))return""}return cr(n=Hr(e.children,r))?e.return=e.value+"{"+n+"}":""}function Vr(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Zn:return void(e.return=$r(e.value,e.length,n));case Qn:return Hr([wr(e,{value:ir(e.value,"@","@"+Yn)})],r);case Jn:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(or(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Cr(wr(e,{props:[ir(t,/:(read-\w+)/,":-moz-$1")]})),Cr(wr(e,{props:[t]})),nr(e,{props:pr(n,r)});break;case"::placeholder":Cr(wr(e,{props:[ir(t,/:(plac\w+)/,":"+Yn+"input-$1")]})),Cr(wr(e,{props:[ir(t,/:(plac\w+)/,":-moz-$1")]})),Cr(wr(e,{props:[ir(t,/:(plac\w+)/,Gn+"input-$1")]})),Cr(wr(e,{props:[t]})),nr(e,{props:pr(n,r)})}return""})}}const Wr="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ur="active",Gr="data-styled-version",Kr="6.4.2",Yr="/*!sc*/\n",Xr="undefined"!=typeof window&&"undefined"!=typeof document;function Jr(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Zr=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(hr=null!==(fr=Jr("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==fr?fr:Jr("SC_DISABLE_SPEEDY"))&&void 0!==hr?hr:"undefined"!=typeof process&&void 0!==process.env&&!1),Qr="sc-keyframes-",eo={};function to(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(", ")}`:""}`)}let no=new Map,ro=new Map,oo=1;const io=e=>{if(no.has(e))return no.get(e);for(;ro.has(oo);)oo++;const t=oo++;return no.set(e,t),ro.set(t,e),t},ao=e=>ro.get(e),so=(e,t)=>{oo=t+1,no.set(e,t),ro.set(t,e)},lo=Object.freeze([]),co=Object.freeze({});function uo(e,t,n=co){return e.theme!==n.theme&&e.theme||t||n.theme}const po=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,fo=/(^-|-$)/g;function ho(e){return e.replace(po,"-").replace(fo,"")}const mo=/(a)(d)/gi,go=e=>String.fromCharCode(e+(e>25?39:97));function bo(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=go(t%52)+n;return(go(t%52)+n).replace(mo,"$1-$2")}const vo=5381,yo=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},xo=e=>yo(vo,e);function So(e){return bo(xo(e)>>>0)}function wo(e){return"string"==typeof e&&!0}function Co(e){return wo(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const Eo=Symbol.for("react.memo"),Ro=Symbol.for("react.forward_ref"),Io={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Ao={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ko={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Po={[Ro]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Eo]:ko};function Do(e){return("type"in(t=e)&&t.type.$$typeof)===Eo?ko:"$$typeof"in e?Po[e.$$typeof]:Io;var t}const Mo=Object.defineProperty,To=Object.getOwnPropertyNames,qo=Object.getOwnPropertySymbols,Oo=Object.getOwnPropertyDescriptor,Lo=Object.getPrototypeOf,No=Object.prototype;function jo(e,t,n){if("string"!=typeof t){const r=Lo(t);r&&r!==No&&jo(e,r,n);const o=To(t).concat(qo(t)),i=Do(e),a=Do(t);for(let r=0;r<o.length;++r){const s=o[r];if(!(s in Ao||n&&n[s]||a&&s in a||i&&s in i)){const n=Oo(t,s);try{Mo(e,s,n)}catch(e){}}}}return e}function _o(e){return"function"==typeof e}const zo=Symbol.for("react.forward_ref");function Fo(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===zo&&"styledComponentId"in e}function $o(e,t){return e&&t?e+" "+t:e||t||""}function Ho(e,t){return e.join("")}function Bo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Vo(e,t,n=!1){if(!n&&!Bo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Vo(e[n],t[n]);else if(Bo(t))for(const n in t)e[n]=Vo(e[n],t[n]);return e}function Wo(e,t){Object.defineProperty(e,"toString",{value:t})}const Uo=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 to(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)+Yr;return t}},Go=`style[${Wr}][${Gr}="${Kr}"]`,Ko=new RegExp(`^${Wr}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Yo=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Xo=e=>{if(!e)return document;if(Yo(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Yo(t))return t}return document},Jo=(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)},Zo=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Yr),o=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const i=n.match(Ko);if(i){const t=0|parseInt(i[1],10),n=i[2];0!==t&&(so(n,t),Jo(e,n,i[3]),e.getTag().insertRules(t,o)),o.length=0}else o.push(n)}},Qo=e=>{const t=Xo(e.options.target).querySelectorAll(Go);for(let n=0,r=t.length;n<r;n++){const r=t[n];r&&r.getAttribute(Wr)!==Ur&&(Zo(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let ei=!1;const ti=(e,t)=>{const n=document.head,r=e||n,o=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${Wr}]`));return t[t.length-1]})(r),a=void 0!==i?i.nextSibling:null;o.setAttribute(Wr,Ur),o.setAttribute(Gr,Kr);const s=t||function(){if(!1!==ei)return ei;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return ei=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return ei=t.getAttribute("content")||void 0}return ei="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&o.setAttribute("nonce",s),r.insertBefore(o,a),o},ni=class{constructor(e,t){this.element=ti(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 to(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:""}},ri=class{constructor(e,t){this.element=ti(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 oi=Xr;const ii={isServer:!Xr,useCSSOMInjection:!Zr};class ai{static registerId(e){return io(e)}constructor(e=co,t={},n){this.options=Object.assign(Object.assign({},ii),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Xr&&oi&&(oi=!1,Qo(this)),Wo(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let o=0;o<n;o++){const n=ao(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=Wr+".g"+o+'[id="'+n+'"]';let l="";for(const e of i)e.length>0&&(l+=e+",");r+=a+s+'{content:"'+l+'"}'+Yr}return r})(this))}rehydrate(){!this.server&&Xr&&Qo(this)}reconstructWithOptions(e,t=!0){const n=new ai(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&Xr&&e.target!==this.options.target&&Xo(this.options.target)!==Xo(e.target)&&Qo(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 ni(t,n):new ri(t,n))(this.options),new Uo(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){io(e),e.startsWith(Qr)&&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(io(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(io(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const si=new WeakSet,li={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 ci(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in li||e.startsWith("--")?String(t).trim():t+"px"}const ui=47;function di(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 pi=Symbol.for("sc-keyframes");function fi(e){return _o(e)&&!(e.prototype&&e.prototype.isReactComponent)}const hi=e=>null==e||!1===e||""===e,mi=Symbol.for("react.client.reference");function gi(e){return e.$$typeof===mi}function bi(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!hi(r)&&(Array.isArray(r)&&si.has(r)||_o(r)?t.push(di(n)+":",r,";"):Bo(r)?(t.push(n+" {"),bi(r,t),t.push("}")):t.push(di(n)+": "+ci(n,r)+";"))}}function vi(e,t,n,r,o=[]){if(hi(e))return o;const i=typeof e;if("string"===i)return o.push(e),o;if("function"===i){if(gi(e))return o;if(fi(e)&&t){return vi(e(t),t,n,r,o)}return o.push(e),o}if(Array.isArray(e)){for(let i=0;i<e.length;i++)vi(e[i],t,n,r,o);return o}return Fo(e)?(o.push(`.${e.styledComponentId}`),o):function(e){return"object"==typeof e&&null!==e&&pi in e}(e)?(n?(e.inject(n,r),o.push(e.getName(r))):o.push(e),o):gi(e)?o:Bo(e)?e.toString!==Object.prototype.toString?(o.push(e.toString()),o):(bi(e,o),o):(o.push(e.toString()),o)}const yi=xo(Kr);class xi{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=yo(yi,t),this.baseStyle=n,ai.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(fi(i)){const r=i(e);"string"==typeof r?o+=r:null!=r&&!1!==r&&(o+=Ho(vi(r,e,t,n)))}else o+=Ho(vi(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=bo(yo(yo(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=$o(r,i)}}return r}}const Si=/&/g;function wi(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function Ci(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!==ui||42!==e.charCodeAt(l+1))if(a)42===c&&e.charCodeAt(l+1)===ui&&(a=!1,l++);else if(34!==c&&39!==c||wi(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 Ei(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&&Ei(i.children,t)}return e}function Ri({options:e=co,plugins:t=lo}=co){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===Jn&&e.value.includes("&")&&(o||(o=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(Si,r).replace(o,i))}),e.prefix&&a.push(Vr),a.push(Br);let s=[];const l=function(e){var t=ur(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 Ci(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||wi(e,a))if(0===s)if(t===ui&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==ui);)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)===ui)o+=e.substring(i,a),a+=2,i=a,u=!0;else if(t===ui&&a+1<r&&e.charCodeAt(a+1)===ui){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:Ci(o)):0===c?e:Ci(e)}(t);let d=Nr(a||i?a+" "+i+" { "+u+" }":u);return e.namespace&&(d=Ei(d,e.namespace)),s=[],Hr(d,l),s},u=e;var d;let p=vo;for(let e=0;e<t.length;e++)t[e].name||to(15),p=yo(p,t[e].name);return(null==u?void 0:u.namespace)&&(p=yo(p,u.namespace)),(null==u?void 0:u.prefix)&&(p=yo(p,"p")),c.hash=p!==vo?p.toString():"",c}const Ii=new ai,Ai=Ri(),ki=w.createContext({shouldForwardProp:void 0,styleSheet:Ii,stylis:Ai,stylisPlugins:void 0});function Pi(){return w.useContext(ki)}function Di(e){var t;const n=Pi(),{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:Ri({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(ki.Provider,{value:l},e.children)}ki.Consumer;const Mi=w.createContext(void 0);Mi.Consumer;const Ti=Object.prototype.hasOwnProperty,qi={};function Oi(e,t){const n="string"!=typeof e?"sc":ho(e);qi[n]=(qi[n]||0)+1;const r=n+"-"+So(Kr+n+qi[n]);return t?t+"-"+r:r}function Li(e,t,n){const r=Fo(e),o=e,i=!wo(e),{attrs:a=lo,componentId:s=Oi(t.displayName,t.parentComponentId),displayName:l=Co(e)}=t,c=t.displayName&&t.componentId?ho(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 xi(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(Mi),u=Pi(),d=e.shouldForwardProp||u.shouldForwardProp,p=uo(t,c,i)||co;let f,h;{const e=w.useRef(null),n=e.current;if(null!==n&&n[1]===p&&n[2]===u.styleSheet&&n[3]===u.stylis&&n[7]===o&&function(e,t,n){const r=e,o=t;let i=0;for(const e in o)if(Ti.call(o,e)&&(i++,r[e]!==o[e]))return!1;return i===n}(n[0],t,n[4]))f=n[5],h=n[6];else{f=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),o=e.length>1;for(let n=0;n<e.length;n++){const i=e[n],a=_o(i)?i(o?Object.assign({},r):r):i;for(const e in a)"className"===e?r.className=$o(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):e in t&&void 0===t[e]||(r[e]=a[e])}return"className"in t&&"string"==typeof t.className&&(r.className=$o(r.className,t.className)),r}(r,t,p),h=function(e,t,n,r){return e.generateAndInjectStyles(t,n,r)}(o,f,u.styleSheet,u.stylis);let n=0;for(const e in t)Ti.call(t,e)&&n++;e.current=[t,p,u.styleSheet,u.stylis,n,f,h,o]}}const m=f.as||l,g=function(e,t,n,r){const o={};for(const i in e)void 0===e[i]||"$"===i[0]||"as"===i||"theme"===i&&e.theme===n||("forwardedAs"===i?o.as=e.forwardedAs:r&&!r(i,t)||(o[i]=e[i]));return o}(f,m,p,d);let b=$o(a,s);return h&&(b+=" "+h),f.className&&(b+=" "+f.className),g[wo(m)&&m.includes("-")?"class":"className"]=b,n&&(g.ref=n),C(m,g)}(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?$o(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)Vo(e,n,!0);return e}({},o.defaultProps,e):e}}),Wo(h,()=>`.${h.styledComponentId}`),i&&jo(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var Ni=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 ji(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 _i=e=>(si.add(e),e);function zi(e,...t){if(_o(e)||Bo(e))return _i(vi(ji(lo,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?vi(n):_i(vi(ji(n,t)))}function Fi(e,t,n=co){if(!t)throw to(1,t);const r=(r,...o)=>e(t,n,zi(r,...o));return r.attrs=r=>Fi(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Fi(e,t,Object.assign(Object.assign({},n),r)),r}const $i=e=>Fi(Li,e),Hi=$i;Ni.forEach(e=>{Hi[e]=$i(e)});class Bi{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(_o(n)&&!Fo(n))return!1}return!0}(e),ai.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=Ho(vi(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 Vi;class Wi{constructor(e,t){this[Vi]=!0,this.inject=(e,t=Ai)=>{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=Qr+e,this.rules=t,io(this.id),Wo(this,()=>{throw to(12,String(this.name))})}getName(e=Ai){return e.hash?this.name+bo(+e.hash>>>0):this.name}}function Ui(e,...t){const n=Ho(zi(e,...t)),r=So(n);return new Wi(r,n)}Vi=pi;var Gi,Ki,Yi,Xi,Ji,Zi={exports:{}};function Qi(){if(Ki)return Gi;Ki=1;return Gi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function ea(){if(Xi)return Yi;Xi=1;var e=Qi();function t(){}function n(){}return n.resetWarningCache=t,Yi=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 ta(){return Ji||(Ji=1,Zi.exports=ea()()),Zi.exports}var na=en(ta());function ra(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}ra.propTypes={children:na.node,injectFirst:na.bool};const oa=function(e,...t){const n=zi(e,...t),r=`sc-global-${So(JSON.stringify(n))}`,o=new Bi(n,r),i=e=>{const t=Pi(),n=w.useContext(Mi);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,eo,n,a);else{const s=Object.assign(Object.assign({},t),{theme:uo(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
|
/**
|
|
@@ -99,7 +99,7 @@ function ia(e,t){let n;return n=t?Hi(e).withConfig({displayName:t.label,shouldFo
|
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the MIT license found in the
|
|
101
101
|
* LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/function xR(){if(gR)return GS;gR=1,Object.defineProperty(GS,"__esModule",{value:!0}),GS.default=function(t){return(0,e.createStyles)(t)};var e=yR;return GS}var SR,wR,CR={},ER={};function RR(){if(SR)return ER;SR=1;var e=Xl();Object.defineProperty(ER,"__esModule",{value:!0}),ER.default=void 0;var t=(0,e(BS()).default)();return ER.default=t,ER}function IR(){if(wR)return CR;wR=1;var e=Xl();Object.defineProperty(CR,"__esModule",{value:!0}),CR.default=void 0;var t=e(Ac()),n=yR,r=e(RR());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return CR.default=o,CR}var AR,kR,PR={},DR={};function MR(){if(AR)return DR;AR=1;var e=Xl();Object.defineProperty(DR,"__esModule",{value:!0}),DR.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},DR.getUnit=n,DR.toUnitless=r,DR.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},DR.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},DR.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},DR.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,c=e.transform,u=void 0===c?null:c,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+p*e;null!==u&&(o=u(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(iy());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return DR}function TR(){if(kR)return PR;kR=1;var e=Xl();Object.defineProperty(PR,"__esModule",{value:!0}),PR.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,c=o.factor,u=void 0===c?2:c,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/u,c=o.lineHeight;if(!(0,r.isUnitless)(c)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(c)||(c=parseFloat(m(c,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:c,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Ac()),n=Kv,r=MR();return PR}var qR,OR={};function LR(){if(qR)return OR;qR=1;var e=Xl();Object.defineProperty(OR,"__esModule",{value:!0}),OR.default=void 0;var t=e(Ac()),n=yR,r=e(RR()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return OR.default=o,OR}var NR,jR={};function _R(){if(NR)return jR;NR=1;var e=Xl();Object.defineProperty(jR,"__esModule",{value:!0}),jR.default=function(){return(0,t.useTheme)()||n.default};var t=yR;e(w);var n=e(RR());return jR}var zR,FR={};function $R(){if(zR)return FR;zR=1;var e=Xl();Object.defineProperty(FR,"__esModule",{value:!0}),FR.default=void 0;var t=e(Ac()),n=yR,r=e(RR());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return FR.default=o,FR}var HR,BR,VR={};function WR(){if(HR)return VR;HR=1;var e=Xl();Object.defineProperty(VR,"__esModule",{value:!0}),VR.default=void 0;var t=yR,n=e(RR()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return VR.default=r,VR}function UR(){return BR||(BR=1,function(e){var t=Xl(),n=(Rv||(Rv=1,function(e){var t=Pv().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Av)),Av.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Yv();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=n(BS()),a=t(US()),s=t(xR()),l=t(IR()),c=t(TR()),u=t(LR()),d=_S();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(_R()),f=t($R()),h=t(WR()),m=yR}(Iv)),Iv}var GR=UR();GR.alpha(Bt.GREYSCALE_0,.05),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),t.meta.env&&t.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},n){var r;let o,i;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}o=e}return i},c=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(c)?c.then(l):l(c)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,n)=>l(e,e=>{let r;try{r=JSON.parse(e||"")}catch(e){r=n}t(r)})))}();const KR=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),YR=new WeakMap,XR=()=>{};function JR(e,n=XR){return((e,t,n)=>{const r=KR(()=>new WeakMap,YR,t);return KR(e,r,n)})(()=>{const r=new WeakMap,o=new WeakMap,i=Jg(0),a=Jg([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(i,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(i.debugPrivate=!0,a.debugPrivate=!0);const s=Jg(t=>{let l;t(i);try{l=t(s)}catch(e){}const c=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(c))return{v:c};if(c!==(null==l?void 0:l.p)&&c.then(e=>{o.set(c,e);const[n]=t(a);n()},e=>{r.set(c,e);const[n]=t(a);n()}),r.has(c))throw r.get(c);return o.has(c)?{p:c,v:o.get(c)}:l&&"v"in l?{p:c,f:n(l.v),v:l.v}:{p:c,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),Jg(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}const ZR=new WeakMap;function QR(e,t){const n=nb(t),r=eI(n);for(const[o,...i]of e)r.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(o),n.set(o,...i))}const eI=e=>{let t=ZR.get(e);return t||(t=new WeakSet,ZR.set(e,t)),t};function tI(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function nI(e){const t=Jg(()=>[]),n=Jg(function(e){const[r,o,i]=e(t);i.has(n)&&(r.forEach(e),++o.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=Gg(e),o=r[1],i=r[3],a=Rg(r[6]),s=r[11],l=r[12],c=r[13],u=r[14],d=r[15],p=r[16],f=r[17],h=r[20],m=new Set;let g,b=0,v=!1,y=!1,x=!1;function S(){if(b)return;m.clear();let t=!0;const w=i=>{if(x)return e.get(i);if(i===n){const t=s(r,e,i);if(!yg(t)){if(!bg(i))throw new Error("no atom init");h(r,e,i,i.init)}return xg(t)}const a=u(r,e,i);try{return xg(a)}finally{C.d.set(i,a.n),o.get(i)?.t.add(n),t?m.add(i):o.has(i)&&(f(r,e,n),c(r,e),l(r,e))}};w.peek=e.get;const E=(o,...u)=>{const m=s(r,e,o);try{if(++b,o===n){if(!bg(o))throw new Error("atom not writable");const t=m.n,n=u[0];return h(r,e,o,n),f(r,e,o),void(t!==m.n&&(i.add(o),a.c?.(o),d(r,e,o)))}return p(r,e,o,u)}finally{t||(c(r,e),l(r,e)),--b}};E.recurse=(t,...o)=>{if(x){if(tI())throw new Error("set.recurse is not allowed in cleanup")}else try{return v=!0,f(r,e,n),E(t,...o)}finally{c(r,e),v=!1,y&&(y=!1,S())}};try{g?.();const e=n.effect(w,E);if("function"!=typeof e)return;g=()=>{if(!b)try{return t=!0,x=!0,e()}finally{t=!1,x=!1,g=void 0}}}finally{t=!1,m.forEach(t=>{C.d.set(t,s(r,e,t).n)}),f(r,e,n),c(r,e)}}const w=function(e,t){let n=rI.get(e);n||(n=new Set,rI.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,a),C=s(r,e,n);C.v=void 0,Object.assign(e.get(t),[m,C,o]),a.c.add(n,function(){i.delete(n)}),a.m.add(n,function(){w.add(S),g&&w.delete(g)}),a.u.add(n,function(){w.delete(S),g&&w.add(g)}),a.c.add(n,function(){v?y=!0:w.add(S)})},tI()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const rI=new WeakMap;const oI=e=>{const{items:t,handler:n,model:r,handlerQueue:o}=e;void 0!==n&&void 0!==r&&o&&o.add(async()=>{await(async(e,t,n)=>{try{await t.toggleAlternatives(e,n)}catch(t){console.error(`Failed to toggle ${e.map(e=>e.id).join(", ")} from/to alternative`,t)}})(t,n,e.currentColumnIds)})};function iI(e,t){let n=null;const r=new Map,o=new Set;function i(o){let s;if(void 0===t)s=r.get(o);else for(const[e,n]of r)if(t(e,o)){s=n;break}if(void 0!==s){if(!n?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return r.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,n){for(const r of o)r({type:e,param:t,atom:n})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>r.keys(),i.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[o]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,o);break}},i.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,o]]of r)n(o,e)&&(r.delete(e),a("REMOVE",e,t))},i}const aI=e=>7005!==e.qError?.qErrorCode,sI=(e,t)=>{if(!e)return;const n=e.qHyperCube.qDimensionInfo.filter(e=>void 0!==e.cId).filter(aI).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"dimension"})),r=e.qHyperCube.qMeasureInfo.filter(e=>void 0!==e.cId).filter(aI).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"measure"}));return[...n,...r]},lI=(e,t)=>{const n=[],r={};return e.forEach(e=>{r[e.id]=e}),Object.keys(t).forEach(e=>{const o=t[e],i=r[e];i&&(n[o]=i)}),n},cI=(e,t,n)=>{if(!n||((e,t)=>{const n=e.map(e=>e.id).sort(),r=Object.keys(t).sort();return n.join(",")!==r.join(",")})(e,n)){const t=(e=>{const t={};return e.forEach((e,n)=>{t[e.id]=n}),t})(e);return lI(e,t)}const r=t.map(e=>e.id),o=Object.keys(n).sort((e,t)=>n[e]-n[t]).filter(e=>r.includes(e)),i={...n};for(let e=0;e<r.length;e++){const t=o[e],a=r[e];t!==a&&(i[a]=n[t])}let a=0;const s=Object.entries(i).sort((e,t)=>e[1]-t[1]).map(([e])=>[e,a++]);return s.forEach(([e,t])=>{i[e]=t}),lI(e,i)},uI=Jg(),dI=Jg(),pI=Jg(),fI=Jg(e=>e(pI)?.translate??(e=>e)),hI=Jg(""),mI=Jg(e=>{const t=e(hI).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)}),gI=new WeakMap,bI={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},vI=JR(Jg(async e=>{const t=e(uI);if(t){if(gI.has(t))return gI.get(t);try{const e=await t.app.createSessionObject(bI);return gI.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}})),yI=Jg(),xI=nI((e,t)=>{const n=e(uI),r=e(vI);if(!n||!r)return;const o=async()=>{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await n.getEffectiveProperties();await r.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef.qDimensions??[])},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef.qMeasures??[])}]);const i=await r.getLayout();t(yI,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)})};return o(),n.Invalidated?.bind(o),()=>{n.Invalidated?.unbind(o)}}),SI=Jg(e=>e(yI)?.layout),wI=Jg(e=>e(yI)?.altLayout),CI=Jg(e=>e(yI)?.properties),EI=Jg(e=>void 0===e(SI)||void 0===e(CI)),RI=Jg(e=>{const t=e(yI)?.layout;return t?.qHyperCube.qDimensionInfo.filter(aI)??[]}),II=Jg(e=>{const t=e(yI)?.layout;return t?.qHyperCube.qMeasureInfo.filter(aI)??[]}),AI=Jg(e=>{const t=e(wI);return sI(t,!0)}),kI=Jg(e=>{const t=e(SI);return sI(t,!1)}),PI=Jg(e=>{const t=e(CI),n=e(SI);if(!t||!n)return[];const r=e(AI),o=e(kI),i=n.qHyperCube.qColumnOrder??[],a=t.qHyperCubeDef.qLayoutExclude?.allColumnOrder??{};if(void 0===r||void 0===o)return[];const s=((e,t)=>e.length===t?e:Array.from(Array(t).keys()))(i,o.length),l=((e,t)=>e.length>0?e.map(e=>t[e]):t)(s,o),c=[...l,...r];return cI(c,l,a)}),DI=Jg(e=>{const t=e(PI),n=e(mI);return t.filter(n)}),MI=Jg(e=>e(DI).length),TI=Jg(e=>({sectionIndex:t,itemIndex:n})=>{const r=e(DI);if(void 0===n)return`columns-section-${t}`;const o=r?.[n];return o?.id??`missing-item-${t}-${n}`}),qI=iI(e=>Jg(t=>t(DI)[e]),(e,t)=>e===t),OI=Jg(e=>e(PI).map(e=>e.id)),LI=Jg(e=>{const t=e(PI),n={};return t.forEach(e=>{n[e.id]=e.type}),n});class NI{#e=[];#t=!1;#n=!1;#r;#o;#i;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#o=void 0,this.#i=void 0,this.#a=void 0}pause(){this.#o&&(clearTimeout(this.#a),this.#i?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#o=e,this.#i=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#i;await(e=>new Promise(t=>{setTimeout(t,e)}))(e),t===this.#i&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#i?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#o)await this.#o;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const jI=Jg(null),_I=nI((e,t)=>{const n=e(uI),r=e(dI),o=new NI({onQueueCompleted:async()=>{if(!n||!r)return;const e=r.properties.qHyperCubeDef,t=Date.now();e.qDimensions.length&&Object.assign(e.qDimensions[0],{patchTimeStamp:t}),e.qMeasures.length&&Object.assign(e.qMeasures[0],{patchTimeStamp:t}),await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(jI,o);const i=()=>{o.pause()},a=()=>{o.continue(500)},s=()=>{o.abort()};return n?.Invalidated?.bind(i),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{o.abort(),n?.Invalidated?.unbind(i),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),zI=Jg(e=>{const t=[...e(RI),...e(II)].map(e=>e.cId);return new Set(t)}),FI=Jg(new Set),$I=Jg(new Set),HI=Jg(e=>{const t=e(FI),n=e($I);return e(zI).difference(n).union(t)}),BI=nI((e,t)=>{e(zI),t(FI,new Set),t($I,new Set)}),VI=Jg(e=>e(HI),(e,t,n)=>{if("string"!=typeof n.id)return;const r=e(HI).has(n.id),o=new Set(e($I)),i=new Set(e(FI));r?(o.add(n.id),i.delete(n.id)):(i.add(n.id),o.delete(n.id)),t($I,o),t(FI,i),oI({items:[n],handler:e(dI),model:e(uI),currentColumnIds:e(OI),handlerQueue:e(jI)})}),WI=({props:e,children:t})=>(QR([[uI,e.args.model],[pI,e.args.apis],[dI,e.args.handler]]),cb(xI),cb(_I),cb(BI),t);function UI(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function GI(e){return"write"in e}const KI=new WeakMap,YI={},{read:XI,write:JI}=Jg(null);function ZI(e,t,n){const[r,o,i,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=o.get(t);return r||(r=[nA(e,t,n),n],o.set(t,r)),r}const l=n??YI;let c=i.get(l);c||(c=new WeakMap,i.set(l,c));let u=c.get(t);if(!u){const[r,o]=a?ZI(a,t,n):[t];u=[t.read===XI?r:nA(e,t,o),o],c.set(t,u)}return u}function QI(e){for(const t of e[5])t()}function eA(e,t,n,r,o){if(n.read===XI&&GI(n)&&GI(t)&&n.write!==JI&&e!==r){const{write:i}=n;return t.write=tA(e,n.write.bind(n),r,o),()=>{t.write=i}}}function tA(e,t,n,r=n){return function(o,i,...a){return t(function(t){const[r]=ZI(e,t,n);return o(r)},function(t,...o){const[a]=ZI(e,t,n),s=eA(e,a,t,n,r);try{return i(a,...o)}finally{null==s||s()}},...a)}}function nA(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const o=Object.getPrototypeOf(t),i=Object.create(o,r);return i.read!==XI&&(i.read=function(e,t,n){return function(r,o){return t(function(t){const[o]=ZI(e,t,n);return r(o)},o)}}(e,t.read.bind(t),n)),GI(i)&&GI(t)&&i.write!==JI&&(i.write=tA(e,t.write.bind(t),n)),i}function rA({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const o=new WeakSet(e),i=KI.get(n),a=(null==i?void 0:i[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],c=s[5],u=function(e){const t=e[3],n=[...Gg(t)],r=n[21],o=n[22],i=n[23],a={};let s,l;return n[21]=h(r),n[22]=p,n[23]=h(i),n[24]=function(e){return s??(s=m(e[0],c)),l??(l=[s,m(e[1],u),m(e[2]),g(e[3]),e[4],e[5],v(e[6]),h(e[7]),h(e[8]),h(e[9]),h(e[10]),d(s,e[11]),(t,...r)=>e[12](n,...r),(t,...r)=>e[13](n,...r),h(e[14]),h(e[15]),h(e[16]),h(e[17]),h(e[18]),h(e[19]),h(e[20]),h(e[21]),h(e[22]),h(e[23]),()=>e,e[25],(t,...r)=>e[26](n,...r),(t,...r)=>e[27](n,...r),e[28],...e.slice(25)]),l},Kg(...n);function c(t){const n=new WeakMap;return function(r){let o=n.get(r);if(o)return o;const i=t(r);if(!i)return;let a,s;return o=new Proxy(i,{get:(t,n)=>"d"===n?a??(a=m(i.d,function(t){return n=>t(ZI(e,n)[0])})):"p"===n?s??(s=g(i.p)):Reflect.get(i,n)}),n.set(r,o),o}}function u(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const o=e(n);return o?(r={...o,d:g(o.d),t:g(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(n,r),r):void 0}}function d(e,t){const n=h(t);return function(t,r,o){const i=e.get(o);if(i)return i;const a=n(t,r,o);return e.set(o,a),e.get(o)}}function p(t,n,r,...i){const[a,s]=ZI(e,r),l=eA(e,a,r,s,e);try{return o(t,n,a,...i)}finally{null==l||l()}}function f(t,n){return function(r,...o){const[i]=ZI(e,r);return(n?n(t):t)(i,...o)}}function h(t){return function(r,o,i,...a){const[s]=ZI(e,i);return t(n,o,s,...a)}}function m(e,t){const n={get:f(e.get.bind(e),t),set:f(e.set.bind(e)),has:f(e.has.bind(e)),delete:f(e.delete.bind(e))};if("function"==typeof e.keys){const t=e,r=n;r.keys=t.keys.bind(t),r[Symbol.iterator]=t[Symbol.iterator].bind(t),Object.defineProperty(n,"size",{enumerable:!1,configurable:!0,get:()=>t.size})}return n}function g(t){return{get size(){return t.size},add:f(t.add.bind(t)),has:f(t.has.bind(t)),delete:f(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(f(e)),*[Symbol.iterator](){for(const n of t)yield ZI(e,n)[0]}}}function b(t){if(!t)return;const n=f(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[o]=ZI(e,n);return t.add(o,r)},n}function v(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>a[t]??(a[t]=b(e[t])),set(n){delete a[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=u,Object.assign(u,{name:r}),KI.set(u,s);for(const t of new Set(e))l.set(t,[nA(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[nA(s,n,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!o.has(t)&&l.delete(t):l.set(t,[nA(s,t,s),s])});c.add(t)}return u}const oA=function(e,t){return function(n){const{atoms:r=[],atomFamilies:o=[],children:i,scope:a,name:s}=n,l=t(),c=Array.from(r,e=>Array.isArray(e)?e[0]:e);function u(){return[a??rA({atoms:c,atomFamilies:o,parentStore:l,name:s}),function(e){return l!==e.parentStore||!UI(c,e.atoms)||!UI(o,e.atomFamilies)||a!==e.providedScope}]}const[[d,p],f]=P(u);if(p({atoms:c,atomFamilies:o,parentStore:l,providedScope:a})){const e=KI.get(d);e&&QI(e),f(u)}return QR(Array.from(r).filter(Array.isArray),{store:d}),q(()=>{const e=KI.get(d);return()=>{e&&QI(e)}},[d]),C(e,{store:d,children:i})}}(rb,nb);var iA=Object.defineProperty,aA=Object.defineProperties,sA=Object.getOwnPropertyDescriptors,lA=Object.getOwnPropertySymbols,cA=Object.prototype.hasOwnProperty,uA=Object.prototype.propertyIsEnumerable,dA=(e,t,n)=>t in e?iA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pA=(e,t)=>{for(var n in t||(t={}))cA.call(t,n)&&dA(e,n,t[n]);if(lA)for(var n of lA(t))uA.call(t,n)&&dA(e,n,t[n]);return e},fA=(e,t)=>aA(e,sA(t));function hA(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function mA(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function gA(e,t){return function(e,t,n){var r,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const c=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>c(e,a.id)),o=e.findIndex(e=>c(e,s.id));if(-1===r||-1===o){if(mA(a)){const r=a.initialIndex,o=a.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const u=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of u)if(-1===f&&(f=t.findIndex(e=>c(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>c(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&mA(a)){const r=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==r||null==i||!(r in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===i)return fA(pA({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return fA(pA({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(r=m.shape)?void 0:r.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&mA(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return fA(pA({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return fA(pA({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return fA(pA({},e),{[d]:n(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return fA(pA({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,hA)}const bA=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,vA=Jg(),yA=Jg(e=>e(vA)?.numberOfSections??0),xA=Jg(e=>e(vA)?.numberOfItemsInSection??[]),SA=Jg(e=>e(vA)?.keyExtractor??bA),wA=Jg(e=>e(vA)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),CA=Jg(e=>e(vA)?.onDragEnd),EA=Jg(e=>e(vA)?.onDragOver),RA=Jg(e=>e(vA)?.itemRenderer),IA=Jg(e=>e(vA)?.headerRenderer),AA=Jg(e=>e(vA)?.dragOverlayRenderer),kA=Jg(e=>e(vA)?.onClick),PA=Jg(e=>{const t=e(yA),n=e(xA),r=e(SA),o={};for(let e=0;e<t;e++)o[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return o}),DA=Jg(null),MA=Jg(e=>e(DA),(e,t,n)=>{if(null===n)return void t(DA,null);const r=e(DA);t(DA,{...r,...n})}),TA=iI(e=>Jg(null,(t,n,r)=>{let o;"over"===e?o=t(EA):"end"===e&&(o=t(CA),n(MA,null));const{source:i,target:a}=r.operation;if("start"===e)return void n(MA,{id:i.id,startSection:i.data.sectionKey,startIndex:i.data.itemIndex,startSectionIndex:i.data.sectionIndex});if(null===a)return void n(MA,{toIndex:void 0,toSectionIndex:void 0});const s=i.data.sectionIndex!==a.data.sectionIndex;let l;if(s){const e=gA(t(PA),r)[a.data.sectionIndex].indexOf(i.id);l=-1!==e?e:a.sortable?.index??0}else l=a.sortable?.index??0;if("over"===e){const e=t(MA)?.startIndex;n(MA,{toIndex:!s&&void 0!==e&&l>e?l+1:l,toSectionIndex:a.data.sectionIndex})}o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t(MA)?.startSection??i.data.sectionKey,event:r})})),qA=[vA,yA,xA,SA,wA,CA,RA,IA,kA,MA],OA=[TA],LA=({props:e,children:t})=>{const n=ub(vA);return j(()=>{n(e)},[e,n]),t};var NA=Symbol.for("preact-signals");function jA(){if(HA>1)HA--;else{var e,t=!1;for(!function(){var e=UA;for(UA=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==$A;){var n=$A;for($A=void 0,BA++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&JA(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(BA=0,HA--,t)throw e}}function _A(e){if(HA>0)return e();WA=++VA,HA++;try{return e()}finally{jA()}}var zA=void 0;function FA(e){var t=zA;zA=void 0;try{return e()}finally{zA=t}}var $A=void 0,HA=0,BA=0,VA=0,WA=0,UA=void 0,GA=0;function KA(e){if(void 0!==zA){var t=e.n;if(void 0===t||t.t!==zA)return t={i:0,S:e,p:zA.s,n:void 0,t:zA,e:void 0,x:void 0,r:t},void 0!==zA.s&&(zA.s.n=t),zA.s=t,e.n=t,32&zA.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=zA.s,t.n=void 0,zA.s.n=t,zA.s=t),t}}function YA(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function XA(e,t){return new YA(e,t)}function JA(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function ZA(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function QA(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function ek(e,t){YA.call(this,void 0),this.x=e,this.s=void 0,this.g=GA-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function tk(e,t){return new ek(e,t)}function nk(e){var t=e.m;if(e.m=void 0,"function"==typeof t){HA++;var n=zA;zA=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,rk(e),t}finally{zA=n,jA()}}}function rk(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,nk(e)}function ok(e){if(zA!==this)throw new Error("Out-of-order effect");QA(this),zA=e,this.f&=-2,8&this.f&&rk(this),jA()}function ik(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function ak(e,t){var n=new ik(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}YA.prototype.brand=NA,YA.prototype.h=function(){return!0},YA.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:FA(function(){var e;null==(e=t.W)||e.call(t)}))},YA.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&FA(function(){var e;null==(e=t.Z)||e.call(t)}))}},YA.prototype.subscribe=function(e){var t=this;return ak(function(){var n=t.value,r=zA;zA=void 0;try{e(n)}finally{zA=r}},{name:"sub"})},YA.prototype.valueOf=function(){return this.value},YA.prototype.toString=function(){return this.value+""},YA.prototype.toJSON=function(){return this.value},YA.prototype.peek=function(){var e=this;return FA(function(){return e.value})},Object.defineProperty(YA.prototype,"value",{get:function(){var e=KA(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(BA>100)throw new Error("Cycle detected");!function(e){0!==HA&&0===BA&&e.l!==WA&&(e.l=WA,UA={S:e,v:e.v,i:e.i,o:UA})}(this),this.v=e,this.i++,GA++,HA++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{jA()}}}}),ek.prototype=new YA,ek.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===GA)return!0;if(this.g=GA,this.f|=1,this.i>0&&!JA(this))return this.f&=-2,!0;var e=zA;try{ZA(this),zA=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return zA=e,QA(this),this.f&=-2,!0},ek.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}YA.prototype.S.call(this,e)},ek.prototype.U=function(e){if(void 0!==this.t&&(YA.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},ek.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(ek.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=KA(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),ik.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},ik.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,nk(this),ZA(this),HA++;var e=zA;return zA=this,ok.bind(this,e)},ik.prototype.N=function(){2&this.f||(this.f|=2,this.u=$A,$A=this)},ik.prototype.d=function(){this.f|=8,1&this.f||rk(this)},ik.prototype.dispose=function(){this.d()};var sk,lk,ck,uk,dk,pk,fk,hk,mk,gk,bk,vk,yk,xk,Sk,wk,Ck,Ek,Rk,Ik,Ak=Object.create,kk=Object.defineProperty,Pk=Object.defineProperties,Dk=Object.getOwnPropertyDescriptor,Mk=Object.getOwnPropertyDescriptors,Tk=Object.getOwnPropertySymbols,qk=Object.prototype.hasOwnProperty,Ok=Object.prototype.propertyIsEnumerable,Lk=e=>{throw TypeError(e)},Nk=(e,t,n)=>t in e?kk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jk=(e,t)=>kk(e,"name",{value:t,configurable:!0}),_k=["class","method","getter","setter","accessor","field","value","get","set"],zk=e=>void 0!==e&&"function"!=typeof e?Lk("Function expected"):e,Fk=(e,t,n,r,o)=>({kind:_k[e],name:t,metadata:r,addInitializer:e=>n._?Lk("Already initialized"):o.push(zk(e||null))}),$k=(e,t)=>{return Nk(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},Hk=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},Bk=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=_k[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&Dk(d<4?o:{get[n](){return Uk(this,i)},set[n](e){return Kk(this,i,e)}},n));d?f&&d<4&&jk(i,(d>2?"set ":d>1?"get ":"")+n):jk(o,n);for(var y=r.length-1;y>=0;y--)c=Fk(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>Wk(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?Uk:Yk)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>Kk(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?zk(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?Lk("Object expected"):(zk(a=s.get)&&(v.get=a),zk(a=s.set)&&(v.set=a),zk(a=s.init)&&g.unshift(a));return d||$k(e,o),v&&kk(o,n,v),f?4^d?i:v:o},Vk=(e,t,n)=>t.has(e)||Lk("Cannot "+n),Wk=(e,t)=>Object(t)!==t?Lk('Cannot use the "in" operator on this value'):e.has(t),Uk=(e,t,n)=>(Vk(e,t,"read from private field"),n?n.call(e):t.get(e)),Gk=(e,t,n)=>t.has(e)?Lk("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Kk=(e,t,n,r)=>(Vk(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Yk=(e,t,n)=>(Vk(e,t,"access private method"),n);function Xk(e,t){if(t){let n;return tk(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return tk(e)}function Jk(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!Jk(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=n.some(n=>!Jk(e[n],t[n]));return!o}return!1}function Zk({get:e},t){return{init:e=>XA(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function Qk(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=Xk(e.bind(this)),n.set(this,t)),t.value}}function eP(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>Pk(e,Mk(t)))(((e,t)=>{for(var n in t||(t={}))qk.call(t,n)&&Nk(e,n,t[n]);if(Tk)for(var n of Tk(t))Ok.call(t,n)&&Nk(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function tP(...e){const t=e.map(e=>ak(e));return()=>t.forEach(e=>e())}pk=[Zk],dk=[Zk],uk=[Zk],ck=[eP()],lk=[eP()],sk=[eP()];var nP,rP=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Hk(fk,5,this),Gk(this,vk),Gk(this,hk,Hk(fk,8,this)),Hk(fk,11,this),Gk(this,yk,Hk(fk,12,this)),Hk(fk,15,this),Gk(this,Ck,Hk(fk,16,this)),Hk(fk,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Uk(this,vk,Rk)}get initial(){return Uk(this,vk,gk)}get previous(){return Uk(this,vk,Sk)}set current(e){const t=FA(()=>Uk(this,vk,Rk));e&&t&&this.equals(t,e)||_A(()=>{Uk(this,vk,gk)||Kk(this,vk,e,bk),Kk(this,vk,t,wk),Kk(this,vk,e,Ik)})}reset(e=this.defaultValue){_A(()=>{Kk(this,vk,void 0,wk),Kk(this,vk,e,bk),Kk(this,vk,e,Ik)})}};function oP(e){return FA(()=>{const t={};for(const n in e)t[n]=e[n];return t})}fk=[,,,Ak(null)],hk=new WeakMap,vk=new WeakSet,yk=new WeakMap,Ck=new WeakMap,mk=Bk(fk,20,"#initial",pk,vk,hk),gk=mk.get,bk=mk.set,xk=Bk(fk,20,"#previous",dk,vk,yk),Sk=xk.get,wk=xk.set,Ek=Bk(fk,20,"#current",uk,vk,Ck),Rk=Ek.get,Ik=Ek.set,Bk(fk,2,"current",ck,rP),Bk(fk,2,"initial",lk,rP),Bk(fk,2,"previous",sk,rP),$k(fk,rP);nP=new WeakMap;var iP,aP,sP,lP,cP,uP=Object.create,dP=Object.defineProperty,pP=Object.getOwnPropertyDescriptor,fP=Object.getOwnPropertySymbols,hP=Object.prototype.hasOwnProperty,mP=Object.prototype.propertyIsEnumerable,gP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),bP=e=>{throw TypeError(e)},vP=Math.pow,yP=(e,t,n)=>t in e?dP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xP=["class","method","getter","setter","accessor","field","value","get","set"],SP=e=>void 0!==e&&"function"!=typeof e?bP("Function expected"):e,wP=(e,t,n,r,o)=>({kind:xP[e],name:t,metadata:r,addInitializer:e=>n._?bP("Already initialized"):o.push(SP(e||null))}),CP=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=xP[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,pP(o,n)),h=r.length-1;h>=0;h--)(l=wP(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,SP(a)&&(f[d]=a);return f&&dP(o,n,f),o},EP=(e,t,n)=>t.has(e)||bP("Cannot "+n),RP=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},IP=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,r+n,i,a);return l.scale=((e,t)=>{for(var n in t||(t={}))hP.call(t,n)&&yP(e,n,t[n]);if(fP)for(var n of fP(t))mP.call(t,n)&&yP(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:o,bottom:i}=this;return{width:e,height:t,left:n,top:r,right:o,bottom:i}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new RP((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:o,height:i}=this;return n===t.left&&r===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:o}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:o}){return new e(n,t,r,o)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==r?o:"end"==r?o+i:o+i/2};return RP.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var AP,kP=class extends(sP=rP,aP=[Qk],iP=[Qk],sP){constructor(e){var t,n,r;super(RP.from(e),(e,t)=>RP.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(cP,5,this),t=this,r=0,(n=lP).has(t)?bP("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return RP.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=RP.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(EP(a=this,s=lP,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);_A(()=>{((e,t,n)=>{EP(e,t,"write to private field"),t.set(e,n)})(this,lP,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(RP.from(e)),this.velocity={x:0,y:0}}};function PP({x:e,y:t},n){const r=Math.abs(e),o=Math.abs(t);return"number"==typeof n?Math.sqrt(vP(r,2)+vP(o,2))>n:"x"in n&&"y"in n?r>n.x&&o>n.y:"x"in n?r>n.x:"y"in n&&o>n.y}cP=(e=>{var t;return[,,,uP(null!=(t=null==e?void 0:e[gP("metadata")])?t:null)]})(sP),lP=new WeakMap,CP(cP,2,"delta",aP,kP),CP(cP,2,"direction",iP,kP),AP=cP,yP(kP,gP("metadata"),AP[3]);var DP,MP,TP,qP,OP=(e=>(e.Horizontal="x",e.Vertical="y",e))(OP||{}),LP=Object.values(OP),NP=Object.create,jP=Object.defineProperty,_P=Object.defineProperties,zP=Object.getOwnPropertyDescriptor,FP=Object.getOwnPropertyDescriptors,$P=Object.getOwnPropertySymbols,HP=Object.prototype.hasOwnProperty,BP=Object.prototype.propertyIsEnumerable,VP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),WP=e=>{throw TypeError(e)},UP=(e,t,n)=>t in e?jP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,GP=(e,t)=>{for(var n in t||(t={}))HP.call(t,n)&&UP(e,n,t[n]);if($P)for(var n of $P(t))BP.call(t,n)&&UP(e,n,t[n]);return e},KP=(e,t)=>_P(e,FP(t)),YP=(e,t)=>jP(e,"name",{value:t,configurable:!0}),XP=(e,t)=>{var n={};for(var r in e)HP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&$P)for(var r of $P(e))t.indexOf(r)<0&&BP.call(e,r)&&(n[r]=e[r]);return n},JP=e=>{var t;return[,,,NP(null!=(t=null==e?void 0:e[VP("metadata")])?t:null)]},ZP=["class","method","getter","setter","accessor","field","value","get","set"],QP=e=>void 0!==e&&"function"!=typeof e?WP("Function expected"):e,eD=(e,t,n,r,o)=>({kind:ZP[e],name:t,metadata:r,addInitializer:e=>n._?WP("Already initialized"):o.push(QP(e||null))}),tD=(e,t)=>UP(t,VP("metadata"),e[3]),nD=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},rD=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=ZP[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&zP(d<4?o:{get[n](){return aD(this,i)},set[n](e){return lD(this,i,e)}},n));d?f&&d<4&&YP(i,(d>2?"set ":d>1?"get ":"")+n):YP(o,n);for(var y=r.length-1;y>=0;y--)c=eD(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>iD(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?aD:cD)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>lD(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?QP(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?WP("Object expected"):(QP(a=s.get)&&(v.get=a),QP(a=s.set)&&(v.set=a),QP(a=s.init)&&g.unshift(a));return d||tD(e,o),v&&jP(o,n,v),f?4^d?i:v:o},oD=(e,t,n)=>t.has(e)||WP("Cannot "+n),iD=(e,t)=>Object(t)!==t?WP('Cannot use the "in" operator on this value'):e.has(t),aD=(e,t,n)=>(oD(e,t,"read from private field"),n?n.call(e):t.get(e)),sD=(e,t,n)=>t.has(e)?WP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),lD=(e,t,n,r)=>(oD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),cD=(e,t,n)=>(oD(e,t,"access private method"),n);function uD(e,t){return{plugin:e,options:t}}function dD(e){return t=>uD(e,t)}function pD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}DP=[Zk];var fD=class{constructor(e,t){this.manager=e,this.options=t,sD(this,TP,nD(MP,8,this,!1)),nD(MP,11,this),sD(this,qP,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return FA(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=ak(e.bind(this));return aD(this,qP).add(t),t}destroy(){aD(this,qP).forEach(e=>e())}static configure(e){return uD(this,e)}};MP=JP(null),TP=new WeakMap,qP=new WeakMap,rD(MP,4,"disabled",DP,fD,TP),tD(MP,fD);var hD,mD=class extends fD{},gD=class{constructor(e){this.manager=e,this.instances=new Map,sD(this,hD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(pD).reduce((e,t)=>{const n=e.find(({plugin:e})=>e===t.plugin);return n?(n.options=t.options,e):[...e,t]},[]),n=t.map(({plugin:e})=>e);for(const e of aD(this,hD))if(!n.includes(e)){if(e.prototype instanceof mD)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);lD(this,hD,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function bD(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}hD=new WeakMap;var vD,yD,xD,SD,wD,CD,ED,RD,ID,AD,kD,PD,DD=[],MD=class extends fD{constructor(e){super(e),sD(this,vD),sD(this,yD),this.computeCollisions=this.computeCollisions.bind(this),lD(this,yD,XA(DD)),this.destroy=tP(()=>{const e=this.computeCollisions(),t=FA(()=>this.manager.dragOperation.position.current);if(e!==DD){const e=aD(this,vD);if(lD(this,vD,t),e&&t.x==e.x&&t.y==e.y)return}else lD(this,vD,void 0);aD(this,yD).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){FA(()=>{e?aD(this,yD).value=this.computeCollisions():lD(this,vD,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:o,shape:i,status:a}=r;if(!a.initialized||!i)return DD;const s=[],l=[];for(const i of null!=e?e:n.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const n=FA(()=>e({droppable:i,dragOperation:r}));n&&(null!=i.collisionPriority&&(n.priority=i.collisionPriority),s.push(n))}return 0===l.length?DD:(s.sort(bD),s)}get collisions(){return aD(this,yD).value}};vD=new WeakMap,yD=new WeakMap,wD=[Zk],SD=[Zk],xD=[Zk];var TD=class e{constructor(e,t){sD(this,ID,nD(RD,8,this)),nD(RD,11,this),sD(this,AD),sD(this,kD,nD(RD,12,this)),nD(RD,15,this),sD(this,PD,nD(RD,16,this)),nD(RD,19,this);const{effects:n,id:r,data:o={},disabled:i=!1,register:a=!0}=e;let s=r;lD(this,AD,XA(r)),this.manager=t,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return s=e,null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==n?void 0:n())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=aD(this,AD).value;return null!=(n=null==(t=e.pendingIdChanges)?void 0:t.get(this))?n:r}set id(t){var n,r;t!==(null!=(r=null==(n=e.pendingIdChanges)?void 0:n.get(this))?r:aD(this,AD).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return cD(t=e,CD,ED).call(t)})),e.pendingIdChanges.set(this,t))}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};RD=JP(null),CD=new WeakSet,ED=function(){const e=TD.pendingIdChanges;TD.pendingIdChanges=null,e&&_A(()=>{for(const[t,n]of e)aD(t,AD).value=n})},ID=new WeakMap,AD=new WeakMap,kD=new WeakMap,PD=new WeakMap,rD(RD,4,"manager",wD,TD,ID),rD(RD,4,"data",SD,TD,kD),rD(RD,4,"disabled",xD,TD,PD),sD(TD,CD),tD(RD,TD),TD.pendingIdChanges=null;var qD,OD,LD,ND,jD,_D,zD,FD,$D,HD,BD,VD,WD,UD,GD,KD,YD,XD,JD,ZD,QD,eM,tM,nM,rM=TD,oM=class{constructor(){this.map=XA(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),o=()=>this.unregister(e,t);if(r===t)return o;if(r&&r.id===e){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const i=new Map(n);for(const[r,o]of n)if(o===t&&r!==e){i.delete(r);break}i.set(e,t),this.map.value=i;const a=tP(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const o=new Map(n);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},iM=class extends(zD=rM,_D=[Zk],jD=[Zk],ND=[Zk],LD=[Qk],OD=[Qk],qD=[Qk],zD){constructor(e,t){var n=e,{modifiers:r,type:o,sensors:i,plugins:a,effects:s}=n,l=XP(n,["modifiers","type","sensors","plugins","effects"]);super(KP(GP({},l),{effects:()=>{var e;return[...null!=(e=null==s?void 0:s())?e:[],()=>{const{manager:e,plugins:t}=this;if(e&&t)for(const n of t){const{plugin:t}=pD(n);e.registry.plugins.register(t)}}]}}),t),nD(FD,5,this),sD(this,$D,nD(FD,8,this)),nD(FD,11,this),sD(this,HD,nD(FD,12,this)),nD(FD,15,this),sD(this,BD,nD(FD,16,this,this.isDragSource?"dragging":"idle")),nD(FD,19,this),this.type=o,this.sensors=i,this.modifiers=r,this.alignment=l.alignment,this.plugins=a}pluginConfig(e){if(this.plugins)for(const t of this.plugins){const n=pD(t);if(n.plugin===e)return n.options}}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};FD=JP(zD),$D=new WeakMap,HD=new WeakMap,BD=new WeakMap,rD(FD,4,"type",_D,iM,$D),rD(FD,4,"modifiers",jD,iM,HD),rD(FD,4,"status",ND,iM,BD),rD(FD,2,"isDropping",LD,iM),rD(FD,2,"isDragging",OD,iM),rD(FD,2,"isDragSource",qD,iM),tD(FD,iM);var aM=class extends(XD=rM,YD=[Zk],KD=[Zk],GD=[Zk],UD=[Zk],WD=[Zk],VD=[Qk],XD){constructor(e,t){var n=e,{accept:r,collisionDetector:o,collisionPriority:i,type:a}=n;super(XP(n,["accept","collisionDetector","collisionPriority","type"]),t),nD(JD,5,this),sD(this,ZD,nD(JD,8,this)),nD(JD,11,this),sD(this,QD,nD(JD,12,this)),nD(JD,15,this),sD(this,eM,nD(JD,16,this)),nD(JD,19,this),sD(this,tM,nD(JD,20,this)),nD(JD,23,this),sD(this,nM,nD(JD,24,this)),nD(JD,27,this),this.accept=r,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};JD=JP(XD),ZD=new WeakMap,QD=new WeakMap,eM=new WeakMap,tM=new WeakMap,nM=new WeakMap,rD(JD,4,"accept",YD,aM,ZD),rD(JD,4,"type",KD,aM,QD),rD(JD,4,"collisionDetector",GD,aM,eM),rD(JD,4,"collisionPriority",UD,aM,tM),rD(JD,4,"shape",WD,aM,nM),rD(JD,2,"isDropTarget",VD,aM),tD(JD,aM);var sM=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},lM=class extends sM{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function cM(e,t=!0){let n=!1;return KP(GP({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var uM,dM,pM,fM,hM,mM,gM,bM,vM,yM=class extends mD{constructor(e){super(e);let t=[];this.destroy=tP(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:o}=n;if(n.isDisabled())return;if(rM.pendingIdChanges)return;const i=cM({collisions:o});if(r.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;FA(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},xM=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(xM||{}),SM=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(SM||{});gM=[Zk],mM=[Qk],hM=[Qk],fM=[Qk],pM=[Qk],dM=[Qk],uM=[Qk];var wM=class{constructor(){nD(bM,5,this),sD(this,vM,nD(bM,8,this,"idle")),nD(bM,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};bM=JP(null),vM=new WeakMap,rD(bM,4,"value",gM,wM,vM),rD(bM,2,"current",mM,wM),rD(bM,2,"idle",hM,wM),rD(bM,2,"initializing",fM,wM),rD(bM,2,"initialized",pM,wM),rD(bM,2,"dragging",dM,wM),rD(bM,2,"dropped",uM,wM),tD(bM,wM);var CM,EM=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return FA(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=cM({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return FA(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const n=new AbortController,{event:r,coordinates:o}=e;_A(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(o)});const i=cM({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&_A(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1})})}),n)})}move(e){return FA(()=>{var t,n;const{dragOperation:r}=this.manager,{status:o,controller:i}=r;if(!o.dragging||!i||i.signal.aborted)return;const a=cM({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};r.position.current=l})})}stop(e={}){return FA(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:o}=r;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=FA(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===o&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=ak(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),i?i.then(a).catch(()=>r.reset()):a()})}},RM=class extends fD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},IM=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},AM=class{constructor(e){this.options=e,sD(this,CM)}set controller(e){lD(this,CM,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=aD(this,CM))||t.activate(e)}};CM=new WeakMap;var kM,PM,DM,MM,TM,qM,OM,LM,NM,jM,_M,zM,FM,$M,HM,BM,VM,WM,UM,GM=class extends fD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},KM=class{constructor(e){this.draggables=new oM,this.droppables=new oM,this.plugins=new gD(e),this.sensors=new gD(e),this.modifiers=new gD(e)}register(e,t){if(e instanceof iM)return this.draggables.register(e.id,e);if(e instanceof aM)return this.droppables.register(e.id,e);if(e.prototype instanceof GM)return this.modifiers.register(e,t);if(e.prototype instanceof RM)return this.sensors.register(e,t);if(e.prototype instanceof fD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof rM)return e instanceof iM?this.draggables.unregister(e.id,e):e instanceof aM?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof GM)return this.modifiers.unregister(e);if(e.prototype instanceof RM)return this.sensors.unregister(e);if(e.prototype instanceof fD)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};NM=[Qk],LM=[Zk],OM=[Zk],qM=[Zk],TM=[Zk],MM=[Zk],DM=[Qk],PM=[Qk],kM=[Qk];var YM=class{constructor(e){nD(FM,5,this),sD(this,jM),sD(this,_M),sD(this,zM,new rP(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new wM,sD(this,$M,nD(FM,8,this,!1)),nD(FM,11,this),sD(this,HM,nD(FM,12,this,null)),nD(FM,15,this),sD(this,BM,nD(FM,16,this,null)),nD(FM,19,this),sD(this,VM,nD(FM,20,this,null)),nD(FM,23,this),sD(this,WM,nD(FM,24,this,[])),nD(FM,27,this),this.position=new kP({x:0,y:0}),sD(this,UM,{x:0,y:0}),lD(this,jM,e)}get shape(){const{current:e,initial:t,previous:n}=aD(this,zM);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?aD(this,zM).current=e:aD(this,zM).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=aD(this,jM).registry.draggables.get(t);return n&&lD(this,_M,n),null!=(e=null!=n?n:aD(this,_M))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=aD(this,jM).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(KP(GP({},this.snapshot()),{transform:n}));return lD(this,UM,n),n}snapshot(){return FA(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:aD(this,UM),shape:this.shape?oP(this.shape):null,position:oP(this.position),status:oP(this.status),canceled:this.canceled}))}reset(){_A(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,aD(this,zM).reset(),this.position.reset({x:0,y:0}),lD(this,UM,{x:0,y:0}),this.modifiers=[]})}};FM=JP(null),jM=new WeakMap,_M=new WeakMap,zM=new WeakMap,$M=new WeakMap,HM=new WeakMap,BM=new WeakMap,VM=new WeakMap,WM=new WeakMap,UM=new WeakMap,rD(FM,2,"shape",NM,YM),rD(FM,4,"canceled",LM,YM,$M),rD(FM,4,"activatorEvent",OM,YM,HM),rD(FM,4,"sourceIdentifier",qM,YM,BM),rD(FM,4,"targetIdentifier",TM,YM,VM),rD(FM,4,"modifiers",MM,YM,WM),rD(FM,2,"source",DM,YM),rD(FM,2,"target",PM,YM),rD(FM,2,"transform",kM,YM),tD(FM,YM);var XM={get rendering(){return Promise.resolve()}};function JM(e,t){return"function"==typeof e?e(t):null!=e?e:t}var ZM=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const n=null!=e?e:{},r=JM(n.plugins,[]),o=JM(n.sensors,[]),i=JM(n.modifiers,[]),a=null!=(t=n.renderer)?t:XM,s=new lM(this),l=new KM(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new EM(this),this.dragOperation=new YM(this),this.collisionObserver=new MD(this),this.plugins=[yM,...r],this.modifiers=i,this.sensors=o;const{destroy:c}=this,u=tP(()=>{var e,t,n;const r=FA(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of r)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=pD(e);return new t(this,n)}))?n:o});this.destroy=()=>{u(),c()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},QM=e=>{throw TypeError(e)},eT=(e,t,n)=>t.has(e)||QM("Cannot "+n),tT=(e,t,n)=>(eT(e,t,"read from private field"),t.get(e)),nT=(e,t,n)=>t.has(e)?QM("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),rT=(e,t,n,r)=>(eT(e,t,"write to private field"),t.set(e,n),n),oT=(e,t,n)=>(eT(e,t,"access private method"),n);function iT(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function aT(e,t){const n=e.getAnimations();let r=null;for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,o=(iT(n)?n.getKeyframes():[]).filter(t);o.length>0&&(r=[o[o.length-1],e])}return r}function sT(e){const{width:t,height:n,top:r,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:o,bottom:i,right:a}}function lT(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function cT(e){return"nodeType"in e}function uT(e){var t,n,r;return e?lT(e)?e:cT(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function dT(e){const{Document:t}=uT(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function pT(e){return!(!e||lT(e))&&(e instanceof uT(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function fT(e){return e instanceof uT(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function hT(e){return e?lT(e)?e.document:cT(e)?dT(e)?e:pT(e)||fT(e)?e.ownerDocument:document:document:document}function mT(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===o}function gT(e,t=e.getBoundingClientRect(),n=0){var r,o,i,a,s;let l=t;const{ownerDocument:c}=e,u=null!=(r=c.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==c.documentElement;){if(!mT(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),o=n*(e.bottom-e.top),i=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=u.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:u.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:u.innerHeight,b=n*g,v=n*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function bT(e){return{x:e.clientX,y:e.clientY}}var vT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function yT(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...yT(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const o=r.parent;o&&o.document&&o.document!==e&&n.push(...yT(o.document,t))}}catch(e){}return n}function xT(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function ST(){var e,t;const n=xT()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function wT(e){return!(!e||!cT(e))&&e instanceof uT(e).ShadowRoot}function CT(e){if(e&&cT(e)){let t=e.getRootNode();if(wT(t))return t;if(t instanceof Document)return t}return hT(e)}function ET(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function RT(e){return"value"in e}function IT(e){return"CANVAS"===e.tagName}function AT(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:o,top:i}=r.getBoundingClientRect();return AT(e,{x:t-o,y:n-i})}}return r}var kT=new WeakMap;var PT=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],o=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:i}=t,a=[e,t];e.addEventListener(n,r,i),this.entries.add(a),o.push(a)}const i=this.entries;return function(){for(const e of o){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o),i.delete(e)}}}};function DT(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function MT(e,t){const n=()=>performance.now();let r,o;return function(...i){const a=this;o?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,i),o=n()},t-(n()-o))):(e.apply(a,i),o=n())}}var TT,qT=vT?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},OT=class extends qT{constructor(e){super(t=>{tT(this,TT)?e(t,this):rT(this,TT,!0)}),nT(this,TT,!1)}};TT=new WeakMap;var LT,NT,jT,_T,zT,FT,$T,HT,BT,VT,WT,UT=Array.from({length:100},(e,t)=>t/100),GT=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,nT(this,BT),this.disconnect=()=>{var e,t,n;rT(this,$T,!0),null==(e=tT(this,jT))||e.disconnect(),null==(t=tT(this,_T))||t.disconnect(),tT(this,zT).disconnect(),null==(n=tT(this,FT))||n.remove()},nT(this,LT,!0),nT(this,NT),nT(this,jT),nT(this,_T),nT(this,zT),nT(this,FT),nT(this,$T,!1),nT(this,HT,MT(()=>{var e,t,n;const{element:r}=this;if(null==(e=tT(this,_T))||e.disconnect(),tT(this,$T)||!tT(this,LT)||!r.isConnected)return;const o=null!=(t=r.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(n=o.defaultView)?n:window,s=r.getBoundingClientRect(),l=gT(r,s),{top:c,left:u,bottom:d,right:p}=l,f=-Math.floor(c),h=-Math.floor(u),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,rT(this,_T,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:IP.intersectionRatio(n,gT(r)))&&tT(this,HT).call(this)},{threshold:UT,rootMargin:m,root:o})),tT(this,_T).observe(r),oT(this,BT,VT).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),rT(this,LT,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=gT(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const o=e.ownerDocument;(null==n?void 0:n.debug)&&(rT(this,FT,document.createElement("div")),tT(this,FT).style.background="rgba(0,0,0,0.15)",tT(this,FT).style.position="fixed",tT(this,FT).style.pointerEvents="none",o.body.appendChild(tT(this,FT))),rT(this,zT,new IntersectionObserver(t=>{var n,r;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,c=tT(this,LT);rT(this,LT,a),(s||l)&&(c&&!a?(null==(n=tT(this,_T))||n.disconnect(),this.callback(null),null==(r=tT(this,jT))||r.disconnect(),rT(this,jT,void 0),tT(this,FT)&&(tT(this,FT).style.visibility="hidden")):tT(this,HT).call(this),a&&!tT(this,jT)&&(rT(this,jT,new OT(tT(this,HT))),tT(this,jT).observe(e)))},{threshold:UT,root:o})),tT(this,LT)&&!n.skipInitial&&this.callback(this.boundingClientRect),tT(this,zT).observe(e)}};LT=new WeakMap,NT=new WeakMap,jT=new WeakMap,_T=new WeakMap,zT=new WeakMap,FT=new WeakMap,$T=new WeakMap,HT=new WeakMap,BT=new WeakSet,VT=function(){tT(this,$T)||(oT(this,BT,WT).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,tT(this,NT))||(this.callback(this.boundingClientRect),rT(this,NT,this.boundingClientRect)))},WT=function(){if(tT(this,FT)){const{top:e,left:t,width:n,height:r}=gT(this.element);tT(this,FT).style.overflow="hidden",tT(this,FT).style.visibility="visible",tT(this,FT).style.top=`${Math.floor(e)}px`,tT(this,FT).style.left=`${Math.floor(t)}px`,tT(this,FT).style.width=`${Math.floor(n)}px`,tT(this,FT).style.height=`${Math.floor(r)}px`}};var KT,YT,XT,JT,ZT=new WeakMap,QT=new WeakMap;function eq(e,t){let n=ZT.get(e);if(!n){const t=new GT(e,t=>{const n=ZT.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),ZT.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(ZT.delete(e),n.disconnect())}}var tq=class{constructor(e,t,n){this.callback=t,nT(this,KT),nT(this,YT,!1),nT(this,XT),nT(this,JT,MT(e=>{if(!tT(this,YT)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of tT(this,XT))if(e.target.contains(t)){this.callback(tT(this,KT).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=DT(e);for(;n;)t.add(n),n=DT(n);return t}(e),o=function(e,t){const n=new Set;for(const r of e){const e=eq(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),i=function(e,t){var n;const r=e.ownerDocument;if(!QT.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),QT.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(n=QT.get(r))?n:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),QT.delete(r))}):()=>{}}(e,tT(this,JT));rT(this,XT,r),rT(this,KT,new GT(e,t,n)),this.disconnect=()=>{tT(this,YT)||(rT(this,YT,!0),o(),i(),tT(this,KT).disconnect())}}};function nq(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function rq(e){try{nq(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function oq(e){return!(!vT||!e)&&e===hT(e).scrollingElement}function iq(e){var t,n;const r=uT(e),o=oq(e)?function(e){var t,n,r,o;const{documentElement:i}=hT(e),a=uT(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:i.clientHeight,c=null!=(r=null==a?void 0:a.offsetTop)?r:0,u=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:c,left:u,right:u+s,bottom:c+l,width:s,height:l}}(e):sT(e),i=r.visualViewport,a=oq(e)?{height:null!=(t=null==i?void 0:i.height)?t:r.innerHeight,width:null!=(n=null==i?void 0:i.width)?n:r.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function aq(e,t){const{isTop:n,isBottom:r,isLeft:o,isRight:i,position:a}=iq(e),{x:s,y:l}=null!=t?t:{x:0,y:0},c=!n&&a.current.y+l>0,u=!r&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:c,bottom:u,left:d,right:p,x:d||p,y:c||u}}KT=new WeakMap,YT=new WeakMap,XT=new WeakMap,JT=new WeakMap;var sq=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},lq=new sq(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),cq=new sq(e=>setTimeout(e,50)),uq=new Map,dq=uq.clear.bind(uq);function pq(e,t=!1){if(!t)return fq(e);let n=uq.get(e);return n||(n=fq(e),uq.set(e,n),cq.schedule(dq),n)}function fq(e){return uT(e).getComputedStyle(e)}var hq={excludeElement:!0,escapeShadowDOM:!0};function mq(e,t=hq){const{limit:n,excludeElement:r,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=n&&i.size>=n)return i;if(!a)return i;if(dT(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&wT(a))return t(a.host);if(!pT(a))return fT(a)?t(a.parentElement):i;if(i.has(a))return i;const s=pq(a,!0);if(r&&a===e||function(e,t=pq(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&i.add(a),function(e,t=pq(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function gq(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=DT(e);for(;r;){if(r===t)return n;const e=sT(r),{x:o,y:i}=bq(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*o,n.scaleY=n.scaleY*i,r=DT(r)}return n}function bq(e,t=sT(e)){const n=Math.round(t.width),r=Math.round(t.height);if(pT(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const o=pq(e,!0);return{x:(parseFloat(o.width)||n)/n,y:(parseFloat(o.height)||r)/r}}function vq(e){if("none"===e)return null;const[t,n,r="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function yq(e){var t,n,r,o,i,a,s,l,c;const{scale:u,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(u),h=vq(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(n=null==f?void 0:f.y)?n:1,v=null!=(r=null==h?void 0:h.x)?r:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(c=null==h?void 0:h.z)?c:0,scaleX:g*w,scaleY:b*C}}var xq=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(xq||{}),Sq={x:.2,y:.2},wq={x:10,y:10};function Cq(e,t,n,r=25,o=Sq,i=wq){const{x:a,y:s}=t,{rect:l,isTop:c,isBottom:u,isLeft:d,isRight:p}=iq(e),f=gq(e),h=yq(pq(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new IP(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return x>0&&(!c||g&&!u)&&s<=b.top+x&&1!==(null==n?void 0:n.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=r*Math.abs((b.top+x-s)/x)):x>0&&(!u||g&&!c)&&s>=b.bottom-x&&-1!==(null==n?void 0:n.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=r*Math.abs((b.bottom-x-s)/x)),S>0&&(!p||m&&!d)&&a>=b.right-S&&-1!==(null==n?void 0:n.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=r*Math.abs((b.right-S-a)/S)):S>0&&(!d||m&&!p)&&a<=b.left+S&&1!==(null==n?void 0:n.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=r*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function Eq(e,{block:t="nearest",inline:n="nearest"}={}){if(!pT(e))return;const r=mq(e),o=[];for(const i of r){if(!pT(i))continue;const{top:r,left:a}=Iq(e,i);let s=r,l=a;for(const e of o)s-=e.scrollTop,l-=e.scrollLeft;if("none"!==t){const n=s<i.scrollTop;n!==s+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop="center"===t?s-i.clientHeight/2+e.offsetHeight/2:n?s:s+e.offsetHeight-i.clientHeight)}if("none"!==n){const t=l<i.scrollLeft;t!==l+e.offsetWidth>i.scrollLeft+i.clientWidth&&(i.scrollLeft="center"===n?l-i.clientWidth/2+e.offsetWidth/2:t?l:l+e.offsetWidth-i.clientWidth)}o.push(i)}}function Rq(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;const e=r.offsetParent;if(!pT(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function Iq(e,t){const n=Rq(e),r=Rq(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function Aq({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function kq(e,t=pq(e).translate,n=!0){if(n){const t=aT(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=vq(e);if(t)return t}}}if(t){const e=vq(t);if(e)return e}return{x:0,y:0,z:0}}var Pq=new sq(e=>setTimeout(e,0)),Dq=new Map,Mq=Dq.clear.bind(Dq);function Tq(e,t){const n=function(e){const t=e.ownerDocument;let n=Dq.get(t);if(n)return n;n=t.getAnimations(),Dq.set(t,n),Pq.schedule(Mq);const r=n.filter(t=>iT(t.effect)&&t.effect.target===e);return Dq.set(e,r),n}(e).filter(e=>{var n,r;if(iT(e.effect)){const{target:o}=e.effect;if(null==(r=o&&(null==(n=t.isValidTarget)?void 0:n.call(t,o)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var qq=class extends IP{constructor(e,t={}){var n,r,o,i;const{frameTransform:a=gq(e),ignoreTransforms:s,getBoundingClientRect:l=sT}=t,c=Tq(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||xT())&&t.contains(e)}),u=l(e);let d,{top:p,left:f,width:h,height:m}=u;const g=pq(e),b=yq(g),v={x:null!=(n=null==b?void 0:b.scaleX)?n:1,y:null!=(r=null==b?void 0:b.scaleY)?r:1},y=function(e,t){const n=e.getAnimations();if(!n.length)return null;let r,o,i,a=!1;for(const e of n){if("running"!==e.playState)continue;const t=iT(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;const{transform:s,translate:l,scale:c}=n;"string"==typeof s&&s&&(r=s,a=!0),"string"==typeof l&&l&&(o=l,a=!0),"string"==typeof c&&c&&(i=c,a=!0)}return a?yq({transform:null!=r?r:t.transform,translate:null!=o?o:t.translate,scale:null!=i?i:t.scale}):null}(e,g);null==c||c(),b&&(d=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-r)*parseFloat(n),l=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width/r:e.width,u=o?e.height/o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(u,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-r)*parseFloat(n),l=e.top+a+(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width*r:e.width,u=o?e.height*o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function Oq(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var Lq=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(Oq(n))for(const[r,o]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:n}=this;if(Oq(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(Oq(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function Nq(e){return!!e&&(e instanceof uT(e).Element||cT(e)&&e.nodeType===Node.ELEMENT_NODE)}function jq(e){if(!e)return!1;const{KeyboardEvent:t}=uT(e.target);return e instanceof t}var _q={};function zq(e){const t=null==_q[e]?0:_q[e]+1;return _q[e]=t,`${e}-${t}`}var Fq=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/RP.distance(t.shape.center,n),type:SM.PointerIntersection,priority:xM.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=RP.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:SM.ShapeIntersection,priority:xM.Normal}}return null})(e)},$q=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:o}=t;if(!n.shape)return null;const i=r?IP.from(r.current.boundingRectangle).corners:void 0,a=IP.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+RP.distance(RP.from(t),null!=(r=null==i?void 0:i[n])?r:o.current)},0),s=a/4;return{id:n.id,value:1/s,type:SM.Collision,priority:xM.Normal}},Hq=Object.create,Bq=Object.defineProperty,Vq=Object.defineProperties,Wq=Object.getOwnPropertyDescriptor,Uq=Object.getOwnPropertyDescriptors,Gq=Object.getOwnPropertySymbols,Kq=Object.prototype.hasOwnProperty,Yq=Object.prototype.propertyIsEnumerable,Xq=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Jq=e=>{throw TypeError(e)},Zq=(e,t,n)=>t in e?Bq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qq=(e,t)=>{for(var n in t||(t={}))Kq.call(t,n)&&Zq(e,n,t[n]);if(Gq)for(var n of Gq(t))Yq.call(t,n)&&Zq(e,n,t[n]);return e},eO=(e,t)=>Vq(e,Uq(t)),tO=(e,t)=>Bq(e,"name",{value:t,configurable:!0}),nO=(e,t)=>{var n={};for(var r in e)Kq.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Gq)for(var r of Gq(e))t.indexOf(r)<0&&Yq.call(e,r)&&(n[r]=e[r]);return n},rO=e=>{var t;return[,,,Hq(null!=(t=null==e?void 0:e[Xq("metadata")])?t:null)]},oO=["class","method","getter","setter","accessor","field","value","get","set"],iO=e=>void 0!==e&&"function"!=typeof e?Jq("Function expected"):e,aO=(e,t,n,r,o)=>({kind:oO[e],name:t,metadata:r,addInitializer:e=>n._?Jq("Already initialized"):o.push(iO(e||null))}),sO=(e,t)=>Zq(t,Xq("metadata"),e[3]),lO=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},cO=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=oO[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&Wq(d<4?o:{get[n](){return pO(this,i)},set[n](e){return hO(this,i,e)}},n));d?f&&d<4&&tO(i,(d>2?"set ":d>1?"get ":"")+n):tO(o,n);for(var y=r.length-1;y>=0;y--)c=aO(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>dO(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?pO:mO)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>hO(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?iO(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?Jq("Object expected"):(iO(a=s.get)&&(v.get=a),iO(a=s.set)&&(v.set=a),iO(a=s.init)&&g.unshift(a));return d||sO(e,o),v&&Bq(o,n,v),f?4^d?i:v:o},uO=(e,t,n)=>t.has(e)||Jq("Cannot "+n),dO=(e,t)=>Object(t)!==t?Jq('Cannot use the "in" operator on this value'):e.has(t),pO=(e,t,n)=>(uO(e,t,"read from private field"),n?n.call(e):t.get(e)),fO=(e,t,n)=>t.has(e)?Jq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),hO=(e,t,n,r)=>(uO(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),mO=(e,t,n)=>(uO(e,t,"access private method"),n),gO="button",bO="draggable",vO="dnd-kit-description",yO="dnd-kit-announcement",xO={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},SO={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function wO(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var CO=["dragover","dragmove"],EO=class extends fD{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=vO,announcement:o=yO}={},announcements:i=SO,screenReaderInstructions:a=xO,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:zq(r),c=n?`${o}-${n}`:zq(o);let u,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>lq.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const o=p;if(!o)return;const i=null==t?void 0:t(n,r);i&&o.nodeValue!==i&&(f=i,CO.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==u?void 0:u.isConnected)||(u=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(l,a.draggable),e.push(u)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(c),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const n=null!=(e=t.handle)?e:t.element;if(n){u&&d||y.add(v),wO(n)&&!xT()||n.hasAttribute("tabindex")||y.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||y.add(()=>n.setAttribute("role",gO)),n.hasAttribute("aria-roledescription")||y.add(()=>n.setAttribute("aria-roledescription",bO)),n.hasAttribute("aria-describedby")||y.add(()=>n.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const r=String(t.isDragging);n.getAttribute(e)!==r&&y.add(()=>n.setAttribute(e,r))}const e=String(t.disabled);n.getAttribute("aria-disabled")!==e&&y.add(()=>n.setAttribute("aria-disabled",e))}}y.size>0&&lq.schedule(x)}),this.destroy=()=>{super.destroy(),null==u||u.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var RO,IO,AO,kO,PO,DO,MO,TO,qO,OO,LO,NO,jO,_O=new Map,zO=class extends(PO=mD,kO=[Zk],AO=[Qk],IO=[Qk],RO=[Qk],PO){constructor(e,t){super(e,t),lO(MO,5,this),fO(this,qO),fO(this,DO,new Set),fO(this,TO,lO(MO,8,this,new Set)),lO(MO,11,this),this.registerEffect(mO(this,qO,OO))}register(e){return pO(this,DO).add(e),()=>{pO(this,DO).delete(e)}}addRoot(e){return FA(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{FA(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return CT(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return CT(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};MO=rO(PO),DO=new WeakMap,TO=new WeakMap,qO=new WeakSet,OO=function(){const{roots:e}=this,t=[];for(const n of e)for(const e of pO(this,DO))t.push(mO(this,qO,LO).call(this,n,e));return()=>{for(const e of t)e()}},LO=function(e,t){let n=_O.get(e);n||(n=new Map,_O.set(e,n));let r=n.get(t);if(!r){const o=dT(e)?mO(this,qO,NO).call(this,e,n,t):mO(this,qO,jO).call(this,e,n,t);if(!o)return()=>{};r=o,n.set(t,r)}r.refCount++;let o=!1;return()=>{o||(o=!0,r.refCount--,0===r.refCount&&r.cleanup())}},NO=function(e,t,n){var r;const o=e.createElement("style"),{nonce:i}=null!=(r=this.options)?r:{};i&&o.setAttribute("nonce",i),o.textContent=n,e.head.prepend(o);const a=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===o)return void e.head.prepend(o)});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),o.remove(),t.delete(n),0===t.size&&_O.delete(e)}}},jO=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=r?r:{};if(!o)return null;const i=new o;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var r;if(wT(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&_O.delete(e)}}},cO(MO,4,"additionalRoots",kO,zO,TO),cO(MO,2,"sourceRoot",AO,zO),cO(MO,2,"targetRoot",IO,zO),cO(MO,2,"roots",RO,zO),sO(MO,zO),zO.configure=dD(zO);var FO=zO,$O="data-dnd-",HO=`${$O}dropping`,BO="--dnd-",VO=`${$O}dragging`,WO=`${$O}placeholder`,UO=[VO,WO,"popover","aria-pressed","aria-grabbing"],GO=["view-transition-name"],KO=`\n :is(:root,:host) [${VO}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${BO}top, 0px) !important;\n left: var(${BO}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${BO}width, auto);\n max-width: var(${BO}width, auto);\n height: var(${BO}height, auto);\n max-height: var(${BO}height, auto);\n transform: var(${BO}transform, none) !important;\n transition: var(${BO}transition) !important;\n }\n\n :is(:root,:host) [${WO}] {\n transition: none;\n }\n\n :is(:root,:host) [${WO}='hidden'] {\n visibility: hidden;\n }\n\n [${VO}] * {\n pointer-events: none !important;\n }\n\n [${VO}]:not([${HO}]) {\n translate: var(${BO}translate) !important;\n }\n\n [${VO}][style*='${BO}scale'] {\n scale: var(${BO}scale) !important;\n transform-origin: var(${BO}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${VO}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${VO}]::backdrop, [${$O}overlay]:not([${VO}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function YO(e,t="hidden"){return FA(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const o=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${$O}${zq("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(RT(e)&&RT(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),IT(e)&&IT(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,o]of e){if(!r.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(o),!i)continue;const a=r.element;r.proxy=i,i.removeAttribute(o),kT.set(a,i),n.push(()=>{kT.delete(a),r.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(WO,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function XO(e,t){return e===t||DT(e)===DT(t)}function JO(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&Nq(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>rq(t))}function ZO(e){return"TR"===e.tagName}var QO,eL,tL,nL,rL,oL,iL,aL=250,sL="ease";var lL=class extends(eL=fD,QO=[Zk],eL){constructor(e,t){super(e,t),fO(this,rL),fO(this,nL,lO(tL,8,this)),lO(tL,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(FO),r=null==n?void 0:n.register(KO);if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(mO(this,rL,oL).bind(this,n)),this.registerEffect(mO(this,rL,iL))}};tL=rO(eL),nL=new WeakMap,rL=new WeakSet,oL=function(e){const{overlay:t}=this;if(!t||!e)return;const n=CT(t);return n?e.addRoot(n):void 0},iL=function(){var e,t,n,r,o,i,a;const{state:s,manager:l,options:c}=this,{dragOperation:u}=l,{position:d,source:p,status:f}=u;if(f.idle)return s.current={},void(s.initial={});if(!p)return;const{element:h}=p,m=p.pluginConfig(lL),g=null!=(t=null!=(e=null==m?void 0:m.feedback)?e:null==c?void 0:c.feedback)?t:"default",b="function"==typeof g?g(p,l):g;if(!h||"none"===b||!f.initialized||f.initializing)return;const{initial:v}=s,y=null!=(n=this.overlay)?n:h,x=gq(y),S=gq(h),w=!XO(h,y),C=new qq(h,{frameTransform:w?S:null,ignoreTransforms:!w}),E=S.scaleX/x.scaleX,R=S.scaleY/x.scaleY;let{width:I,height:A,top:k,left:P}=C;w&&(I/=E,A/=R);const D=new Lq(y),M=pq(h),{transition:T,translate:q,boxSizing:O,paddingBlockStart:L,paddingBlockEnd:N,paddingInlineStart:j,paddingInlineEnd:_,borderInlineStartWidth:z,borderInlineEndWidth:F,borderBlockStartWidth:$,borderBlockEndWidth:H}=M,B=T.split(",").filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(","),V=yq(M),W=M.transform,U="clone"===b,G="content-box"===O,K=G?parseInt(j)+parseInt(_)+parseInt(z)+parseInt(F):0,Y=G?parseInt(L)+parseInt(N)+parseInt($)+parseInt(H):0,X="move"===b||this.overlay?null:YO(p,U?"clone":"hidden"),J=FA(()=>jq(l.dragOperation.activatorEvent));if(!v.translate)if(this.overlay&&V)v.translate={x:V.x,y:V.y};else if("none"!==q){const e=vq(q);e&&(v.translate=e)}if(!v.transformOrigin){const e=FA(()=>d.current),t=P+(null!=(r=null==V?void 0:V.x)?r:0),n=k+(null!=(o=null==V?void 0:V.y)?o:0);v.transformOrigin={x:(e.x-t*x.scaleX-x.x)/(I*x.scaleX),y:(e.y-n*x.scaleY-x.y)/(A*x.scaleY)}}const{transformOrigin:Z}=v,Q=k*x.scaleY+x.y,ee=P*x.scaleX+x.x;if(!v.coordinates&&(v.coordinates={x:ee,y:Q},1!==E||1!==R)){const{scaleX:e,scaleY:t}=S,{x:n,y:r}=Z;v.coordinates.x+=(I*e-I)*n,v.coordinates.y+=(A*t-A)*r}v.dimensions||(v.dimensions={width:I,height:A}),v.frameTransform||(v.frameTransform=x);const te=v.coordinates.x-ee,ne=v.coordinates.y-Q,re=(v.dimensions.width*v.frameTransform.scaleX-I*x.scaleX)*Z.x,oe=(v.dimensions.height*v.frameTransform.scaleY-A*x.scaleY)*Z.y,ie={x:te/x.scaleX+re,y:ne/x.scaleY+oe},ae=P+ie.x,se=k+ie.y;y.setAttribute(VO,"true");const le=FA(()=>u.transform),ce=null!=(i=v.translate)?i:{x:0,y:0},ue=le.x*x.scaleX+ce.x,de=le.y*x.scaleY+ce.y,pe=ST();if(D.set({width:I-K,height:A-Y,top:se+pe.y,left:ae+pe.x,translate:`${ue}px ${de}px 0`,transform:this.overlay?"none":W,transition:B?`${B}, translate 0ms linear`:"translate 0ms linear",scale:w?`${E} ${R}`:"","transform-origin":`${100*Z.x}% ${100*Z.y}%`},BO),X&&(h.insertAdjacentElement("afterend",X),null==c?void 0:c.rootElement)){("function"==typeof c.rootElement?c.rootElement(p):c.rootElement).appendChild(h)}let fe,he,me;nq(y)&&(y.hasAttribute("popover")||y.setAttribute("popover","manual"),rq(y),y.addEventListener("beforetoggle",JO));const ge=(be={placeholder:X,element:h,feedbackElement:y,frameTransform:x,transformOrigin:Z,width:I,height:A,top:k,left:P,widthOffset:K,heightOffset:Y,delta:ie,styles:D,dragOperation:u,getTranslate:()=>s.current.translate,getElementMutationObserver:()=>fe,getSavedCellWidths:()=>me,setSavedCellWidths:e=>{me=e}},new ResizeObserver(()=>{var e,t,n;const r=new qq(be.placeholder,{frameTransform:be.frameTransform,ignoreTransforms:!0}),o=null!=(e=be.transformOrigin)?e:{x:1,y:1},i=(be.width-r.width)*o.x+be.delta.x,a=(be.height-r.height)*o.y+be.delta.y,s=ST();if(be.styles.set({width:r.width-be.widthOffset,height:r.height-be.heightOffset,top:be.top+a+s.y,left:be.left+i+s.x},BO),null==(t=be.getElementMutationObserver())||t.takeRecords(),ZO(be.element)&&ZO(be.placeholder)){const e=Array.from(be.element.cells),t=Array.from(be.placeholder.cells);be.getSavedCellWidths()||be.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}const l=null!=(n=be.getTranslate())?n:{x:0,y:0},c=be.left+i+s.x+l.x,u=be.top+a+s.y+l.y,d=r.width-be.widthOffset,p=r.height-be.heightOffset,f=be.frameTransform;be.dragOperation.shape=new IP(c*f.scaleX+f.x,u*f.scaleY+f.y,d*f.scaleX,p*f.scaleY)}));var be;const ve=new qq(y);FA(()=>u.shape=ve);const ye=uT(y),xe=e=>{this.manager.actions.stop({event:e})},Se=ET(ye);J&&ye.addEventListener("resize",xe),"idle"===FA(()=>p.status)&&requestAnimationFrame(()=>p.status="dragging"),X&&(ge.observe(X),fe=function(e,t,n){const r=new MutationObserver(r=>{let o=!1;for(const n of r){if(n.target!==e){o=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||UO.includes(r))continue;const i=e.getAttribute(r);if("style"===r){if(Oq(e)&&Oq(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(GO.includes(e)||e.startsWith(BO))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==i?t.setAttribute(r,i):t.removeAttribute(r)}o&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(h,X,U),he=function(e,t,n){const r=new MutationObserver(r=>{for(const o of r)if(0!==o.addedNodes.length)for(const r of Array.from(o.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void rq(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void rq(n)}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement("afterend",t),rq(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(h,X,y));const we=null==(a=l.dragOperation.source)?void 0:a.id,Ce=()=>{var e;if(!J||null==we)return;const t=l.registry.draggables.get(we),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;pT(n)&&n.focus()},Ee=()=>{var e;if(null==fe||fe.disconnect(),null==he||he.disconnect(),ge.disconnect(),ye.removeEventListener("resize",xe),nq(y)&&(y.removeEventListener("beforetoggle",JO),y.removeAttribute("popover")),y.removeAttribute(VO),D.reset(),me&&ZO(h)){const t=Array.from(h.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=me[n])?e:""}p.status="idle";const t=null!=s.current.translate,n=u.status.dragging;X&&(!n&&t||X.parentElement!==y.parentElement)&&y.isConnected&&X.replaceWith(y),null==X||X.remove()},Re=null==c?void 0:c.dropAnimation,Ie=this,Ae=tP(()=>{var e,t,n;const{transform:r,status:o}=u;if((r.x||r.y||s.current.translate)&&o.dragging){const o=null!=(e=v.translate)?e:{x:0,y:0},i={x:r.x/x.scaleX+o.x,y:r.y/x.scaleY+o.y},a=s.current.translate,l=FA(()=>u.modifiers),d=FA(()=>{var e;return null==(e=u.shape)?void 0:e.current}),p=null==c?void 0:c.keyboardTransition,f=J&&!Se&&null!==p?`${null!=(t=null==p?void 0:p.duration)?t:250}ms ${null!=(n=null==p?void 0:p.easing)?n:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(D.set({transition:B?`${B}, translate ${f}`:`translate ${f}`,translate:`${i.x}px ${i.y}px 0`},BO),null==fe||fe.takeRecords(),d&&d!==ve&&a&&!l.length){const e=RP.delta(i,a);u.shape=IP.from(d.boundingRectangle).translate(e.x*x.scaleX,e.y*x.scaleY)}else u.shape=new qq(y);s.current.translate=i}},function(){if(u.status.dropped){this.dispose(),p.status="dropping";const e=void 0!==(null==m?void 0:m.dropAnimation)?m.dropAnimation:void 0!==Ie.dropAnimation?Ie.dropAnimation:Re;let t=s.current.translate;const n=null!=t;if(t||h===y||(t={x:0,y:0}),!t||null===e)return void Ee();l.renderer.rendering.then(()=>{!function(e){var t,n,r,o;const{animation:i}=e;if("function"==typeof i){const t=i({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=aL,easing:s=sL}=null!=i?i:{};rq(e.feedbackElement);const[,l]=null!=(t=aT(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const c=null!=(n=e.placeholder)?n:e.element,u={frameTransform:XO(e.feedbackElement,c)?null:void 0},d=new qq(e.feedbackElement,u),p=null!=(r=vq(pq(e.feedbackElement).translate))?r:e.translate,f=new qq(c,u),h=IP.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},BO),e.feedbackElement.setAttribute(HO,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),Aq({element:e.feedbackElement,keyframes:eO(Qq(Qq({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:ET(uT(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(HO),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({source:p,element:h,feedbackElement:y,placeholder:X,translate:t,moved:n,transition:T,alignment:p.alignment,styles:D,animation:null!=e?e:void 0,getElementMutationObserver:()=>fe,cleanup:Ee,restoreFocus:Ce})})}});return()=>{Ee(),Ae()}},cO(tL,4,"overlay",QO,lL,nL),sO(tL,lL),lL.configure=dD(lL);var cL,uL,dL,pL,fL,hL,mL,gL=lL,bL=!0;dL=[Zk],pL=xq.Forward,cL=[Zk],uL=xq.Reverse;var vL=class{constructor(){fO(this,hL,lO(fL,8,this,bL)),lO(fL,11,this),fO(this,mL,lO(fL,12,this,bL)),lO(fL,15,this)}isLocked(e){return e!==xq.Idle&&(null==e?this[xq.Forward]===bL&&this[xq.Reverse]===bL:this[e]===bL)}unlock(e){e!==xq.Idle&&(this[e]=false)}};fL=rO(null),hL=new WeakMap,mL=new WeakMap,cO(fL,4,pL,dL,vL,hL),cO(fL,4,uL,cL,vL,mL),sO(fL,vL);var yL,xL,SL,wL,CL,EL,RL=[xq.Forward,xq.Reverse],IL=class{constructor(){this.x=new vL,this.y=new vL}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},AL=class extends fD{constructor(e){super(e);const t=XA(new IL);let n=null;this.signal=t,ak(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new IL);const{delta:o}=e.dragOperation.position;if(n){const e={x:kL(o.x,n.x),y:kL(o.y,n.y)},r=t.peek();_A(()=>{for(const t of LP)for(const n of RL)e[t]===n&&r[t].unlock(n);t.value=r})}n=o})}get current(){return this.signal.peek()}};function kL(e,t){return Math.sign(e-t)}var PL=class extends(xL=mD,yL=[Zk],xL){constructor(e){super(e),fO(this,wL,lO(SL,8,this,!1)),lO(SL,11,this),fO(this,CL),fO(this,EL,()=>{if(!pO(this,CL))return;const{element:e,by:t}=pO(this,CL);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{var n;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return hO(this,CL,void 0),!1;const{position:o}=this.manager.dragOperation,i=null==o?void 0:o.current;if(i){const{by:o}=null!=e?e:{},a=o?{x:DL(o.x),y:DL(o.y)}:void 0,s=a?void 0:this.scrollIntentTracker.current;if(null==s?void 0:s.isLocked())return!1;for(const e of r){const r=aq(e,o);if(r.x||r.y){const{speed:r,direction:l}=Cq(e,i,a,null==t?void 0:t.acceleration,null==t?void 0:t.threshold);if(s)for(const e of LP)s[e].isLocked(l[e])&&(r[e]=0,l[e]=0);if(l.x||l.y){const{x:t,y:i}=null!=o?o:l,a=t*r.x,s=i*r.y;if(a||s){const t=null==(n=pO(this,CL))?void 0:n.by;if(this.autoScrolling&&t){if(t.x&&!a||t.y&&!s)continue}return hO(this,CL,{element:e,by:{x:a,y:s}}),lq.schedule(pO(this,EL)),!0}}}}}return hO(this,CL,void 0),!1};let t=null,n=null;const r=Xk(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const o=AT(CT(null==r?void 0:r.element),n.current);return o&&(t=o),null!=o?o:t}),o=Xk(()=>{const t=r.value,{documentElement:o}=hT(t);if(!t||t===o){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=mq(r,{excludeElement:!1});return n=e,e}}if(t){const e=mq(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},Jk);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new AL(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&jq(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function DL(e){return e>0?xq.Forward:e<0?xq.Reverse:xq.Idle}SL=rO(xL),wL=new WeakMap,CL=new WeakMap,EL=new WeakMap,cO(SL,4,"autoScrolling",yL,PL,wL),sO(SL,PL);var ML=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),TL=class extends fD{constructor(e,t){super(e,t);const n=e.registry.plugins.get(PL);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=ak(()=>{var t,r,o;if(this.disabled)return;const{position:i,status:a}=e.dragOperation;if(a.dragging){const e={acceleration:null==(t=this.options)?void 0:t.acceleration,threshold:"number"==typeof(null==(r=this.options)?void 0:r.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(o=this.options)?void 0:o.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;const t=setInterval(()=>ML.schedule(()=>n.scroll(void 0,e)),10);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};TL.configure=dD(TL);var qL,OL=TL,LL={capture:!0,passive:!0},NL=class extends mD{constructor(e){super(e),fO(this,qL),this.handleScroll=()=>{null==pO(this,qL)&&hO(this,qL,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),hO(this,qL,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=ak(()=>{var e,n,r;if(t.status.dragging){const o=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return o.addEventListener("scroll",this.handleScroll,LL),()=>{o.removeEventListener("scroll",this.handleScroll,LL)}}})}};qL=new WeakMap;function jL(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var _L,zL=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),FL=class extends RM{constructor(e,t){super(e),this.manager=e,this.options=t,fO(this,_L,[]),this.listeners=new PT,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!Nq(e.target))return;if(t.disabled)return;const{keyboardCodes:r=zL.keyboardCodes,preventActivation:o=zL.preventActivation}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=ak(()=>{var n;const r=null!=(n=e.handle)?n:e.element,o=n=>{jq(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),Eq(r);const{center:o}=new qq(r);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=hT(r),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];pO(this,_L).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=zL.keyboardCodes}=null!=n?n:{};if(BL(e,[...r.end,...r.cancel])){e.preventDefault();const t=BL(e,r.cancel);return void this.handleEnd(e,t)}BL(e,r.up)?this.handleMove("up",e):BL(e,r.down)&&this.handleMove("down",e),BL(e,r.left)?this.handleMove("left",e):BL(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:zL.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(OL);!1===(null==e?void 0:e.disabled)&&(e.disable(),pO(this,_L).push(()=>{e.enable()}))}cleanup(){pO(this,_L).forEach(e=>e()),hO(this,_L,[])}destroy(){this.cleanup(),this.listeners.clear()}};_L=new WeakMap,FL.configure=dD(FL),FL.defaults=zL;var $L,HL=FL;function BL(e,t){return t.includes(e.code)}var VL,WL;$L=new WeakMap;VL=new WeakMap,WL=new WeakMap;var UL=class{};UL.Delay=class extends AM{constructor(){super(...arguments),fO(this,VL),fO(this,WL)}onEvent(e){switch(e.type){case"pointerdown":hO(this,WL,bT(e)),hO(this,VL,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!pO(this,WL))return;const{x:t,y:n}=bT(e);PP({x:t-pO(this,WL).x,y:n-pO(this,WL).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){pO(this,VL)&&(clearTimeout(pO(this,VL)),hO(this,WL,void 0),hO(this,VL,void 0))}},UL.Distance=class extends AM{constructor(){super(...arguments),fO(this,$L)}onEvent(e){switch(e.type){case"pointerdown":hO(this,$L,bT(e));break;case"pointermove":if(!pO(this,$L))return;const{x:t,y:n}=bT(e),r={x:t-pO(this,$L).x,y:n-pO(this,$L).y},{tolerance:o}=this.options;if(o&&PP(r,o))return void this.abort();PP(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){hO(this,$L,void 0)}};var GL,KL=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:o}=e;if("mouse"!==r||!Nq(o)||t.handle!==o&&!(null==(n=t.handle)?void 0:n.contains(o)))return"touch"===r?[new UL.Delay({value:250,tolerance:5})]:function(e){if(!Nq(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(o)&&!e.defaultPrevented?[new UL.Delay({value:200,tolerance:0})]:[new UL.Delay({value:200,tolerance:10}),new UL.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;return r!==t.element&&(r!==t.handle&&(!!Nq(r)&&(!(null==(n=t.handle)?void 0:n.contains(r))&&Boolean(r.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),YL=class extends RM{constructor(e,t){super(e),this.manager=e,this.options=t,fO(this,GL,new Set),this.listeners=new PT,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){const{activationConstraints:r=KL.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=ak(()=>{var n;const r=new AbortController,{signal:o}=r,i=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=uT(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(eN(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!Nq(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=KL.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:o}=e,i=pT(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=gq(t.element),{x:s,y:l}=bT(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const c=this.activationConstraints(e,t,n);e.sensor=this;const u=new IM(c,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;const d=yT(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:JL,options:{capture:!0}}]);pO(this,GL).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=bT(e),r=gq(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,lq.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=hT(t.target).body;try{o.setPointerCapture(t.pointerId)}catch(e){return void this.handleCancel(t)}const i=Nq(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:JL,options:{passive:!1}},{type:"click",listener:JL},{type:"contextmenu",listener:JL},{type:"keydown",listener:this.handleKeyDown}]);pO(this,GL).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){const{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},pO(this,GL).forEach(e=>e()),pO(this,GL).clear()}destroy(){this.cleanup(),this.listeners.clear()}};GL=new WeakMap,YL.configure=dD(YL),YL.defaults=KL;var XL=YL;function JL(e){e.preventDefault()}function ZL(){}var QL=new WeakSet;function eN(e){e&&!QL.has(e)&&(e.addEventListener("touchmove",ZL,{capture:!1,passive:!1}),QL.add(e))}var tN,nN,rN,oN,iN,aN,sN,lN,cN,uN,dN,pN,fN,hN,mN,gN,bN={modifiers:[],plugins:[EO,OL,class extends fD{constructor(e,t){super(e,t),this.manager=e;const{cursor:n="grabbing"}=null!=t?t:{},r=e.registry.plugins.get(FO),o=null==r?void 0:r.register(`* { cursor: ${n} !important; }`);if(o){const e=this.destroy.bind(this);this.destroy=()=>{o(),e()}}}},gL,class extends fD{constructor(e){super(e),this.manager=e;const t=e.registry.plugins.get(FO),n=null==t?void 0:t.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=ak(()=>{const{dragOperation:e}=this.manager;if(e.status.initialized)return jL(),document.addEventListener("selectionchange",jL,{capture:!0}),()=>{document.removeEventListener("selectionchange",jL,{capture:!0})}}),n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}}}],sensors:[XL,HL]},vN=class extends ZM{constructor(e={}){const t=JM(e.plugins,bN.plugins),n=JM(e.sensors,bN.sensors),r=JM(e.modifiers,bN.modifiers);super(eO(Qq({},e),{plugins:[NL,PL,FO,...t],sensors:n,modifiers:r}))}},yN=class extends(rN=iM,nN=[Zk],tN=[Zk],rN){constructor(e,t){var n=e,{element:r,effects:o=()=>[],handle:i}=n,a=nO(n,["element","effects","handle"]);super(Qq({effects:()=>[...o(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(pD))?t:[...n.sensors]).map(e=>{const t=e instanceof RM?e:n.registry.register(e.plugin),r=e instanceof RM?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},a),t),fO(this,iN,lO(oN,8,this)),lO(oN,11,this),fO(this,aN,lO(oN,12,this)),lO(oN,15,this),this.element=r,this.handle=i}};oN=rO(rN),iN=new WeakMap,aN=new WeakMap,cO(oN,4,"handle",nN,yN,iN),cO(oN,4,"element",tN,yN,aN),sO(oN,yN);var xN=class extends(cN=aM,lN=[Zk],sN=[Zk],cN){constructor(e,t){var n=e,{element:r,effects:o=()=>[]}=n,i=nO(n,["element","effects"]);const{collisionDetector:a=Fq}=i,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new qq(n),o=FA(()=>this.shape);return r&&(null==o?void 0:o.equals(r))?o:(this.shape=r,r)},l=XA(!1);super(eO(Qq({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new tq(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),fO(this,mN),fO(this,dN,lO(uN,8,this)),lO(uN,11,this),fO(this,gN,lO(uN,12,this)),lO(uN,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){hO(this,mN,e,hN)}get element(){var e;return null!=(e=this.proxy)?e:pO(this,mN,fN)}};function SN(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}uN=rO(cN),dN=new WeakMap,mN=new WeakSet,gN=new WeakMap,pN=cO(uN,20,"#element",lN,mN,dN),fN=pN.get,hN=pN.set,cO(uN,4,"proxy",sN,xN,gN),sO(uN,xN);var wN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?j:q;function CN(){const e=P(0)[1];return L(()=>{e(e=>e+1)},[e])}function EN(e,t=[],n=!1){const r=D(e);return r.current=e,function(e,t=!1){const n=D(e.peek()),r=D(!1),o=CN();return wN(()=>ak(()=>{const i=n.current,a=e.value;if(i!==a){if(n.current=a,!r.current)return;t?U(o):o()}}),[e,t,o]),{get value(){return r.current=!0,e.peek()}}}(k(()=>Xk(()=>r.current()),t),n)}function RN(e,t){const n=D(new Map),r=CN();return wN(()=>{if(e)return ak(()=>{var o;let i=!1,a=!1;for(const r of n.current){const[s]=r,l=FA(()=>r[1]),c=e[s];l!==c&&(i=!0,n.current.set(s,c),a=null!=(o=null==t?void 0:t(s,l,c))&&o)}i&&(a?queueMicrotask(()=>U(r)):r())});n.current.clear()},[e]),k(()=>e?new Proxy(e,{get(e,t){const r=e[t];return n.current.set(t,r),r}}):e,[e])}function IN(e,t){e()}function AN(e){const t=D(e);return wN(()=>{t.current=e},[e]),t}function kN(e,t,n=q,r=Object.is){const o=D(e);n(()=>{const n=o.current;r(e,n)||(o.current=e,t(e,n))},[t,e])}function PN(e,t){const n=D(SN(e));wN(()=>{const r=SN(e);r!==n.current&&(n.current=r,t(r))})}var DN=Object.defineProperty,MN=Object.defineProperties,TN=Object.getOwnPropertyDescriptors,qN=Object.getOwnPropertySymbols,ON=Object.prototype.hasOwnProperty,LN=Object.prototype.propertyIsEnumerable,NN=(e,t,n)=>t in e?DN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jN=new vN,_N=M(jN),zN=z(F(({children:e},t)=>{const[n,r]=P(0),o=D(null),i=D(null),a=k(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),$(()=>{e(),r(e=>e+1)})}}),[]);return wN(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,n]),H(t,()=>a),null})),FN=[void 0,Jk];function $N(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,c=((e,t)=>{var n={};for(var r in e)ON.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&qN)for(var r of qN(e))t.indexOf(r)<0&&LN.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const u=D(null),{plugins:d,modifiers:p,sensors:f}=c,h=JM(d,bN.plugins),m=JM(f,bN.sensors),g=JM(p,bN.modifiers),b=AN(o),v=AN(i),y=AN(s),x=AN(a),S=AN(l),w=AN(r),C=function(e){const t=D(null);t.current||(t.current=e());return _(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new vN(c)});return q(()=>{if(!u.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=u.current,{monitor:n}=C;C.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=b.current;n&&t(()=>n(e,C))}),n.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),n.addEventListener("dragover",e=>{const n=y.current;n&&t(()=>n(e,C))}),n.addEventListener("dragmove",e=>{const n=x.current;n&&t(()=>n(e,C))}),n.addEventListener("dragend",e=>{const n=S.current;n&&t(()=>n(e,C))}),n.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>r.forEach(e=>e())},[C]),kN(h,()=>C&&(C.plugins=h),...FN),kN(m,()=>C&&(C.sensors=m),...FN),kN(g,()=>C&&(C.modifiers=g),...FN),sn.jsxs(_N.Provider,{value:C,children:[sn.jsx(zN,{ref:u,children:n}),n]})}function HN(){return N(_N)}function BN(e){var t;const n=null!=(t=HN())?t:void 0,[r]=P(()=>e(n));return r.manager!==n&&(r.manager=n),wN(r.register,[n,r]),r}function VN({children:e,className:t,dropAnimation:n,style:r,tag:o,disabled:i}){var a;const s=D(null),l=HN(),c=null!=(a=EN(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,u="function"==typeof i?i(c):i;q(()=>{if(!s.current||!l||u)return;const e=l.plugins.find(e=>e instanceof gL);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,u]),q(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof gL);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[l,n]);const d=k(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?WN:e[t]});return new Proxy(l,{get:(t,n)=>"registry"===n?e:t[n]})},[l]);return sn.jsx(_N.Provider,{value:d,children:C(o||"div",{ref:s,className:t,style:r,"data-dnd-overlay":!0},function(){if(!c||u)return null;if("function"==typeof e)return sn.jsx(UN,{source:c,children:e});return e}())})}function WN(){return()=>{}}function UN({children:e,source:t}){return e(RN(t))}var GN,KN,YN,XN,JN,ZN=Object.create,QN=Object.defineProperty,ej=Object.getOwnPropertyDescriptor,tj=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),nj=e=>{throw TypeError(e)},rj=["class","method","getter","setter","accessor","field","value","get","set"],oj=e=>void 0!==e&&"function"!=typeof e?nj("Function expected"):e,ij=(e,t,n,r,o)=>({kind:rj[e],name:t,metadata:r,addInitializer:e=>n._?nj("Already initialized"):o.push(oj(e||null))}),aj=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=rj[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,ej(o,n)),h=r.length-1;h>=0;h--)(l=ij(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,oj(a)&&(f[d]=a);return f&&QN(o,n,f),o},sj=(e,t,n)=>t.has(e)||nj("Cannot "+n),lj=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},cj=class extends(YN=rP,KN=[Qk],GN=[Qk],YN){constructor(e){var t,n,r;super(lj.from(e),(e,t)=>lj.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(JN,5,this),t=this,r=0,(n=XN).has(t)?nj("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return lj.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=lj.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(sj(a=this,s=XN,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);_A(()=>{((e,t,n)=>{sj(e,t,"write to private field"),t.set(e,n)})(this,XN,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(lj.from(e)),this.velocity={x:0,y:0}}};JN=(e=>{var t;return[,,,ZN(null!=(t=null==e?void 0:e[tj("metadata")])?t:null)]})(YN),XN=new WeakMap,aj(JN,2,"delta",KN,cj),aj(JN,2,"direction",GN,cj),((e,t)=>{((e,t,n)=>{t in e?QN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(t,tj("metadata"),e[3])})(JN,cj);var uj=(e=>(e.Horizontal="x",e.Vertical="y",e))(uj||{});Object.values(uj);var dj=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/lj.distance(t.shape.center,n),type:SM.PointerIntersection,priority:xM.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=lj.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:SM.ShapeIntersection,priority:xM.Normal}}return null})(e)};function pj(e){const{collisionDetector:t,data:n,disabled:r,element:o,id:i,accept:a,type:s}=e,l=BN(t=>new xN(((e,t)=>MN(e,TN(t)))(((e,t)=>{for(var n in t||(t={}))ON.call(t,n)&&NN(e,n,t[n]);if(qN)for(var n of qN(t))LN.call(t,n)&&NN(e,n,t[n]);return e})({},e),{register:!1,element:SN(o)}),t)),c=RN(l);return kN(i,()=>l.id=i),PN(o,e=>l.element=e),kN(a,()=>l.accept=a,void 0,Jk),kN(t,()=>l.collisionDetector=null!=t?t:dj),kN(n,()=>n&&(l.data=n)),kN(r,()=>l.disabled=!0===r),kN(s,()=>l.type=s),{droppable:c,get isDropTarget(){return c.isDropTarget},ref:L(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}function fj(e){const t=HN();q(()=>{if(!t)return;const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const o=n.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,r);e.push(i)}return e},[]);return()=>n.forEach(e=>null==e?void 0:e())},[t,e])}const hj=e=>Array.from({length:e},(e,t)=>t),mj=({id:e,sectionIndex:t,itemIndex:n})=>sn.jsx("span",{children:`${e}-${t}-${n}`}),gj=z(()=>{const e=cb(AA)??mj,{startSectionIndex:t,startIndex:n,id:r}=cb(MA)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:sn.jsx(VN,{dropAnimation:null,children:sn.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:sn.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),bj=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=cb(MA),o=r?.toSectionIndex===e&&r.toIndex===t;return sn.jsx("div",{"data-key":"drop-target-indicator","data-testid":"drop-target-indicator",style:{visibility:o&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},vj=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,yj=z(({sectionIndex:e})=>{const t=cb(xA)[e],n=cb(SA),r=cb(wA),o=null!==cb(MA),i=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=pj({id:a,type:"section",accept:"item",collisionPriority:xM.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:sn.jsxs(Td,{ref:s,sx:{margin:"4px",outline:vj(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[sn.jsx(Td,{sx:{position:"relative",top:"4px"},children:sn.jsx(bj,{sectionIndex:e,itemIndex:0,isDragging:!1})}),sn.jsxs(Td,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[sn.jsx(Ku,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:i.title}),sn.jsx(Ku,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:i.message})]})]})}),xj=z(({id:e,sectionIndex:t})=>{const n=cb(IA);return void 0===n?null:C(n,{id:e,sectionIndex:t})});var Sj=Object.defineProperty,wj=Object.defineProperties,Cj=Object.getOwnPropertyDescriptors,Ej=Object.getOwnPropertySymbols,Rj=Object.prototype.hasOwnProperty,Ij=Object.prototype.propertyIsEnumerable,Aj=(e,t,n)=>t in e?Sj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kj=(e,t)=>{for(var n in t||(t={}))Rj.call(t,n)&&Aj(e,n,t[n]);if(Ej)for(var n of Ej(t))Ij.call(t,n)&&Aj(e,n,t[n]);return e},Pj=(e,t)=>wj(e,Cj(t)),Dj=class extends GM{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return Pj(kj({},e),{[t]:n})}};Dj.configure=dD(Dj);var Mj=Dj,Tj=Mj.configure({axis:"x",value:0});Mj.configure({axis:"y",value:0});var qj=class extends GM{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,o="number"==typeof n?n:n.y;return Pj(kj({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/o)*o})}};qj.configure=dD(qj);var Oj=Object.create,Lj=Object.defineProperty,Nj=Object.defineProperties,jj=Object.getOwnPropertyDescriptor,_j=Object.getOwnPropertyDescriptors,zj=Object.getOwnPropertySymbols,Fj=Object.prototype.hasOwnProperty,$j=Object.prototype.propertyIsEnumerable,Hj=e=>{throw TypeError(e)},Bj=(e,t,n)=>t in e?Lj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vj=(e,t)=>{for(var n in t||(t={}))Fj.call(t,n)&&Bj(e,n,t[n]);if(zj)for(var n of zj(t))$j.call(t,n)&&Bj(e,n,t[n]);return e},Wj=(e,t)=>Nj(e,_j(t)),Uj=["class","method","getter","setter","accessor","field","value","get","set"],Gj=e=>void 0!==e&&"function"!=typeof e?Hj("Function expected"):e,Kj=(e,t,n,r,o)=>({kind:Uj[e],name:t,metadata:r,addInitializer:e=>n._?Hj("Already initialized"):o.push(Gj(e||null))}),Yj=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},Xj=(e,t,n,r,o,i)=>{for(var a,s,l,c,u,d=7&t,p=e.length+1,f=Uj[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,jj({get[n](){return Zj(this,i)},set[n](e){return e_(this,i,e)}},n)),b=r.length-1;b>=0;b--)(c=Kj(d,n,l={},e[3],m)).static=false,c.private=false,u=c.access={has:e=>n in e},u.get=e=>e[n],u.set=(e,t)=>e[n]=t,s=(0,r[b])({get:g.get,set:g.set},c),l._=1,void 0===s?Gj(s)&&(g[f]=s):"object"!=typeof s||null===s?Hj("Object expected"):(Gj(a=s.get)&&(g.get=a),Gj(a=s.set)&&(g.set=a),Gj(a=s.init)&&h.unshift(a));return g&&Lj(o,n,g),o},Jj=(e,t,n)=>t.has(e)||Hj("Cannot "+n),Zj=(e,t,n)=>(Jj(e,t,"read from private field"),t.get(e)),Qj=(e,t,n)=>t.has(e)?Hj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),e_=(e,t,n,r)=>(Jj(e,t,"write to private field"),t.set(e,n),n);function t_(e){return e instanceof T_||e instanceof M_}var n_=class extends fD{constructor(e){super(e);const t=ak(()=>{const{dragOperation:t}=e;if(jq(t.activatorEvent)&&t_(t.source)&&t.status.initialized){const t=e.registry.plugins.get(PL);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!jq(e.nativeEvent))return;if(!t_(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:c}=n,{center:u}=n.shape.current,d=[],p=[];_A(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==c?void 0:c.id)&&t_(e)||!e.element)continue;let n=e.shape;const r=new qq(e.element,{getBoundingClientRect:e=>gT(e,void 0,.2)});r.height&&r.width&&(("down"==s&&u.y+10<r.center.y||"up"==s&&u.y-10>r.center.y||"left"==s&&u.x-10>r.center.x||"right"==s&&u.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,$q);_A(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=n;if(!e||!t_(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,c=g!==a||b!==s,u=c?l:null==t?void 0:t.element;if(!u)return;Eq(u);const d=new qq(u);if(!d)return;const p=IP.delta(d,IP.from(i.current.boundingRectangle),e.alignment);r.move({by:p}),c?r.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{n(),t()}}};var r_=Object.defineProperty,o_=Object.defineProperties,i_=Object.getOwnPropertyDescriptors,a_=Object.getOwnPropertySymbols,s_=Object.prototype.hasOwnProperty,l_=Object.prototype.propertyIsEnumerable,c_=(e,t,n)=>t in e?r_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u_=(e,t)=>{for(var n in t||(t={}))s_.call(t,n)&&c_(e,n,t[n]);if(a_)for(var n of a_(t))l_.call(t,n)&&c_(e,n,t[n]);return e},d_=(e,t)=>o_(e,i_(t));function p_(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function f_(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function h_(e,t){return function(e,t,n){var r,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const c=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>c(e,a.id)),o=e.findIndex(e=>c(e,s.id));if(-1===r||-1===o){if(f_(a)){const r=a.initialIndex,o=a.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const u=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of u)if(-1===f&&(f=t.findIndex(e=>c(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>c(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&f_(a)){const r=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==r||null==i||!(r in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===i)return d_(u_({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return d_(u_({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(r=m.shape)?void 0:r.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&f_(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return d_(u_({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return d_(u_({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return d_(u_({},e),{[d]:n(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return d_(u_({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,p_)}var m_="__default__";function g_(e,t,n,r){const o=r<t?"afterend":"beforebegin";n.insertAdjacentElement(o,e)}function b_(e,t){return e.index-t.index}function v_(e){return Array.from(e).sort(b_)}var y_,x_,S_,w_,C_,E_,R_,I_,A_=[n_,class extends fD{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof T_){const{sortable:e}=n,{group:r}=e;let o=t.get(r);o||(o=new Set,t.set(r,o)),o.add(e)}for(const[e,n]of t)t.set(e,new Set(v_(n)));return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:o,target:i}=r;if(!t_(o)||!t_(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),c=s?l:a.get(i.sortable.group);l&&c&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,u,d;const p=t();for(const[e,t]of a.entries()){const n=Array.from(t).entries();for(const[t,o]of n)if(o.index!==t||o.group!==e||!(null==(r=p.get(e))?void 0:r.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=v_(l),g=s?m:v_(c),b=null!=(u=o.sortable.group)?u:m_,v=null!=(d=i.sortable.group)?d:m_,y={[b]:m,[v]:g},x=h_(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);n.collisionObserver.disable(),g_(f,S,h,w),_A(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),n.actions.setDropTarget(o.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:o}=r;t_(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),r=e.get(o.sortable.initialGroup);r&&n.renderer.rendering.then(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).entries();for(const[n,r]of e)if(r.index!==n||r.group!==t)return}const t=v_(r),n=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&n&&(g_(n,i.index,a,o.index),_A(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],k_={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},P_=new class{constructor(){Gk(this,nP,new WeakMap)}get(e,t){var n;return e?null==(n=Uk(this,nP).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return Uk(this,nP).has(e)||Uk(this,nP).set(e,new Map),null==(r=Uk(this,nP).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=Uk(this,nP).get(e))?void 0:t.clear():void 0}};x_=[Zk],y_=[Zk];var D_=class{constructor(e,t){Qj(this,w_,Yj(S_,8,this)),Yj(S_,11,this),Qj(this,C_),Qj(this,E_),Qj(this,R_,Yj(S_,12,this)),Yj(S_,15,this),Qj(this,I_),this.register=()=>(_A(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{_A(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{_A(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],group:o,index:i,sensors:a,type:s,transition:l=k_,plugins:c}=n,u=((e,t)=>{var n={};for(var r in e)Fj.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&zj)for(var r of zj(e))t.indexOf(r)<0&&$j.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","group","index","sensors","type","transition","plugins"]);const d=JM(c,A_);this.droppable=new T_(u,t,this),this.draggable=new M_(Wj(Vj({},u),{plugins:d,effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&P_.clear(this.manager),(null==r?void 0:r.dragging)&&P_.set(this.manager,this.id,FA(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=Zj(this,E_),o=Zj(this,C_);e===r&&t===o||(e_(this,E_,e),e_(this,C_,t),this.animate())},()=>{var e,t;const{target:n}=this,{isDragSource:r}=this.draggable;"move"===(null!=(t=null==(e=this.draggable.pluginConfig(gL))?void 0:e.feedback)?t:"default")&&r&&(this.droppable.disabled=!n)},...r()],type:s,sensors:a}),t,this),e_(this,I_,u.element),this.manager=t,this.index=i,e_(this,E_,i),this.group=o,e_(this,C_,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=P_.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=P_.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){FA(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;for(const e of r.getAnimations())!("transitionProperty"in e)||"transform"!==e.transitionProperty&&"translate"!==e.transitionProperty&&"scale"!==e.transitionProperty||e.cancel();const o=this.refreshShape();if(!o)return;const i=n.boundingRectangle.left-o.boundingRectangle.left,a=n.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=pq(r),l=kq(r,s,!1),c=kq(r,s);if(i||a){const n=ET(uT(r))?Wj(Vj({},t),{duration:0}):t;Aq({element:r,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${c.x}px ${c.y}px ${c.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){_A(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){_A(()=>{const t=Zj(this,I_),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),e_(this,I_,e)})}get element(){var e,t;const n=Zj(this,I_);if(n)return null!=(t=null!=(e=kT.get(n))?e:n)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set plugins(e){this.draggable.plugins=JM(e,A_)}set disabled(e){_A(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){_A(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:Fq}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){_A(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};S_=[,,,Oj(null)],w_=new WeakMap,C_=new WeakMap,E_=new WeakMap,R_=new WeakMap,I_=new WeakMap,Xj(S_,4,"index",x_,D_,w_),Xj(S_,4,"group",y_,D_,R_),((e,t)=>{return Bj(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(S_,D_);var M_=class extends yN{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},T_=class extends xN{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},q_=Object.defineProperty,O_=Object.defineProperties,L_=Object.getOwnPropertyDescriptors,N_=Object.getOwnPropertySymbols,j_=Object.prototype.hasOwnProperty,__=Object.prototype.propertyIsEnumerable,z_=(e,t,n)=>t in e?q_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F_=(e,t)=>{for(var n in t||(t={}))j_.call(t,n)&&z_(e,n,t[n]);if(N_)for(var n of N_(t))__.call(t,n)&&z_(e,n,t[n]);return e};function $_(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:o,data:i,element:a,handle:s,index:l,group:c,disabled:u,modifiers:d,sensors:p,target:f,type:h,plugins:m}=e,g=F_(F_({},k_),e.transition),b=BN(t=>new D_(((e,t)=>O_(e,L_(t)))(F_({},e),{transition:g,register:!1,handle:SN(s),element:SN(a),target:SN(f)}),t)),v=RN(b,H_);return kN(o,()=>b.id=o),wN(()=>{_A(()=>{b.group=c,b.index=l})},[b,c,l]),kN(h,()=>b.type=h),kN(t,()=>b.accept=t,void 0,Jk),kN(i,()=>i&&(b.data=i)),kN(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},IN),PN(s,e=>b.handle=e),PN(a,e=>b.element=e),PN(f,e=>b.target=e),kN(u,()=>b.disabled=!0===u),kN(p,()=>b.sensors=p),kN(n,()=>b.collisionDetector=n),kN(r,()=>b.collisionPriority=r),kN(m,()=>b.plugins=m,void 0,Jk),kN(g,()=>b.transition=g,void 0,Jk),kN(d,()=>b.modifiers=d,void 0,Jk),kN(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:L(e=>{b.handle=null!=e?e:void 0},[b]),ref:L(e=>{var t,n;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:L(e=>{var t,n;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:L(e=>{var t,n;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function H_(e,t,n){return!("isDragSource"!==e||n||!t)}const B_=({id:e,itemIndex:t,sectionIndex:n})=>sn.jsx("div",{children:`${n}:${t} - ${e}`}),V_=z(({id:e,itemIndex:t,sectionIndex:n})=>{const r=cb(kA),o=cb(RA),i=cb(xA).at(n)??0,a=cb(SA)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:c}=$_({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[Tj],plugins:[n_],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),u=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=o??B_;return sn.jsx(gf,{className:"section-item-container","data-testid":"section-item",onClick:u,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:sn.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[sn.jsx(bj,{isDragging:l,itemIndex:t,sectionIndex:n}),sn.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:c}),t===i-1&&sn.jsx(bj,{isDragging:!1,itemIndex:t+1,sectionIndex:n})]})})}),W_=z(({sectionIndex:e})=>{const t=cb(SA),n=cb(xA).at(e)??0,r=t({sectionIndex:e});return sn.jsxs(Td,{className:"exploration-list",style:{overflow:"auto"},children:[sn.jsx(Ip,{}),sn.jsx(xj,{id:r,sectionIndex:e}),sn.jsx(Ip,{}),sn.jsx(yj,{sectionIndex:e}),sn.jsx(rf,{sx:{padding:"2px 8px"},children:hj(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return sn.jsx(V_,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),U_=[XL.configure({activationConstraints:[new UL.Distance({value:5})]}),HL],G_=z(()=>{const e=cb(yA),t=cb(SA),n=ub(TA("start")),r=ub(TA("over")),o=ub(TA("end"));return sn.jsxs($N,{sensors:U_,onDragEnd:e=>{o(e)},onDragOver:e=>{r(e)},onDragStart:e=>{n(e)},children:[sn.jsx(Td,{style:{display:"flex",flexDirection:"column"},children:hj(e).map(e=>sn.jsx(W_,{sectionIndex:e},t({sectionIndex:e})))}),sn.jsx(gj,{})]})}),K_=z(e=>sn.jsx(oA,{atoms:qA,atomFamilies:OA,children:sn.jsx(LA,{props:e,children:sn.jsx(G_,{})})})),Y_="ChartExploration.Table.ColumnSectionEmpty.Title",X_="ChartExploration.Table.NoColumnsFound.Title",J_="#177fe6",Z_=Jg(e=>{const t=e(fI),n=e(hI).length>0,r=(e=>e?X_:Y_)(n),o=(e=>e?"":"ChartExploration.Table.ColumnSectionEmpty.Message")(n);return()=>({title:t(r),message:""===o?"":t(o)})}),Q_=Jg(e=>{const t=e(OI),n=e(VI);return 0===t.length?"disabled":0===n.size?"none":n.size===t.length?"all":"some"}),ez=Jg(null,(e,t)=>{const n=e(OI),r=e(VI),o="all"!==e(Q_)&&"disabled"!==e(Q_),i=[],a=new Set(e(FI)),s=new Set(e($I));if(o){const t=new Set(n.filter(e=>!r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!0,type:e(LI)[t]}))),i.forEach(e=>a.add(e.id)),i.forEach(e=>s.delete(e.id))}else{const t=new Set(n.filter(e=>r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!1,type:e(LI)[t]}))),i.forEach(e=>a.delete(e.id)),i.forEach(e=>s.add(e.id))}t(FI,a),t($I,s),oI({items:i,handler:e(dI),model:e(uI),currentColumnIds:e(OI),handlerQueue:e(jI)})}),tz=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},nz=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,rz=e=>{const{currentTarget:t}=e,n=nz(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),o=e?.querySelector(".exploration-section-header");if(o)return o;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const o=r.getElementsByClassName(t);return o.length>0?o[o.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},oz=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===sg.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},iz=(e,t)=>{const{currentTarget:n}=e;n===t.ref.current&&((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel")?.getElementsByTagName("input")[0];r&&tz(r)})(e,t)},az=(e,t)=>{const{key:n}=e;switch(n){case sg.Tab:Lm(e),e.shiftKey?iz(e,t):((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),o=r?.getElementsByClassName("exploration-item-focus")[0];o&&tz(o)})(e,t);break;case sg.Down:(e=>{e.preventDefault();const t=e.currentTarget.closest(".exploration-list"),n=t?.getElementsByClassName("exploration-item-focus")[0];n&&tz(n)})(e);break;case sg.Enter:case sg.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},sz=({children:e})=>sn.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),lz=({children:e})=>{const t=D(null),n=cb(Q_),[,r]=db(ez),o=cb(fI),i={ref:t,toggleAllCheckboxes:r,checkState:n};return sn.jsxs(Td,{ref:t,"aria-label":o("Common.Columns"),className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{az(e,i)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${J_} inset`}},children:[sn.jsx(op,{inputProps:{"aria-label":o("ChartExploration.Header.ToggleAll"),..."some"===n&&{"aria-checked":"mixed"}},disabled:"disabled"===n,checked:"all"===n,indeterminate:"some"===n,onChange:r,size:"small",style:{flexShrink:0,padding:9}}),sn.jsx(sz,{children:e})]})},cz=()=>{const e=cb(fI);return sn.jsx(lz,{children:e("Common.Columns")})},uz=F((e,t)=>sn.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:sn.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),dz=F((e,t)=>sn.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[sn.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),sn.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]})),pz=F((e,t)=>sn.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:sn.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),fz=$c("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),hz=$c(pz)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${J_} inset`}})),mz=e=>{const t=e.key===sg.Down?(e=>{const{currentTarget:t,key:n}=e,r=nz(t),o=t.closest("li");let i=o?.nextElementSibling?.getElementsByClassName(r)[0];return i||(i=oz(t,n),i)?i:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):rz(e);t&&tz(t)},gz=(e,t)=>{const{key:n}=e;switch(n){case sg.Tab:if(e.shiftKey)Lm(e),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&tz(e))}const n=rz(e);n&&tz(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void tz(t);const r=rz(e);r&&tz(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return tz(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&tz(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&tz(n),!0}const o=oz(n,r);if(!o)return!1;tz(o)}return!0})(e,t);n?Lm(e):e.stopPropagation()}break;case sg.Enter:case sg.Space:Lm(e),((e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&tz(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void tz(e)}n===t.items.explorationItemFocusRef.current&&t.toggleItem()})(e,t);break;case sg.Down:case sg.Up:Lm(e),mz(e)}},bz=({children:e})=>sn.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),vz={dimension:uz,measure:dz},yz=({id:e,itemIndex:t})=>{const n=cb(qI(t)),[r,o]=db(VI),i=cb(fI),a=w.useRef(null),s=w.useRef(null),l=w.useRef(null);if(!n)return null;const c=n.title,u=n.type,d=vz[u],p=!r.has(e),f={id:e,itemIndex:t,toggleItem:()=>{o({id:e,isAlternative:p,type:u})},items:{explorationItemRef:a,explorationItemFocusRef:s,draggableIconRef:l}};return sn.jsxs(Td,{ref:a,className:"exploration-item",onClick:t=>{t.stopPropagation(),-1!==e&&o({id:e,isAlternative:p,type:u})},onKeyDown:e=>{gz(e,f)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:c,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${J_} inset`}},children:[sn.jsxs(Td,{ref:s,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{gz(e,f)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${J_} inset`}},children:[sn.jsx(op,{checked:r.has(e),"aria-label":i("ChartExploration.ListItem.Label",c),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0}}),sn.jsx(Td,{children:sn.jsx(d,{height:12,style:{opacity:1,marginRight:"8px"}})}),sn.jsx(bz,{children:c})]}),sn.jsx(hz,{ref:l,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{gz(e,f)}})]})},xz=()=>{const e=cb(MI),t=cb(Z_),n=cb(EI),r=cb(TI);return!n&&sn.jsx(K_,{numberOfSections:1,numberOfItemsInSection:[e],keyExtractor:r,emptyTexts:t,headerRenderer:cz,itemRenderer:yz})},Sz=F((e,t)=>sn.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:sn.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})})),wz=()=>{const[e,t]=db(hI),n=cb(fI),r=w.useRef(null),o=cb(MI),i=L(e=>{t(e.target.value)},[t]),a=0===e.length||0===o?n("Common.Search.NoResultsAvailable"):n("ChartExploration.Table.Search.ResultsFound",o.toString());return sn.jsxs(Td,{ref:r,style:{position:"sticky",top:0,zIndex:1,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:0,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[sn.jsx(fz,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:a}),sn.jsx(gh,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":n("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:n("Common.Search"),onChange:i,startAdornment:sn.jsx(Wp,{position:"start",children:sn.jsx(Sz,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},Cz=e=>{const t=Rm();return sn.jsx(Bc,{theme:t,children:sn.jsx(rb,{children:sn.jsx(WI,{props:e,children:sn.jsxs(Td,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[sn.jsx(wz,{}),sn.jsx(xz,{})]})})})})},Ez=e=>e.flags.isEnabled("VNA-655-STRAIGHT_TABLE_NEW_EXPLORATION")?{component:Cz,classification:{tags:["exploration"],exclusive:!0}}:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};var Rz=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(Rz||{}),Iz=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(Iz||{}),Az=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(Az||{}),kz=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(kz||{});const Pz=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,Dz=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t,r=`[${e.field}]${e.exclude?"-":""}={`,o="}";switch(e.type){case Az.SEARCH:t=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case Rz.BEGINNING_OF_WORD:t="*^",n="*";break;case Rz.ENDS_WITH:t="*";break;case Rz.STARTS_WITH:n="*";break;case Rz.MATCHES_EXACTLY:break;case Rz.CONTAINS:default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case Az.CONDITION:t=(e=>{const{options:t}=e,n=t?.mode===Iz.GENERAL,r=t?.modifier?.type===kz.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";n&&r?(i=`${t.conditionField?.aggregator}(${Pz(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(i="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(i=`${t.conditionField?.aggregator}(${Pz(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${Pz(t.firstValue?.field)})`):(i=`${Pz(e.field)}`,a=`${t.firstValue?.aggregator}(total ${Pz(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let c="";if(o.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${Pz(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${Pz(t.secondValue?.field)})`,a=` and ${i}`),c=`${a}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case Az.CLEAR_SELECTION:t=`[${e.field}]=`,r="",o="";break;case Az.VALUES:default:t=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==t&&n.push(`${r}${t}${o}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},Mz=[];for(let e=0;e<256;++e)Mz.push((e+256).toString(16).slice(1));const Tz=new Uint8Array(16);function qz(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const t=e.random??e.rng?.()??crypto.getRandomValues(Tz);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(Mz[e[t+0]]+Mz[e[t+1]]+Mz[e[t+2]]+Mz[e[t+3]]+"-"+Mz[e[t+4]]+Mz[e[t+5]]+"-"+Mz[e[t+6]]+Mz[e[t+7]]+"-"+Mz[e[t+8]]+Mz[e[t+9]]+"-"+Mz[e[t+10]]+Mz[e[t+11]]+Mz[e[t+12]]+Mz[e[t+13]]+Mz[e[t+14]]+Mz[e[t+15]]).toLowerCase()}(t)}(e)}const Oz=()=>crypto?.randomUUID?.()??qz(),Lz=({qDimensions:e,qMeasures:t})=>[...e.map(e=>({id:e.qDef.cId,isDimension:!0,def:e})),...t.map(e=>({id:e.qDef.cId,isDimension:!1,def:e}))],Nz=({previousColumns:e,nextColumns:t,qInterColumnSortOrder:n})=>{const r=new Map(e.map((e,t)=>[t,e.qDef.cId])),o=new Map(t.map((e,t)=>[e.qDef.cId,t]));return n.map(e=>{const t=r.get(e);return(void 0===t?void 0:o.get(t))??e})};class jz extends c{#c;constructor(e,t){super(e),this.#c=t}#u(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},n=Object.keys(t).length;this.hcProperties.qLayoutExclude.allColumnOrder={...t,...Object.fromEntries(e.map((e,t)=>[e,n+t]))}}#d(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},n=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude.allColumnOrder=Object.fromEntries(n.map(([e],t)=>[e,t]))}#p(e,t){const n=this.hcProperties.qLayoutExclude.allColumnOrder??{},r={};for(const[o,i]of Object.entries(n))r[o===e?t:o]=i;this.hcProperties.qLayoutExclude.allColumnOrder=r}async addDimension(e,t=!1){const n=await this.addDimensions([e],t);return 0===n.length?void 0:n[0]}async addDimensions(e,t=!1){const n=await super.addDimensions(e,t);return this.#u(n.map(e=>e.qDef.cId)),n}async removeDimension(e,t=!1){const n=await this.removeDimensions([e],t);return 0===n.length?void 0:n[0]}async removeDimensions(e,t=!1){const n=await super.removeDimensions(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceDimension(e,t){const n=this.getDimensions()[e].qDef.cId,r=await super.replaceDimension(e,t),o=r.qDef.cId;return this.#p(n,o),r}async addMeasure(e,t=!1){const n=await this.addMeasures([e],t);return 0===n.length?void 0:n[0]}async addMeasures(e,t=!1){const n=await super.addMeasures(e,t);return this.#u(n.map(e=>e.qDef.cId)),n}async removeMeasure(e,t=!1){const n=await this.removeMeasures([e],t);return 0===n.length?void 0:n[0]}async removeMeasures(e,t=!1){const n=await super.removeMeasures(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceMeasure(e,t){const n=this.getMeasures()[e].qDef.cId,r=await super.replaceMeasure(e,t),o=r.qDef.cId;return this.#p(n,o),r}async#f(e){const t=this.getMeasure(e);if(t){const n=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#h(e){const t=this.getMeasure(e);if(t){const n=this.getMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#m(e){const t=this.getDimension(e);if(t){const n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#g(e){const t=this.getDimension(e);if(t){const n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!1),await super.addDimension(t,!0,this.getDimensions().length)}}async toggleAlternatives(e,t){for(const t of e)"dimension"===t.type?await(t.isAlternative?this.#m(t.id):this.#g(t.id)):await(t.isAlternative?this.#f(t.id):this.#h(t.id));this.updateColumnOrders(t)}updateColumnOrders(e){const t=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,nextAllColumnOrderById:r})=>{const o=Lz({qDimensions:e,qMeasures:t}),i=[...e,...t],a=new Map(r.map((e,t)=>[e,t])),s=o.toSorted((e,t)=>{const n=a.get(e.id),r=a.get(t.id);return void 0===n||void 0===r?0:n-r}),l=s.filter(e=>e.isDimension).map(e=>e.def),c=s.filter(e=>!e.isDimension).map(e=>e.def),u=[...l,...c],d=new Map(u.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:l,qMeasures:c,qInterColumnSortOrder:Nz({previousColumns:i,nextColumns:u,qInterColumnSortOrder:n}),qColumnOrder:s.map(e=>d.get(e.id)).filter(e=>void 0!==e)}})({qDimensions:this.hcProperties.qDimensions,qMeasures:this.hcProperties.qMeasures,qInterColumnSortOrder:this.hcProperties.qInterColumnSortOrder,nextAllColumnOrderById:e});this.hcProperties.qDimensions=t.qDimensions,this.hcProperties.qMeasures=t.qMeasures,this.hcProperties.qColumnOrder=t.qColumnOrder,this.hcProperties.qInterColumnSortOrder=t.qInterColumnSortOrder,this.hcProperties.qLayoutExclude.allColumnOrder=e.reduce((e,t,n)=>(e[t]=n,e),{})}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:Oz(),qTags:Array.isArray(t)?t:[],isNumeric:n};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=Dz(o),i}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#b(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=Dz(t),t}removeFilters(e){if(0===e.length)return[];const t=[...e].sort((e,t)=>t-e),n=this.getFilters().filter((t,n)=>e.includes(n));for(const e of t)this.#b(e);return n}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#c.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const _z=(e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;return e.splice(n,1),n};function zz(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Fz(e){return e>0?0:1}function $z(e){return e.translator.get("Visualizations.Descriptions.Column")}function Hz(e){return{measures:{min:Fz,max:1e3,description:()=>$z(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;zz(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties,i=(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r;_z(o,i)}},dimensions:{min:Fz,max:1e3,description:()=>$z(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return zz(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(e?.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;_z(o,r)}}}}const Bz=e=>{const t=new jz({},e.translator),n=(t,n)=>{e.anything.logInfo?.(t,n)};return{properties(r){if(!("qHyperCubeDef"in r&&!!r.qHyperCubeDef))return r;const o=r.qHyperCubeDef,i=o.qLayoutExclude.qHyperCubeDef,a=e.flags.isEnabled("qcb-35151-fix-duplicate-columns"),s=new Set,l=[];let c=0,u=0,d=0;[...o.qDimensions,...o.qMeasures,...i.qDimensions??[],...i.qMeasures??[]].forEach(e=>{c++;const t=e.qDef?.cId;if((e=>"string"==typeof e&&e.length>0)(t))if(s.has(t)){if(u++,a){const t=Oz();e.qDef={...e.qDef,cId:t},l.push(t)}}else s.add(t),l.push(t);else if(d++,a){const t=Oz();e.qDef={...e.qDef,cId:t},l.push(t)}});const p=u+d;if(0===p)return r;n("sn-table migrate: column cId issues detected",{issueCount:p,totalColumnCount:c,duplicateCount:u,missingCount:d});const f=r.components?.find(e=>"theme"===e.key);return e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")&&f?.nullValues&&!f.dimensionNullValues&&(f.dimensionNullValues={...f.nullValues}),a?(t.setProperties(r),t.updateColumnOrders(l),n("sn-table migrate: column cId cleanup completed",{replacementCount:p}),r):r}}};let Vz=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e.EditableDate="editableDate",e}({}),Wz=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const Uz=e=>{switch(e?.type){case"url":return Vz.Link;case"image":return Vz.Image;case"indicator":return Vz.Indicator;case"miniChart":return Vz.MiniChart;default:return Vz.Text}},Gz=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:o}=r.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),Kz=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>Uz(e.qDef.representation)===Vz.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;const l=i?.indexOf(e)??1/0;return(r?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},Yz=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:Gz({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>Uz(e.qDef.representation)===Vz.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>Uz(e.qDef.representation)===Vz.Link&&e.qDef.representation?.urlPosition===Wz.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>Uz(e.qDef.representation)===Vz.Link&&e.qDef.representation?.urlPosition===Wz.Attribute},...Kz(n)}},Xz=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,o=!r?.("tableImages")&&t[Vz.Image],i=!r?.("qMiniChartDef")&&t[Vz.MiniChart],a=!r?.("tableIndicators")&&t[Vz.Indicator],s=o&&t[Vz.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(n)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>Uz(e.qDef.representation)===Vz.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var Jz,Zz={};var Qz=(Jz||(Jz=1,function(e){(()=>{var t={370:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};r.r(o),r.d(o,{default:()=>Pe});var i=r(370),a=r.n(i);const s=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var s=a[i];return a[i]=n,{updated:n,previous:s}}return delete a[i],!1},l=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},c={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),d="".concat(" ",")").concat(" ");function p(e){return u+e+d}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function h(e){return!(!e.fullAccumulation&&!e.fullRange)}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function g(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function b(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function y(e){return void 0===e?")":", 0, ".concat(e,")")}function x(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function S(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(x("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(x("MaxString(".concat(t,")")),")'\"}")}function w(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=S(f(r[0],o),b(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var u=f(r[0],o),d=f(r[1],o),p=b(0),h=b(1),m=S(u,p),g=S(d,h);return"".concat(a,"({1<").concat(m,",").concat(g,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function C(e){return"".concat(e,"(")}function E(e){var t=e.properties,n=e.layout;return l(t,"qHyperCubeDef.qDimensions",l(n,"qHyperCube.qDimensionInfo",[])).length}const R={isFullRange:h,getNumDimensions:E,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=p(g(t));if(!n.showExcludedValues)return a;var s=w({modifier:n,dimensions:r,dimensionAndFieldList:o}),l=i?"":", 0";if(r&&1===r.length){var c=b(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var u=b(0),d=b(1);return"If(Count(".concat(u,") * Count(").concat(d,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:m,getNumStepComp:function(e,t){if(!h(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return m(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:y,getAboveComp:function(e,t,n,r){return v(e,t)+n+y(r)},getFunctionPrefix:C,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return C(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:w,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===E({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=b(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:g,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(u);if(-1!==n){var r=t.indexOf(d);if(-1!==r)return t.substring(n+u.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])})},isNumeric:f,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var s=E({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:p,canExtract:function(e){var t=e.indexOf(u),n=e.indexOf(d);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:b,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=c.OPTIONS.find(function(t){return t.value===e.decomposition});return t?c.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(c.EXPRESSIONS).find(function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return c.EXPRESSIONS[n]&&r.includes(c.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}};function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var k=a().bind(null,!0),P={},D=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function T(e){return void 0===e}function q(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach(function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=T(e[n||t])?i:e[t],e=e[n||t]}}),e}function L(e,t){var n=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){L(e[r],t[r])||(n=!1)}),n);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!L(e[r],t[r]))return!1;return!0}return e===t}P.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?k({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);L(i,a)||q(t,o)||(T(a)?r.push({op:"add",path:s,value:i}):M(i)&&M(a)?r=r.concat(P.generate(a,i,s)):D(i)&&D(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&T(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(L(t,o))return r;if(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(P.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){T(t[o])&&!q(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})}),r},P.apply=function(e,t){t.forEach(function(t){var n,r,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return I(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!q(n,e)&&delete n[e]}),k(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var u=O(e,t.from);D(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])})},P.clone=function(e){return k({},e)},P.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):k(e,t)};const N=P;var j="accumulation";function _(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function z(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const $={translationKey:"properties.modifier.accumulation",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var c=l(r,"qHyperCubeDef.qDimensions",[]),u=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:a}),d=R.getNumStepComp(n,s),p=R.getAboveComp(n,s,u,d),f=R.getRangeComp("RangeSum",p);if(R.needDimension({modifier:n,properties:r,layout:o})){var h=R.getDimComp(c,1),m=R.getDimComp(c,0),g=R.getAggrComp(f,h,m);f=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(z(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(z(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(z(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=_(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=_(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=_(t,e);return i&&!i.disabled}}}};var H="movingAverage";function B(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===H)return n[r]}function V(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===H)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const U={translationKey:"properties.modifier.movingAverage",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var c=a;void 0===c&&(c=R.getNumDimensions({properties:o,layout:i}));var u=l(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=R.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:s,treatMissingAsNull:d}),f=R.getNumStepComp(r,c),h=R.getAboveComp(r,c,p,f);if(r.nullSuppression)t=R.getRangeComp("RangeAvg",h);else{var m=R.getRangeComp("RangeSum",h),g=function(e,t){var n=R.getRowNoComp(e,t);if(!R.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var b=t;if(R.needDimension({modifier:r,properties:o,layout:i})){var v=R.getDimComp(u,1),y=R.getDimComp(u,0),x=R.getAggrComp(b,v,y);b=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(V(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(V(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(V(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(V(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(V(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(V(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=B(t,e);return i&&!i.disabled}}}};var G="timeSeriesDecomposition";function K(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function Y(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const J={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?R.generateTSDExpression(n,t,r):t},extractInputExpression:R.extractInputExpression,initModifier:function(e,t){R.initModifier(e,X),""===e.decomposition&&t&&(e.decomposition=R.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:c.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=K(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var n=K(t,e);return n&&!n.fullRange}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=K(t,e);return i&&!i.disabled}}}};var Z="difference";function Q(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===Z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var ee={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const te={translationKey:"properties.modifier.difference",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var c=l(r,"qHyperCubeDef.qDimensions",[]),u=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:a}),d=R.getAboveComp(n,s,u),p="".concat(u," - ").concat(d);if(R.needDimension({modifier:n,properties:r,layout:o})){var f=R.getDimComp(c,1),h=R.getDimComp(c,0),m=R.getAggrComp(p,f,h);p=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(ee).forEach(function(t){void 0===e[t]&&(e[t]=ee[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=function(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===Z)return n[r]}(t,e);return i&&!i.disabled}}}};var ne="normalization";function re(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===ne)return n[r]}function oe(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===ne)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ae={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function se(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(R.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function ce(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(R.getDimDefWithWrapper(n),">"):""}const de={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var c=l(r,"qHyperCubeDef.qDimensions",[]),u=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:a}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a,s){var l=se(t),c=le(t,n,r),u=""===l&&""===c?"":l||c,d=ce(o,i),p=ue(o,i,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=R.getDimDefWithWrapper(n);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(u," ").concat(d).concat(p," Aggr(").concat(u," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(u," ").concat(d).concat(p," Aggr(").concat(u," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,p,s,n.primaryDimension,n.ignoreNegative)},initModifier:function(e){Object.keys(ae).forEach(function(t){void 0===e[t]&&(e[t]=ae[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(oe(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(re(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(oe(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(oe(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(oe(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(re(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(oe(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,n){return 0===(re(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(ne))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:se,getFieldSelectionComp:le,getTotalComp:ce,getSelectedDimComp:ue};var pe="library id deleted",fe="qDef.qDef",he="qDef.base.qDef",me="qLibraryId",ge="qDef.base.qLibraryId",be="qDef.qLabel",ve="qDef.qLabelExpression",ye="qDef.base.qLabel",xe="qDef.base.qLabelExpression",Se="qDef.qAggrFunc",we="qDef.base.qAggrFunc",Ce="qDef.base";const Ee={getExpression:function(e){var t=l(e,he);return void 0!==t?t:l(e,fe)},getExpressionRef:function(e){return void 0!==l(e,he)?he:fe},getLibraryIdRef:function(e){return l(e,ge)?ge:me},getLibraryId:function(e){return l(e,ge)||l(e,me)},getLabelRef:function(e){return l(e,Ce)?ye:be},getLabelExpressionRef:function(e){return l(e,Ce)?xe:ve}};var Re={initBase:function(e,t){(t||Re.isValid(e))&&(s(e,he,l(e,fe)),s(e,ge,l(e,me)),s(e,ye,l(e,be)),s(e,xe,l(e,ve)))},restoreBase:function(e){Re.isValid(e)&&(s(e,fe,l(e,he)),s(e,me,l(e,ge)),s(e,be,l(e,ye)),s(e,ve,l(e,xe)),l(e,Se)&&l(e,we)&&s(e,Se,l(e,we)),delete e.qDef.base)},isValid:function(e){var t=l(e,he),n=l(e,ge);return void 0!==t||void 0!==n}};const Ie=Re;function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}var ke={accumulation:$,movingAverage:U,difference:te,normalization:de,timeSeriesDecomposition:J};const Pe={modifiers:ke,apply:Me,applyModifiers:Te,cleanUpMeasure:qe,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:n,layout:r})})},measureBase:Ee,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=_e(e);We({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Xe({modifiers:t,properties:n,layout:r}))}),o&&!i},ifEnableTotalsFunction:Ne};var De={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,n=e.properties,r=e.isSnapshot,o=void 0!==r&&r,i=e.masterItem,s=!1;De[t.id]=De[t.id]||{isFirstTime:!0};var c=De[t.id].isFirstTime;if(De[t.id].isFirstTime=!1,n&&"object"===Ae(n))return Te({model:t,properties:n});var u=t?t.layout:void 0,d=l(u,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(s);var p=l(u,"qHyperCube.qMeasureInfo"),f=De[t.id].lastReloadTime;if(De[t.id].lastReloadTime=l(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:u})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return l(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ve({measure:e,properties:n,layout:r})})}({measures:t,layout:n})}({measures:p,layout:u,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some(function(e){return function(e){var t=e.measure,n=e.layout;return We({modifiers:_e(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:u,masterItem:i,isFirstTime:c})?t.getEffectiveProperties().then(function(e){var n=a()(!0,{},e);Fe(n);var r=Je(n);return Ue({model:t}).then(function(o){return Ge({libraryIds:r,model:t}).then(function(r){return h&&function(e){var t=e.properties;je(t).forEach(function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(n++,"object"!==Ae(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&He(t)&&R.simplifyExpression(t.qDef.base.qDef)!==R.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:n}),Te({model:t,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:i,libraryItemsProps:r,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(s)})}):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ae(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,n=e.properties,r=Je(n);return Ze({model:t,libraryIds:r}).then(function(){var e=a()(!0,{},n);return je(n).forEach(function(e){return qe(e)}),Ye({oldProperties:e,newProperties:n,model:t})})}({model:t,properties:e})}):Promise.resolve(s)}function Te(e){var t=e.model,n=e.oldProperties,r=e.properties,o=e.measures,i=e.runUpdateIfChange,s=void 0!==i&&i,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?a()(!0,{},r):r),Fe(r);var p=Je(r);return Ze({model:t,libraryIds:p,masterItem:c}).then(function(){return function(e){var t=e.measures,n=e.properties,r=e.model,o=e.libraryItemsProps,i=e.dimensionAndFieldList;if(t||(t=je(n)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:n}))return t.forEach(function(e){return qe(e)}),Promise.resolve();var s=o?void 0:Je(n);return Ue({model:r,dimensionAndFieldList:i}).then(function(e){return Ge({libraryIds:s,model:r,libraryItemsProps:o}).then(function(r){t.forEach(function(t){var o=t.qDef.modifiers;r&&We({modifiers:o,properties:n})?(function(e){var t=e.measure,n=e.properties,r=e.libraryItemsProps,o=e.dimensionAndFieldList,i=0;Ie.isValid(t)||Ie.initBase(t,!0);var s=t.qDef,c=s.modifiers,u=s.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(i++,"object"!==Ae(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(i>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,t);var s=t.qLibraryId||u&&u.qLibraryId;s?function(e){var t=e.measure,n=e.modifier,r=e.properties,o=e.dimensionAndFieldList,i=e.libraryItemsProps[e.libraryId],s=i.qMeasure.qDef,l=""===s?s:ke[n.type].generateExpression({expression:s,modifier:n,properties:r,dimensionAndFieldList:o});n.outputExpression=l,t.qDef.qDef=n.outputExpression,(t.qDef.qLabel||i.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||i.qMeasure.qLabel),(t.qDef.qLabelExpression||i.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=i.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&i.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||i.qMeasure.qNumFormat,t.qDef.isCustomFormatted=i.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=i.qMeasure.coloring,n.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:s,properties:n,libraryItemsProps:r,dimensionAndFieldList:o}):function(e){var t=e.measure,n=e.modifier,r=e.properties,o=e.dimensionAndFieldList;"function"==typeof ke[n.type].updateModifier&&ke[n.type].updateModifier(n,r.qHyperCubeDef);var i=Ee.getExpression(t),s=""===i?i:ke[n.type].generateExpression({expression:i,modifier:n,properties:r,dimensionAndFieldList:o});n.outputExpression=s,t.qDef.qDef=n.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||i,n.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:n,dimensionAndFieldList:o}),function(e){var t=l(e,"qDef.qAggrFunc");"Expr"!==t||Ne(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Ne(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:n,libraryItemsProps:r,dimensionAndFieldList:e}),$e(t)):qe(t)})})})}({measures:o,properties:r,model:t,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return s?Ye({oldProperties:n,newProperties:r,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function qe(e){!function(e){var t=_e(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&!ke[e.type]})}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function Oe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return We({modifiers:_e(e),properties:n,layout:r})})}function Le(e){var t=_e(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(ke[r.type]&&!r.disabled)return r}}function Ne(e){var t=Le(e);return!t||ke[t.type].enableTotalsFunction(e)}function je(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function _e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function ze(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Fe(e){je(e).forEach(function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&ze(t)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&t.base&&(e.qDef.base=a()(!0,{},t.base)))}(e)})}function $e(e){var t=_e(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ae(t)&&(t.disabled||!ke[t.type]&&ze(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function He(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Be(t)&&We({modifiers:_e(t),properties:n,layout:r})}function We(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ae(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:n,layout:r})),o[e.type])})}function Ue(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});r.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return r.push(a),Promise.all(r).then(function(){return o})}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=n.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ke(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(l(t,"qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(l(n,"qHyperCubeDef.qMeasures"),Ke)||JSON.stringify(l(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(l(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&l(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):function(e,t,n){if(!e)return Promise.resolve();var r=N.generate(t,n);return a()(!0,t,n),r&&r.length?(r=r.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(r,!0)):Promise.resolve()}(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return o}):Promise.resolve(o)}function Xe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:n,layout:r})})}function Je(e){var t=je(e),n=[],r=[],o=!1;return t.forEach(function(t){var r=_e(t);if(We({modifiers:r,properties:e})){var i=Be(t);i&&n.push(i),o=o||Xe({modifiers:r,properties:e})}}),l(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function Ze(e){var t=e.model,n=e.libraryIds,r=e.masterItem;return!r&&r!==pe&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=l(e,"qInfo.qType");return n&&a[n]&&a[n].forEach(function(n){t[n]=l(e,n)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(){Object.keys(r).forEach(function(e){o[e]||i[e]||(r[e].listener.dispose(),r[e].unbindCloseListnener(),delete r[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){r[e]={listener:t.layoutSubscribe(c),unbindCloseListnener:d(t,function(){return e=t.id,n(pe),delete r[e],void u();var e}),enabled:!1,properties:s(t.layout)}}).catch(function(){})}return{subscribe:function(e){var n=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:n,dimensionLibraryIds:a}),u(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!r[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!r[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose(),r[e].unbindCloseListnener()}),r={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),De[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}for(var Qe in e.default=o.default,o)-1===["default"].indexOf(Qe)&&(e[Qe]=o[Qe]);Object.defineProperty(e,"__esModule",{value:!0})})()}(Zz)),Zz),eF=en(Qz);const tF="TOTAL_OFF",nF={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},rF={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},oF=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!eF.hasActiveModifiers({measures:[e],properties:t.properties})||eF.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),iF={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:ug.Auto,translation:"Common.Auto"},{value:ug.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:ug.Pixels,translation:"Object.Table.Column.Pixels"},{value:ug.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:ug.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===ug.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===ug.Percentage}},aF=e=>({...nF,...e.flags.isEnabled("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?{columnExpression:{type:"items",grouped:!0,items:[{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}]}]}}:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}},...rF,...iF}),sF=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},subTotalGroup:{type:"items",show:e.flags.isEnabled("TLV-2303-SUB-TOTALS")&&!e.anything.sense?.isUnsupportedFeature?.("totals"),items:[{uses:"divider"},{type:"string",component:"switch",translation:"properties.showSubTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:tF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:tF,translation:"properties.off"}},{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"Common.Label",defaultValue:()=>e.translator.get("properties.subTotals"),show:e=>e.qOtherTotalSpec?.qTotalMode!==tF},{uses:"divider"}]},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}}),lF=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:oF(e)}},cF=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:sF(e)},presentation:{type:"items",translation:"properties.presentation",items:{...aF(e),...Yz(e)}}}}}),uF=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:lF(e)},presentation:{type:"items",translation:"properties.presentation",items:{...aF(e),...Xz(e,{[Vz.Image]:!0,[Vz.Indicator]:!0,[Vz.MiniChart]:!0})}}}}}),dF=e=>({...cF(e),...uF(e)}),pF=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...dF(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),fF=e=>({type:"items",items:[{ref:e,type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]}),hF=e=>fF("dimensionNullValues"===e?"nullValueRepresentation.dimensionText":"nullValueRepresentation.text"),mF={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},gF=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),bF=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,o){const i=r?.(e,t,o)??!1,a=o.theme.current(),s=n(a,i);return{color:"transparent"===s?"none":s}}}),vF=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},yF=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>vF(e,!0))],l=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Ee(r).filter(e=>!a.includes(e)).map(e=>vF(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),xF=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],SF=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>vF(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...xF.filter(e=>!i.includes(e)).map(e=>vF(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),wF=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:yF({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:SF({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:bF(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:bF(`${e}.background`,"properties.background",(t,n)=>{const r=n?km.WHITE:km.TRANSPARENT;return o(t,e,"backgroundColor")??r},a)}}}}),CF=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r,isNullValueText:o,translation:i})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{nullValueText:o?hF(e):void 0,content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:bF(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:bF(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),EF=(e,t,n)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[n];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[n];case"subTotalValues":return e.object?.straightTableV2?.subTotal?.label?.value?.[n];case"nullValues":case"dimensionNullValues":return e.object?.straightTableV2?.null?.label?.value?.[n];default:return}},RF=e=>e.grid?.zebraStripes?.show,IF={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},AF=e=>e?.content?.hoverEffect,kF={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:AF,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:AF,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},PF=(e,t,{properties:n})=>"sn-table"===n.visualization&&!0===n.usePagination,DF=e=>e.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),MF=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:wF({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:EF,disableNoneCallback:PF}),dimensionValueSection:wF({section:"dimensionValues",translator:t,flags:e,getThemeValue:EF}),measureValueSection:wF({section:"measureValues",translator:t,flags:e,getThemeValue:EF}),totalRowSection:wF({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:EF,disableNoneCallback:PF}),subTotalRowSection:e.isEnabled("TLV-2303-SUB-TOTALS")?wF({section:"subTotalValues",defaultFontStyle:["bold"],translation:"properties.subTotals",translator:t,flags:e,getThemeValue:EF,disableNoneCallback:PF}):void 0,...DF(e)?{dimensionNullSection:CF({section:"dimensionNullValues",fallbackBackground:km.NULL_VALUE_BACKGROUND,getThemeValue:EF,isNullValueText:!0}),nullValues:CF({section:"nullValues",translation:"properties.pivot.measureNullValues",fallbackBackground:km.NULL_VALUE_BACKGROUND,getThemeValue:EF,isNullValueText:!0})}:{nullValues:CF({section:"nullValues",fallbackBackground:km.NULL_VALUE_BACKGROUND,getThemeValue:EF,isNullValueText:!1})},grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...IF},border:bF("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??km.BORDER_MEDIUM),divider:bF("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??km.BORDER_HEAVY)}}}},hoverEffectSection:kF,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:RF,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:RF,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:RF,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:RF,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),TF=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[MF(e),gF(e),{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1},e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")?void 0:hF()]},...mF}}),qF={uses:"sorting"},OF={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},LF=e=>({type:"items",component:"accordion",items:{data:pF(e),sorting:qF,addOns:OF,settings:TF(e)}});function NF(e){return{definition:LF(e),exploration:Ez(e),data:Hz(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,n,r,o){const i={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return Cv({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>bv({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:t=>new jz(t,e.translator),usePropertyHandler:"sn-table-data"},migrate:Bz(e)}}const jF=e=>{const t=e.get(ev);return a(()=>()=>{t.unmount()},[t]),t};var _F,zF={exports:{}};
|
|
102
|
+
*/function xR(){if(gR)return GS;gR=1,Object.defineProperty(GS,"__esModule",{value:!0}),GS.default=function(t){return(0,e.createStyles)(t)};var e=yR;return GS}var SR,wR,CR={},ER={};function RR(){if(SR)return ER;SR=1;var e=Xl();Object.defineProperty(ER,"__esModule",{value:!0}),ER.default=void 0;var t=(0,e(BS()).default)();return ER.default=t,ER}function IR(){if(wR)return CR;wR=1;var e=Xl();Object.defineProperty(CR,"__esModule",{value:!0}),CR.default=void 0;var t=e(Ac()),n=yR,r=e(RR());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return CR.default=o,CR}var AR,kR,PR={},DR={};function MR(){if(AR)return DR;AR=1;var e=Xl();Object.defineProperty(DR,"__esModule",{value:!0}),DR.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},DR.getUnit=n,DR.toUnitless=r,DR.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},DR.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},DR.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},DR.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,c=e.transform,u=void 0===c?null:c,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+p*e;null!==u&&(o=u(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(iy());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return DR}function TR(){if(kR)return PR;kR=1;var e=Xl();Object.defineProperty(PR,"__esModule",{value:!0}),PR.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,c=o.factor,u=void 0===c?2:c,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/u,c=o.lineHeight;if(!(0,r.isUnitless)(c)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(c)||(c=parseFloat(m(c,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:c,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Ac()),n=Kv,r=MR();return PR}var qR,OR={};function LR(){if(qR)return OR;qR=1;var e=Xl();Object.defineProperty(OR,"__esModule",{value:!0}),OR.default=void 0;var t=e(Ac()),n=yR,r=e(RR()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return OR.default=o,OR}var NR,jR={};function _R(){if(NR)return jR;NR=1;var e=Xl();Object.defineProperty(jR,"__esModule",{value:!0}),jR.default=function(){return(0,t.useTheme)()||n.default};var t=yR;e(w);var n=e(RR());return jR}var zR,FR={};function $R(){if(zR)return FR;zR=1;var e=Xl();Object.defineProperty(FR,"__esModule",{value:!0}),FR.default=void 0;var t=e(Ac()),n=yR,r=e(RR());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return FR.default=o,FR}var HR,BR,VR={};function WR(){if(HR)return VR;HR=1;var e=Xl();Object.defineProperty(VR,"__esModule",{value:!0}),VR.default=void 0;var t=yR,n=e(RR()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return VR.default=r,VR}function UR(){return BR||(BR=1,function(e){var t=Xl(),n=(Rv||(Rv=1,function(e){var t=Pv().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Av)),Av.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Yv();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=n(BS()),a=t(US()),s=t(xR()),l=t(IR()),c=t(TR()),u=t(LR()),d=_S();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(_R()),f=t($R()),h=t(WR()),m=yR}(Iv)),Iv}var GR=UR();GR.alpha(Bt.GREYSCALE_0,.05),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),t.meta.env&&t.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},n){var r;let o,i;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}o=e}return i},c=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(c)?c.then(l):l(c)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,n)=>l(e,e=>{let r;try{r=JSON.parse(e||"")}catch(e){r=n}t(r)})))}();const KR=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),YR=new WeakMap,XR=()=>{};function JR(e,n=XR){return((e,t,n)=>{const r=KR(()=>new WeakMap,YR,t);return KR(e,r,n)})(()=>{const r=new WeakMap,o=new WeakMap,i=Jg(0),a=Jg([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(i,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(i.debugPrivate=!0,a.debugPrivate=!0);const s=Jg(t=>{let l;t(i);try{l=t(s)}catch(e){}const c=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(c))return{v:c};if(c!==(null==l?void 0:l.p)&&c.then(e=>{o.set(c,e);const[n]=t(a);n()},e=>{r.set(c,e);const[n]=t(a);n()}),r.has(c))throw r.get(c);return o.has(c)?{p:c,v:o.get(c)}:l&&"v"in l?{p:c,f:n(l.v),v:l.v}:{p:c,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),Jg(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}const ZR=new WeakMap;function QR(e,t){const n=nb(t),r=eI(n);for(const[o,...i]of e)r.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(o),n.set(o,...i))}const eI=e=>{let t=ZR.get(e);return t||(t=new WeakSet,ZR.set(e,t)),t};function tI(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function nI(e){const t=Jg(()=>[]),n=Jg(function(e){const[r,o,i]=e(t);i.has(n)&&(r.forEach(e),++o.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=Gg(e),o=r[1],i=r[3],a=Rg(r[6]),s=r[11],l=r[12],c=r[13],u=r[14],d=r[15],p=r[16],f=r[17],h=r[20],m=new Set;let g,b=0,v=!1,y=!1,x=!1;function S(){if(b)return;m.clear();let t=!0;const w=i=>{if(x)return e.get(i);if(i===n){const t=s(r,e,i);if(!yg(t)){if(!bg(i))throw new Error("no atom init");h(r,e,i,i.init)}return xg(t)}const a=u(r,e,i);try{return xg(a)}finally{C.d.set(i,a.n),o.get(i)?.t.add(n),t?m.add(i):o.has(i)&&(f(r,e,n),c(r,e),l(r,e))}};w.peek=e.get;const E=(o,...u)=>{const m=s(r,e,o);try{if(++b,o===n){if(!bg(o))throw new Error("atom not writable");const t=m.n,n=u[0];return h(r,e,o,n),f(r,e,o),void(t!==m.n&&(i.add(o),a.c?.(o),d(r,e,o)))}return p(r,e,o,u)}finally{t||(c(r,e),l(r,e)),--b}};E.recurse=(t,...o)=>{if(x){if(tI())throw new Error("set.recurse is not allowed in cleanup")}else try{return v=!0,f(r,e,n),E(t,...o)}finally{c(r,e),v=!1,y&&(y=!1,S())}};try{g?.();const e=n.effect(w,E);if("function"!=typeof e)return;g=()=>{if(!b)try{return t=!0,x=!0,e()}finally{t=!1,x=!1,g=void 0}}}finally{t=!1,m.forEach(t=>{C.d.set(t,s(r,e,t).n)}),f(r,e,n),c(r,e)}}const w=function(e,t){let n=rI.get(e);n||(n=new Set,rI.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,a),C=s(r,e,n);C.v=void 0,Object.assign(e.get(t),[m,C,o]),a.c.add(n,function(){i.delete(n)}),a.m.add(n,function(){w.add(S),g&&w.delete(g)}),a.u.add(n,function(){w.delete(S),g&&w.add(g)}),a.c.add(n,function(){v?y=!0:w.add(S)})},tI()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const rI=new WeakMap;const oI=e=>{const{items:t,handler:n,model:r,handlerQueue:o}=e;void 0!==n&&void 0!==r&&o&&o.add(async()=>{await(async(e,t,n)=>{try{await t.toggleAlternatives(e,n)}catch(t){console.error(`Failed to toggle ${e.map(e=>e.id).join(", ")} from/to alternative`,t)}})(t,n,e.currentColumnIds)})};function iI(e,t){let n=null;const r=new Map,o=new Set;function i(o){let s;if(void 0===t)s=r.get(o);else for(const[e,n]of r)if(t(e,o)){s=n;break}if(void 0!==s){if(!n?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return r.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,n){for(const r of o)r({type:e,param:t,atom:n})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>r.keys(),i.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[o]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,o);break}},i.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,o]]of r)n(o,e)&&(r.delete(e),a("REMOVE",e,t))},i}const aI=e=>7005!==e.qError?.qErrorCode,sI=(e,t)=>{if(!e)return;const n=e.qHyperCube.qDimensionInfo.filter(e=>void 0!==e.cId).filter(aI).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"dimension"})),r=e.qHyperCube.qMeasureInfo.filter(e=>void 0!==e.cId).filter(aI).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"measure"}));return[...n,...r]},lI=(e,t)=>{const n=[],r={};return e.forEach(e=>{r[e.id]=e}),Object.keys(t).forEach(e=>{const o=t[e],i=r[e];i&&(n[o]=i)}),n},cI=(e,t,n)=>{if(!n||((e,t)=>{const n=e.map(e=>e.id).sort(),r=Object.keys(t).sort();return n.join(",")!==r.join(",")})(e,n)){const t=(e=>{const t={};return e.forEach((e,n)=>{t[e.id]=n}),t})(e);return lI(e,t)}const r=t.map(e=>e.id),o=Object.keys(n).sort((e,t)=>n[e]-n[t]).filter(e=>r.includes(e)),i={...n};for(let e=0;e<r.length;e++){const t=o[e],a=r[e];t!==a&&(i[a]=n[t])}let a=0;const s=Object.entries(i).sort((e,t)=>e[1]-t[1]).map(([e])=>[e,a++]);return s.forEach(([e,t])=>{i[e]=t}),lI(e,i)},uI=Jg(),dI=Jg(),pI=Jg(),fI=Jg(e=>e(pI)?.translate??(e=>e)),hI=Jg(""),mI=Jg(e=>{const t=e(hI).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)}),gI=new WeakMap,bI={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},vI=JR(Jg(async e=>{const t=e(uI);if(t){if(gI.has(t))return gI.get(t);try{const e=await t.app.createSessionObject(bI);return gI.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}})),yI=Jg(null),xI=Jg(),SI=nI((e,t)=>{const n=e(uI),r=e(vI);if(!n||!r)return;const o=async()=>{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await n.getEffectiveProperties();await r.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qDimensions??[])},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qMeasures??[])}]);const i=await r.getLayout();t(xI,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)}),t(yI,null)};return o(),n.Invalidated?.bind(o),()=>{n.Invalidated?.unbind(o)}}),wI=Jg(e=>e(xI)?.layout),CI=Jg(e=>e(xI)?.altLayout),EI=Jg(e=>e(xI)?.properties),RI=Jg(e=>void 0===e(wI)||void 0===e(EI)),II=Jg(e=>{const t=e(xI)?.layout;return t?.qHyperCube.qDimensionInfo.filter(aI)??[]}),AI=Jg(e=>{const t=e(xI)?.layout;return t?.qHyperCube.qMeasureInfo.filter(aI)??[]}),kI=Jg(e=>{const t=e(CI);return sI(t,!0)}),PI=Jg(e=>{const t=e(wI);return sI(t,!1)}),DI=Jg(e=>{const t=e(EI),n=e(wI);if(!t||!n)return[];const r=e(PI),o=e(kI),i=n.qHyperCube.qColumnOrder??[],a=e(yI);if(void 0===o||void 0===r)return[];if(a){return[...[...r,...o]].sort((e,t)=>(a[e.id]??1/0)-(a[t.id]??1/0))}const s=t.qHyperCubeDef.qLayoutExclude?.allColumnOrder??{},l=((e,t)=>e.length===t?e:Array.from(Array(t).keys()))(i,r.length),c=((e,t)=>e.length>0?e.map(e=>t[e]):t)(l,r),u=[...c,...o];return cI(u,c,s)}),MI=Jg(e=>{const t=e(DI),n=e(mI);return t.filter(n)}),TI=Jg(e=>e(MI).length),qI=Jg(e=>({sectionIndex:t,itemIndex:n})=>{const r=e(MI);if(void 0===n)return`columns-section-${t}`;const o=r?.[n];return o?.id??`missing-item-${t}-${n}`}),OI=iI(e=>Jg(t=>t(MI)[e]),(e,t)=>e===t),LI=Jg(e=>e(DI).map(e=>e.id)),NI=Jg(e=>e(MI).map(e=>e.id)),jI=Jg(e=>{const t=e(DI),n={};return t.forEach(e=>{n[e.id]=e.type}),n});class _I{#e=[];#t=!1;#n=!1;#r;#o;#i;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#o=void 0,this.#i=void 0,this.#a=void 0}pause(){this.#o&&(clearTimeout(this.#a),this.#i?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#o=e,this.#i=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#i;await(e=>new Promise(t=>{setTimeout(t,e)}))(e),t===this.#i&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#i?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#o)await this.#o;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const zI=Jg(null),FI=nI((e,t)=>{const n=e(uI),r=e(dI),o=new _I({onQueueCompleted:async()=>{if(!n||!r)return;const e=r.properties.qHyperCubeDef,t=Date.now();e.qDimensions.length&&Object.assign(e.qDimensions[0],{patchTimeStamp:t}),e.qMeasures.length&&Object.assign(e.qMeasures[0],{patchTimeStamp:t}),await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(zI,o);const i=()=>{o.pause()},a=()=>{o.continue(500)},s=()=>{o.abort()};return n?.Invalidated?.bind(i),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{o.abort(),n?.Invalidated?.unbind(i),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),$I=Jg(e=>{const t=[...e(II),...e(AI)].map(e=>e.cId);return new Set(t)}),HI=Jg(new Set),BI=Jg(new Set),VI=Jg(e=>{const t=e(HI),n=e(BI);return e($I).difference(n).union(t)}),WI=nI((e,t)=>{e($I),t(HI,new Set),t(BI,new Set)}),UI=Jg(e=>e(VI),(e,t,n)=>{if("string"!=typeof n.id)return;const r=e(VI).has(n.id),o=new Set(e(BI)),i=new Set(e(HI));r?(o.add(n.id),i.delete(n.id)):(i.add(n.id),o.delete(n.id)),t(BI,o),t(HI,i),oI({items:[n],handler:e(dI),model:e(uI),currentColumnIds:e(LI),handlerQueue:e(zI)})}),GI=({props:e,children:t})=>(QR([[uI,e.args.model],[pI,e.args.apis],[dI,e.args.handler]]),cb(SI),cb(FI),cb(WI),t);function KI(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function YI(e){return"write"in e}const XI=new WeakMap,JI={},{read:ZI,write:QI}=Jg(null);function eA(e,t,n){const[r,o,i,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=o.get(t);return r||(r=[oA(e,t,n),n],o.set(t,r)),r}const l=n??JI;let c=i.get(l);c||(c=new WeakMap,i.set(l,c));let u=c.get(t);if(!u){const[r,o]=a?eA(a,t,n):[t];u=[t.read===ZI?r:oA(e,t,o),o],c.set(t,u)}return u}function tA(e){for(const t of e[5])t()}function nA(e,t,n,r,o){if(n.read===ZI&&YI(n)&&YI(t)&&n.write!==QI&&e!==r){const{write:i}=n;return t.write=rA(e,n.write.bind(n),r,o),()=>{t.write=i}}}function rA(e,t,n,r=n){return function(o,i,...a){return t(function(t){const[r]=eA(e,t,n);return o(r)},function(t,...o){const[a]=eA(e,t,n),s=nA(e,a,t,n,r);try{return i(a,...o)}finally{null==s||s()}},...a)}}function oA(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const o=Object.getPrototypeOf(t),i=Object.create(o,r);return i.read!==ZI&&(i.read=function(e,t,n){return function(r,o){return t(function(t){const[o]=eA(e,t,n);return r(o)},o)}}(e,t.read.bind(t),n)),YI(i)&&YI(t)&&i.write!==QI&&(i.write=rA(e,t.write.bind(t),n)),i}function iA({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const o=new WeakSet(e),i=XI.get(n),a=(null==i?void 0:i[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],c=s[5],u=function(e){const t=e[3],n=[...Gg(t)],r=n[21],o=n[22],i=n[23],a={};let s,l;return n[21]=h(r),n[22]=p,n[23]=h(i),n[24]=function(e){return s??(s=m(e[0],c)),l??(l=[s,m(e[1],u),m(e[2]),g(e[3]),e[4],e[5],v(e[6]),h(e[7]),h(e[8]),h(e[9]),h(e[10]),d(s,e[11]),(t,...r)=>e[12](n,...r),(t,...r)=>e[13](n,...r),h(e[14]),h(e[15]),h(e[16]),h(e[17]),h(e[18]),h(e[19]),h(e[20]),h(e[21]),h(e[22]),h(e[23]),()=>e,e[25],(t,...r)=>e[26](n,...r),(t,...r)=>e[27](n,...r),e[28],...e.slice(25)]),l},Kg(...n);function c(t){const n=new WeakMap;return function(r){let o=n.get(r);if(o)return o;const i=t(r);if(!i)return;let a,s;return o=new Proxy(i,{get:(t,n)=>"d"===n?a??(a=m(i.d,function(t){return n=>t(eA(e,n)[0])})):"p"===n?s??(s=g(i.p)):Reflect.get(i,n)}),n.set(r,o),o}}function u(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const o=e(n);return o?(r={...o,d:g(o.d),t:g(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(n,r),r):void 0}}function d(e,t){const n=h(t);return function(t,r,o){const i=e.get(o);if(i)return i;const a=n(t,r,o);return e.set(o,a),e.get(o)}}function p(t,n,r,...i){const[a,s]=eA(e,r),l=nA(e,a,r,s,e);try{return o(t,n,a,...i)}finally{null==l||l()}}function f(t,n){return function(r,...o){const[i]=eA(e,r);return(n?n(t):t)(i,...o)}}function h(t){return function(r,o,i,...a){const[s]=eA(e,i);return t(n,o,s,...a)}}function m(e,t){const n={get:f(e.get.bind(e),t),set:f(e.set.bind(e)),has:f(e.has.bind(e)),delete:f(e.delete.bind(e))};if("function"==typeof e.keys){const t=e,r=n;r.keys=t.keys.bind(t),r[Symbol.iterator]=t[Symbol.iterator].bind(t),Object.defineProperty(n,"size",{enumerable:!1,configurable:!0,get:()=>t.size})}return n}function g(t){return{get size(){return t.size},add:f(t.add.bind(t)),has:f(t.has.bind(t)),delete:f(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(f(e)),*[Symbol.iterator](){for(const n of t)yield eA(e,n)[0]}}}function b(t){if(!t)return;const n=f(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[o]=eA(e,n);return t.add(o,r)},n}function v(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>a[t]??(a[t]=b(e[t])),set(n){delete a[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=u,Object.assign(u,{name:r}),XI.set(u,s);for(const t of new Set(e))l.set(t,[oA(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[oA(s,n,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!o.has(t)&&l.delete(t):l.set(t,[oA(s,t,s),s])});c.add(t)}return u}const aA=function(e,t){return function(n){const{atoms:r=[],atomFamilies:o=[],children:i,scope:a,name:s}=n,l=t(),c=Array.from(r,e=>Array.isArray(e)?e[0]:e);function u(){return[a??iA({atoms:c,atomFamilies:o,parentStore:l,name:s}),function(e){return l!==e.parentStore||!KI(c,e.atoms)||!KI(o,e.atomFamilies)||a!==e.providedScope}]}const[[d,p],f]=P(u);if(p({atoms:c,atomFamilies:o,parentStore:l,providedScope:a})){const e=XI.get(d);e&&tA(e),f(u)}return QR(Array.from(r).filter(Array.isArray),{store:d}),q(()=>{const e=XI.get(d);return()=>{e&&tA(e)}},[d]),C(e,{store:d,children:i})}}(rb,nb);var sA=Object.defineProperty,lA=Object.defineProperties,cA=Object.getOwnPropertyDescriptors,uA=Object.getOwnPropertySymbols,dA=Object.prototype.hasOwnProperty,pA=Object.prototype.propertyIsEnumerable,fA=(e,t,n)=>t in e?sA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hA=(e,t)=>{for(var n in t||(t={}))dA.call(t,n)&&fA(e,n,t[n]);if(uA)for(var n of uA(t))pA.call(t,n)&&fA(e,n,t[n]);return e},mA=(e,t)=>lA(e,cA(t));function gA(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function bA(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function vA(e,t){return function(e,t,n){var r,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const c=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>c(e,a.id)),o=e.findIndex(e=>c(e,s.id));if(-1===r||-1===o){if(bA(a)){const r=a.initialIndex,o=a.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const u=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of u)if(-1===f&&(f=t.findIndex(e=>c(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>c(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&bA(a)){const r=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==r||null==i||!(r in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===i)return mA(hA({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return mA(hA({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(r=m.shape)?void 0:r.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&bA(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return mA(hA({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return mA(hA({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return mA(hA({},e),{[d]:n(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return mA(hA({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,gA)}const yA=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,xA=Jg(),SA=Jg(e=>e(xA)?.numberOfSections??0),wA=Jg(e=>e(xA)?.numberOfItemsInSection??[]),CA=Jg(e=>e(xA)?.keyExtractor??yA),EA=Jg(e=>e(xA)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),RA=Jg(e=>e(xA)?.onDragEnd),IA=Jg(e=>e(xA)?.onDragOver),AA=Jg(e=>e(xA)?.itemRenderer),kA=Jg(e=>e(xA)?.headerRenderer),PA=Jg(e=>e(xA)?.dragOverlayRenderer),DA=Jg(e=>e(xA)?.onClick),MA=Jg(e=>{const t=e(SA),n=e(wA),r=e(CA),o={};for(let e=0;e<t;e++)o[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return o}),TA=Jg(null),qA=Jg(e=>e(TA),(e,t,n)=>{if(null===n)return void t(TA,null);const r=e(TA);t(TA,{...r,...n})}),OA=iI(e=>Jg(null,(t,n,r)=>{let o;"over"===e?o=t(IA):"end"===e&&(o=t(RA),n(qA,null));const{source:i,target:a}=r.operation;if("start"===e)return void n(qA,{id:i.id,startSection:i.data.sectionKey,startIndex:i.data.itemIndex,startSectionIndex:i.data.sectionIndex});if(null===a)return void n(qA,{toIndex:void 0,toSectionIndex:void 0});const s=i.data.sectionIndex!==a.data.sectionIndex;let l;if(s){const e=vA(t(MA),r)[a.data.sectionIndex].indexOf(i.id);l=-1!==e?e:a.sortable?.index??0}else l=a.sortable?.index??0;if("over"===e){const e=t(qA)?.startIndex;n(qA,{toIndex:!s&&void 0!==e&&l>e?l+1:l,toSectionIndex:a.data.sectionIndex})}o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t(qA)?.startSection??i.data.sectionKey,event:r})})),LA=[xA,SA,wA,CA,EA,RA,AA,kA,DA,qA],NA=[OA],jA=({props:e,children:t})=>{const n=ub(xA);return j(()=>{n(e)},[e,n]),t};var _A=Symbol.for("preact-signals");function zA(){if(VA>1)VA--;else{var e,t=!1;for(!function(){var e=KA;for(KA=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==BA;){var n=BA;for(BA=void 0,WA++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&QA(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(WA=0,VA--,t)throw e}}function FA(e){if(VA>0)return e();GA=++UA,VA++;try{return e()}finally{zA()}}var $A=void 0;function HA(e){var t=$A;$A=void 0;try{return e()}finally{$A=t}}var BA=void 0,VA=0,WA=0,UA=0,GA=0,KA=void 0,YA=0;function XA(e){if(void 0!==$A){var t=e.n;if(void 0===t||t.t!==$A)return t={i:0,S:e,p:$A.s,n:void 0,t:$A,e:void 0,x:void 0,r:t},void 0!==$A.s&&($A.s.n=t),$A.s=t,e.n=t,32&$A.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=$A.s,t.n=void 0,$A.s.n=t,$A.s=t),t}}function JA(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function ZA(e,t){return new JA(e,t)}function QA(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function ek(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function tk(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function nk(e,t){JA.call(this,void 0),this.x=e,this.s=void 0,this.g=YA-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function rk(e,t){return new nk(e,t)}function ok(e){var t=e.m;if(e.m=void 0,"function"==typeof t){VA++;var n=$A;$A=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,ik(e),t}finally{$A=n,zA()}}}function ik(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ok(e)}function ak(e){if($A!==this)throw new Error("Out-of-order effect");tk(this),$A=e,this.f&=-2,8&this.f&&ik(this),zA()}function sk(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function lk(e,t){var n=new sk(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}JA.prototype.brand=_A,JA.prototype.h=function(){return!0},JA.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:HA(function(){var e;null==(e=t.W)||e.call(t)}))},JA.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&HA(function(){var e;null==(e=t.Z)||e.call(t)}))}},JA.prototype.subscribe=function(e){var t=this;return lk(function(){var n=t.value,r=$A;$A=void 0;try{e(n)}finally{$A=r}},{name:"sub"})},JA.prototype.valueOf=function(){return this.value},JA.prototype.toString=function(){return this.value+""},JA.prototype.toJSON=function(){return this.value},JA.prototype.peek=function(){var e=this;return HA(function(){return e.value})},Object.defineProperty(JA.prototype,"value",{get:function(){var e=XA(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(WA>100)throw new Error("Cycle detected");!function(e){0!==VA&&0===WA&&e.l!==GA&&(e.l=GA,KA={S:e,v:e.v,i:e.i,o:KA})}(this),this.v=e,this.i++,YA++,VA++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{zA()}}}}),nk.prototype=new JA,nk.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===YA)return!0;if(this.g=YA,this.f|=1,this.i>0&&!QA(this))return this.f&=-2,!0;var e=$A;try{ek(this),$A=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return $A=e,tk(this),this.f&=-2,!0},nk.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}JA.prototype.S.call(this,e)},nk.prototype.U=function(e){if(void 0!==this.t&&(JA.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},nk.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(nk.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=XA(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),sk.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},sk.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ok(this),ek(this),VA++;var e=$A;return $A=this,ak.bind(this,e)},sk.prototype.N=function(){2&this.f||(this.f|=2,this.u=BA,BA=this)},sk.prototype.d=function(){this.f|=8,1&this.f||ik(this)},sk.prototype.dispose=function(){this.d()};var ck,uk,dk,pk,fk,hk,mk,gk,bk,vk,yk,xk,Sk,wk,Ck,Ek,Rk,Ik,Ak,kk,Pk=Object.create,Dk=Object.defineProperty,Mk=Object.defineProperties,Tk=Object.getOwnPropertyDescriptor,qk=Object.getOwnPropertyDescriptors,Ok=Object.getOwnPropertySymbols,Lk=Object.prototype.hasOwnProperty,Nk=Object.prototype.propertyIsEnumerable,jk=e=>{throw TypeError(e)},_k=(e,t,n)=>t in e?Dk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zk=(e,t)=>Dk(e,"name",{value:t,configurable:!0}),Fk=["class","method","getter","setter","accessor","field","value","get","set"],$k=e=>void 0!==e&&"function"!=typeof e?jk("Function expected"):e,Hk=(e,t,n,r,o)=>({kind:Fk[e],name:t,metadata:r,addInitializer:e=>n._?jk("Already initialized"):o.push($k(e||null))}),Bk=(e,t)=>{return _k(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},Vk=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},Wk=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=Fk[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&Tk(d<4?o:{get[n](){return Kk(this,i)},set[n](e){return Xk(this,i,e)}},n));d?f&&d<4&&zk(i,(d>2?"set ":d>1?"get ":"")+n):zk(o,n);for(var y=r.length-1;y>=0;y--)c=Hk(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>Gk(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?Kk:Jk)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>Xk(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?$k(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?jk("Object expected"):($k(a=s.get)&&(v.get=a),$k(a=s.set)&&(v.set=a),$k(a=s.init)&&g.unshift(a));return d||Bk(e,o),v&&Dk(o,n,v),f?4^d?i:v:o},Uk=(e,t,n)=>t.has(e)||jk("Cannot "+n),Gk=(e,t)=>Object(t)!==t?jk('Cannot use the "in" operator on this value'):e.has(t),Kk=(e,t,n)=>(Uk(e,t,"read from private field"),n?n.call(e):t.get(e)),Yk=(e,t,n)=>t.has(e)?jk("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Xk=(e,t,n,r)=>(Uk(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Jk=(e,t,n)=>(Uk(e,t,"access private method"),n);function Zk(e,t){if(t){let n;return rk(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return rk(e)}function Qk(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!Qk(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=n.some(n=>!Qk(e[n],t[n]));return!o}return!1}function eP({get:e},t){return{init:e=>ZA(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function tP(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=Zk(e.bind(this)),n.set(this,t)),t.value}}function nP(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>Mk(e,qk(t)))(((e,t)=>{for(var n in t||(t={}))Lk.call(t,n)&&_k(e,n,t[n]);if(Ok)for(var n of Ok(t))Nk.call(t,n)&&_k(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function rP(...e){const t=e.map(e=>lk(e));return()=>t.forEach(e=>e())}hk=[eP],fk=[eP],pk=[eP],dk=[nP()],uk=[nP()],ck=[nP()];var oP,iP=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Vk(mk,5,this),Yk(this,xk),Yk(this,gk,Vk(mk,8,this)),Vk(mk,11,this),Yk(this,Sk,Vk(mk,12,this)),Vk(mk,15,this),Yk(this,Rk,Vk(mk,16,this)),Vk(mk,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Kk(this,xk,Ak)}get initial(){return Kk(this,xk,vk)}get previous(){return Kk(this,xk,Ck)}set current(e){const t=HA(()=>Kk(this,xk,Ak));e&&t&&this.equals(t,e)||FA(()=>{Kk(this,xk,vk)||Xk(this,xk,e,yk),Xk(this,xk,t,Ek),Xk(this,xk,e,kk)})}reset(e=this.defaultValue){FA(()=>{Xk(this,xk,void 0,Ek),Xk(this,xk,e,yk),Xk(this,xk,e,kk)})}};function aP(e){return HA(()=>{const t={};for(const n in e)t[n]=e[n];return t})}mk=[,,,Pk(null)],gk=new WeakMap,xk=new WeakSet,Sk=new WeakMap,Rk=new WeakMap,bk=Wk(mk,20,"#initial",hk,xk,gk),vk=bk.get,yk=bk.set,wk=Wk(mk,20,"#previous",fk,xk,Sk),Ck=wk.get,Ek=wk.set,Ik=Wk(mk,20,"#current",pk,xk,Rk),Ak=Ik.get,kk=Ik.set,Wk(mk,2,"current",dk,iP),Wk(mk,2,"initial",uk,iP),Wk(mk,2,"previous",ck,iP),Bk(mk,iP);oP=new WeakMap;var sP,lP,cP,uP,dP,pP=Object.create,fP=Object.defineProperty,hP=Object.getOwnPropertyDescriptor,mP=Object.getOwnPropertySymbols,gP=Object.prototype.hasOwnProperty,bP=Object.prototype.propertyIsEnumerable,vP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),yP=e=>{throw TypeError(e)},xP=Math.pow,SP=(e,t,n)=>t in e?fP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wP=["class","method","getter","setter","accessor","field","value","get","set"],CP=e=>void 0!==e&&"function"!=typeof e?yP("Function expected"):e,EP=(e,t,n,r,o)=>({kind:wP[e],name:t,metadata:r,addInitializer:e=>n._?yP("Already initialized"):o.push(CP(e||null))}),RP=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=wP[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,hP(o,n)),h=r.length-1;h>=0;h--)(l=EP(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,CP(a)&&(f[d]=a);return f&&fP(o,n,f),o},IP=(e,t,n)=>t.has(e)||yP("Cannot "+n),AP=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},kP=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,r+n,i,a);return l.scale=((e,t)=>{for(var n in t||(t={}))gP.call(t,n)&&SP(e,n,t[n]);if(mP)for(var n of mP(t))bP.call(t,n)&&SP(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:o,bottom:i}=this;return{width:e,height:t,left:n,top:r,right:o,bottom:i}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new AP((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:o,height:i}=this;return n===t.left&&r===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:o}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:o}){return new e(n,t,r,o)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==r?o:"end"==r?o+i:o+i/2};return AP.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var PP,DP=class extends(cP=iP,lP=[tP],sP=[tP],cP){constructor(e){var t,n,r;super(AP.from(e),(e,t)=>AP.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(dP,5,this),t=this,r=0,(n=uP).has(t)?yP("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return AP.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=AP.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(IP(a=this,s=uP,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);FA(()=>{((e,t,n)=>{IP(e,t,"write to private field"),t.set(e,n)})(this,uP,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(AP.from(e)),this.velocity={x:0,y:0}}};function MP({x:e,y:t},n){const r=Math.abs(e),o=Math.abs(t);return"number"==typeof n?Math.sqrt(xP(r,2)+xP(o,2))>n:"x"in n&&"y"in n?r>n.x&&o>n.y:"x"in n?r>n.x:"y"in n&&o>n.y}dP=(e=>{var t;return[,,,pP(null!=(t=null==e?void 0:e[vP("metadata")])?t:null)]})(cP),uP=new WeakMap,RP(dP,2,"delta",lP,DP),RP(dP,2,"direction",sP,DP),PP=dP,SP(DP,vP("metadata"),PP[3]);var TP,qP,OP,LP,NP=(e=>(e.Horizontal="x",e.Vertical="y",e))(NP||{}),jP=Object.values(NP),_P=Object.create,zP=Object.defineProperty,FP=Object.defineProperties,$P=Object.getOwnPropertyDescriptor,HP=Object.getOwnPropertyDescriptors,BP=Object.getOwnPropertySymbols,VP=Object.prototype.hasOwnProperty,WP=Object.prototype.propertyIsEnumerable,UP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),GP=e=>{throw TypeError(e)},KP=(e,t,n)=>t in e?zP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,YP=(e,t)=>{for(var n in t||(t={}))VP.call(t,n)&&KP(e,n,t[n]);if(BP)for(var n of BP(t))WP.call(t,n)&&KP(e,n,t[n]);return e},XP=(e,t)=>FP(e,HP(t)),JP=(e,t)=>zP(e,"name",{value:t,configurable:!0}),ZP=(e,t)=>{var n={};for(var r in e)VP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&BP)for(var r of BP(e))t.indexOf(r)<0&&WP.call(e,r)&&(n[r]=e[r]);return n},QP=e=>{var t;return[,,,_P(null!=(t=null==e?void 0:e[UP("metadata")])?t:null)]},eD=["class","method","getter","setter","accessor","field","value","get","set"],tD=e=>void 0!==e&&"function"!=typeof e?GP("Function expected"):e,nD=(e,t,n,r,o)=>({kind:eD[e],name:t,metadata:r,addInitializer:e=>n._?GP("Already initialized"):o.push(tD(e||null))}),rD=(e,t)=>KP(t,UP("metadata"),e[3]),oD=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},iD=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=eD[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&$P(d<4?o:{get[n](){return lD(this,i)},set[n](e){return uD(this,i,e)}},n));d?f&&d<4&&JP(i,(d>2?"set ":d>1?"get ":"")+n):JP(o,n);for(var y=r.length-1;y>=0;y--)c=nD(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>sD(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?lD:dD)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>uD(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?tD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?GP("Object expected"):(tD(a=s.get)&&(v.get=a),tD(a=s.set)&&(v.set=a),tD(a=s.init)&&g.unshift(a));return d||rD(e,o),v&&zP(o,n,v),f?4^d?i:v:o},aD=(e,t,n)=>t.has(e)||GP("Cannot "+n),sD=(e,t)=>Object(t)!==t?GP('Cannot use the "in" operator on this value'):e.has(t),lD=(e,t,n)=>(aD(e,t,"read from private field"),n?n.call(e):t.get(e)),cD=(e,t,n)=>t.has(e)?GP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),uD=(e,t,n,r)=>(aD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),dD=(e,t,n)=>(aD(e,t,"access private method"),n);function pD(e,t){return{plugin:e,options:t}}function fD(e){return t=>pD(e,t)}function hD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}TP=[eP];var mD=class{constructor(e,t){this.manager=e,this.options=t,cD(this,OP,oD(qP,8,this,!1)),oD(qP,11,this),cD(this,LP,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return HA(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=lk(e.bind(this));return lD(this,LP).add(t),t}destroy(){lD(this,LP).forEach(e=>e())}static configure(e){return pD(this,e)}};qP=QP(null),OP=new WeakMap,LP=new WeakMap,iD(qP,4,"disabled",TP,mD,OP),rD(qP,mD);var gD,bD=class extends mD{},vD=class{constructor(e){this.manager=e,this.instances=new Map,cD(this,gD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(hD).reduce((e,t)=>{const n=e.find(({plugin:e})=>e===t.plugin);return n?(n.options=t.options,e):[...e,t]},[]),n=t.map(({plugin:e})=>e);for(const e of lD(this,gD))if(!n.includes(e)){if(e.prototype instanceof bD)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);uD(this,gD,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function yD(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}gD=new WeakMap;var xD,SD,wD,CD,ED,RD,ID,AD,kD,PD,DD,MD,TD=[],qD=class extends mD{constructor(e){super(e),cD(this,xD),cD(this,SD),this.computeCollisions=this.computeCollisions.bind(this),uD(this,SD,ZA(TD)),this.destroy=rP(()=>{const e=this.computeCollisions(),t=HA(()=>this.manager.dragOperation.position.current);if(e!==TD){const e=lD(this,xD);if(uD(this,xD,t),e&&t.x==e.x&&t.y==e.y)return}else uD(this,xD,void 0);lD(this,SD).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){HA(()=>{e?lD(this,SD).value=this.computeCollisions():uD(this,xD,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:o,shape:i,status:a}=r;if(!a.initialized||!i)return TD;const s=[],l=[];for(const i of null!=e?e:n.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const n=HA(()=>e({droppable:i,dragOperation:r}));n&&(null!=i.collisionPriority&&(n.priority=i.collisionPriority),s.push(n))}return 0===l.length?TD:(s.sort(yD),s)}get collisions(){return lD(this,SD).value}};xD=new WeakMap,SD=new WeakMap,ED=[eP],CD=[eP],wD=[eP];var OD=class e{constructor(e,t){cD(this,kD,oD(AD,8,this)),oD(AD,11,this),cD(this,PD),cD(this,DD,oD(AD,12,this)),oD(AD,15,this),cD(this,MD,oD(AD,16,this)),oD(AD,19,this);const{effects:n,id:r,data:o={},disabled:i=!1,register:a=!0}=e;let s=r;uD(this,PD,ZA(r)),this.manager=t,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return s=e,null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==n?void 0:n())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=lD(this,PD).value;return null!=(n=null==(t=e.pendingIdChanges)?void 0:t.get(this))?n:r}set id(t){var n,r;t!==(null!=(r=null==(n=e.pendingIdChanges)?void 0:n.get(this))?r:lD(this,PD).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return dD(t=e,RD,ID).call(t)})),e.pendingIdChanges.set(this,t))}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};AD=QP(null),RD=new WeakSet,ID=function(){const e=OD.pendingIdChanges;OD.pendingIdChanges=null,e&&FA(()=>{for(const[t,n]of e)lD(t,PD).value=n})},kD=new WeakMap,PD=new WeakMap,DD=new WeakMap,MD=new WeakMap,iD(AD,4,"manager",ED,OD,kD),iD(AD,4,"data",CD,OD,DD),iD(AD,4,"disabled",wD,OD,MD),cD(OD,RD),rD(AD,OD),OD.pendingIdChanges=null;var LD,ND,jD,_D,zD,FD,$D,HD,BD,VD,WD,UD,GD,KD,YD,XD,JD,ZD,QD,eM,tM,nM,rM,oM,iM=OD,aM=class{constructor(){this.map=ZA(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),o=()=>this.unregister(e,t);if(r===t)return o;if(r&&r.id===e){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const i=new Map(n);for(const[r,o]of n)if(o===t&&r!==e){i.delete(r);break}i.set(e,t),this.map.value=i;const a=rP(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const o=new Map(n);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},sM=class extends($D=iM,FD=[eP],zD=[eP],_D=[eP],jD=[tP],ND=[tP],LD=[tP],$D){constructor(e,t){var n=e,{modifiers:r,type:o,sensors:i,plugins:a,effects:s}=n,l=ZP(n,["modifiers","type","sensors","plugins","effects"]);super(XP(YP({},l),{effects:()=>{var e;return[...null!=(e=null==s?void 0:s())?e:[],()=>{const{manager:e,plugins:t}=this;if(e&&t)for(const n of t){const{plugin:t}=hD(n);e.registry.plugins.register(t)}}]}}),t),oD(HD,5,this),cD(this,BD,oD(HD,8,this)),oD(HD,11,this),cD(this,VD,oD(HD,12,this)),oD(HD,15,this),cD(this,WD,oD(HD,16,this,this.isDragSource?"dragging":"idle")),oD(HD,19,this),this.type=o,this.sensors=i,this.modifiers=r,this.alignment=l.alignment,this.plugins=a}pluginConfig(e){if(this.plugins)for(const t of this.plugins){const n=hD(t);if(n.plugin===e)return n.options}}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};HD=QP($D),BD=new WeakMap,VD=new WeakMap,WD=new WeakMap,iD(HD,4,"type",FD,sM,BD),iD(HD,4,"modifiers",zD,sM,VD),iD(HD,4,"status",_D,sM,WD),iD(HD,2,"isDropping",jD,sM),iD(HD,2,"isDragging",ND,sM),iD(HD,2,"isDragSource",LD,sM),rD(HD,sM);var lM=class extends(ZD=iM,JD=[eP],XD=[eP],YD=[eP],KD=[eP],GD=[eP],UD=[tP],ZD){constructor(e,t){var n=e,{accept:r,collisionDetector:o,collisionPriority:i,type:a}=n;super(ZP(n,["accept","collisionDetector","collisionPriority","type"]),t),oD(QD,5,this),cD(this,eM,oD(QD,8,this)),oD(QD,11,this),cD(this,tM,oD(QD,12,this)),oD(QD,15,this),cD(this,nM,oD(QD,16,this)),oD(QD,19,this),cD(this,rM,oD(QD,20,this)),oD(QD,23,this),cD(this,oM,oD(QD,24,this)),oD(QD,27,this),this.accept=r,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};QD=QP(ZD),eM=new WeakMap,tM=new WeakMap,nM=new WeakMap,rM=new WeakMap,oM=new WeakMap,iD(QD,4,"accept",JD,lM,eM),iD(QD,4,"type",XD,lM,tM),iD(QD,4,"collisionDetector",YD,lM,nM),iD(QD,4,"collisionPriority",KD,lM,rM),iD(QD,4,"shape",GD,lM,oM),iD(QD,2,"isDropTarget",UD,lM),rD(QD,lM);var cM=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},uM=class extends cM{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function dM(e,t=!0){let n=!1;return XP(YP({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var pM,fM,hM,mM,gM,bM,vM,yM,xM,SM=class extends bD{constructor(e){super(e);let t=[];this.destroy=rP(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:o}=n;if(n.isDisabled())return;if(iM.pendingIdChanges)return;const i=dM({collisions:o});if(r.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;HA(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},wM=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(wM||{}),CM=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(CM||{});vM=[eP],bM=[tP],gM=[tP],mM=[tP],hM=[tP],fM=[tP],pM=[tP];var EM=class{constructor(){oD(yM,5,this),cD(this,xM,oD(yM,8,this,"idle")),oD(yM,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};yM=QP(null),xM=new WeakMap,iD(yM,4,"value",vM,EM,xM),iD(yM,2,"current",bM,EM),iD(yM,2,"idle",gM,EM),iD(yM,2,"initializing",mM,EM),iD(yM,2,"initialized",hM,EM),iD(yM,2,"dragging",fM,EM),iD(yM,2,"dropped",pM,EM),rD(yM,EM);var RM,IM=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return HA(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=dM({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return HA(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const n=new AbortController,{event:r,coordinates:o}=e;FA(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(o)});const i=dM({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&FA(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1})})}),n)})}move(e){return HA(()=>{var t,n;const{dragOperation:r}=this.manager,{status:o,controller:i}=r;if(!o.dragging||!i||i.signal.aborted)return;const a=dM({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};r.position.current=l})})}stop(e={}){return HA(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:o}=r;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=HA(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===o&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=lk(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),i?i.then(a).catch(()=>r.reset()):a()})}},AM=class extends mD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},kM=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},PM=class{constructor(e){this.options=e,cD(this,RM)}set controller(e){uD(this,RM,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=lD(this,RM))||t.activate(e)}};RM=new WeakMap;var DM,MM,TM,qM,OM,LM,NM,jM,_M,zM,FM,$M,HM,BM,VM,WM,UM,GM,KM,YM=class extends mD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},XM=class{constructor(e){this.draggables=new aM,this.droppables=new aM,this.plugins=new vD(e),this.sensors=new vD(e),this.modifiers=new vD(e)}register(e,t){if(e instanceof sM)return this.draggables.register(e.id,e);if(e instanceof lM)return this.droppables.register(e.id,e);if(e.prototype instanceof YM)return this.modifiers.register(e,t);if(e.prototype instanceof AM)return this.sensors.register(e,t);if(e.prototype instanceof mD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof iM)return e instanceof sM?this.draggables.unregister(e.id,e):e instanceof lM?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof YM)return this.modifiers.unregister(e);if(e.prototype instanceof AM)return this.sensors.unregister(e);if(e.prototype instanceof mD)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};_M=[tP],jM=[eP],NM=[eP],LM=[eP],OM=[eP],qM=[eP],TM=[tP],MM=[tP],DM=[tP];var JM=class{constructor(e){oD(HM,5,this),cD(this,zM),cD(this,FM),cD(this,$M,new iP(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new EM,cD(this,BM,oD(HM,8,this,!1)),oD(HM,11,this),cD(this,VM,oD(HM,12,this,null)),oD(HM,15,this),cD(this,WM,oD(HM,16,this,null)),oD(HM,19,this),cD(this,UM,oD(HM,20,this,null)),oD(HM,23,this),cD(this,GM,oD(HM,24,this,[])),oD(HM,27,this),this.position=new DP({x:0,y:0}),cD(this,KM,{x:0,y:0}),uD(this,zM,e)}get shape(){const{current:e,initial:t,previous:n}=lD(this,$M);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?lD(this,$M).current=e:lD(this,$M).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=lD(this,zM).registry.draggables.get(t);return n&&uD(this,FM,n),null!=(e=null!=n?n:lD(this,FM))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=lD(this,zM).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(XP(YP({},this.snapshot()),{transform:n}));return uD(this,KM,n),n}snapshot(){return HA(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:lD(this,KM),shape:this.shape?aP(this.shape):null,position:aP(this.position),status:aP(this.status),canceled:this.canceled}))}reset(){FA(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,lD(this,$M).reset(),this.position.reset({x:0,y:0}),uD(this,KM,{x:0,y:0}),this.modifiers=[]})}};HM=QP(null),zM=new WeakMap,FM=new WeakMap,$M=new WeakMap,BM=new WeakMap,VM=new WeakMap,WM=new WeakMap,UM=new WeakMap,GM=new WeakMap,KM=new WeakMap,iD(HM,2,"shape",_M,JM),iD(HM,4,"canceled",jM,JM,BM),iD(HM,4,"activatorEvent",NM,JM,VM),iD(HM,4,"sourceIdentifier",LM,JM,WM),iD(HM,4,"targetIdentifier",OM,JM,UM),iD(HM,4,"modifiers",qM,JM,GM),iD(HM,2,"source",TM,JM),iD(HM,2,"target",MM,JM),iD(HM,2,"transform",DM,JM),rD(HM,JM);var ZM={get rendering(){return Promise.resolve()}};function QM(e,t){return"function"==typeof e?e(t):null!=e?e:t}var eT=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const n=null!=e?e:{},r=QM(n.plugins,[]),o=QM(n.sensors,[]),i=QM(n.modifiers,[]),a=null!=(t=n.renderer)?t:ZM,s=new uM(this),l=new XM(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new IM(this),this.dragOperation=new JM(this),this.collisionObserver=new qD(this),this.plugins=[SM,...r],this.modifiers=i,this.sensors=o;const{destroy:c}=this,u=rP(()=>{var e,t,n;const r=HA(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of r)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=hD(e);return new t(this,n)}))?n:o});this.destroy=()=>{u(),c()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},tT=e=>{throw TypeError(e)},nT=(e,t,n)=>t.has(e)||tT("Cannot "+n),rT=(e,t,n)=>(nT(e,t,"read from private field"),t.get(e)),oT=(e,t,n)=>t.has(e)?tT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),iT=(e,t,n,r)=>(nT(e,t,"write to private field"),t.set(e,n),n),aT=(e,t,n)=>(nT(e,t,"access private method"),n);function sT(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function lT(e,t){const n=e.getAnimations();let r=null;for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,o=(sT(n)?n.getKeyframes():[]).filter(t);o.length>0&&(r=[o[o.length-1],e])}return r}function cT(e){const{width:t,height:n,top:r,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:o,bottom:i,right:a}}function uT(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function dT(e){return"nodeType"in e}function pT(e){var t,n,r;return e?uT(e)?e:dT(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function fT(e){const{Document:t}=pT(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function hT(e){return!(!e||uT(e))&&(e instanceof pT(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function mT(e){return e instanceof pT(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function gT(e){return e?uT(e)?e.document:dT(e)?fT(e)?e:hT(e)||mT(e)?e.ownerDocument:document:document:document}function bT(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===o}function vT(e,t=e.getBoundingClientRect(),n=0){var r,o,i,a,s;let l=t;const{ownerDocument:c}=e,u=null!=(r=c.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==c.documentElement;){if(!bT(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),o=n*(e.bottom-e.top),i=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=u.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:u.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:u.innerHeight,b=n*g,v=n*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function yT(e){return{x:e.clientX,y:e.clientY}}var xT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ST(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...ST(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const o=r.parent;o&&o.document&&o.document!==e&&n.push(...ST(o.document,t))}}catch(e){}return n}function wT(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function CT(){var e,t;const n=wT()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function ET(e){return!(!e||!dT(e))&&e instanceof pT(e).ShadowRoot}function RT(e){if(e&&dT(e)){let t=e.getRootNode();if(ET(t))return t;if(t instanceof Document)return t}return gT(e)}function IT(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function AT(e){return"value"in e}function kT(e){return"CANVAS"===e.tagName}function PT(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:o,top:i}=r.getBoundingClientRect();return PT(e,{x:t-o,y:n-i})}}return r}var DT=new WeakMap;var MT=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],o=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:i}=t,a=[e,t];e.addEventListener(n,r,i),this.entries.add(a),o.push(a)}const i=this.entries;return function(){for(const e of o){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o),i.delete(e)}}}};function TT(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function qT(e,t){const n=()=>performance.now();let r,o;return function(...i){const a=this;o?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,i),o=n()},t-(n()-o))):(e.apply(a,i),o=n())}}var OT,LT=xT?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},NT=class extends LT{constructor(e){super(t=>{rT(this,OT)?e(t,this):iT(this,OT,!0)}),oT(this,OT,!1)}};OT=new WeakMap;var jT,_T,zT,FT,$T,HT,BT,VT,WT,UT,GT,KT=Array.from({length:100},(e,t)=>t/100),YT=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,oT(this,WT),this.disconnect=()=>{var e,t,n;iT(this,BT,!0),null==(e=rT(this,zT))||e.disconnect(),null==(t=rT(this,FT))||t.disconnect(),rT(this,$T).disconnect(),null==(n=rT(this,HT))||n.remove()},oT(this,jT,!0),oT(this,_T),oT(this,zT),oT(this,FT),oT(this,$T),oT(this,HT),oT(this,BT,!1),oT(this,VT,qT(()=>{var e,t,n;const{element:r}=this;if(null==(e=rT(this,FT))||e.disconnect(),rT(this,BT)||!rT(this,jT)||!r.isConnected)return;const o=null!=(t=r.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(n=o.defaultView)?n:window,s=r.getBoundingClientRect(),l=vT(r,s),{top:c,left:u,bottom:d,right:p}=l,f=-Math.floor(c),h=-Math.floor(u),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,iT(this,FT,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:kP.intersectionRatio(n,vT(r)))&&rT(this,VT).call(this)},{threshold:KT,rootMargin:m,root:o})),rT(this,FT).observe(r),aT(this,WT,UT).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),iT(this,jT,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=vT(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const o=e.ownerDocument;(null==n?void 0:n.debug)&&(iT(this,HT,document.createElement("div")),rT(this,HT).style.background="rgba(0,0,0,0.15)",rT(this,HT).style.position="fixed",rT(this,HT).style.pointerEvents="none",o.body.appendChild(rT(this,HT))),iT(this,$T,new IntersectionObserver(t=>{var n,r;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,c=rT(this,jT);iT(this,jT,a),(s||l)&&(c&&!a?(null==(n=rT(this,FT))||n.disconnect(),this.callback(null),null==(r=rT(this,zT))||r.disconnect(),iT(this,zT,void 0),rT(this,HT)&&(rT(this,HT).style.visibility="hidden")):rT(this,VT).call(this),a&&!rT(this,zT)&&(iT(this,zT,new NT(rT(this,VT))),rT(this,zT).observe(e)))},{threshold:KT,root:o})),rT(this,jT)&&!n.skipInitial&&this.callback(this.boundingClientRect),rT(this,$T).observe(e)}};jT=new WeakMap,_T=new WeakMap,zT=new WeakMap,FT=new WeakMap,$T=new WeakMap,HT=new WeakMap,BT=new WeakMap,VT=new WeakMap,WT=new WeakSet,UT=function(){rT(this,BT)||(aT(this,WT,GT).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,rT(this,_T))||(this.callback(this.boundingClientRect),iT(this,_T,this.boundingClientRect)))},GT=function(){if(rT(this,HT)){const{top:e,left:t,width:n,height:r}=vT(this.element);rT(this,HT).style.overflow="hidden",rT(this,HT).style.visibility="visible",rT(this,HT).style.top=`${Math.floor(e)}px`,rT(this,HT).style.left=`${Math.floor(t)}px`,rT(this,HT).style.width=`${Math.floor(n)}px`,rT(this,HT).style.height=`${Math.floor(r)}px`}};var XT,JT,ZT,QT,eq=new WeakMap,tq=new WeakMap;function nq(e,t){let n=eq.get(e);if(!n){const t=new YT(e,t=>{const n=eq.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),eq.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(eq.delete(e),n.disconnect())}}var rq=class{constructor(e,t,n){this.callback=t,oT(this,XT),oT(this,JT,!1),oT(this,ZT),oT(this,QT,qT(e=>{if(!rT(this,JT)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of rT(this,ZT))if(e.target.contains(t)){this.callback(rT(this,XT).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=TT(e);for(;n;)t.add(n),n=TT(n);return t}(e),o=function(e,t){const n=new Set;for(const r of e){const e=nq(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),i=function(e,t){var n;const r=e.ownerDocument;if(!tq.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),tq.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(n=tq.get(r))?n:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),tq.delete(r))}):()=>{}}(e,rT(this,QT));iT(this,ZT,r),iT(this,XT,new YT(e,t,n)),this.disconnect=()=>{rT(this,JT)||(iT(this,JT,!0),o(),i(),rT(this,XT).disconnect())}}};function oq(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function iq(e){try{oq(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function aq(e){return!(!xT||!e)&&e===gT(e).scrollingElement}function sq(e){var t,n;const r=pT(e),o=aq(e)?function(e){var t,n,r,o;const{documentElement:i}=gT(e),a=pT(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:i.clientHeight,c=null!=(r=null==a?void 0:a.offsetTop)?r:0,u=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:c,left:u,right:u+s,bottom:c+l,width:s,height:l}}(e):cT(e),i=r.visualViewport,a=aq(e)?{height:null!=(t=null==i?void 0:i.height)?t:r.innerHeight,width:null!=(n=null==i?void 0:i.width)?n:r.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function lq(e,t){const{isTop:n,isBottom:r,isLeft:o,isRight:i,position:a}=sq(e),{x:s,y:l}=null!=t?t:{x:0,y:0},c=!n&&a.current.y+l>0,u=!r&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:c,bottom:u,left:d,right:p,x:d||p,y:c||u}}XT=new WeakMap,JT=new WeakMap,ZT=new WeakMap,QT=new WeakMap;var cq=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},uq=new cq(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),dq=new cq(e=>setTimeout(e,50)),pq=new Map,fq=pq.clear.bind(pq);function hq(e,t=!1){if(!t)return mq(e);let n=pq.get(e);return n||(n=mq(e),pq.set(e,n),dq.schedule(fq),n)}function mq(e){return pT(e).getComputedStyle(e)}var gq={excludeElement:!0,escapeShadowDOM:!0};function bq(e,t=gq){const{limit:n,excludeElement:r,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=n&&i.size>=n)return i;if(!a)return i;if(fT(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&ET(a))return t(a.host);if(!hT(a))return mT(a)?t(a.parentElement):i;if(i.has(a))return i;const s=hq(a,!0);if(r&&a===e||function(e,t=hq(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&i.add(a),function(e,t=hq(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function vq(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=TT(e);for(;r;){if(r===t)return n;const e=cT(r),{x:o,y:i}=yq(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*o,n.scaleY=n.scaleY*i,r=TT(r)}return n}function yq(e,t=cT(e)){const n=Math.round(t.width),r=Math.round(t.height);if(hT(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const o=hq(e,!0);return{x:(parseFloat(o.width)||n)/n,y:(parseFloat(o.height)||r)/r}}function xq(e){if("none"===e)return null;const[t,n,r="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function Sq(e){var t,n,r,o,i,a,s,l,c;const{scale:u,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(u),h=xq(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(n=null==f?void 0:f.y)?n:1,v=null!=(r=null==h?void 0:h.x)?r:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(c=null==h?void 0:h.z)?c:0,scaleX:g*w,scaleY:b*C}}var wq=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(wq||{}),Cq={x:.2,y:.2},Eq={x:10,y:10};function Rq(e,t,n,r=25,o=Cq,i=Eq){const{x:a,y:s}=t,{rect:l,isTop:c,isBottom:u,isLeft:d,isRight:p}=sq(e),f=vq(e),h=Sq(hq(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new kP(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return x>0&&(!c||g&&!u)&&s<=b.top+x&&1!==(null==n?void 0:n.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=r*Math.abs((b.top+x-s)/x)):x>0&&(!u||g&&!c)&&s>=b.bottom-x&&-1!==(null==n?void 0:n.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=r*Math.abs((b.bottom-x-s)/x)),S>0&&(!p||m&&!d)&&a>=b.right-S&&-1!==(null==n?void 0:n.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=r*Math.abs((b.right-S-a)/S)):S>0&&(!d||m&&!p)&&a<=b.left+S&&1!==(null==n?void 0:n.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=r*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function Iq(e,{block:t="nearest",inline:n="nearest"}={}){if(!hT(e))return;const r=bq(e),o=[];for(const i of r){if(!hT(i))continue;const{top:r,left:a}=kq(e,i);let s=r,l=a;for(const e of o)s-=e.scrollTop,l-=e.scrollLeft;if("none"!==t){const n=s<i.scrollTop;n!==s+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop="center"===t?s-i.clientHeight/2+e.offsetHeight/2:n?s:s+e.offsetHeight-i.clientHeight)}if("none"!==n){const t=l<i.scrollLeft;t!==l+e.offsetWidth>i.scrollLeft+i.clientWidth&&(i.scrollLeft="center"===n?l-i.clientWidth/2+e.offsetWidth/2:t?l:l+e.offsetWidth-i.clientWidth)}o.push(i)}}function Aq(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;const e=r.offsetParent;if(!hT(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function kq(e,t){const n=Aq(e),r=Aq(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function Pq({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function Dq(e,t=hq(e).translate,n=!0){if(n){const t=lT(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=xq(e);if(t)return t}}}if(t){const e=xq(t);if(e)return e}return{x:0,y:0,z:0}}var Mq=new cq(e=>setTimeout(e,0)),Tq=new Map,qq=Tq.clear.bind(Tq);function Oq(e,t){const n=function(e){const t=e.ownerDocument;let n=Tq.get(t);if(n)return n;n=t.getAnimations(),Tq.set(t,n),Mq.schedule(qq);const r=n.filter(t=>sT(t.effect)&&t.effect.target===e);return Tq.set(e,r),n}(e).filter(e=>{var n,r;if(sT(e.effect)){const{target:o}=e.effect;if(null==(r=o&&(null==(n=t.isValidTarget)?void 0:n.call(t,o)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var Lq=class extends kP{constructor(e,t={}){var n,r,o,i;const{frameTransform:a=vq(e),ignoreTransforms:s,getBoundingClientRect:l=cT}=t,c=Oq(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||wT())&&t.contains(e)}),u=l(e);let d,{top:p,left:f,width:h,height:m}=u;const g=hq(e),b=Sq(g),v={x:null!=(n=null==b?void 0:b.scaleX)?n:1,y:null!=(r=null==b?void 0:b.scaleY)?r:1},y=function(e,t){const n=e.getAnimations();if(!n.length)return null;let r,o,i,a=!1;for(const e of n){if("running"!==e.playState)continue;const t=sT(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;const{transform:s,translate:l,scale:c}=n;"string"==typeof s&&s&&(r=s,a=!0),"string"==typeof l&&l&&(o=l,a=!0),"string"==typeof c&&c&&(i=c,a=!0)}return a?Sq({transform:null!=r?r:t.transform,translate:null!=o?o:t.translate,scale:null!=i?i:t.scale}):null}(e,g);null==c||c(),b&&(d=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-r)*parseFloat(n),l=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width/r:e.width,u=o?e.height/o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(u,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-r)*parseFloat(n),l=e.top+a+(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width*r:e.width,u=o?e.height*o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function Nq(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var jq=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(Nq(n))for(const[r,o]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:n}=this;if(Nq(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(Nq(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function _q(e){return!!e&&(e instanceof pT(e).Element||dT(e)&&e.nodeType===Node.ELEMENT_NODE)}function zq(e){if(!e)return!1;const{KeyboardEvent:t}=pT(e.target);return e instanceof t}var Fq={};function $q(e){const t=null==Fq[e]?0:Fq[e]+1;return Fq[e]=t,`${e}-${t}`}var Hq=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/AP.distance(t.shape.center,n),type:CM.PointerIntersection,priority:wM.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=AP.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:CM.ShapeIntersection,priority:wM.Normal}}return null})(e)},Bq=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:o}=t;if(!n.shape)return null;const i=r?kP.from(r.current.boundingRectangle).corners:void 0,a=kP.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+AP.distance(AP.from(t),null!=(r=null==i?void 0:i[n])?r:o.current)},0),s=a/4;return{id:n.id,value:1/s,type:CM.Collision,priority:wM.Normal}},Vq=Object.create,Wq=Object.defineProperty,Uq=Object.defineProperties,Gq=Object.getOwnPropertyDescriptor,Kq=Object.getOwnPropertyDescriptors,Yq=Object.getOwnPropertySymbols,Xq=Object.prototype.hasOwnProperty,Jq=Object.prototype.propertyIsEnumerable,Zq=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Qq=e=>{throw TypeError(e)},eO=(e,t,n)=>t in e?Wq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tO=(e,t)=>{for(var n in t||(t={}))Xq.call(t,n)&&eO(e,n,t[n]);if(Yq)for(var n of Yq(t))Jq.call(t,n)&&eO(e,n,t[n]);return e},nO=(e,t)=>Uq(e,Kq(t)),rO=(e,t)=>Wq(e,"name",{value:t,configurable:!0}),oO=(e,t)=>{var n={};for(var r in e)Xq.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Yq)for(var r of Yq(e))t.indexOf(r)<0&&Jq.call(e,r)&&(n[r]=e[r]);return n},iO=e=>{var t;return[,,,Vq(null!=(t=null==e?void 0:e[Zq("metadata")])?t:null)]},aO=["class","method","getter","setter","accessor","field","value","get","set"],sO=e=>void 0!==e&&"function"!=typeof e?Qq("Function expected"):e,lO=(e,t,n,r,o)=>({kind:aO[e],name:t,metadata:r,addInitializer:e=>n._?Qq("Already initialized"):o.push(sO(e||null))}),cO=(e,t)=>eO(t,Zq("metadata"),e[3]),uO=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},dO=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=aO[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&Gq(d<4?o:{get[n](){return hO(this,i)},set[n](e){return gO(this,i,e)}},n));d?f&&d<4&&rO(i,(d>2?"set ":d>1?"get ":"")+n):rO(o,n);for(var y=r.length-1;y>=0;y--)c=lO(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>fO(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?hO:bO)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>gO(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?sO(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?Qq("Object expected"):(sO(a=s.get)&&(v.get=a),sO(a=s.set)&&(v.set=a),sO(a=s.init)&&g.unshift(a));return d||cO(e,o),v&&Wq(o,n,v),f?4^d?i:v:o},pO=(e,t,n)=>t.has(e)||Qq("Cannot "+n),fO=(e,t)=>Object(t)!==t?Qq('Cannot use the "in" operator on this value'):e.has(t),hO=(e,t,n)=>(pO(e,t,"read from private field"),n?n.call(e):t.get(e)),mO=(e,t,n)=>t.has(e)?Qq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),gO=(e,t,n,r)=>(pO(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),bO=(e,t,n)=>(pO(e,t,"access private method"),n),vO="button",yO="draggable",xO="dnd-kit-description",SO="dnd-kit-announcement",wO={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},CO={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function EO(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var RO=["dragover","dragmove"],IO=class extends mD{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=xO,announcement:o=SO}={},announcements:i=CO,screenReaderInstructions:a=wO,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:$q(r),c=n?`${o}-${n}`:$q(o);let u,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>uq.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const o=p;if(!o)return;const i=null==t?void 0:t(n,r);i&&o.nodeValue!==i&&(f=i,RO.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==u?void 0:u.isConnected)||(u=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(l,a.draggable),e.push(u)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(c),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const n=null!=(e=t.handle)?e:t.element;if(n){u&&d||y.add(v),EO(n)&&!wT()||n.hasAttribute("tabindex")||y.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||y.add(()=>n.setAttribute("role",vO)),n.hasAttribute("aria-roledescription")||y.add(()=>n.setAttribute("aria-roledescription",yO)),n.hasAttribute("aria-describedby")||y.add(()=>n.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const r=String(t.isDragging);n.getAttribute(e)!==r&&y.add(()=>n.setAttribute(e,r))}const e=String(t.disabled);n.getAttribute("aria-disabled")!==e&&y.add(()=>n.setAttribute("aria-disabled",e))}}y.size>0&&uq.schedule(x)}),this.destroy=()=>{super.destroy(),null==u||u.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var AO,kO,PO,DO,MO,TO,qO,OO,LO,NO,jO,_O,zO,FO=new Map,$O=class extends(MO=bD,DO=[eP],PO=[tP],kO=[tP],AO=[tP],MO){constructor(e,t){super(e,t),uO(qO,5,this),mO(this,LO),mO(this,TO,new Set),mO(this,OO,uO(qO,8,this,new Set)),uO(qO,11,this),this.registerEffect(bO(this,LO,NO))}register(e){return hO(this,TO).add(e),()=>{hO(this,TO).delete(e)}}addRoot(e){return HA(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{HA(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return RT(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return RT(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};qO=iO(MO),TO=new WeakMap,OO=new WeakMap,LO=new WeakSet,NO=function(){const{roots:e}=this,t=[];for(const n of e)for(const e of hO(this,TO))t.push(bO(this,LO,jO).call(this,n,e));return()=>{for(const e of t)e()}},jO=function(e,t){let n=FO.get(e);n||(n=new Map,FO.set(e,n));let r=n.get(t);if(!r){const o=fT(e)?bO(this,LO,_O).call(this,e,n,t):bO(this,LO,zO).call(this,e,n,t);if(!o)return()=>{};r=o,n.set(t,r)}r.refCount++;let o=!1;return()=>{o||(o=!0,r.refCount--,0===r.refCount&&r.cleanup())}},_O=function(e,t,n){var r;const o=e.createElement("style"),{nonce:i}=null!=(r=this.options)?r:{};i&&o.setAttribute("nonce",i),o.textContent=n,e.head.prepend(o);const a=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===o)return void e.head.prepend(o)});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),o.remove(),t.delete(n),0===t.size&&FO.delete(e)}}},zO=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=r?r:{};if(!o)return null;const i=new o;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var r;if(ET(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&FO.delete(e)}}},dO(qO,4,"additionalRoots",DO,$O,OO),dO(qO,2,"sourceRoot",PO,$O),dO(qO,2,"targetRoot",kO,$O),dO(qO,2,"roots",AO,$O),cO(qO,$O),$O.configure=fD($O);var HO=$O,BO="data-dnd-",VO=`${BO}dropping`,WO="--dnd-",UO=`${BO}dragging`,GO=`${BO}placeholder`,KO=[UO,GO,"popover","aria-pressed","aria-grabbing"],YO=["view-transition-name"],XO=`\n :is(:root,:host) [${UO}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${WO}top, 0px) !important;\n left: var(${WO}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${WO}width, auto);\n max-width: var(${WO}width, auto);\n height: var(${WO}height, auto);\n max-height: var(${WO}height, auto);\n transform: var(${WO}transform, none) !important;\n transition: var(${WO}transition) !important;\n }\n\n :is(:root,:host) [${GO}] {\n transition: none;\n }\n\n :is(:root,:host) [${GO}='hidden'] {\n visibility: hidden;\n }\n\n [${UO}] * {\n pointer-events: none !important;\n }\n\n [${UO}]:not([${VO}]) {\n translate: var(${WO}translate) !important;\n }\n\n [${UO}][style*='${WO}scale'] {\n scale: var(${WO}scale) !important;\n transform-origin: var(${WO}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${UO}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${UO}]::backdrop, [${BO}overlay]:not([${UO}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function JO(e,t="hidden"){return HA(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const o=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${BO}${$q("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(AT(e)&&AT(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),kT(e)&&kT(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,o]of e){if(!r.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(o),!i)continue;const a=r.element;r.proxy=i,i.removeAttribute(o),DT.set(a,i),n.push(()=>{DT.delete(a),r.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(GO,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function ZO(e,t){return e===t||TT(e)===TT(t)}function QO(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&_q(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>iq(t))}function eL(e){return"TR"===e.tagName}var tL,nL,rL,oL,iL,aL,sL,lL=250,cL="ease";var uL=class extends(nL=mD,tL=[eP],nL){constructor(e,t){super(e,t),mO(this,iL),mO(this,oL,uO(rL,8,this)),uO(rL,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(HO),r=null==n?void 0:n.register(XO);if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(bO(this,iL,aL).bind(this,n)),this.registerEffect(bO(this,iL,sL))}};rL=iO(nL),oL=new WeakMap,iL=new WeakSet,aL=function(e){const{overlay:t}=this;if(!t||!e)return;const n=RT(t);return n?e.addRoot(n):void 0},sL=function(){var e,t,n,r,o,i,a;const{state:s,manager:l,options:c}=this,{dragOperation:u}=l,{position:d,source:p,status:f}=u;if(f.idle)return s.current={},void(s.initial={});if(!p)return;const{element:h}=p,m=p.pluginConfig(uL),g=null!=(t=null!=(e=null==m?void 0:m.feedback)?e:null==c?void 0:c.feedback)?t:"default",b="function"==typeof g?g(p,l):g;if(!h||"none"===b||!f.initialized||f.initializing)return;const{initial:v}=s,y=null!=(n=this.overlay)?n:h,x=vq(y),S=vq(h),w=!ZO(h,y),C=new Lq(h,{frameTransform:w?S:null,ignoreTransforms:!w}),E=S.scaleX/x.scaleX,R=S.scaleY/x.scaleY;let{width:I,height:A,top:k,left:P}=C;w&&(I/=E,A/=R);const D=new jq(y),M=hq(h),{transition:T,translate:q,boxSizing:O,paddingBlockStart:L,paddingBlockEnd:N,paddingInlineStart:j,paddingInlineEnd:_,borderInlineStartWidth:z,borderInlineEndWidth:F,borderBlockStartWidth:$,borderBlockEndWidth:H}=M,B=T.split(",").filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(","),V=Sq(M),W=M.transform,U="clone"===b,G="content-box"===O,K=G?parseInt(j)+parseInt(_)+parseInt(z)+parseInt(F):0,Y=G?parseInt(L)+parseInt(N)+parseInt($)+parseInt(H):0,X="move"===b||this.overlay?null:JO(p,U?"clone":"hidden"),J=HA(()=>zq(l.dragOperation.activatorEvent));if(!v.translate)if(this.overlay&&V)v.translate={x:V.x,y:V.y};else if("none"!==q){const e=xq(q);e&&(v.translate=e)}if(!v.transformOrigin){const e=HA(()=>d.current),t=P+(null!=(r=null==V?void 0:V.x)?r:0),n=k+(null!=(o=null==V?void 0:V.y)?o:0);v.transformOrigin={x:(e.x-t*x.scaleX-x.x)/(I*x.scaleX),y:(e.y-n*x.scaleY-x.y)/(A*x.scaleY)}}const{transformOrigin:Z}=v,Q=k*x.scaleY+x.y,ee=P*x.scaleX+x.x;if(!v.coordinates&&(v.coordinates={x:ee,y:Q},1!==E||1!==R)){const{scaleX:e,scaleY:t}=S,{x:n,y:r}=Z;v.coordinates.x+=(I*e-I)*n,v.coordinates.y+=(A*t-A)*r}v.dimensions||(v.dimensions={width:I,height:A}),v.frameTransform||(v.frameTransform=x);const te=v.coordinates.x-ee,ne=v.coordinates.y-Q,re=(v.dimensions.width*v.frameTransform.scaleX-I*x.scaleX)*Z.x,oe=(v.dimensions.height*v.frameTransform.scaleY-A*x.scaleY)*Z.y,ie={x:te/x.scaleX+re,y:ne/x.scaleY+oe},ae=P+ie.x,se=k+ie.y;y.setAttribute(UO,"true");const le=HA(()=>u.transform),ce=null!=(i=v.translate)?i:{x:0,y:0},ue=le.x*x.scaleX+ce.x,de=le.y*x.scaleY+ce.y,pe=CT();if(D.set({width:I-K,height:A-Y,top:se+pe.y,left:ae+pe.x,translate:`${ue}px ${de}px 0`,transform:this.overlay?"none":W,transition:B?`${B}, translate 0ms linear`:"translate 0ms linear",scale:w?`${E} ${R}`:"","transform-origin":`${100*Z.x}% ${100*Z.y}%`},WO),X&&(h.insertAdjacentElement("afterend",X),null==c?void 0:c.rootElement)){("function"==typeof c.rootElement?c.rootElement(p):c.rootElement).appendChild(h)}let fe,he,me;oq(y)&&(y.hasAttribute("popover")||y.setAttribute("popover","manual"),iq(y),y.addEventListener("beforetoggle",QO));const ge=(be={placeholder:X,element:h,feedbackElement:y,frameTransform:x,transformOrigin:Z,width:I,height:A,top:k,left:P,widthOffset:K,heightOffset:Y,delta:ie,styles:D,dragOperation:u,getTranslate:()=>s.current.translate,getElementMutationObserver:()=>fe,getSavedCellWidths:()=>me,setSavedCellWidths:e=>{me=e}},new ResizeObserver(()=>{var e,t,n;const r=new Lq(be.placeholder,{frameTransform:be.frameTransform,ignoreTransforms:!0}),o=null!=(e=be.transformOrigin)?e:{x:1,y:1},i=(be.width-r.width)*o.x+be.delta.x,a=(be.height-r.height)*o.y+be.delta.y,s=CT();if(be.styles.set({width:r.width-be.widthOffset,height:r.height-be.heightOffset,top:be.top+a+s.y,left:be.left+i+s.x},WO),null==(t=be.getElementMutationObserver())||t.takeRecords(),eL(be.element)&&eL(be.placeholder)){const e=Array.from(be.element.cells),t=Array.from(be.placeholder.cells);be.getSavedCellWidths()||be.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}const l=null!=(n=be.getTranslate())?n:{x:0,y:0},c=be.left+i+s.x+l.x,u=be.top+a+s.y+l.y,d=r.width-be.widthOffset,p=r.height-be.heightOffset,f=be.frameTransform;be.dragOperation.shape=new kP(c*f.scaleX+f.x,u*f.scaleY+f.y,d*f.scaleX,p*f.scaleY)}));var be;const ve=new Lq(y);HA(()=>u.shape=ve);const ye=pT(y),xe=e=>{this.manager.actions.stop({event:e})},Se=IT(ye);J&&ye.addEventListener("resize",xe),"idle"===HA(()=>p.status)&&requestAnimationFrame(()=>p.status="dragging"),X&&(ge.observe(X),fe=function(e,t,n){const r=new MutationObserver(r=>{let o=!1;for(const n of r){if(n.target!==e){o=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||KO.includes(r))continue;const i=e.getAttribute(r);if("style"===r){if(Nq(e)&&Nq(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(YO.includes(e)||e.startsWith(WO))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==i?t.setAttribute(r,i):t.removeAttribute(r)}o&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(h,X,U),he=function(e,t,n){const r=new MutationObserver(r=>{for(const o of r)if(0!==o.addedNodes.length)for(const r of Array.from(o.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void iq(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void iq(n)}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement("afterend",t),iq(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(h,X,y));const we=null==(a=l.dragOperation.source)?void 0:a.id,Ce=()=>{var e;if(!J||null==we)return;const t=l.registry.draggables.get(we),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;hT(n)&&n.focus()},Ee=()=>{var e;if(null==fe||fe.disconnect(),null==he||he.disconnect(),ge.disconnect(),ye.removeEventListener("resize",xe),oq(y)&&(y.removeEventListener("beforetoggle",QO),y.removeAttribute("popover")),y.removeAttribute(UO),D.reset(),me&&eL(h)){const t=Array.from(h.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=me[n])?e:""}p.status="idle";const t=null!=s.current.translate,n=u.status.dragging;X&&(!n&&t||X.parentElement!==y.parentElement)&&y.isConnected&&X.replaceWith(y),null==X||X.remove()},Re=null==c?void 0:c.dropAnimation,Ie=this,Ae=rP(()=>{var e,t,n;const{transform:r,status:o}=u;if((r.x||r.y||s.current.translate)&&o.dragging){const o=null!=(e=v.translate)?e:{x:0,y:0},i={x:r.x/x.scaleX+o.x,y:r.y/x.scaleY+o.y},a=s.current.translate,l=HA(()=>u.modifiers),d=HA(()=>{var e;return null==(e=u.shape)?void 0:e.current}),p=null==c?void 0:c.keyboardTransition,f=J&&!Se&&null!==p?`${null!=(t=null==p?void 0:p.duration)?t:250}ms ${null!=(n=null==p?void 0:p.easing)?n:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(D.set({transition:B?`${B}, translate ${f}`:`translate ${f}`,translate:`${i.x}px ${i.y}px 0`},WO),null==fe||fe.takeRecords(),d&&d!==ve&&a&&!l.length){const e=AP.delta(i,a);u.shape=kP.from(d.boundingRectangle).translate(e.x*x.scaleX,e.y*x.scaleY)}else u.shape=new Lq(y);s.current.translate=i}},function(){if(u.status.dropped){this.dispose(),p.status="dropping";const e=void 0!==(null==m?void 0:m.dropAnimation)?m.dropAnimation:void 0!==Ie.dropAnimation?Ie.dropAnimation:Re;let t=s.current.translate;const n=null!=t;if(t||h===y||(t={x:0,y:0}),!t||null===e)return void Ee();l.renderer.rendering.then(()=>{!function(e){var t,n,r,o;const{animation:i}=e;if("function"==typeof i){const t=i({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=lL,easing:s=cL}=null!=i?i:{};iq(e.feedbackElement);const[,l]=null!=(t=lT(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const c=null!=(n=e.placeholder)?n:e.element,u={frameTransform:ZO(e.feedbackElement,c)?null:void 0},d=new Lq(e.feedbackElement,u),p=null!=(r=xq(hq(e.feedbackElement).translate))?r:e.translate,f=new Lq(c,u),h=kP.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},WO),e.feedbackElement.setAttribute(VO,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),Pq({element:e.feedbackElement,keyframes:nO(tO(tO({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:IT(pT(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(VO),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({source:p,element:h,feedbackElement:y,placeholder:X,translate:t,moved:n,transition:T,alignment:p.alignment,styles:D,animation:null!=e?e:void 0,getElementMutationObserver:()=>fe,cleanup:Ee,restoreFocus:Ce})})}});return()=>{Ee(),Ae()}},dO(rL,4,"overlay",tL,uL,oL),cO(rL,uL),uL.configure=fD(uL);var dL,pL,fL,hL,mL,gL,bL,vL=uL,yL=!0;fL=[eP],hL=wq.Forward,dL=[eP],pL=wq.Reverse;var xL=class{constructor(){mO(this,gL,uO(mL,8,this,yL)),uO(mL,11,this),mO(this,bL,uO(mL,12,this,yL)),uO(mL,15,this)}isLocked(e){return e!==wq.Idle&&(null==e?this[wq.Forward]===yL&&this[wq.Reverse]===yL:this[e]===yL)}unlock(e){e!==wq.Idle&&(this[e]=false)}};mL=iO(null),gL=new WeakMap,bL=new WeakMap,dO(mL,4,hL,fL,xL,gL),dO(mL,4,pL,dL,xL,bL),cO(mL,xL);var SL,wL,CL,EL,RL,IL,AL=[wq.Forward,wq.Reverse],kL=class{constructor(){this.x=new xL,this.y=new xL}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},PL=class extends mD{constructor(e){super(e);const t=ZA(new kL);let n=null;this.signal=t,lk(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new kL);const{delta:o}=e.dragOperation.position;if(n){const e={x:DL(o.x,n.x),y:DL(o.y,n.y)},r=t.peek();FA(()=>{for(const t of jP)for(const n of AL)e[t]===n&&r[t].unlock(n);t.value=r})}n=o})}get current(){return this.signal.peek()}};function DL(e,t){return Math.sign(e-t)}var ML=class extends(wL=bD,SL=[eP],wL){constructor(e){super(e),mO(this,EL,uO(CL,8,this,!1)),uO(CL,11,this),mO(this,RL),mO(this,IL,()=>{if(!hO(this,RL))return;const{element:e,by:t}=hO(this,RL);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{var n;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return gO(this,RL,void 0),!1;const{position:o}=this.manager.dragOperation,i=null==o?void 0:o.current;if(i){const{by:o}=null!=e?e:{},a=o?{x:TL(o.x),y:TL(o.y)}:void 0,s=a?void 0:this.scrollIntentTracker.current;if(null==s?void 0:s.isLocked())return!1;for(const e of r){const r=lq(e,o);if(r.x||r.y){const{speed:r,direction:l}=Rq(e,i,a,null==t?void 0:t.acceleration,null==t?void 0:t.threshold);if(s)for(const e of jP)s[e].isLocked(l[e])&&(r[e]=0,l[e]=0);if(l.x||l.y){const{x:t,y:i}=null!=o?o:l,a=t*r.x,s=i*r.y;if(a||s){const t=null==(n=hO(this,RL))?void 0:n.by;if(this.autoScrolling&&t){if(t.x&&!a||t.y&&!s)continue}return gO(this,RL,{element:e,by:{x:a,y:s}}),uq.schedule(hO(this,IL)),!0}}}}}return gO(this,RL,void 0),!1};let t=null,n=null;const r=Zk(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const o=PT(RT(null==r?void 0:r.element),n.current);return o&&(t=o),null!=o?o:t}),o=Zk(()=>{const t=r.value,{documentElement:o}=gT(t);if(!t||t===o){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=bq(r,{excludeElement:!1});return n=e,e}}if(t){const e=bq(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},Qk);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new PL(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&zq(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function TL(e){return e>0?wq.Forward:e<0?wq.Reverse:wq.Idle}CL=iO(wL),EL=new WeakMap,RL=new WeakMap,IL=new WeakMap,dO(CL,4,"autoScrolling",SL,ML,EL),cO(CL,ML);var qL=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),OL=class extends mD{constructor(e,t){super(e,t);const n=e.registry.plugins.get(ML);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=lk(()=>{var t,r,o;if(this.disabled)return;const{position:i,status:a}=e.dragOperation;if(a.dragging){const e={acceleration:null==(t=this.options)?void 0:t.acceleration,threshold:"number"==typeof(null==(r=this.options)?void 0:r.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(o=this.options)?void 0:o.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;const t=setInterval(()=>qL.schedule(()=>n.scroll(void 0,e)),10);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};OL.configure=fD(OL);var LL,NL=OL,jL={capture:!0,passive:!0},_L=class extends bD{constructor(e){super(e),mO(this,LL),this.handleScroll=()=>{null==hO(this,LL)&&gO(this,LL,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),gO(this,LL,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=lk(()=>{var e,n,r;if(t.status.dragging){const o=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return o.addEventListener("scroll",this.handleScroll,jL),()=>{o.removeEventListener("scroll",this.handleScroll,jL)}}})}};LL=new WeakMap;function zL(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var FL,$L=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),HL=class extends AM{constructor(e,t){super(e),this.manager=e,this.options=t,mO(this,FL,[]),this.listeners=new MT,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!_q(e.target))return;if(t.disabled)return;const{keyboardCodes:r=$L.keyboardCodes,preventActivation:o=$L.preventActivation}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=lk(()=>{var n;const r=null!=(n=e.handle)?n:e.element,o=n=>{zq(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),Iq(r);const{center:o}=new Lq(r);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=gT(r),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];hO(this,FL).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=$L.keyboardCodes}=null!=n?n:{};if(WL(e,[...r.end,...r.cancel])){e.preventDefault();const t=WL(e,r.cancel);return void this.handleEnd(e,t)}WL(e,r.up)?this.handleMove("up",e):WL(e,r.down)&&this.handleMove("down",e),WL(e,r.left)?this.handleMove("left",e):WL(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:$L.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(NL);!1===(null==e?void 0:e.disabled)&&(e.disable(),hO(this,FL).push(()=>{e.enable()}))}cleanup(){hO(this,FL).forEach(e=>e()),gO(this,FL,[])}destroy(){this.cleanup(),this.listeners.clear()}};FL=new WeakMap,HL.configure=fD(HL),HL.defaults=$L;var BL,VL=HL;function WL(e,t){return t.includes(e.code)}var UL,GL;BL=new WeakMap;UL=new WeakMap,GL=new WeakMap;var KL=class{};KL.Delay=class extends PM{constructor(){super(...arguments),mO(this,UL),mO(this,GL)}onEvent(e){switch(e.type){case"pointerdown":gO(this,GL,yT(e)),gO(this,UL,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!hO(this,GL))return;const{x:t,y:n}=yT(e);MP({x:t-hO(this,GL).x,y:n-hO(this,GL).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){hO(this,UL)&&(clearTimeout(hO(this,UL)),gO(this,GL,void 0),gO(this,UL,void 0))}},KL.Distance=class extends PM{constructor(){super(...arguments),mO(this,BL)}onEvent(e){switch(e.type){case"pointerdown":gO(this,BL,yT(e));break;case"pointermove":if(!hO(this,BL))return;const{x:t,y:n}=yT(e),r={x:t-hO(this,BL).x,y:n-hO(this,BL).y},{tolerance:o}=this.options;if(o&&MP(r,o))return void this.abort();MP(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){gO(this,BL,void 0)}};var YL,XL=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:o}=e;if("mouse"!==r||!_q(o)||t.handle!==o&&!(null==(n=t.handle)?void 0:n.contains(o)))return"touch"===r?[new KL.Delay({value:250,tolerance:5})]:function(e){if(!_q(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(o)&&!e.defaultPrevented?[new KL.Delay({value:200,tolerance:0})]:[new KL.Delay({value:200,tolerance:10}),new KL.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;return r!==t.element&&(r!==t.handle&&(!!_q(r)&&(!(null==(n=t.handle)?void 0:n.contains(r))&&Boolean(r.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),JL=class extends AM{constructor(e,t){super(e),this.manager=e,this.options=t,mO(this,YL,new Set),this.listeners=new MT,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){const{activationConstraints:r=XL.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=lk(()=>{var n;const r=new AbortController,{signal:o}=r,i=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=pT(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(nN(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!_q(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=XL.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:o}=e,i=hT(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=vq(t.element),{x:s,y:l}=yT(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const c=this.activationConstraints(e,t,n);e.sensor=this;const u=new kM(c,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;const d=ST(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:QL,options:{capture:!0}}]);hO(this,YL).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=yT(e),r=vq(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,uq.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=gT(t.target).body;try{o.setPointerCapture(t.pointerId)}catch(e){return void this.handleCancel(t)}const i=_q(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:QL,options:{passive:!1}},{type:"click",listener:QL},{type:"contextmenu",listener:QL},{type:"keydown",listener:this.handleKeyDown}]);hO(this,YL).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){const{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},hO(this,YL).forEach(e=>e()),hO(this,YL).clear()}destroy(){this.cleanup(),this.listeners.clear()}};YL=new WeakMap,JL.configure=fD(JL),JL.defaults=XL;var ZL=JL;function QL(e){e.preventDefault()}function eN(){}var tN=new WeakSet;function nN(e){e&&!tN.has(e)&&(e.addEventListener("touchmove",eN,{capture:!1,passive:!1}),tN.add(e))}var rN,oN,iN,aN,sN,lN,cN,uN,dN,pN,fN,hN,mN,gN,bN,vN,yN={modifiers:[],plugins:[IO,NL,class extends mD{constructor(e,t){super(e,t),this.manager=e;const{cursor:n="grabbing"}=null!=t?t:{},r=e.registry.plugins.get(HO),o=null==r?void 0:r.register(`* { cursor: ${n} !important; }`);if(o){const e=this.destroy.bind(this);this.destroy=()=>{o(),e()}}}},vL,class extends mD{constructor(e){super(e),this.manager=e;const t=e.registry.plugins.get(HO),n=null==t?void 0:t.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=lk(()=>{const{dragOperation:e}=this.manager;if(e.status.initialized)return zL(),document.addEventListener("selectionchange",zL,{capture:!0}),()=>{document.removeEventListener("selectionchange",zL,{capture:!0})}}),n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}}}],sensors:[ZL,VL]},xN=class extends eT{constructor(e={}){const t=QM(e.plugins,yN.plugins),n=QM(e.sensors,yN.sensors),r=QM(e.modifiers,yN.modifiers);super(nO(tO({},e),{plugins:[_L,ML,HO,...t],sensors:n,modifiers:r}))}},SN=class extends(iN=sM,oN=[eP],rN=[eP],iN){constructor(e,t){var n=e,{element:r,effects:o=()=>[],handle:i}=n,a=oO(n,["element","effects","handle"]);super(tO({effects:()=>[...o(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(hD))?t:[...n.sensors]).map(e=>{const t=e instanceof AM?e:n.registry.register(e.plugin),r=e instanceof AM?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},a),t),mO(this,sN,uO(aN,8,this)),uO(aN,11,this),mO(this,lN,uO(aN,12,this)),uO(aN,15,this),this.element=r,this.handle=i}};aN=iO(iN),sN=new WeakMap,lN=new WeakMap,dO(aN,4,"handle",oN,SN,sN),dO(aN,4,"element",rN,SN,lN),cO(aN,SN);var wN=class extends(dN=lM,uN=[eP],cN=[eP],dN){constructor(e,t){var n=e,{element:r,effects:o=()=>[]}=n,i=oO(n,["element","effects"]);const{collisionDetector:a=Hq}=i,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new Lq(n),o=HA(()=>this.shape);return r&&(null==o?void 0:o.equals(r))?o:(this.shape=r,r)},l=ZA(!1);super(nO(tO({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new rq(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),mO(this,bN),mO(this,fN,uO(pN,8,this)),uO(pN,11,this),mO(this,vN,uO(pN,12,this)),uO(pN,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){gO(this,bN,e,gN)}get element(){var e;return null!=(e=this.proxy)?e:hO(this,bN,mN)}};function CN(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}pN=iO(dN),fN=new WeakMap,bN=new WeakSet,vN=new WeakMap,hN=dO(pN,20,"#element",uN,bN,fN),mN=hN.get,gN=hN.set,dO(pN,4,"proxy",cN,wN,vN),cO(pN,wN);var EN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?j:q;function RN(){const e=P(0)[1];return L(()=>{e(e=>e+1)},[e])}function IN(e,t=[],n=!1){const r=D(e);return r.current=e,function(e,t=!1){const n=D(e.peek()),r=D(!1),o=RN();return EN(()=>lk(()=>{const i=n.current,a=e.value;if(i!==a){if(n.current=a,!r.current)return;t?U(o):o()}}),[e,t,o]),{get value(){return r.current=!0,e.peek()}}}(k(()=>Zk(()=>r.current()),t),n)}function AN(e,t){const n=D(new Map),r=RN();return EN(()=>{if(e)return lk(()=>{var o;let i=!1,a=!1;for(const r of n.current){const[s]=r,l=HA(()=>r[1]),c=e[s];l!==c&&(i=!0,n.current.set(s,c),a=null!=(o=null==t?void 0:t(s,l,c))&&o)}i&&(a?queueMicrotask(()=>U(r)):r())});n.current.clear()},[e]),k(()=>e?new Proxy(e,{get(e,t){const r=e[t];return n.current.set(t,r),r}}):e,[e])}function kN(e,t){e()}function PN(e){const t=D(e);return EN(()=>{t.current=e},[e]),t}function DN(e,t,n=q,r=Object.is){const o=D(e);n(()=>{const n=o.current;r(e,n)||(o.current=e,t(e,n))},[t,e])}function MN(e,t){const n=D(CN(e));EN(()=>{const r=CN(e);r!==n.current&&(n.current=r,t(r))})}var TN=Object.defineProperty,qN=Object.defineProperties,ON=Object.getOwnPropertyDescriptors,LN=Object.getOwnPropertySymbols,NN=Object.prototype.hasOwnProperty,jN=Object.prototype.propertyIsEnumerable,_N=(e,t,n)=>t in e?TN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zN=new xN,FN=M(zN),$N=z(F(({children:e},t)=>{const[n,r]=P(0),o=D(null),i=D(null),a=k(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),$(()=>{e(),r(e=>e+1)})}}),[]);return EN(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,n]),H(t,()=>a),null})),HN=[void 0,Qk];function BN(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,c=((e,t)=>{var n={};for(var r in e)NN.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&LN)for(var r of LN(e))t.indexOf(r)<0&&jN.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const u=D(null),{plugins:d,modifiers:p,sensors:f}=c,h=QM(d,yN.plugins),m=QM(f,yN.sensors),g=QM(p,yN.modifiers),b=PN(o),v=PN(i),y=PN(s),x=PN(a),S=PN(l),w=PN(r),C=function(e){const t=D(null);t.current||(t.current=e());return _(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new xN(c)});return q(()=>{if(!u.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=u.current,{monitor:n}=C;C.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=b.current;n&&t(()=>n(e,C))}),n.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),n.addEventListener("dragover",e=>{const n=y.current;n&&t(()=>n(e,C))}),n.addEventListener("dragmove",e=>{const n=x.current;n&&t(()=>n(e,C))}),n.addEventListener("dragend",e=>{const n=S.current;n&&t(()=>n(e,C))}),n.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>r.forEach(e=>e())},[C]),DN(h,()=>C&&(C.plugins=h),...HN),DN(m,()=>C&&(C.sensors=m),...HN),DN(g,()=>C&&(C.modifiers=g),...HN),sn.jsxs(FN.Provider,{value:C,children:[sn.jsx($N,{ref:u,children:n}),n]})}function VN(){return N(FN)}function WN(e){var t;const n=null!=(t=VN())?t:void 0,[r]=P(()=>e(n));return r.manager!==n&&(r.manager=n),EN(r.register,[n,r]),r}function UN({children:e,className:t,dropAnimation:n,style:r,tag:o,disabled:i}){var a;const s=D(null),l=VN(),c=null!=(a=IN(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,u="function"==typeof i?i(c):i;q(()=>{if(!s.current||!l||u)return;const e=l.plugins.find(e=>e instanceof vL);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,u]),q(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof vL);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[l,n]);const d=k(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?GN:e[t]});return new Proxy(l,{get:(t,n)=>"registry"===n?e:t[n]})},[l]);return sn.jsx(FN.Provider,{value:d,children:C(o||"div",{ref:s,className:t,style:r,"data-dnd-overlay":!0},function(){if(!c||u)return null;if("function"==typeof e)return sn.jsx(KN,{source:c,children:e});return e}())})}function GN(){return()=>{}}function KN({children:e,source:t}){return e(AN(t))}var YN,XN,JN,ZN,QN,ej=Object.create,tj=Object.defineProperty,nj=Object.getOwnPropertyDescriptor,rj=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),oj=e=>{throw TypeError(e)},ij=["class","method","getter","setter","accessor","field","value","get","set"],aj=e=>void 0!==e&&"function"!=typeof e?oj("Function expected"):e,sj=(e,t,n,r,o)=>({kind:ij[e],name:t,metadata:r,addInitializer:e=>n._?oj("Already initialized"):o.push(aj(e||null))}),lj=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=ij[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,nj(o,n)),h=r.length-1;h>=0;h--)(l=sj(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,aj(a)&&(f[d]=a);return f&&tj(o,n,f),o},cj=(e,t,n)=>t.has(e)||oj("Cannot "+n),uj=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},dj=class extends(JN=iP,XN=[tP],YN=[tP],JN){constructor(e){var t,n,r;super(uj.from(e),(e,t)=>uj.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(QN,5,this),t=this,r=0,(n=ZN).has(t)?oj("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return uj.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=uj.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(cj(a=this,s=ZN,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);FA(()=>{((e,t,n)=>{cj(e,t,"write to private field"),t.set(e,n)})(this,ZN,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(uj.from(e)),this.velocity={x:0,y:0}}};QN=(e=>{var t;return[,,,ej(null!=(t=null==e?void 0:e[rj("metadata")])?t:null)]})(JN),ZN=new WeakMap,lj(QN,2,"delta",XN,dj),lj(QN,2,"direction",YN,dj),((e,t)=>{((e,t,n)=>{t in e?tj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(t,rj("metadata"),e[3])})(QN,dj);var pj=(e=>(e.Horizontal="x",e.Vertical="y",e))(pj||{});Object.values(pj);var fj=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/uj.distance(t.shape.center,n),type:CM.PointerIntersection,priority:wM.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=uj.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:CM.ShapeIntersection,priority:wM.Normal}}return null})(e)};function hj(e){const{collisionDetector:t,data:n,disabled:r,element:o,id:i,accept:a,type:s}=e,l=WN(t=>new wN(((e,t)=>qN(e,ON(t)))(((e,t)=>{for(var n in t||(t={}))NN.call(t,n)&&_N(e,n,t[n]);if(LN)for(var n of LN(t))jN.call(t,n)&&_N(e,n,t[n]);return e})({},e),{register:!1,element:CN(o)}),t)),c=AN(l);return DN(i,()=>l.id=i),MN(o,e=>l.element=e),DN(a,()=>l.accept=a,void 0,Qk),DN(t,()=>l.collisionDetector=null!=t?t:fj),DN(n,()=>n&&(l.data=n)),DN(r,()=>l.disabled=!0===r),DN(s,()=>l.type=s),{droppable:c,get isDropTarget(){return c.isDropTarget},ref:L(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}function mj(e){const t=VN();q(()=>{if(!t)return;const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const o=n.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,r);e.push(i)}return e},[]);return()=>n.forEach(e=>null==e?void 0:e())},[t,e])}const gj=e=>Array.from({length:e},(e,t)=>t),bj=({id:e,sectionIndex:t,itemIndex:n})=>sn.jsx("span",{children:`${e}-${t}-${n}`}),vj=z(()=>{const e=cb(PA)??bj,{startSectionIndex:t,startIndex:n,id:r}=cb(qA)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:sn.jsx(UN,{dropAnimation:null,children:sn.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:sn.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),yj=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=cb(qA),o=r?.toSectionIndex===e&&r.toIndex===t;return sn.jsx("div",{"data-key":"drop-target-indicator","data-testid":"drop-target-indicator",style:{visibility:o&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},xj=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,Sj=z(({sectionIndex:e})=>{const t=cb(wA)[e],n=cb(CA),r=cb(EA),o=null!==cb(qA),i=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=hj({id:a,type:"section",accept:"item",collisionPriority:wM.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:sn.jsxs(Td,{ref:s,sx:{margin:"4px",outline:xj(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[sn.jsx(Td,{sx:{position:"relative",top:"4px"},children:sn.jsx(yj,{sectionIndex:e,itemIndex:0,isDragging:!1})}),sn.jsxs(Td,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[sn.jsx(Ku,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:i.title}),sn.jsx(Ku,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:i.message})]})]})}),wj=z(({id:e,sectionIndex:t})=>{const n=cb(kA);return void 0===n?null:C(n,{id:e,sectionIndex:t})});var Cj=Object.defineProperty,Ej=Object.defineProperties,Rj=Object.getOwnPropertyDescriptors,Ij=Object.getOwnPropertySymbols,Aj=Object.prototype.hasOwnProperty,kj=Object.prototype.propertyIsEnumerable,Pj=(e,t,n)=>t in e?Cj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dj=(e,t)=>{for(var n in t||(t={}))Aj.call(t,n)&&Pj(e,n,t[n]);if(Ij)for(var n of Ij(t))kj.call(t,n)&&Pj(e,n,t[n]);return e},Mj=(e,t)=>Ej(e,Rj(t)),Tj=class extends YM{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return Mj(Dj({},e),{[t]:n})}};Tj.configure=fD(Tj);var qj=Tj,Oj=qj.configure({axis:"x",value:0});qj.configure({axis:"y",value:0});var Lj=class extends YM{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,o="number"==typeof n?n:n.y;return Mj(Dj({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/o)*o})}};Lj.configure=fD(Lj);var Nj=Object.create,jj=Object.defineProperty,_j=Object.defineProperties,zj=Object.getOwnPropertyDescriptor,Fj=Object.getOwnPropertyDescriptors,$j=Object.getOwnPropertySymbols,Hj=Object.prototype.hasOwnProperty,Bj=Object.prototype.propertyIsEnumerable,Vj=e=>{throw TypeError(e)},Wj=(e,t,n)=>t in e?jj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uj=(e,t)=>{for(var n in t||(t={}))Hj.call(t,n)&&Wj(e,n,t[n]);if($j)for(var n of $j(t))Bj.call(t,n)&&Wj(e,n,t[n]);return e},Gj=(e,t)=>_j(e,Fj(t)),Kj=["class","method","getter","setter","accessor","field","value","get","set"],Yj=e=>void 0!==e&&"function"!=typeof e?Vj("Function expected"):e,Xj=(e,t,n,r,o)=>({kind:Kj[e],name:t,metadata:r,addInitializer:e=>n._?Vj("Already initialized"):o.push(Yj(e||null))}),Jj=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},Zj=(e,t,n,r,o,i)=>{for(var a,s,l,c,u,d=7&t,p=e.length+1,f=Kj[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,zj({get[n](){return e_(this,i)},set[n](e){return n_(this,i,e)}},n)),b=r.length-1;b>=0;b--)(c=Xj(d,n,l={},e[3],m)).static=false,c.private=false,u=c.access={has:e=>n in e},u.get=e=>e[n],u.set=(e,t)=>e[n]=t,s=(0,r[b])({get:g.get,set:g.set},c),l._=1,void 0===s?Yj(s)&&(g[f]=s):"object"!=typeof s||null===s?Vj("Object expected"):(Yj(a=s.get)&&(g.get=a),Yj(a=s.set)&&(g.set=a),Yj(a=s.init)&&h.unshift(a));return g&&jj(o,n,g),o},Qj=(e,t,n)=>t.has(e)||Vj("Cannot "+n),e_=(e,t,n)=>(Qj(e,t,"read from private field"),t.get(e)),t_=(e,t,n)=>t.has(e)?Vj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),n_=(e,t,n,r)=>(Qj(e,t,"write to private field"),t.set(e,n),n);function r_(e){return e instanceof O_||e instanceof q_}var o_=class extends mD{constructor(e){super(e);const t=lk(()=>{const{dragOperation:t}=e;if(zq(t.activatorEvent)&&r_(t.source)&&t.status.initialized){const t=e.registry.plugins.get(ML);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!zq(e.nativeEvent))return;if(!r_(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:c}=n,{center:u}=n.shape.current,d=[],p=[];FA(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==c?void 0:c.id)&&r_(e)||!e.element)continue;let n=e.shape;const r=new Lq(e.element,{getBoundingClientRect:e=>vT(e,void 0,.2)});r.height&&r.width&&(("down"==s&&u.y+10<r.center.y||"up"==s&&u.y-10>r.center.y||"left"==s&&u.x-10>r.center.x||"right"==s&&u.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,Bq);FA(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=n;if(!e||!r_(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,c=g!==a||b!==s,u=c?l:null==t?void 0:t.element;if(!u)return;Iq(u);const d=new Lq(u);if(!d)return;const p=kP.delta(d,kP.from(i.current.boundingRectangle),e.alignment);r.move({by:p}),c?r.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{n(),t()}}};var i_=Object.defineProperty,a_=Object.defineProperties,s_=Object.getOwnPropertyDescriptors,l_=Object.getOwnPropertySymbols,c_=Object.prototype.hasOwnProperty,u_=Object.prototype.propertyIsEnumerable,d_=(e,t,n)=>t in e?i_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p_=(e,t)=>{for(var n in t||(t={}))c_.call(t,n)&&d_(e,n,t[n]);if(l_)for(var n of l_(t))u_.call(t,n)&&d_(e,n,t[n]);return e},f_=(e,t)=>a_(e,s_(t));function h_(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function m_(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function g_(e,t){return function(e,t,n){var r,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const c=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>c(e,a.id)),o=e.findIndex(e=>c(e,s.id));if(-1===r||-1===o){if(m_(a)){const r=a.initialIndex,o=a.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const u=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of u)if(-1===f&&(f=t.findIndex(e=>c(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>c(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&m_(a)){const r=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==r||null==i||!(r in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===i)return f_(p_({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return f_(p_({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(r=m.shape)?void 0:r.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&m_(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return f_(p_({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return f_(p_({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return f_(p_({},e),{[d]:n(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return f_(p_({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,h_)}var b_="__default__";function v_(e,t,n,r){const o=r<t?"afterend":"beforebegin";n.insertAdjacentElement(o,e)}function y_(e,t){return e.index-t.index}function x_(e){return Array.from(e).sort(y_)}var S_,w_,C_,E_,R_,I_,A_,k_,P_=[o_,class extends mD{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof O_){const{sortable:e}=n,{group:r}=e;let o=t.get(r);o||(o=new Set,t.set(r,o)),o.add(e)}for(const[e,n]of t)t.set(e,new Set(x_(n)));return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:o,target:i}=r;if(!r_(o)||!r_(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),c=s?l:a.get(i.sortable.group);l&&c&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,u,d;const p=t();for(const[e,t]of a.entries()){const n=Array.from(t).entries();for(const[t,o]of n)if(o.index!==t||o.group!==e||!(null==(r=p.get(e))?void 0:r.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=x_(l),g=s?m:x_(c),b=null!=(u=o.sortable.group)?u:b_,v=null!=(d=i.sortable.group)?d:b_,y={[b]:m,[v]:g},x=g_(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);n.collisionObserver.disable(),v_(f,S,h,w),FA(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),n.actions.setDropTarget(o.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:o}=r;r_(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),r=e.get(o.sortable.initialGroup);r&&n.renderer.rendering.then(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).entries();for(const[n,r]of e)if(r.index!==n||r.group!==t)return}const t=x_(r),n=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&n&&(v_(n,i.index,a,o.index),FA(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],D_={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},M_=new class{constructor(){Yk(this,oP,new WeakMap)}get(e,t){var n;return e?null==(n=Kk(this,oP).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return Kk(this,oP).has(e)||Kk(this,oP).set(e,new Map),null==(r=Kk(this,oP).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=Kk(this,oP).get(e))?void 0:t.clear():void 0}};w_=[eP],S_=[eP];var T_=class{constructor(e,t){t_(this,E_,Jj(C_,8,this)),Jj(C_,11,this),t_(this,R_),t_(this,I_),t_(this,A_,Jj(C_,12,this)),Jj(C_,15,this),t_(this,k_),this.register=()=>(FA(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{FA(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{FA(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],group:o,index:i,sensors:a,type:s,transition:l=D_,plugins:c}=n,u=((e,t)=>{var n={};for(var r in e)Hj.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&$j)for(var r of $j(e))t.indexOf(r)<0&&Bj.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","group","index","sensors","type","transition","plugins"]);const d=QM(c,P_);this.droppable=new O_(u,t,this),this.draggable=new q_(Gj(Uj({},u),{plugins:d,effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&M_.clear(this.manager),(null==r?void 0:r.dragging)&&M_.set(this.manager,this.id,HA(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=e_(this,I_),o=e_(this,R_);e===r&&t===o||(n_(this,I_,e),n_(this,R_,t),this.animate())},()=>{var e,t;const{target:n}=this,{isDragSource:r}=this.draggable;"move"===(null!=(t=null==(e=this.draggable.pluginConfig(vL))?void 0:e.feedback)?t:"default")&&r&&(this.droppable.disabled=!n)},...r()],type:s,sensors:a}),t,this),n_(this,k_,u.element),this.manager=t,this.index=i,n_(this,I_,i),this.group=o,n_(this,R_,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=M_.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=M_.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){HA(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;for(const e of r.getAnimations())!("transitionProperty"in e)||"transform"!==e.transitionProperty&&"translate"!==e.transitionProperty&&"scale"!==e.transitionProperty||e.cancel();const o=this.refreshShape();if(!o)return;const i=n.boundingRectangle.left-o.boundingRectangle.left,a=n.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=hq(r),l=Dq(r,s,!1),c=Dq(r,s);if(i||a){const n=IT(pT(r))?Gj(Uj({},t),{duration:0}):t;Pq({element:r,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${c.x}px ${c.y}px ${c.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){FA(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){FA(()=>{const t=e_(this,k_),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),n_(this,k_,e)})}get element(){var e,t;const n=e_(this,k_);if(n)return null!=(t=null!=(e=DT.get(n))?e:n)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set plugins(e){this.draggable.plugins=QM(e,P_)}set disabled(e){FA(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){FA(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:Hq}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){FA(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};C_=[,,,Nj(null)],E_=new WeakMap,R_=new WeakMap,I_=new WeakMap,A_=new WeakMap,k_=new WeakMap,Zj(C_,4,"index",w_,T_,E_),Zj(C_,4,"group",S_,T_,A_),((e,t)=>{return Wj(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(C_,T_);var q_=class extends SN{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},O_=class extends wN{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},L_=Object.defineProperty,N_=Object.defineProperties,j_=Object.getOwnPropertyDescriptors,__=Object.getOwnPropertySymbols,z_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable,$_=(e,t,n)=>t in e?L_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H_=(e,t)=>{for(var n in t||(t={}))z_.call(t,n)&&$_(e,n,t[n]);if(__)for(var n of __(t))F_.call(t,n)&&$_(e,n,t[n]);return e};function B_(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:o,data:i,element:a,handle:s,index:l,group:c,disabled:u,modifiers:d,sensors:p,target:f,type:h,plugins:m}=e,g=H_(H_({},D_),e.transition),b=WN(t=>new T_(((e,t)=>N_(e,j_(t)))(H_({},e),{transition:g,register:!1,handle:CN(s),element:CN(a),target:CN(f)}),t)),v=AN(b,V_);return DN(o,()=>b.id=o),EN(()=>{FA(()=>{b.group=c,b.index=l})},[b,c,l]),DN(h,()=>b.type=h),DN(t,()=>b.accept=t,void 0,Qk),DN(i,()=>i&&(b.data=i)),DN(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},kN),MN(s,e=>b.handle=e),MN(a,e=>b.element=e),MN(f,e=>b.target=e),DN(u,()=>b.disabled=!0===u),DN(p,()=>b.sensors=p),DN(n,()=>b.collisionDetector=n),DN(r,()=>b.collisionPriority=r),DN(m,()=>b.plugins=m,void 0,Qk),DN(g,()=>b.transition=g,void 0,Qk),DN(d,()=>b.modifiers=d,void 0,Qk),DN(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:L(e=>{b.handle=null!=e?e:void 0},[b]),ref:L(e=>{var t,n;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:L(e=>{var t,n;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:L(e=>{var t,n;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function V_(e,t,n){return!("isDragSource"!==e||n||!t)}const W_=({id:e,itemIndex:t,sectionIndex:n})=>sn.jsx("div",{children:`${n}:${t} - ${e}`}),U_=z(({id:e,itemIndex:t,sectionIndex:n})=>{const r=cb(DA),o=cb(AA),i=cb(wA).at(n)??0,a=cb(CA)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:c}=B_({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[Oj],plugins:[o_],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),u=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=o??W_;return sn.jsx(gf,{className:"section-item-container","data-testid":"section-item",onClick:u,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:sn.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[sn.jsx(yj,{isDragging:l,itemIndex:t,sectionIndex:n}),sn.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:c}),t===i-1&&sn.jsx(yj,{isDragging:!1,itemIndex:t+1,sectionIndex:n})]})})}),G_=z(({sectionIndex:e})=>{const t=cb(CA),n=cb(wA).at(e)??0,r=t({sectionIndex:e});return sn.jsxs(Td,{className:"exploration-list",style:{overflow:"auto"},children:[sn.jsx(Ip,{}),sn.jsx(wj,{id:r,sectionIndex:e}),sn.jsx(Ip,{}),sn.jsx(Sj,{sectionIndex:e}),sn.jsx(rf,{sx:{padding:"2px 8px"},children:gj(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return sn.jsx(U_,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),K_=[ZL.configure({activationConstraints:[new KL.Distance({value:5})]}),VL],Y_=z(()=>{const e=cb(SA),t=cb(CA),n=ub(OA("start")),r=ub(OA("over")),o=ub(OA("end"));return sn.jsxs(BN,{sensors:K_,onDragEnd:e=>{o(e)},onDragOver:e=>{r(e)},onDragStart:e=>{n(e)},children:[sn.jsx(Td,{style:{display:"flex",flexDirection:"column"},children:gj(e).map(e=>sn.jsx(G_,{sectionIndex:e},t({sectionIndex:e})))}),sn.jsx(vj,{})]})}),X_=z(e=>sn.jsx(aA,{atoms:LA,atomFamilies:NA,children:sn.jsx(jA,{props:e,children:sn.jsx(Y_,{})})})),J_=Jg(null,(e,t,{event:n,id:r,toIndex:o})=>{const i=e(dI),a=e(zI),s=e(LI),l=e(NI);if(void 0===i||null===a||void 0===s||void 0===l)return;if(n.operation.canceled)return;const c=l[o];if(!c)return;const u=((e,t,n)=>{const r=n.findIndex(t=>t===e),o=n.findIndex(e=>e===t);if(-1===r||-1===o||r===o)return n;const i=[...n],[a]=i.splice(r,1);return i.splice(o,0,a),i})(r,c,s);t(yI,Object.fromEntries(u.map((e,t)=>[e,t]))),a.add(async()=>{i.updateColumnOrders(u)})}),Z_="ChartExploration.Table.ColumnSectionEmpty.Title",Q_="ChartExploration.Table.NoColumnsFound.Title",ez="#177fe6",tz=Jg(e=>{const t=e(fI),n=e(hI).length>0,r=(e=>e?Q_:Z_)(n),o=(e=>e?"":"ChartExploration.Table.ColumnSectionEmpty.Message")(n);return()=>({title:t(r),message:""===o?"":t(o)})}),nz=({itemIndex:e})=>{const t=cb(OI(e));if(!t)return null;const n=t.title;return sn.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})},rz=Jg(e=>{const t=e(NI),n=e(UI),r=t.filter(e=>n.has(e)).length;return 0===t.length?"disabled":0===r?"none":r===t.length?"all":"some"}),oz=Jg(null,(e,t)=>{const n=e(NI),r=e(UI),o="all"!==e(rz)&&"disabled"!==e(rz),i=[],a=new Set(e(HI)),s=new Set(e(BI));if(o){const t=new Set(n.filter(e=>!r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!0,type:e(jI)[t]}))),i.forEach(e=>a.add(e.id)),i.forEach(e=>s.delete(e.id))}else{const t=new Set(n.filter(e=>r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!1,type:e(jI)[t]}))),i.forEach(e=>a.delete(e.id)),i.forEach(e=>s.add(e.id))}t(HI,a),t(BI,s),oI({items:i,handler:e(dI),model:e(uI),currentColumnIds:e(LI),handlerQueue:e(zI)})}),iz=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},az=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,sz=e=>{const{currentTarget:t}=e,n=az(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),o=e?.querySelector(".exploration-section-header");if(o)return o;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const o=r.getElementsByClassName(t);return o.length>0?o[o.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},lz=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===sg.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},cz=(e,t)=>{const{currentTarget:n}=e;n===t.ref.current&&((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel")?.getElementsByTagName("input")[0];r&&iz(r)})(e,t)},uz=(e,t)=>{const{key:n}=e;switch(n){case sg.Tab:Lm(e),e.shiftKey?cz(e,t):((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),o=r?.getElementsByClassName("exploration-item-focus")[0];o&&iz(o)})(e,t);break;case sg.Down:(e=>{e.preventDefault();const t=e.currentTarget.closest(".exploration-list"),n=t?.getElementsByClassName("exploration-item-focus")[0];n&&iz(n)})(e);break;case sg.Enter:case sg.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},dz=({children:e})=>sn.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),pz=({children:e})=>{const t=D(null),n=cb(rz),[,r]=db(oz),o=cb(fI),i={ref:t,toggleAllCheckboxes:r,checkState:n};return sn.jsxs(Td,{ref:t,"aria-label":o("Common.Columns"),className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{uz(e,i)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${ez} inset`}},children:[sn.jsx(op,{inputProps:{"aria-label":o("ChartExploration.Header.ToggleAll"),..."some"===n&&{"aria-checked":"mixed"}},disabled:"disabled"===n,checked:"all"===n,indeterminate:"some"===n,onChange:r,size:"small",style:{flexShrink:0,padding:9}}),sn.jsx(dz,{children:e})]})},fz=()=>{const e=cb(fI);return sn.jsx(pz,{children:e("Common.Columns")})},hz=F((e,t)=>sn.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:sn.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),mz=F((e,t)=>sn.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[sn.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),sn.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]})),gz=F((e,t)=>sn.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:sn.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),bz=$c("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),vz=$c(gz)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${ez} inset`}})),yz=e=>{const t=e.key===sg.Down?(e=>{const{currentTarget:t,key:n}=e,r=az(t),o=t.closest("li");let i=o?.nextElementSibling?.getElementsByClassName(r)[0];return i||(i=lz(t,n),i)?i:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):sz(e);t&&iz(t)},xz=(e,t)=>{const{key:n}=e;switch(n){case sg.Tab:if(e.shiftKey)Lm(e),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&iz(e))}const n=sz(e);n&&iz(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void iz(t);const r=sz(e);r&&iz(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return iz(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&iz(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&iz(n),!0}const o=lz(n,r);if(!o)return!1;iz(o)}return!0})(e,t);n?Lm(e):e.stopPropagation()}break;case sg.Enter:case sg.Space:Lm(e),((e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&iz(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void iz(e)}n===t.items.explorationItemFocusRef.current&&t.toggleItem()})(e,t);break;case sg.Down:case sg.Up:Lm(e),yz(e)}},Sz=({children:e})=>sn.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),wz={dimension:hz,measure:mz},Cz=({id:e,dragHandleRef:t,title:n,type:r})=>{const[o,i]=db(UI),a=cb(fI),s=D(null),l=D(null),c=D(null);q(()=>{t&&s.current&&t(s.current)},[t]);const u=wz[r],d=!o.has(e),p={id:e,itemIndex:itemIndex,toggleItem:()=>{i({id:e,isAlternative:d,type:r})},items:{explorationItemRef:s,explorationItemFocusRef:l,draggableIconRef:c}};return sn.jsxs(Td,{ref:s,className:"exploration-item",onClick:t=>{t.stopPropagation(),-1!==e&&i({id:e,isAlternative:d,type:r})},onKeyDown:e=>{xz(e,p)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:n,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${ez} inset`}},children:[sn.jsxs(Td,{ref:l,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{xz(e,p)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${ez} inset`}},children:[sn.jsx(op,{checked:o.has(e),"aria-label":a("ChartExploration.ListItem.Label",n),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0}}),sn.jsx(Td,{children:sn.jsx(u,{height:12,style:{opacity:1,marginRight:"8px"}})}),sn.jsx(Sz,{children:n})]}),sn.jsx(vz,{ref:c,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{xz(e,p)}})]})},Ez=({id:e,itemIndex:t,dragHandleRef:n})=>{const r=cb(OI(t));return r?sn.jsx(Cz,{id:e,dragHandleRef:n,title:r.title,type:r.type}):null},Rz=()=>{const e=cb(TI),t=cb(tz),n=cb(RI),r=cb(qI),o=ub(J_);return!n&&sn.jsx(X_,{numberOfSections:1,numberOfItemsInSection:[e],keyExtractor:r,emptyTexts:t,onDragEnd:o,dragOverlayRenderer:nz,headerRenderer:fz,itemRenderer:Ez})},Iz=F((e,t)=>sn.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:sn.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})})),Az=()=>{const[e,t]=db(hI),n=cb(fI),r=w.useRef(null),o=cb(TI),i=L(e=>{t(e.target.value)},[t]),a=0===e.length||0===o?n("Common.Search.NoResultsAvailable"):n("ChartExploration.Table.Search.ResultsFound",o.toString());return sn.jsxs(Td,{ref:r,style:{position:"sticky",top:0,zIndex:1,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:0,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[sn.jsx(bz,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:a}),sn.jsx(gh,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":n("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:n("Common.Search"),onChange:i,startAdornment:sn.jsx(Wp,{position:"start",children:sn.jsx(Iz,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},kz=e=>{const t=Rm();return sn.jsx(Bc,{theme:t,children:sn.jsx(rb,{children:sn.jsx(GI,{props:e,children:sn.jsxs(Td,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[sn.jsx(Az,{}),sn.jsx(Rz,{})]})})})})},Pz=e=>e.flags.isEnabled("VNA-655-STRAIGHT_TABLE_NEW_EXPLORATION")?{component:kz,classification:{tags:["exploration"],exclusive:!0}}:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};var Dz=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(Dz||{}),Mz=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(Mz||{}),Tz=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(Tz||{}),qz=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(qz||{});const Oz=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,Lz=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t,r=`[${e.field}]${e.exclude?"-":""}={`,o="}";switch(e.type){case Tz.SEARCH:t=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case Dz.BEGINNING_OF_WORD:t="*^",n="*";break;case Dz.ENDS_WITH:t="*";break;case Dz.STARTS_WITH:n="*";break;case Dz.MATCHES_EXACTLY:break;case Dz.CONTAINS:default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case Tz.CONDITION:t=(e=>{const{options:t}=e,n=t?.mode===Mz.GENERAL,r=t?.modifier?.type===qz.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";n&&r?(i=`${t.conditionField?.aggregator}(${Oz(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(i="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(i=`${t.conditionField?.aggregator}(${Oz(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${Oz(t.firstValue?.field)})`):(i=`${Oz(e.field)}`,a=`${t.firstValue?.aggregator}(total ${Oz(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let c="";if(o.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${Oz(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${Oz(t.secondValue?.field)})`,a=` and ${i}`),c=`${a}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case Tz.CLEAR_SELECTION:t=`[${e.field}]=`,r="",o="";break;case Tz.VALUES:default:t=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==t&&n.push(`${r}${t}${o}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},Nz=[];for(let e=0;e<256;++e)Nz.push((e+256).toString(16).slice(1));const jz=new Uint8Array(16);function _z(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const t=e.random??e.rng?.()??crypto.getRandomValues(jz);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(Nz[e[t+0]]+Nz[e[t+1]]+Nz[e[t+2]]+Nz[e[t+3]]+"-"+Nz[e[t+4]]+Nz[e[t+5]]+"-"+Nz[e[t+6]]+Nz[e[t+7]]+"-"+Nz[e[t+8]]+Nz[e[t+9]]+"-"+Nz[e[t+10]]+Nz[e[t+11]]+Nz[e[t+12]]+Nz[e[t+13]]+Nz[e[t+14]]+Nz[e[t+15]]).toLowerCase()}(t)}(e)}const zz=()=>crypto?.randomUUID?.()??_z(),Fz=({qDimensions:e,qMeasures:t})=>[...e.map(e=>({id:e.qDef.cId,isDimension:!0,def:e})),...t.map(e=>({id:e.qDef.cId,isDimension:!1,def:e}))],$z=({previousColumns:e,nextColumns:t,qInterColumnSortOrder:n})=>{const r=new Map(e.map((e,t)=>[t,e.qDef.cId])),o=new Map(t.map((e,t)=>[e.qDef.cId,t]));return n.map(e=>{const t=r.get(e);return(void 0===t?void 0:o.get(t))??e})};class Hz extends c{#c;constructor(e,t){super(e),this.#c=t}#u(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.keys(t).length;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:{...t,...Object.fromEntries(e.map((e,t)=>[e,n+t]))}}}#d(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:Object.fromEntries(n.map(([e],t)=>[e,t]))}}#p(e,t){const n=this.hcProperties.qLayoutExclude?.allColumnOrder??{},r={};for(const[o,i]of Object.entries(n))r[o===e?t:o]=i;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:r}}async addDimension(e,t=!1){const n=await this.addDimensions([e],t);return 0===n.length?void 0:n[0]}async addDimensions(e,t=!1){const n=await super.addDimensions(e,t);return this.#u(n.map(e=>e.qDef.cId)),n}async removeDimension(e,t=!1){const n=await this.removeDimensions([e],t);return 0===n.length?void 0:n[0]}async removeDimensions(e,t=!1){const n=await super.removeDimensions(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceDimension(e,t){const n=this.getDimensions()[e].qDef.cId,r=await super.replaceDimension(e,t),o=r.qDef.cId;return this.#p(n,o),r}async addMeasure(e,t=!1){const n=await this.addMeasures([e],t);return 0===n.length?void 0:n[0]}async addMeasures(e,t=!1){const n=await super.addMeasures(e,t);return this.#u(n.map(e=>e.qDef.cId)),n}async removeMeasure(e,t=!1){const n=await this.removeMeasures([e],t);return 0===n.length?void 0:n[0]}async removeMeasures(e,t=!1){const n=await super.removeMeasures(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceMeasure(e,t){const n=this.getMeasures()[e].qDef.cId,r=await super.replaceMeasure(e,t),o=r.qDef.cId;return this.#p(n,o),r}async#f(e){const t=this.getMeasure(e);if(t){const n=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#h(e){const t=this.getMeasure(e);if(t){const n=this.getMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#m(e){const t=this.getDimension(e);if(t){const n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#g(e){const t=this.getDimension(e);if(t){const n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!1),await super.addDimension(t,!0,this.getDimensions().length)}}async toggleAlternatives(e,t){for(const t of e)"dimension"===t.type?await(t.isAlternative?this.#m(t.id):this.#g(t.id)):await(t.isAlternative?this.#f(t.id):this.#h(t.id));this.updateColumnOrders(t)}updateColumnOrders(e){const t=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,nextAllColumnOrderById:r})=>{const o=Fz({qDimensions:e,qMeasures:t}),i=[...e,...t],a=new Map(r.map((e,t)=>[e,t])),s=o.toSorted((e,t)=>{const n=a.get(e.id),r=a.get(t.id);return void 0===n||void 0===r?0:n-r}),l=s.filter(e=>e.isDimension).map(e=>e.def),c=s.filter(e=>!e.isDimension).map(e=>e.def),u=[...l,...c],d=new Map(u.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:l,qMeasures:c,qInterColumnSortOrder:$z({previousColumns:i,nextColumns:u,qInterColumnSortOrder:n}),qColumnOrder:s.map(e=>d.get(e.id)).filter(e=>void 0!==e)}})({qDimensions:this.hcProperties.qDimensions,qMeasures:this.hcProperties.qMeasures,qInterColumnSortOrder:this.hcProperties.qInterColumnSortOrder,nextAllColumnOrderById:e});this.hcProperties.qDimensions=t.qDimensions,this.hcProperties.qMeasures=t.qMeasures,this.hcProperties.qColumnOrder=t.qColumnOrder,this.hcProperties.qInterColumnSortOrder=t.qInterColumnSortOrder,this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:e.reduce((e,t,n)=>(e[t]=n,e),{})}}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:zz(),qTags:Array.isArray(t)?t:[],isNumeric:n};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=Lz(o),i}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#b(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=Lz(t),t}removeFilters(e){if(0===e.length)return[];const t=[...e].sort((e,t)=>t-e),n=this.getFilters().filter((t,n)=>e.includes(n));for(const e of t)this.#b(e);return n}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#c.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const Bz=(e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;return e.splice(n,1),n};function Vz(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Wz(e){return e>0?0:1}function Uz(e){return e.translator.get("Visualizations.Descriptions.Column")}function Gz(e){return{measures:{min:Wz,max:1e3,description:()=>Uz(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;Vz(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties,i=(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r;Bz(o,i)}},dimensions:{min:Wz,max:1e3,description:()=>Uz(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return Vz(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(e?.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;Bz(o,r)}}}}const Kz=e=>{const t=new Hz({},e.translator),n=(t,n)=>{e.anything.logInfo?.(t,n)};return{properties(r){if(!("qHyperCubeDef"in r&&!!r.qHyperCubeDef))return r;const{qHyperCubeDef:o}=r,i=o.qLayoutExclude?.qHyperCubeDef,a=e.flags.isEnabled("qcb-35151-fix-duplicate-columns"),s=new Set,l=[];let c=0,u=0,d=0;[...o.qDimensions,...o.qMeasures,...i?.qDimensions??[],...i?.qMeasures??[]].forEach(e=>{c++;const t=e.qDef?.cId;if((e=>"string"==typeof e&&e.length>0)(t))if(s.has(t)){if(u++,a){const t=zz();e.qDef={...e.qDef,cId:t},l.push(t)}}else s.add(t),l.push(t);else if(d++,a){const t=zz();e.qDef={...e.qDef,cId:t},l.push(t)}});const p=u+d;if(0===p)return r;n("sn-table migrate: column cId issues detected",{issueCount:p,totalColumnCount:c,duplicateCount:u,missingCount:d});const f=r.components?.find(e=>"theme"===e.key);return e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")&&f?.nullValues&&!f.dimensionNullValues&&(f.dimensionNullValues={...f.nullValues}),a?(t.setProperties(r),t.updateColumnOrders(l),n("sn-table migrate: column cId cleanup completed",{replacementCount:p}),r):r}}};let Yz=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e.EditableDate="editableDate",e}({}),Xz=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const Jz=e=>{switch(e?.type){case"url":return Yz.Link;case"image":return Yz.Image;case"indicator":return Yz.Indicator;case"miniChart":return Yz.MiniChart;default:return Yz.Text}},Zz=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:o}=r.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),Qz=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>Jz(e.qDef.representation)===Yz.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;const l=i?.indexOf(e)??1/0;return(r?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},eF=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:Zz({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>Jz(e.qDef.representation)===Yz.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>Jz(e.qDef.representation)===Yz.Link&&e.qDef.representation?.urlPosition===Xz.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>Jz(e.qDef.representation)===Yz.Link&&e.qDef.representation?.urlPosition===Xz.Attribute},...Qz(n)}},tF=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,o=!r?.("tableImages")&&t[Yz.Image],i=!r?.("qMiniChartDef")&&t[Yz.MiniChart],a=!r?.("tableIndicators")&&t[Yz.Indicator],s=o&&t[Yz.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(n)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>Jz(e.qDef.representation)===Yz.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var nF,rF={};var oF=(nF||(nF=1,function(e){(()=>{var t={370:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};r.r(o),r.d(o,{default:()=>Pe});var i=r(370),a=r.n(i);const s=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var s=a[i];return a[i]=n,{updated:n,previous:s}}return delete a[i],!1},l=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},c={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),d="".concat(" ",")").concat(" ");function p(e){return u+e+d}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function h(e){return!(!e.fullAccumulation&&!e.fullRange)}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function g(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function b(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function y(e){return void 0===e?")":", 0, ".concat(e,")")}function x(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function S(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(x("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(x("MaxString(".concat(t,")")),")'\"}")}function w(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=S(f(r[0],o),b(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var u=f(r[0],o),d=f(r[1],o),p=b(0),h=b(1),m=S(u,p),g=S(d,h);return"".concat(a,"({1<").concat(m,",").concat(g,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function C(e){return"".concat(e,"(")}function E(e){var t=e.properties,n=e.layout;return l(t,"qHyperCubeDef.qDimensions",l(n,"qHyperCube.qDimensionInfo",[])).length}const R={isFullRange:h,getNumDimensions:E,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=p(g(t));if(!n.showExcludedValues)return a;var s=w({modifier:n,dimensions:r,dimensionAndFieldList:o}),l=i?"":", 0";if(r&&1===r.length){var c=b(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var u=b(0),d=b(1);return"If(Count(".concat(u,") * Count(").concat(d,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:m,getNumStepComp:function(e,t){if(!h(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return m(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:y,getAboveComp:function(e,t,n,r){return v(e,t)+n+y(r)},getFunctionPrefix:C,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return C(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:w,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===E({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=b(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:g,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(u);if(-1!==n){var r=t.indexOf(d);if(-1!==r)return t.substring(n+u.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])})},isNumeric:f,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var s=E({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:p,canExtract:function(e){var t=e.indexOf(u),n=e.indexOf(d);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:b,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=c.OPTIONS.find(function(t){return t.value===e.decomposition});return t?c.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(c.EXPRESSIONS).find(function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return c.EXPRESSIONS[n]&&r.includes(c.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}};function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var k=a().bind(null,!0),P={},D=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function T(e){return void 0===e}function q(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach(function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=T(e[n||t])?i:e[t],e=e[n||t]}}),e}function L(e,t){var n=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){L(e[r],t[r])||(n=!1)}),n);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!L(e[r],t[r]))return!1;return!0}return e===t}P.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?k({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);L(i,a)||q(t,o)||(T(a)?r.push({op:"add",path:s,value:i}):M(i)&&M(a)?r=r.concat(P.generate(a,i,s)):D(i)&&D(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&T(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(L(t,o))return r;if(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(P.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){T(t[o])&&!q(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})}),r},P.apply=function(e,t){t.forEach(function(t){var n,r,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return I(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!q(n,e)&&delete n[e]}),k(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var u=O(e,t.from);D(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])})},P.clone=function(e){return k({},e)},P.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):k(e,t)};const N=P;var j="accumulation";function _(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function z(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const $={translationKey:"properties.modifier.accumulation",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var c=l(r,"qHyperCubeDef.qDimensions",[]),u=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:a}),d=R.getNumStepComp(n,s),p=R.getAboveComp(n,s,u,d),f=R.getRangeComp("RangeSum",p);if(R.needDimension({modifier:n,properties:r,layout:o})){var h=R.getDimComp(c,1),m=R.getDimComp(c,0),g=R.getAggrComp(f,h,m);f=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(z(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(z(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(z(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=_(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=_(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=_(t,e);return i&&!i.disabled}}}};var H="movingAverage";function B(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===H)return n[r]}function V(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===H)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const U={translationKey:"properties.modifier.movingAverage",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var c=a;void 0===c&&(c=R.getNumDimensions({properties:o,layout:i}));var u=l(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=R.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:s,treatMissingAsNull:d}),f=R.getNumStepComp(r,c),h=R.getAboveComp(r,c,p,f);if(r.nullSuppression)t=R.getRangeComp("RangeAvg",h);else{var m=R.getRangeComp("RangeSum",h),g=function(e,t){var n=R.getRowNoComp(e,t);if(!R.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var b=t;if(R.needDimension({modifier:r,properties:o,layout:i})){var v=R.getDimComp(u,1),y=R.getDimComp(u,0),x=R.getAggrComp(b,v,y);b=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(V(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(V(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(V(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(V(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(V(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(V(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=B(t,e);return i&&!i.disabled}}}};var G="timeSeriesDecomposition";function K(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function Y(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const J={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?R.generateTSDExpression(n,t,r):t},extractInputExpression:R.extractInputExpression,initModifier:function(e,t){R.initModifier(e,X),""===e.decomposition&&t&&(e.decomposition=R.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:c.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=K(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var n=K(t,e);return n&&!n.fullRange}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=K(t,e);return i&&!i.disabled}}}};var Z="difference";function Q(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===Z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var ee={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const te={translationKey:"properties.modifier.difference",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var c=l(r,"qHyperCubeDef.qDimensions",[]),u=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:a}),d=R.getAboveComp(n,s,u),p="".concat(u," - ").concat(d);if(R.needDimension({modifier:n,properties:r,layout:o})){var f=R.getDimComp(c,1),h=R.getDimComp(c,0),m=R.getAggrComp(p,f,h);p=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(ee).forEach(function(t){void 0===e[t]&&(e[t]=ee[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=function(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===Z)return n[r]}(t,e);return i&&!i.disabled}}}};var ne="normalization";function re(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===ne)return n[r]}function oe(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===ne)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ae={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function se(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(R.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function ce(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(R.getDimDefWithWrapper(n),">"):""}const de={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var c=l(r,"qHyperCubeDef.qDimensions",[]),u=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:a}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a,s){var l=se(t),c=le(t,n,r),u=""===l&&""===c?"":l||c,d=ce(o,i),p=ue(o,i,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=R.getDimDefWithWrapper(n);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(u," ").concat(d).concat(p," Aggr(").concat(u," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(u," ").concat(d).concat(p," Aggr(").concat(u," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,p,s,n.primaryDimension,n.ignoreNegative)},initModifier:function(e){Object.keys(ae).forEach(function(t){void 0===e[t]&&(e[t]=ae[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(oe(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(re(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(oe(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(oe(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(oe(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(re(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(oe(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,n){return 0===(re(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(ne))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:se,getFieldSelectionComp:le,getTotalComp:ce,getSelectedDimComp:ue};var pe="library id deleted",fe="qDef.qDef",he="qDef.base.qDef",me="qLibraryId",ge="qDef.base.qLibraryId",be="qDef.qLabel",ve="qDef.qLabelExpression",ye="qDef.base.qLabel",xe="qDef.base.qLabelExpression",Se="qDef.qAggrFunc",we="qDef.base.qAggrFunc",Ce="qDef.base";const Ee={getExpression:function(e){var t=l(e,he);return void 0!==t?t:l(e,fe)},getExpressionRef:function(e){return void 0!==l(e,he)?he:fe},getLibraryIdRef:function(e){return l(e,ge)?ge:me},getLibraryId:function(e){return l(e,ge)||l(e,me)},getLabelRef:function(e){return l(e,Ce)?ye:be},getLabelExpressionRef:function(e){return l(e,Ce)?xe:ve}};var Re={initBase:function(e,t){(t||Re.isValid(e))&&(s(e,he,l(e,fe)),s(e,ge,l(e,me)),s(e,ye,l(e,be)),s(e,xe,l(e,ve)))},restoreBase:function(e){Re.isValid(e)&&(s(e,fe,l(e,he)),s(e,me,l(e,ge)),s(e,be,l(e,ye)),s(e,ve,l(e,xe)),l(e,Se)&&l(e,we)&&s(e,Se,l(e,we)),delete e.qDef.base)},isValid:function(e){var t=l(e,he),n=l(e,ge);return void 0!==t||void 0!==n}};const Ie=Re;function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}var ke={accumulation:$,movingAverage:U,difference:te,normalization:de,timeSeriesDecomposition:J};const Pe={modifiers:ke,apply:Me,applyModifiers:Te,cleanUpMeasure:qe,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:n,layout:r})})},measureBase:Ee,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=_e(e);We({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Xe({modifiers:t,properties:n,layout:r}))}),o&&!i},ifEnableTotalsFunction:Ne};var De={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,n=e.properties,r=e.isSnapshot,o=void 0!==r&&r,i=e.masterItem,s=!1;De[t.id]=De[t.id]||{isFirstTime:!0};var c=De[t.id].isFirstTime;if(De[t.id].isFirstTime=!1,n&&"object"===Ae(n))return Te({model:t,properties:n});var u=t?t.layout:void 0,d=l(u,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(s);var p=l(u,"qHyperCube.qMeasureInfo"),f=De[t.id].lastReloadTime;if(De[t.id].lastReloadTime=l(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:u})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return l(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ve({measure:e,properties:n,layout:r})})}({measures:t,layout:n})}({measures:p,layout:u,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some(function(e){return function(e){var t=e.measure,n=e.layout;return We({modifiers:_e(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:u,masterItem:i,isFirstTime:c})?t.getEffectiveProperties().then(function(e){var n=a()(!0,{},e);Fe(n);var r=Je(n);return Ue({model:t}).then(function(o){return Ge({libraryIds:r,model:t}).then(function(r){return h&&function(e){var t=e.properties;je(t).forEach(function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(n++,"object"!==Ae(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&He(t)&&R.simplifyExpression(t.qDef.base.qDef)!==R.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:n}),Te({model:t,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:i,libraryItemsProps:r,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(s)})}):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ae(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,n=e.properties,r=Je(n);return Ze({model:t,libraryIds:r}).then(function(){var e=a()(!0,{},n);return je(n).forEach(function(e){return qe(e)}),Ye({oldProperties:e,newProperties:n,model:t})})}({model:t,properties:e})}):Promise.resolve(s)}function Te(e){var t=e.model,n=e.oldProperties,r=e.properties,o=e.measures,i=e.runUpdateIfChange,s=void 0!==i&&i,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?a()(!0,{},r):r),Fe(r);var p=Je(r);return Ze({model:t,libraryIds:p,masterItem:c}).then(function(){return function(e){var t=e.measures,n=e.properties,r=e.model,o=e.libraryItemsProps,i=e.dimensionAndFieldList;if(t||(t=je(n)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:n}))return t.forEach(function(e){return qe(e)}),Promise.resolve();var s=o?void 0:Je(n);return Ue({model:r,dimensionAndFieldList:i}).then(function(e){return Ge({libraryIds:s,model:r,libraryItemsProps:o}).then(function(r){t.forEach(function(t){var o=t.qDef.modifiers;r&&We({modifiers:o,properties:n})?(function(e){var t=e.measure,n=e.properties,r=e.libraryItemsProps,o=e.dimensionAndFieldList,i=0;Ie.isValid(t)||Ie.initBase(t,!0);var s=t.qDef,c=s.modifiers,u=s.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(i++,"object"!==Ae(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(i>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,t);var s=t.qLibraryId||u&&u.qLibraryId;s?function(e){var t=e.measure,n=e.modifier,r=e.properties,o=e.dimensionAndFieldList,i=e.libraryItemsProps[e.libraryId],s=i.qMeasure.qDef,l=""===s?s:ke[n.type].generateExpression({expression:s,modifier:n,properties:r,dimensionAndFieldList:o});n.outputExpression=l,t.qDef.qDef=n.outputExpression,(t.qDef.qLabel||i.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||i.qMeasure.qLabel),(t.qDef.qLabelExpression||i.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=i.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&i.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||i.qMeasure.qNumFormat,t.qDef.isCustomFormatted=i.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=i.qMeasure.coloring,n.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:s,properties:n,libraryItemsProps:r,dimensionAndFieldList:o}):function(e){var t=e.measure,n=e.modifier,r=e.properties,o=e.dimensionAndFieldList;"function"==typeof ke[n.type].updateModifier&&ke[n.type].updateModifier(n,r.qHyperCubeDef);var i=Ee.getExpression(t),s=""===i?i:ke[n.type].generateExpression({expression:i,modifier:n,properties:r,dimensionAndFieldList:o});n.outputExpression=s,t.qDef.qDef=n.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||i,n.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:n,dimensionAndFieldList:o}),function(e){var t=l(e,"qDef.qAggrFunc");"Expr"!==t||Ne(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Ne(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:n,libraryItemsProps:r,dimensionAndFieldList:e}),$e(t)):qe(t)})})})}({measures:o,properties:r,model:t,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return s?Ye({oldProperties:n,newProperties:r,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function qe(e){!function(e){var t=_e(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&!ke[e.type]})}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function Oe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return We({modifiers:_e(e),properties:n,layout:r})})}function Le(e){var t=_e(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(ke[r.type]&&!r.disabled)return r}}function Ne(e){var t=Le(e);return!t||ke[t.type].enableTotalsFunction(e)}function je(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function _e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function ze(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Fe(e){je(e).forEach(function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&ze(t)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&t.base&&(e.qDef.base=a()(!0,{},t.base)))}(e)})}function $e(e){var t=_e(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ae(t)&&(t.disabled||!ke[t.type]&&ze(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function He(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Be(t)&&We({modifiers:_e(t),properties:n,layout:r})}function We(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ae(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:n,layout:r})),o[e.type])})}function Ue(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});r.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return r.push(a),Promise.all(r).then(function(){return o})}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=n.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ke(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(l(t,"qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(l(n,"qHyperCubeDef.qMeasures"),Ke)||JSON.stringify(l(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(l(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&l(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):function(e,t,n){if(!e)return Promise.resolve();var r=N.generate(t,n);return a()(!0,t,n),r&&r.length?(r=r.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(r,!0)):Promise.resolve()}(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return o}):Promise.resolve(o)}function Xe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:n,layout:r})})}function Je(e){var t=je(e),n=[],r=[],o=!1;return t.forEach(function(t){var r=_e(t);if(We({modifiers:r,properties:e})){var i=Be(t);i&&n.push(i),o=o||Xe({modifiers:r,properties:e})}}),l(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function Ze(e){var t=e.model,n=e.libraryIds,r=e.masterItem;return!r&&r!==pe&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=l(e,"qInfo.qType");return n&&a[n]&&a[n].forEach(function(n){t[n]=l(e,n)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(){Object.keys(r).forEach(function(e){o[e]||i[e]||(r[e].listener.dispose(),r[e].unbindCloseListnener(),delete r[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){r[e]={listener:t.layoutSubscribe(c),unbindCloseListnener:d(t,function(){return e=t.id,n(pe),delete r[e],void u();var e}),enabled:!1,properties:s(t.layout)}}).catch(function(){})}return{subscribe:function(e){var n=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:n,dimensionLibraryIds:a}),u(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!r[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!r[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose(),r[e].unbindCloseListnener()}),r={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),De[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}for(var Qe in e.default=o.default,o)-1===["default"].indexOf(Qe)&&(e[Qe]=o[Qe]);Object.defineProperty(e,"__esModule",{value:!0})})()}(rF)),rF),iF=en(oF);const aF="TOTAL_OFF",sF={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},lF={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},cF=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!iF.hasActiveModifiers({measures:[e],properties:t.properties})||iF.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),uF={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:ug.Auto,translation:"Common.Auto"},{value:ug.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:ug.Pixels,translation:"Object.Table.Column.Pixels"},{value:ug.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:ug.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===ug.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===ug.Percentage}},dF=e=>({...sF,...e.flags.isEnabled("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?{columnExpression:{type:"items",grouped:!0,items:[{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}]}]}}:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}},...lF,...uF}),pF=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},subTotalGroup:{type:"items",show:e.flags.isEnabled("TLV-2303-SUB-TOTALS")&&!e.anything.sense?.isUnsupportedFeature?.("totals"),items:[{uses:"divider"},{type:"string",component:"switch",translation:"properties.showSubTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:aF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:aF,translation:"properties.off"}},{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"Common.Label",defaultValue:()=>e.translator.get("properties.subTotals"),show:e=>e.qOtherTotalSpec?.qTotalMode!==aF},{uses:"divider"}]},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}}),fF=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:cF(e)}},hF=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:pF(e)},presentation:{type:"items",translation:"properties.presentation",items:{...dF(e),...eF(e)}}}}}),mF=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:fF(e)},presentation:{type:"items",translation:"properties.presentation",items:{...dF(e),...tF(e,{[Yz.Image]:!0,[Yz.Indicator]:!0,[Yz.MiniChart]:!0})}}}}}),gF=e=>({...hF(e),...mF(e)}),bF=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...gF(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),vF=e=>({type:"items",items:[{ref:e,type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]}),yF=e=>vF("dimensionNullValues"===e?"nullValueRepresentation.dimensionText":"nullValueRepresentation.text"),xF={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},SF=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),wF=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,o){const i=r?.(e,t,o)??!1,a=o.theme.current(),s=n(a,i);return{color:"transparent"===s?"none":s}}}),CF=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},EF=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>CF(e,!0))],l=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Ee(r).filter(e=>!a.includes(e)).map(e=>CF(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),RF=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],IF=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>CF(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...RF.filter(e=>!i.includes(e)).map(e=>CF(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),AF=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:EF({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:IF({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:wF(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:wF(`${e}.background`,"properties.background",(t,n)=>{const r=n?km.WHITE:km.TRANSPARENT;return o(t,e,"backgroundColor")??r},a)}}}}),kF=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r,isNullValueText:o,translation:i})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{nullValueText:o?yF(e):void 0,content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:wF(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:wF(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),PF=(e,t,n)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[n];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[n];case"subTotalValues":return e.object?.straightTableV2?.subTotal?.label?.value?.[n];case"nullValues":case"dimensionNullValues":return e.object?.straightTableV2?.null?.label?.value?.[n];default:return}},DF=e=>e.grid?.zebraStripes?.show,MF={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},TF=e=>e?.content?.hoverEffect,qF={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:TF,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:TF,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},OF=(e,t,{properties:n})=>"sn-table"===n.visualization&&!0===n.usePagination,LF=e=>e.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),NF=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:AF({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:PF,disableNoneCallback:OF}),dimensionValueSection:AF({section:"dimensionValues",translator:t,flags:e,getThemeValue:PF}),measureValueSection:AF({section:"measureValues",translator:t,flags:e,getThemeValue:PF}),totalRowSection:AF({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:PF,disableNoneCallback:OF}),subTotalRowSection:e.isEnabled("TLV-2303-SUB-TOTALS")?AF({section:"subTotalValues",defaultFontStyle:["bold"],translation:"properties.subTotals",translator:t,flags:e,getThemeValue:PF,disableNoneCallback:OF}):void 0,...LF(e)?{dimensionNullSection:kF({section:"dimensionNullValues",fallbackBackground:km.NULL_VALUE_BACKGROUND,getThemeValue:PF,isNullValueText:!0}),nullValues:kF({section:"nullValues",translation:"properties.pivot.measureNullValues",fallbackBackground:km.NULL_VALUE_BACKGROUND,getThemeValue:PF,isNullValueText:!0})}:{nullValues:kF({section:"nullValues",fallbackBackground:km.NULL_VALUE_BACKGROUND,getThemeValue:PF,isNullValueText:!1})},grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...MF},border:wF("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??km.BORDER_MEDIUM),divider:wF("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??km.BORDER_HEAVY)}}}},hoverEffectSection:qF,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:DF,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:DF,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:DF,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:DF,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),jF=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[NF(e),SF(e),{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1},e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")?void 0:yF()]},...xF}}),_F={uses:"sorting"},zF={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},FF=e=>({type:"items",component:"accordion",items:{data:bF(e),sorting:_F,addOns:zF,settings:jF(e)}});function $F(e){return{definition:FF(e),exploration:Pz(e),data:Gz(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,n,r,o){const i={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return Cv({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>bv({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:t=>new Hz(t,e.translator),usePropertyHandler:"sn-table-data"},migrate:Kz(e)}}const HF=e=>{const t=e.get(ev);return a(()=>()=>{t.unmount()},[t]),t};var BF,VF={exports:{}};
|
|
103
103
|
/*!
|
|
104
104
|
* CSSJanus. https://www.mediawiki.org/wiki/CSSJanus
|
|
105
105
|
*
|
|
@@ -118,4 +118,4 @@ function ia(e,t){let n;return n=t?Hi(e).withConfig({displayName:t.label,shouldFo
|
|
|
118
118
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
119
|
* See the License for the specific language governing permissions and
|
|
120
120
|
* limitations under the License.
|
|
121
|
-
*/var FF=(_F||(_F=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,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),I=new RegExp("("+c+v+"[^;}]+;?)","gi"),A=new RegExp("("+c+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),D=new RegExp(l+"(left)"+b+y+v,"gi"),M=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),q=new RegExp(l+"(right)"+x,"gi"),O=/(:dir\( *)ltr( *\))/g,L=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,n){var r,o;return"%"===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(I,"`NOFLIP_SINGLE`"),a=new r(A,"`NOFLIP_CLASS`"),s=new r(R,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(O,"$1`TMPLTR`$2").replace(L,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(n=n.replace(T,"$1"+e).replace(q,"$1left").replace(w,"right")),n=n.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(D,"$1"+e).replace(M,"$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(H,J).replace(B,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)}(zF,zF.exports)),zF.exports),$F=en(FF),HF="comm",BF="rule",VF="decl",WF=Math.abs,UF=String.fromCharCode;function GF(e){return e.trim()}function KF(e,t,n){return e.replace(t,n)}function YF(e,t){return 0|e.charCodeAt(t)}function XF(e,t,n){return e.slice(t,n)}function JF(e){return e.length}function ZF(e,t){return t.push(e),e}var QF=1,e$=1,t$=0,n$=0,r$=0,o$="";function i$(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:QF,column:e$,length:a,return:"",siblings:s}}function a$(){return r$=n$>0?YF(o$,--n$):0,e$--,10===r$&&(e$=1,QF--),r$}function s$(){return r$=n$<t$?YF(o$,n$++):0,e$++,10===r$&&(e$=1,QF++),r$}function l$(){return YF(o$,n$)}function c$(){return n$}function u$(e,t){return XF(o$,e,t)}function d$(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 p$(e){return GF(u$(n$-1,m$(91===e?e+2:40===e?e+1:e)))}function f$(e){for(;(r$=l$())&&r$<33;)s$();return d$(e)>2||d$(r$)>3?"":" "}function h$(e,t){for(;--t&&s$()&&!(r$<48||r$>102||r$>57&&r$<65||r$>70&&r$<97););return u$(e,c$()+(t<6&&32==l$()&&32==s$()))}function m$(e){for(;s$();)switch(r$){case e:return n$;case 34:case 39:34!==e&&39!==e&&m$(r$);break;case 40:41===e&&m$(e);break;case 92:s$()}return n$}function g$(e,t){for(;s$()&&e+r$!==57&&(e+r$!==84||47!==l$()););return"/*"+u$(t,n$-1)+"*"+UF(47===e?e:s$())}function b$(e){for(;!d$(l$());)s$();return u$(e,n$)}function v$(e){return function(e){return o$="",e}(y$("",null,null,null,[""],e=function(e){return QF=e$=1,t$=JF(o$=e),n$=0,[]}(e),0,[0],e))}function y$(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=s$()){case 40:108!=h&&58==YF(E,d-1)?(v++,E+="("):E+=p$(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=p$(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=UF(y);break}E+=f$(h);break;case 92:E+=h$(c$()-1,7);continue;case 47:switch(l$()){case 42:case 47:ZF(S$(g$(s$(),c$()),t,n,l),l),5!=d$(h||1)&&5!=d$(l$()||1)||!JF(E)||" "===XF(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=JF(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=UF(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=KF(E,/\f/g,"")),f>0&&(JF(E)-d||0===m)&&ZF(f>32?w$(E+";",r,n,d-1,l):w$(KF(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(ZF(C=x$(E,t,n,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)y$(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===YF(E,3))break;case 108:if(97===YF(E,2))break;default:u=0;case 100:case 109:case 115:}u?y$(e,C,C,r&&ZF(x$(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,r?S:w):y$(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+JF(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==a$())continue;switch(E+=UF(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(JF(E)-1)*b,b=1;break;case 64:45===l$()&&(E+=p$(s$())),p=l$(),u=d=JF(x=E+=b$(c$())),y++;break;case 45:45===h&&2==JF(E)&&(m=0)}}return i}function x$(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=XF(e,p+1,p=WF(g=a[m])),x=e;v<h;++v)(x=GF(g>0?f[v]+" "+y:KF(y,/&\f/g,f[v])))&&(l[b++]=x);return i$(e,t,n,0===o?BF:s,l,c,u,d)}function S$(e,t,n,r){return i$(e,t,n,HF,UF(r$),XF(e,2,-2),0,r)}function w$(e,t,n,r,o){return i$(e,t,n,VF,XF(e,0,r),XF(e,r+1,-1),r,o)}function C$(e,t,n){switch(e.type){case"@import":case VF:case HF:return e.return=e.return||e.value;case BF:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===HF&&(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),C$);return JF(r)?e.return=e.value+"{"+r+"}":""}function E$(e,t,n,r){if("@keyframes"===e.type||"@supports"===e.type||e.type===BF&&(!e.parent||"@media"===e.parent.type||e.parent.type===BF)){var o=$F.transform(C$(e));e.children=o?v$(o)[0].children:[],e.return=""}}Object.defineProperty(E$,"name",{value:"stylisRTLPlugin"});const R$=iI(({options:e,...t})=>Jg(Wm(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 I${#v={on:new Map,once:new Map};#y=10;#x(e){this.listenerCount(e)>this.#y&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#S(e,t,n){const r=this.#v[e].get(t)??new Set;r.add(n),this.#v[e].set(t,r),this.#x(t)}setMaxListeners(e){this.#y=e}on(e,t){this.#S("on",e,t)}once(e,t){this.#S("once",e,t)}off(e,t){this.#v.on.get(e)?.delete(t),this.#v.once.get(e)?.delete(t)}emit(e,...t){this.#v.on.get(e)?.forEach(e=>{e(...t)}),this.#v.once.get(e)?.forEach(e=>{e(...t)}),this.#v.once.delete(e)}listenerCount(e){return(this.#v.on.get(e)?.size??0)+(this.#v.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#v.on.clear(),this.#v.once.clear()):(this.#v.on.delete(e),this.#v.once.delete(e))}}const A$=Jg(()=>new I$);let k$=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),P$=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}({}),D$=function(e){return e.A="ascending",e.D="descending",e}({}),M$=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const T$=[0,0],q$=e=>"number"==typeof e&&!Number.isNaN(+e),O$=e=>q$(e.qNum),L$=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),N$=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),j$=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},_$=(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)},z$=(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:N$(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:j$(r,t,n)}))),r},F$=(e,t,n,r)=>{const o=z$(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=_$(e,a,t);break}r=i}return n})(o,t);return a},$$=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!q$(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||!q$(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)},H$=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=$$(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||!q$(t))return 0;let a=n&&q$(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}},B$=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=H$(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 j$(o,n.limitPaletteColorIndex,r);const a=N$(n.limitRange,t);return F$(o,a,n.limitRange,r)})(o,t,i,r),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let c=l?.position||"right";return"rtl"===n&&(c="right"===c?"left":"right"),{color:a,iconKey:s,position:c}},V$=(Rm().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)"),W$=4/3,U$="12px",G$="600",K$="Source Sans Pro, sans-serif",Y$={height:"auto",fontSize:U$,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"}},X$={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:G$},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},J$=(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,Z$=(e,t)=>e.representation.type===Vz.Image&&"fitHeight"===e.representation.imageSize?J$(t,e.representation):e.align,Q$=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",eH=(e,t,n)=>{if(!t&&"rtl"===n){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},tH=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,nH=(e,t,n)=>"rtl"===e||t&&!n?"0px":"1px",rH=(e,t,n)=>"rtl"===e?t&&!n?"0px":"1px":"0px",oH=24,iH=$c("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),aH=$c(Td,{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?Q$(e,r):void 0})),sH=$c(Td,{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},[`& .${rg}`]:{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"},[`& .${rg}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),lH=$c(Td,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),cH=$c(Td,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),uH=$c(Hu,{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})),dH=Jg(),pH=Jg(0),fH=Jg(0),hH=e=>parseInt(e??Y$.fontSize,10)*W$,mH=4/3,gH=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function bH(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const vH=(e,t)=>e?{borderBottomColor:km.DARK_MODE_BORDER,borderRightColor:km.DARK_MODE_BORDER,borderLeftColor:km.DARK_MODE_BORDER,borderTopColor:km.DARK_MODE_BORDER}:{borderLeftColor:km.BORDER_MEDIUM,borderRightColor:km.BORDER_MEDIUM,borderTopColor:km.BORDER_HEAVY,borderBottomColor:t?km.BORDER_HEAVY:km.BORDER_LIGHT},yH=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*mH+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},xH=e=>e.components?.find(e=>"theme"===e.key),SH=(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:gH(n?.fontColor)?bH(km.TEXT,t,n?.fontColor):i||km.TEXT,fontSize:n?.fontSize&&`${n.fontSize}px`||a,padding:n&&"padding"in n?n.padding:void 0,...vH(t.background.isDark,r)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function wH(e,t,n){const r=xH(e)?.header,o=SH("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=Mm(o.background??km.WHITE,dg),o.activeBackground=Mm(o.background??km.WHITE,pg),o}const CH=(e,t)=>{const n=e.toLowerCase().match(/<[^>]+>/g)??[];return n.forEach(e=>(e=>e in X$)(e)&&Object.assign(t,X$[e])),t};function EH(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&&qm(i);a&&(r[n[t]]=a),o=i?CH(i,o):o}),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}}const RH=25e4,IH=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,AH=5e6,kH=5e5;const PH={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:DH(e),value:DH(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function DH(e){try{return decodeURIComponent(e)}catch{return e}}function MH(e){if(!(this instanceof MH))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:()=>PH.fromSearchString(t.search)}})}function TH(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")}MH.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},MH.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=TH(t.key),t.value?n+=`=${TH(t.value)}`:n+=t.useEqualSign?"=":"";return n};var qH=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}},OH=class{decode(e){let t="";const n=new qH(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const LH=e=>e>=0&&e<=1114111,NH=e=>e.match(/[\s]/);var jH=class extends OH{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&&!NH(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return LH(a)?String.fromCharCode(a):"�"}},_H=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}},zH=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 _H.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return _H.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||_H.newInstanceIfNeeded(e,t,this._value)}},FH=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new zH);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const $H=(()=>{const e=[],t=[],n=new FH;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 HH=class extends OH{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,$H.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=$H.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)&&LH(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)&&LH(r)?String.fromCharCode(r):null}},BH=class extends OH{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),LH(i))?String.fromCharCode(i):(e.reset(),null)}};let VH;"undefined"!=typeof document&&(VH=document.createElement("div"));const WH=Array.prototype.indexOf,UH=[",",".","_"," "],GH=[",",".","-","_"," "],KH={width:["%"],height:["%"]},YH={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},XH={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":YH.image,"background-color":YH.color,"border-color":YH.color,"border-image":YH.image,color:YH.color,icon:YH.image,"list-style-image":YH.image,"outline-color":YH.color},JH={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function ZH(e,t,n){let r;if(t){if(WH)return WH.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 QH(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return VH.appendChild(n),t=VH.innerHTML,VH.removeChild(n),t}function eB(e,t,n){let r,o,i,a,s,l,c,u,d;for(e=nB(e).toLowerCase(),t=nB(t),i=0;i<JH.attr_name.length;i++)if(e.match(JH.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<JH.attr_val.length;i++)if(t.toLowerCase().match(JH.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=KH[e],r||(r=GH),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]/)&&ZH(c,r)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return n||(o+='"'),o}function tB(e,t,n){let r,o,i,a,s,l,c,u,d,p;if(e=nB(e).toLowerCase(),t=nB(t),ZH(e,JH.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<JH.css_val.length;r++)if(t.toLowerCase().indexOf(JH.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=XH[e],o||(o=YH.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]/)&&ZH(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function nB(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new HH,new BH,new jH];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 rB=[];for(let e=0;e<255;e++)rB[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const oB={html:e=>QH(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]=tB(t,n[t],!0),i+=tB(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]=eB(e,t[e],!0),o+=eB(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function iB(e,t){throw new Error(t)}var aB={canonicalize:nB,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?oB.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&iB(this,"Invalid parameter type"),oB.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&iB(this,"Invalid parameter type"),oB.attr(e)):void iB(this,"Invalid parameter type")},encodeForAttr:eB,encodeForAttr2:function(e){return eB("nonsens",e,!0)},encodeForCSS:tB,encodeForHref:function(e){nB(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new MH(e),n=MH.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+MH.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=UH),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),ZH(o,t)>=0||null==rB[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:QH,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=nB(t).toLowerCase():iB(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=kH,maxByteSizeImage:r=AH}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=IH.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 sB=(e,t)=>t.qAttrExps?.qValues?.[e],lB=(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"}}},cB=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!aB.isSafeDataURL(t))?{type:Vz.Text,url:void 0,text:e,labelStructure:o}:{type:Vz.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:lB(r,a),labelStructure:o,imageBox:i},uB=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:Vz.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:Vz.MiniChart,text:r,miniChart:a}},dB=(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===Wz.Attribute?void 0:n?.urlLabel},pB=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:Vz.Link,url:aB.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:Vz.Text,url:void 0,text:t,labelStructure:e}}},fB=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:c})=>{const u=Uz(t),d=s(e);return u===Vz.Image&&c[Vz.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=sB(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),cB({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 cB({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=sB(n.imageLabel??-1,e)?.qText??r;return cB({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:Vz.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,d,l,a):u===Vz.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===Wz.Attribute){const i=dB(n.url??-1,e,t);return pB({labelStructure:r,text:o||i||"",url:i})}if(i===Wz.Dimension){const i=dB(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),pB({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:Vz.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,d):u===Vz.Indicator&&c[Vz.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:Vz.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):u===Vz.MiniChart&&c[Vz.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?uB(e,t,i,d):{type:Vz.Text,url:void 0,text:d,labelStructure:a}},hB=Jg(e=>{const t=e($b),n=e(Eb);return e(Rb),{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}}),mB=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),gB=({cId:e})=>e??Oz(),bB=1e4;function vB(e,t){return[...t].reverse().find(t=>t*e<=bB)||Math.floor(bB/e)}function yB(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 xB(e,t,n,r){return t?0===n?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(r)?.qText??""}function SB(e,t){const n=e.qHyperCube.qGrandTotalRow.at(t);return q$(n?.qNum)}function wB(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 CB=(e,t,n,r)=>"auto"!==t?t:r||"rtl"!==n?e?"right":"left":e?"left":"right",EB=(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?Mm(s,dg):void 0,c=s?Mm(s,pg):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}};const RB=(e,t,n,r=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((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}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,n,r,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:c,visibleDimInfoIdx:u,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===fg.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==u){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=u,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:I,textAlign:A,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:D,qApprMaxGlyphCount:M,columnWidth:T,qLibraryId:q,headerColor:O}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:q,pageColIdx:c,qApprMaxGlyphCount:M,qReverseSort:D,columnWidth:T??{type:ug.Auto},selectionColIdx:S,isActivelySorted:g,id:gB(h),label:I??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:mB(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:xB(e,f,c,d??-1),...!f&&{isTotalNumeric:SB(e,d??-1)},...wB(A,b,f,n,r),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?EB(O,n):void 0}}(e,o,t,n,r))},IB=(e,t,n,r)=>e?(r?n.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":n.nullValueRepresentation?.text??t.qText??"-",AB=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,kB={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},PB=Jg(e=>{const t=e(DB),n=e(vb),r=e(hB),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>bB?{...t,rowsPerPage:vB(l,t.rowsPerPageOptions),page:0}:t}),DB=Jg(kB),MB=Jg(e=>{const t=e(vb),n=e($b),r=e(hB);return jb(t,n)?{page:r.page||kB.page,rowsPerPage:r.rowsPerPage||kB.rowsPerPage,rowsPerPageOptions:kB.rowsPerPageOptions}:e(PB)},(e,t,n)=>{t(DB,e=>({...e,...n}))}),TB=!0,qB=e=>-1===e.qElemNumber||!!e.qIsTotalCell,OB=Jg(async e=>{const t=e(vb),n=e($b),r=e(zb),{page:o,rowsPerPage:i}=e(MB),a=e(hB),s=e(Ub),l=e(mb),c=e(xb),u=e(gb),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=yB(t,n),v=RB(t,TB,r,u),y=l.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),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(qB);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&AB(c,a.isDim),p=u||d?IB(a.isDim,c,t,y):c.qText,f=u?L$(p):O$(c),g=O$(c)&&!L$(c.qText??"");o[s]={id:Oz(),...c,align:CB(f,a.bodyTextAlign,r,TB),rowIdx:n+h,colIdx:a.colIdx,pageRowIdx:n,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i,isTotalRow:i,isLastRow:n===m-1,isNumeric:f,isDual:g,isNull:(!u||!f)&&AB(c,a.isDim),representation:fB({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:r,enabledFeatures:{[Vz.Image]:!0,[Vz.Indicator]:!0,[Vz.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),LB=JR(OB,e=>e),NB=Jg(e=>{const t=e(vb),n=e($b),r=e(Mb),o=e(zb),i=e(gb),a=RB(t,false,o,i),s=yB(t,n),l=t.qHyperCube.qSize.qcy,c=Math.min(RH,l),u=l>RH&&!!r.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/c),paginationNeeded:u}}),jB={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},_B=Jg(),zB=Jg(e=>{const t=e(Bb),n=e(_B);return n||(t?e(LB)??jB:e(NB))}),FB=Jg(e=>e(zB).totalsPosition),$B=Jg(e=>e(zB).columns),HB=Jg(e=>e($B).length),BB=Jg(e=>e(zB).rows),VB=Jg(e=>e(zB).totalRowCount),WB=Jg(e=>e(zB).totalColumnCount),UB=Jg(e=>e(zB).paginationNeeded),GB=Jg(e=>{const t=e(Zb),n=e(tv),r=e(vb),o=e(FB),i=e(BB),a=o.atTop,s=function(e,t,n,r){const o=xH(e)?.content,i=SH("content",t,o);i.background=t.background.color;const a=yH(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=gH(l)||!!u,p=gH(s)||!!c,f=d||p;let h;h=gH(s)?bH(km.HOVER,t,s):c||(d?"":km.HOVER);const m=f?bH(Pm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(r,n,i.length,t),l=wH(r,n,!a),c=function(e,t,n){const r=xH(e)?.content,o=SH("content",t,r),{borderBottomColor:i,borderTopColor:a,background:s}=wH(e,t,n);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(r,n,a);return{body:s,head:l,totals:c}}),KB=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},YB=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=KB(e,t?.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},XB=(e,t,n,r=km.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=YB(e,t,n);return _m(i,o,a,r)??r},JB=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return U$}},ZB=e=>e?.some(e=>"italic"===e)?"italic":"normal",QB=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?G$:"normal",eV=e=>!1===e?1:3,tV=e=>e?.some(e=>"underline"===e)?"underline":"none",nV=Jg(e=>{const t=e($b),n=e(Bb),r=e(tv),o=e(vb),i=e(GB),a=e(gb),{header:s,dimensionValues:l,measureValues:c,totalValues:u,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=xH(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=n?km.WHITE:km.TRANSPARENT,v=XB(r,s,"object.straightTableV2.dimension.label.name.backgroundColor",b),y=t?.maxLineCount??m?.rowHeight??r.getStyle("object.straightTableV2","grid","lineClamp"),x=(g?f:void 0)??p;return{header:{fontFamily:s?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??K$,fontSize:JB(s?.fontSize??r.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:ZB(s?.fontStyle),fontWeight:QB(s?.fontStyle,G$),textDecoration:tV(s?.fontStyle),color:KB(r,s?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??km.TEXT,background:v},headerMenuHoverBackground:Mm(v,dg),headerMenuActiveBackground:Mm(v,pg),dimension:{values:{fontFamily:l?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??K$,fontSize:JB(l?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:ZB(l?.fontStyle),fontWeight:QB(l?.fontStyle,"normal"),textDecoration:tV(l?.fontStyle),color:KB(r,l?.fontColor)??KB(r,m?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??km.TEXT,background:YB(r,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??km.TRANSPARENT}},measure:{values:{fontFamily:c?.fontFamily??r.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??K$,fontSize:JB(c?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:ZB(c?.fontStyle),fontWeight:QB(c?.fontStyle,"normal"),textDecoration:tV(c?.fontStyle),color:KB(r,c?.fontColor)??KB(r,m?.fontColor)??r.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??km.TEXT,background:YB(r,c,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??km.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??r.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??K$,fontSize:JB(u?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:ZB(u?.fontStyle),fontWeight:QB(u?.fontStyle,G$),textDecoration:tV(u?.fontStyle),color:KB(r,u?.fontColor)??KB(r,m?.fontColor)??r.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??km.TEXT,background:XB(r,u,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??r.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??K$,fontSize:JB(d?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:ZB(d?.fontStyle),fontWeight:QB(d?.fontStyle,G$),textDecoration:tV(d?.fontStyle),color:KB(r,d?.fontColor)??KB(r,m?.fontColor)??r.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??km.TEXT,background:XB(r,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:ZB(x?.fontStyle),fontWeight:QB(x?.fontStyle,"normal"),textDecoration:tV(x?.fontStyle),color:KB(r,x?.fontColor)??KB(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??km.TEXT,background:KB(r,x?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??km.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:ZB(p?.fontStyle),fontWeight:QB(p?.fontStyle,"normal"),textDecoration:tV(p?.fontStyle),color:KB(r,p?.fontColor)??KB(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??km.TEXT,background:KB(r,p?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??km.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??eV(o.multiline?.wrapTextInCells),headerLineClamp:eV(o.multiline?.wrapTextInHeaders),border:KB(r,h?.border)??r.getStyle("object.straightTableV2","grid","borderColor")??(r.background.isDark?km.DARK_MODE_BORDER:km.BORDER_MEDIUM),divider:KB(r,h?.divider)??r.getStyle("object.straightTableV2.grid","","divider.borderColor")??km.BORDER_HEAVY,hoverColors:{color:KB(r,m?.hoverFontColor)??r.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:KB(r,m?.hoverColor)??r.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:KB(r,h?.zebraStripes?.color?.odd),background:KB(r,h?.zebraStripes?.background?.odd)},even:{color:KB(r,h?.zebraStripes?.color?.even),background:KB(r,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===KB(r,x?.background),overrideDimNullValueColor:void 0===KB(r,x?.fontColor),overrideMeasNullValueBackground:void 0===KB(r,p?.background),overrideMeasNullValueColor:void 0===KB(r,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:Dm(r),contentStaticLineCount:y}}),rV=Jg(e=>{const t=e(nV);return Math.max(hH(t.header.fontSize)+8,32)}),oV=Jg(e=>{const t=e(nV),n=hH(t.totalRow.fontSize);return Math.max(n+9,24)}),iV=Jg(e=>{const t=e(nV),n=e(Sb),r=e(wb);return Math.max(n>0?hH(t.dimension.values.fontSize):0,r>0?hH(t.measure.values.fontSize):0)}),aV=Jg(e=>{const t=e(nV),n=e(iV),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),sV=Jg(e=>{const t=e(nV),n=hH(t.subTotalRow.fontSize),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),lV=(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(cg.PixelsMax,Math.max(cg.PixelsMin,f)),i-=r[a]};switch(s){case ug.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?cg.PixelsDefault:+e)(l),h();break;case ug.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?cg.PercentageDefault:+e)(c)/100*t,h();break;case ug.FitToContent:e.representation?.type===Vz.Image?o.push(a):(f=n(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case ug.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(cg.AutoMinTable,e)})}return r},cV=Jg(e=>{const t=e(nV),n=e(zB).totalsPosition,r=e(Ib),{measureText:o}=e(R$({...t.header,fontWeight:G$})),{measureText:i}=e(R$({...t.totalRow,fontWeight:G$})),{estimateWidth:a}=e(R$(t.dimension.values)),{estimateWidth:s}=e(R$(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+=oH),t+=oH,t+=oH,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(n))}}),uV=Jg(null),dV=Jg(e=>{const t=e(zB),n=e(Jb).width,r=e(fH),o=e(cV);return lV(t.columns,n-r,o)}),pV=Jg(e=>e(uV)??e(dV),(e,t,n)=>{t(uV,n)}),fV=nI(e=>{const t=e(A$);!1===e(dH)&&t.emit("done-adjusting-column-width")}),hV=nI((e,t)=>{e(vb),t(uV,null)}),mV=Jg(e=>e(pV).reduce((e,t)=>e+t,0)),gV=({children:e})=>(cb(hV),cb(fV),e);function bV(e){const t=Rm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Sc({...t,direction:e})}const vV={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},yV={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},xV=$c("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":{...vV},"&::-moz-range-track":{...vV},"&::-ms-track":{...vV},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...yV},"&::-moz-range-thumb":{...yV},"&::-ms-thumb":{...yV},"&: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"}})),SV=({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=eg({translator:u.translator}),f=D({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}};Zm(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,cg.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:ug.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=>{Lm(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=>{Lm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!r&&s?e=>{if(e.key===sg.Left||e.key===sg.Right){Lm(e);const t=5,n=e.key===sg.Left?t:-t,r="rtl"===d?n:-n;l?.(!0),y(f.current.columnWidth+r)}else e.key===sg.Space||e.key===sg.Enter?(Lm(e),s(e),l?.(!1),x()):e.key===sg.Esc&&(Lm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,I=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return sn.jsx(xV,{style:b,hoverColor:o,isLastColumn:n,className:lg,"data-testid":lg,onMouseDown:e=>{Lm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:ug.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Lm(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":I,"aria-valuemin":cg.PixelsMin,"aria-valuemax":cg.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},wV=F((e,t)=>sn.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:sn.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),CV=({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},EV=$c(Td,{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"})),RV=$c(wV,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),IV=$c(Kf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),AV=$c(Ip)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),kV=$c(Qf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),PV=$c(Qf,{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"})),DV=$c("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"})),MV=$c("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),TV=$c(Ku)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),qV=$c(Sf,{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})),OV=F((e,t)=>sn.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:sn.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),LV=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?LV(t):t:e.parentElement?.children?.[0]},NV=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?NV(t):t},jV=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===sg.Down||t===sg.Up){const n=e=>t===sg.Down?LV(e):NV(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},_V=(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 zV={};const FV=({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]=P(!1),f=w.useRef(null),h=L(e=>{e.stopPropagation(),p(!1)},[p]);return sn.jsxs(sn.Fragment,{children:[sn.jsxs(PV,{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),zV={}),a?.length&&(p(!0),zV[r]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:jV,children:[l?sn.jsx(DV,{direction:c,isPagination:u}):null,sn.jsxs(MV,{children:[sn.jsx(qV,{direction:c,isPagination:u,children:sn.jsx(o,{})}),sn.jsx(TV,{variant:"body2",children:r})]}),a?.length?sn.jsx(OV,{}):null]},t),a?.length?sn.jsx(VV,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:_V(a,zV),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},$V=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&sn.jsx(kV,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>sn.jsx(FV,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),HV=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[$V({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?sn.jsx(AV,{"data-testid":"group-divider",variant:"middle"}):void 0]),BV={appear:0,enter:0,exit:0},VV=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?sn.jsx(IV,{className:og,open:t,anchorEl:e,onClose:n,transitionDuration:BV,MenuListProps:{id:ig},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:HV({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,WV=({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:o,onPopoverClose:i})=>L(()=>{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]),UV=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),GV=(e,t)=>e.some(e=>t[e]>0),KV={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},YV=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=P(null),[a,s]=P(KV);return Zm(()=>{e||(s(KV),i(null))},[e]),q(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=UV(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:GV(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:GV(["qSelected"],e),canSelectPossible:GV(["qOption"],e),canSelectAlternative:GV(["qAlternative"],e),canSelectExcluded:GV(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},XV=F((e,t)=>sn.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:sn.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"})})),JV=F((e,t)=>sn.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:sn.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"})})),ZV=F((e,t)=>sn.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:sn.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"})})),QV=F((e,t)=>sn.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:sn.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"})})),eW=F((e,t)=>sn.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:sn.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"})})),tW=F((e,t)=>sn.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:sn.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"})})),nW=F((e,t)=>sn.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:sn.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"})})),rW=F((e,t)=>sn.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:sn.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"})})),oW=F((e,t)=>sn.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:sn.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"})})),iW=F((e,t)=>sn.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:sn.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"})})),aW=F((e,t)=>sn.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:sn.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"})})),sW=F((e,t)=>sn.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:sn.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"})})),lW=F((e,t)=>sn.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:sn.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 cW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const uW="/qListObjectDef",dW=({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[cW.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:XV,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:QV,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:nW,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:uz,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[cW.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:rW,enabled:!0}]}]),!e.isLocked&&n[cW.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:lW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(uW))},icon:oW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(uW))},icon:sW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(uW))},icon:iW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(uW))},icon:aW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(uW))},icon:JV,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:tW,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:eW,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[cW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),u?.(c)},icon:ZV,enabled:!0}]}]),f},pW=({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=tg})=>{const v=D(null),y=eg({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=r,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=YV({open:e,headerData:r,app:C,qStateName:u?.qStateName}),I=CV({model:f,headerData:r}),A=WV({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),k=L(e=>{e.stopPropagation(),t(!1)},[t]),P=L(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?sn.jsxs(EV,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:rg,onClick:!1===g?P:void 0,ref:v,isAccessibleHeader:g,children:[s?sn.jsx(RV,{height:b,className:ng,"data-testid":ng,isInteractionsActive:i.active??!1,children:sn.jsx(wV,{})}):null,sn.jsx(VV,{open:e,anchorEl:!1===g?v.current:n.current,onClose:k,menuGroups:dW({headerData:r,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:I,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},fW=e=>e.isDark?{background:e.color,borderColor:km.DARK_MODE_BORDER,color:km.DARK_MODE_TEXT,disabledColor:km.DARK_MODE_DISABLED,iconColor:km.DARK_MODE_TEXT}:{background:e.color,borderColor:km.BORDER_MEDIUM,color:km.TEXT,disabledColor:km.DISABLED},hW=$c(Td,{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}`})),mW=$c(qh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),gW=$c(Hd,{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)})),bW=$c(Ku)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),vW=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=k(()=>fW(r.background),[r]);if(!n.active)return null;const a=o?sn.jsx(hW,{footerStyle:i,children:e}):null;return t?V.createPortal(e,t):a},yW=F((e,t)=>sn.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:sn.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),xW=F((e,t)=>sn.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:sn.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),SW=M({}),wW=()=>N(SW),CW=({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=k(()=>fW(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=eg({translator:d}),S=k(()=>({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 sn.jsx(SW.Provider,{value:S,children:e})},EW=({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 RW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),IW=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 AW=()=>{const{direction:e,pageInfo:t,width:n,interactions:r,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=wW(),c=0===t.page,u=EW({type:RW.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:r,tabIndex:l});return n<=(o?.firstPage||IW.FirstPage)?null:sn.jsx(gW,{...u,disabled:!r.active,children:"rtl"===e?sn.jsx(xW,{height:tg}):sn.jsx(yW,{height:tg})})},kW=(e,t,n=!1)=>{n&&e.key===sg.Tab&&!e.shiftKey&&(Lm(e),Om(e.target,t,!1))},PW=()=>{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}=wW(),p=t.page>=r-1,f=EW({type:RW.LastPage,disabledCondition:p,pageNumber:r-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=n.enabled?e=>{kW(e,n,o)}:void 0;return i<=(s?.lastPage||IW.LastPage)?null:sn.jsx(gW,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?sn.jsx(yW,{height:tg}):sn.jsx(xW,{height:tg})})},DW=F((e,t)=>sn.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:sn.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),MW=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=wW(),d=t.page>=r-1,p=EW({type:RW.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>IW.FirstPage&&i>IW.LastPage)&&n.enabled?e=>{kW(e,n,o)}:void 0;return sn.jsx(gW,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?sn.jsx(DW,{height:tg}):sn.jsx(OV,{height:tg})})},TW=()=>{const{direction:e,pageInfo:t,interactions:n,footerStyle:r,handleChangePage:o,translator:i,tabIndex:a}=wW(),s=0===t.page,l=EW({type:RW.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:r,handleChangePage:o,translator:i,interactions:n,tabIndex:a});return sn.jsx(gW,{...l,disabled:!n.active,children:"rtl"===e?sn.jsx(OV,{height:tg}):sn.jsx(DW,{height:tg})})},qW=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=wW(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||IW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return sn.jsx(bW,{variant:"caption",dir:"ltr",children:s})},OW=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=wW(),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 sn.jsxs(sn.Fragment,{children:[sn.jsxs(bW,{variant:"caption",id:p,children:[u,":"]}),sn.jsx(mW,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},LW=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=wW();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||IW.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=sn.jsx(sn.Fragment,{children:e.rowsPerPageOptions.map(e=>sn.jsx("option",{value:e,children:e},e))});return sn.jsx(OW,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},NW=1e3,jW="…",_W=({totalPages:e,page:t})=>{const n=Math.min(e,NW),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-NW):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return sn.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(sn.jsx("option",{value:jW,disabled:!0,children:jW},"startMoreOptions")),o<e-1&&a.push(sn.jsx("option",{value:jW,disabled:!0,children:jW},"endMoreOptions")),sn.jsx(sn.Fragment,{children:a})},zW=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=wW(),{page:i}=e;if(t<=(o?.selectPage||IW.SelectPage))return null;const a=sn.jsx(_W,{totalPages:n,page:i});return sn.jsx(OW,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var FW=z(e=>sn.jsxs(CW,{...e,children:[sn.jsx(LW,{}),sn.jsx(zW,{}),sn.jsx(qW,{}),sn.jsx(AW,{}),sn.jsx(TW,{}),sn.jsx(MW,{}),sn.jsx(PW,{})]}));const $W=e=>sn.jsx(vW,{...e,children:sn.jsx(FW,{...e})}),HW=(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"]})},BW=(e,t,n)=>{n&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},VW=e=>e.ctrlKey||e.metaKey,WW=e=>e.shiftKey&&VW(e),UW=e=>[sg.Left,sg.Right,sg.Up,sg.Down].includes(e),GW=e=>e.shiftKey&&UW(e.key),KW=e=>(e=>UW(e)||[sg.Home,sg.End,sg.PageUp,sg.PageDown].includes(e))(e.key)&&!WW(e),YW=(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),HW(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})},XW=(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&&GW(c)))return e;-1===o&&n?.begin(["/qHyperCubeDef"]);const u=((e,t,n,r,o)=>{const i=new Map(t);if("key"in r&&GW(r)){i.set(n.qElemNumber,n.rowIdx);const t=r.key===sg.Down?1:-1,o=e[n.pageRowIdx+t][n.pageColIdx];return 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];i.set(n.qElemNumber,n.rowIdx)}return i})(i,r,s,c,a);return HW(l,r,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},JW=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}},ZW=(e,t)=>{switch(t.type){case P$.Select:return YW(e,t.payload);case P$.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 P$.SelectMouseUp:return((e,t)=>JW(e.isSelectMultiValues||e.firstCell!==t.cell?e:YW(e,t)))(e,t.payload);case P$.SelectMultiAdd:return XW(e,t.payload);case P$.SelectMultiEnd:return JW(e);case P$.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case P$.Clear:return e.rows.size?{...e,rows:new Map}:e;case P$.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},QW=Jg(e=>{const t=e(Pb);return function(e,t){return Jg(e,function(e,n,r){n(this,t(e(this),r))})}({pageRows:e(zB).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},ZW)}),eU=Jg(e=>e(e(QW)),(e,t,n)=>{t(e(QW),n)}),tU=iI(e=>Jg(t=>{const{colIdx:n,rows:r,api:o}=t(eU);return"object"==typeof e&&o?.isModal()?n!==e.selectionColIdx?k$.Disabled:r.has(e.qElemNumber)?k$.Selected:k$.Possible:k$.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),nU=Jg(e=>{const t=e(mV),n=e(Jb).width,r=e(fH);return t>0&&t+r<n}),rU=()=>{const[e,t]=P(!1);return fj({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?sn.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},oU=(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}),iU=Jg(e=>{const t=e(Sb),n=e(Gb);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(),d=u.qHyperCubeDef.qInterColumnSortOrder,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})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),n.applyPatches(p,!0)}}),aU=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r})=>(e>n?e--:t>n&&(t--,e=r),[t,e]),sU=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r,lastRowIdx:o})=>(e<r?e++:t<o&&(t++,e=n),[t,e]),lU=e=>e.atTop?2:1,cU=(e,t)=>({top:e?lU(t):0,bottom:e&&t.atBottom?1:0}),uU=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],dU=e=>e?.setAttribute("tabIndex","0"),pU=e=>e?.setAttribute("tabIndex","-1"),fU=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(pU)},hU=e=>{e?.focus(),dU(e)},mU=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${lg}`);hU(t)},0)},gU=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o,direction:i})=>{fU(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 sg.Down:c<s&&c++;break;case sg.Up:c>a&&c--;break;case sg.Right:if(i)break;[c,u]="rtl"===r?aU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):sU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case sg.Left:if(i)break;[c,u]="rtl"===r?sU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):aU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case sg.Home:(VW(e)||i)&&(c=a),i||(u=0);break;case sg.End:(VW(e)||i)&&(c=s),i||(u=l);break;case sg.PageDown:c=Math.min(s,c+10);break;case sg.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,n,i,o),s=uU(t,a);return hU(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}},bU=(e,t,n,r)=>{fU(t),n(e),r.enabled&&!r.active?r.focus?.():hU(uU(t,e))},vU=(e,t,n)=>{const r=e.currentTarget;if(!n.enabled||t.current||!r)return;const o=e.relatedTarget??document.activeElement,i=!!o&&r.contains(o),a=!!o?.closest(`.${og}`);i||a||((e=>{const t=e.querySelector(`.${M$.First}`),n=e.querySelector(`.${M$.Second}`);t&&n&&(t.innerHTML="",n.innerHTML="")})(r),n.blur?.(!1))},yU=F((e,t)=>sn.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:sn.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"})})),xU=$c(Jh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:n,background:r,color:o})=>({...Y$,...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}})),SU=$c("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:U$,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),wU=parseInt(U$,10)/2,CU=$c("div")({position:"absolute",bottom:-wU,left:`calc(50% - ${wU}px)`}),EU=$c(fm)({position:"sticky",top:0,zIndex:1}),RU={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},IU=$c(Td)({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"}}),AU=$c("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?{...RU,whiteSpace:"nowrap",display:n?"block":void 0}:{...RU,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),kU=$c("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),PU="cell-text",DU=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=cb(nV);return o?sn.jsx(AU,{"data-testid":PU,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:r,isHeadCell:!0,style:{direction:n?"ltr":void 0},children:e}):sn.jsx(AU,{"data-testid":PU,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})},MU=e=>{const{column:t,isInteractionEnabled:n,open:r,setOpen:o,isPagination:i,forwardRef:a}=e,s=cb(Cb),l=cb(iU),c=cb(zb),u=cb(Mb),d=cb(hb),p=cb(nv),f=cb(pb),h=cb(pV)[t.pageColIdx],m=cb(Ub),g=D(null),b=D(null),v=(({column:e,columnWidth:t})=>{const n=cb(nV),{measureText:r}=Um({fontSize:n.header.fontSize,fontFamily:n.header.fontFamily,fontWeight:G$});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?sn.jsx(XV,{height:U$,"data-testid":"head-cell-sort-ascending-icon"}):sn.jsx(QV,{height:U$,"data-testid":"head-cell-sort-descending-icon"}),a=n?sn.jsx(SU,{align:t,dir:o,children:i}):void 0,s=r?sn.jsx(lH,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:sn.jsx(yU,{height:U$,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return sn.jsxs(sH,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:eH(t,i,c),children:[S,sn.jsxs(aH,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,sn.jsx(DU,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),n?sn.jsxs(sn.Fragment,{children:[sn.jsx(pW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[cW.Sorting]:!0,[cW.Searching]:!0,[cW.Selections]:!0,[cW.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:mU},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),sn.jsx(iH,{ref:b,direction:c,isPagination:i}),sn.jsx(iH,{ref:g,direction:c})]}):null]})},TU=F((e,t)=>sn.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:sn.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"})})),qU=(e,t)=>e.isCyclic&&t,OU=({column:e})=>{const t=cb(nV),n=cb(zb),r=cb(Ub),o=w.useRef(null),[i,a]=w.useState(!1),s=CV({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return sn.jsxs(sn.Fragment,{children:[sn.jsx(uH,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:sn.jsx(TU,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),sn.jsx(VV,{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:uz,isActive:e.groupDimensionPos===n}))}]],anchorEl:o.current,direction:n,isPagination:!1})]})},LU=e=>e.isLocked,NU=({column:e})=>{const t=cb(pb),n=cb(Cb),r=cb(nV);return sn.jsx(uH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,onClick:r=>{r.stopPropagation(),(async(e,t,n)=>{const r=UV(t??"$",n);let o;try{const t=await(e?.createSessionObject(r));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,n,e)},children:sn.jsx(yU,{height:16,"data-testid":"head-cell-lock-icon"})})},jU=({column:e,menuIconRef:t,open:n,setOpen:r})=>{const o=cb(nV);return sn.jsx(uH,{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:sn.jsx(wV,{height:16})})},_U=({anchorRef:e,column:t,isPagination:n,listboxRef:r,open:o,setOpen:i})=>{const a=cb(pb),s=cb(zb),l=cb(hb),c=cb(Mb),u=cb(Ub),d=cb(Cb),p=cb(nv),f=cb(iU);return sn.jsx(pW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[cW.Sorting]:!0,[cW.Searching]:!0,[cW.Selections]:!0,[cW.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:mU},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:n})},zU=Jg();zU.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 FU=({ref:e,callback:t})=>{const n=cb(zU),r=D(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])},$U=$c(Td)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),HU=({children:e})=>{const t=w.useRef(null),[n,r]=P(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=k(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=L(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 FU({ref:t,callback:i}),sn.jsx($U,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!n.has(e.key))})},BU=({children:e})=>e,VU=(e,t)=>!e.isLocked&&e.isDim&&t,WU=({column:e,open:t,setOpen:n})=>{const r=cb(nV),o=cb(Cb),i=cb(zb),a=cb(hb);cb(pb);const s=w.useRef(null),l=L(()=>{n(!1)},[n]),c=WV({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return sn.jsx(uH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),n(!0)},children:sn.jsx(rW,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},UU=F((e,t)=>sn.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:sn.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"})})),GU=F((e,t)=>sn.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:sn.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"})})),KU=({column:e})=>{const{sortDirection:t,isActivelySorted:n}=e,r="A"===t?sn.jsx(GU,{height:U$,"data-testid":"head-cell-sort-ascending-icon"}):sn.jsx(UU,{height:U$,"data-testid":"head-cell-sort-descending-icon"});return n?sn.jsx(CU,{children:r}):void 0},YU=0,XU=1,JU=2,ZU=3,QU=e=>{const{column:t,open:n,setOpen:r,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=cb(nV),c=cb(zb),{measureText:u}=Um(l.header),[d,p]=P(!1),f=D(null),h=D(null),m=D(null),g="number"==typeof a&&a>cg.PixelsMin+18;return sn.jsxs(sn.Fragment,{children:[sn.jsxs(HU,{children:[sn.jsx(BU,{prio:JU,minWidth:oH,children:LU(t)?sn.jsx(NU,{column:t}):null},"Lock"),sn.jsx(BU,{prio:XU,minWidth:oH,children:qU(t,s)?sn.jsx(OU,{column:t}):null},"Cyclic"),sn.jsx(BU,{ignore:!0,children:sn.jsx(KU,{column:t})},"Sort"),sn.jsx(BU,{minWidth:u(t.label)+8,children:sn.jsx(cH,{justifyContent:t.headTextAlign,children:sn.jsx(DU,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),sn.jsx(BU,{prio:g?void 0:YU,minWidth:oH,children:d||VU(t,s)?sn.jsx(WU,{open:d,setOpen:p,column:t}):null},"Search"),sn.jsx(BU,{prio:ZU,minWidth:oH,children:s?sn.jsx(jU,{menuIconRef:m,column:t,open:n,setOpen:r}):null},"Menu")]}),s?sn.jsxs(sn.Fragment,{children:[sn.jsx(iH,{ref:h,direction:c,isPagination:o}),sn.jsx(iH,{ref:f,direction:c}),sn.jsx(_U,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:n,setOpen:r})]}):null]})},eG=$c("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:n})=>({...t,background:e,color:n})),tG=()=>{},nG=({column:e,isPagination:t})=>{const n=cb(nV),r=cb(zb),o=cb(nU),i=cb(FB),a=!1,s=cb(Ib)?MU:QU;return sn.jsx(eG,{className:"sn-table-cell",applicableStyle:{...n.header,...oU(n,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:nH(r,a,o),borderLeftWidth:rH(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:sn.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:tG})})},rG=({isPagination:e})=>{const t=cb($B),[n,r]=P();fj({onDragStart:e=>{const t=e.operation.source?.id;r(t)},onDragEnd:()=>{}});const o=n?t.find(e=>e.id===n):void 0;return o?sn.jsx(VN,{children:sn.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:sn.jsx(nG,{column:o,isPagination:e})})}):null},oG=JR(Jg(async e=>{e(vb);const t=e(Gb);return t?.getEffectiveProperties()}),e=>e),iG=Jg(e=>e(oG)?.qHyperCubeDef),aG=[XL.configure({activationConstraints:[new UL.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],sG=bN.plugins.filter(e=>e!==EO),lG=(e,t,n)=>{const r=JSON.stringify(t),o=JSON.stringify(n);if(r!==o)return{qPath:e,qOp:"Replace",qValue:o}},cG=(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=Lz({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:Nz({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=[lG("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),lG("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),lG("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),lG("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},uG=({children:e})=>{const t=cb(Gb),n=cb(iG),r=cb($B);return sn.jsx($N,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&cG(t,n,r,o,i)},sensors:aG,plugins:sG,children:e})};function dG(e,t){const n=D(!1);q(()=>{n.current?e():n.current=!0},t)}const pG=(e,t)=>{const n=cb(Wb);q(()=>{const r=e.current;if(!r)return;const o=e=>{vU(e,t,n)};return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}},[e,t,n])},fG=Jg(T$),hG=iI(e=>Jg(t=>{const[n,r]=t(fG);return 0===n&&r===e})),mG=()=>{const e=cb(fb);q(()=>{e.notifyIsDoneRendering()})};var gG={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 bG=Jg(e=>{const t=e(nv),n=e(Zb);let r;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(gG).forEach(t=>{e.add(gG[t])})}(t),({keys:e,politeness:o="polite"})=>{const i=e.map(e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)}).join(" "),a=n.querySelector(`.${M$.First}`),s=n.querySelector(`.${M$.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===M$.First?(l=s,r=M$.Second):(l=a,r=M$.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}}),vG=(e,t)=>{const n=cb(bG),r=cb(Zb),o=cb(WB),i=cb(VB),a=cb(BB),s=cb(FB),[l,c]=db(fG),u=cb(kb),d=cb(Wb);dG(()=>{const t=((e,t,n=!1)=>{const r=[lU(t),e[1]];return n?r:T$})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(fU(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=uU(t,e);n.current?(hU(s),n.current=!1):dU(s),r&&(a({keys:[s?.textContent??""]}),BW(a,s,r))})({resetCellCoord:t,rootElement:r,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:n})},[a.length,i,o,t])},yG=e=>{Lm(e),VW(e)&&gg(e.currentTarget)},xG=e=>{KW(e.evt)&&(Lm(e.evt),gU(e))},SG=e=>{const{evt:t,totalsPosition:n,cell:r,isSelectionMode:o}=e;if(!KW(t))return;Lm(t);const i=((e,t)=>[e.pageRowIdx+lU(t),e.pageColIdx])(r,n),a=cU(o,n),{nextCell:s,nextCellCoord:l}=gU({...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:P$.SelectMultiAdd,payload:{cell:n,evt:e,announce:o}}):BW(o,a,i)})({...e,nextCell:s})},wG=e=>{const{evt:t}=e;WW(t)?(({evt:e,totalRowCount:t,rowsPerPage:n,page:r,updateShouldRefocus:o,handleChangePage:i})=>{Lm(e);const a=Math.ceil(t/n)-1;e.key===sg.Right&&r<a?(o(),i(r+1)):e.key===sg.Left&&r>0&&(o(),i(r-1))})(e):t.key===sg.Esc?(({evt:e,keyboard:t,isSelectionMode:n})=>{t.enabled&&!n&&(Lm(e),t.blur?.(!0))})(e):UW(t.key)&&Lm(t)},CG=e=>{const{evt:t,selectionsAPI:n}=e;if(t.currentTarget.classList.contains(k$.Disabled))return void Lm(t);const r={...e,isSelectionMode:!!n?.isModal()};switch(t.key){case sg.Space:(({evt:e,cell:t,isSelectionsEnabled:n,selectionDispatch:r,announce:o})=>{Lm(e),t.isSelectable&&n&&r({type:P$.Select,payload:{cell:t,evt:e,announce:o}})})(r);break;case sg.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{Lm(n),e&&(t?.confirm(),r({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(r);break;case sg.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{e&&(Lm(n),t?.cancel(),r({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(r);break;case sg.C:yG(t);break;case sg.Tab:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{const o=e.shiftKey||!r;t.enabled&&n&&o&&(Lm(e),Om(e.currentTarget,t,e.shiftKey))})(r);break;default:SG(r)}},EG=e=>{const t=cb(dH),n=ub(pH),r=ub(fH),o=cb(A$),i=D();FU({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()}}),q(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},RG=$c("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),IG=$c(tm,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),AG=$c(zh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),kG=()=>sn.jsxs(sn.Fragment,{children:[sn.jsx(RG,{className:M$.First,"data-testid":M$.First,"aria-live":"polite","aria-atomic":"true"}),sn.jsx(RG,{className:M$.Second,"data-testid":M$.Second,"aria-live":"polite","aria-atomic":"true"})]}),PG=e=>{const t=D(new Map),n=D(null);q(()=>{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=L((e,r)=>{t.current.set(e,r),n.current?.observe(e)},[t,n]),o=L(e=>{t.current.delete(e),n.current?.unobserve(e)},[n,t]);return k(()=>({addTask:r,removeTask:o}),[r,o])},DG=e=>new ResizeObserver(t=>{t.forEach(t=>{const n=e.get(t.target);n?.(t)})}),MG=()=>PG(DG),TG=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=cb(Pb),r=cb(Wb),o=ub(eU);q(()=>{const i=()=>{o({type:P$.Reset})},a=()=>{o({type:P$.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])},qG=e=>{e.stopPropagation()},OG=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:qG,color:km.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),LG=({href:e,text:t,interactions:n,color:r})=>sn.jsx(Zp,{...OG({href:e,text:t,interactions:n,color:r}),children:t}),NG=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),jG=window.cancelIdleCallback??(e=>{clearTimeout(e)}),_G="qDimensionInfo/0",zG="qMeasureInfo/0",FG="x",$G="y",HG=e=>({key:"bars",type:"box",data:{extract:{field:_G,props:{start:0,end:{field:zG}}}},settings:{major:{scale:FG},minor:{scale:$G},box:{maxWidthPx:8,fill:{fn:e}}}}),BG=e=>({key:"p",type:"point",data:{extract:{field:_G,props:{y:{field:zG}}}},settings:{x:{scale:FG},y:{scale:$G},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),VG=({qNum:e})=>void 0===e?0:Math.sign(e),WG=(e,t)=>{const{primary:n,nil:r,others:o}=e.getDataColorSpecials(),i=Tm(e,t?.negative,n),a=Tm(e,t?.positive,n);return{key:"pos-neg",type:"box",data:{extract:{field:_G,props:{start:0,end:{field:zG,value:VG}}}},settings:{major:{scale:FG},minor:{scale:$G},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}}}}},UG=(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=Tm(e,t?.main,o),l=Tm(e,t?.max,s),c=Tm(e,t?.min,s),u=Tm(e,t?.first,s),d=Tm(e,t?.last,s);return e=>{const t=$G in e.datum?$G:"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[HG(a)];case"dots":return[BG(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:_G,props:{v:{field:zG}}}},settings:{coordinates:{major:{scale:FG},minor:{scale:$G,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Tm(e,r?.main,e.getDataColorSpecials().primary));return n?[t,BG(a)]:[t]}case"posNeg":return[WG(e,r)];default:return[]}},GG=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"}),KG=(e,t,n,r)=>({y:{data:{field:zG},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:n},x:{data:{extract:{field:_G}},paddingInner:.3,paddingOuter:0,invert:"rtl"===r,align:"rtl"===r?1:0,maxPxStep:12}}),YG=K();YG.use(G),YG.renderer.prio(["canvas"]);const XG={resolve:()=>{},promise:{}},JG=({chart:e,element:t,requestId:n,theme:r,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:c}=(e=>{const t=D(e.isDownloadedAsPDForImage?_t():XG);return{addChartPromiseToQueue:L(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:L(()=>{if(null===t.current||null!==e.current)return;c();n.current=NG(()=>{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 YG.chart({element:e,data:{type:"q",key:"qHyperCube",data:GG(s)},settings:{scales:KG(a,l,c,i),components:UG(t,r),strategy:n?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:r,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,c,n,r,o,a,i,l]),safeCancelIdleCallback:L(()=>{null!==n.current&&jG(n.current),n.current=null,l()},[n,l])}},ZG=e=>{const t=D(null),n=D(!1);return L(r=>{const o=r.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(jG(e.current),e.current=null)})(t),n.current?0!==o?null!==e.current&&(t.current=NG(()=>{e.current?.update()},{timeout:2e3})):n.current=!1:n.current=!0},[e])},QG=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:n,isSnapshot:r,miniChartData:o,downloadService:i,direction:a})=>{const s=D(null),l=D(null),c=D(null),{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:d}=JG({element:s,chart:l,requestId:c,theme:n,isSnapshot:r,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:r,chart:o})=>{const i=L(e=>{e.isIntersecting?r():n()},[r,n]);q(()=>{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:d,renderChartWithRequestIdleCallback:u,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionObserverTaskScheduler:r})=>{q(()=>r?()=>{}:(e(),()=>{t(),n.current?.destroy(),n.current=null}),[r,t,e,n])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:n})=>{const r=ZG(t);q(()=>{const t=e.current;return t?(n.addTask(t,r),()=>{n.removeTask(t)}):()=>{}},[e,r,n])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},eK=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=QG({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return sn.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},tK=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}`},nK=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},rK=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const o=cb(zb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=sn.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:n,objectFit:nK(s),objectPosition:tK(l),overflow:"hidden"}});return r?sn.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?n:"100%",overflow:"hidden",display:"flex",justifyContent:c?J$(o,e):void 0},children:u}):u},oK=F((e,t)=>sn.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:sn.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),iK=F((e,t)=>sn.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:sn.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"})})),aK=F((e,t)=>sn.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:[sn.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"}),sn.jsx("use",{fillRule:"evenodd"})]})),sK=F((e,t)=>sn.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:sn.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"})})),lK=F((e,t)=>sn.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:sn.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"})})),cK=F((e,t)=>sn.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:sn.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"})})),uK=F((e,t)=>sn.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:sn.jsx("path",{d:"M2 7.5h12v1H2z"})})),dK=F((e,t)=>sn.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:sn.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"})})),pK=F((e,t)=>sn.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:sn.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"})})),fK=F((e,t)=>sn.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:sn.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"})})),hK=F((e,t)=>sn.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:sn.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"})})),mK={m:F((e,t)=>sn.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:sn.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":fK,R:GU,S:UU,T:F((e,t)=>sn.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:sn.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),U:F((e,t)=>sn.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:sn.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),P:pK,Q:cK,"è":F((e,t)=>sn.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:sn.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"})})),"¢":sK,"©":aK,"23F4":lK,2013:hK,"&":dK,add:oK,"minus-2":uK,dot:iK},gK=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&mK[t];return o&&sn.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:sn.jsx(o,{style:{height:e}})})},bK=({representation:e,cellValue:t,paginationCellAlign:n})=>{const r=cb(nV),o=cb(zb),i=cb(tv),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=B$(e,t,o,i),d=(e=>parseInt(e||U$,10))(r.measure.values.fontSize),{color:p,iconKey:f,position:h}=u||{};return l?sn.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?p:void 0},children:["left"===h&&gK({size:d,iconKey:f,color:p}),sn.jsx(DU,{isNumeric:!0,children:a}),"right"===h&&gK({size:d,iconKey:f,color:p})]}):gK({size:d,iconKey:f,color:p})},vK=(e,t,n)=>e.contentStaticLineCount?t*(n??e.grid.contentLineClamp):t,yK=({forwardRef:e,cell:t,style:n,virtualizedCell:r,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=cb(nV),c=cb(iV),u=cb(fb),d=cb(vb),p=cb(tv),f=cb(zb),h=cb(Mb),m=cb(kb);if(t.representation.type===Vz.Image&&!t.representation.url?.trim())return null;if(t.representation.type===Vz.Image)return sn.jsx(rK,{representation:t.representation,textStyle:n,maxImageHeight:vK(l,c,o),wrapInContainer:!r});let g=t.representation.text;t.representation.type!==Vz.Link||m||t.isNull||(g=sn.jsx(LG,{href:t.representation.url,text:t.representation.text,interactions:h,color:n.cellForegroundColor}));const b="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==Vz.Indicator||Number.isNaN(b)?t.representation.type===Vz.MiniChart&&t.representation.miniChart&&!t.isNull?sn.jsx(eK,{height:vK(l,c,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:u}):sn.jsx(DU,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:o,isPagination:!r,children:g}):sn.jsx(bK,{representation:t.representation,cellValue:b,paginationCellAlign:r?void 0:s})},xK=()=>sn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:sn.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),SK=$c("div")({"& path":{stroke:"none !important"}}),wK=({children:e,cellSelectionState:t,hideTickIcon:n})=>t!==k$.Selected||n?e:sn.jsxs(kU,{children:[e,sn.jsx(SK,{children:sn.jsx(xK,{})})]}),CK=e=>{const t=function(){const e=HN(),t=EN(()=>null==e?void 0:e.dragOperation.source,[e]),n=EN(()=>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},EK=(e,t,n,r)=>({handleMouseDown:r=>{e?.(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{n({type:P$.SelectMultiEnd})};n({type:P$.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:P$.SelectMultiAdd,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:P$.SelectMouseUp,payload:{cell:t,evt:e,announce:r}})}}),RK=e=>{const t=cb(UB),n=cb(FB),r=cb(bG),o=cb(Zb),i=cb(zb),a=ub(fG),s=ub(eU),l=cb(Wb),c=cb(Ob),u=cb(Pb),d=d=>{CG({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===sg.Shift&&t({type:P$.SelectMultiEnd})})(e,s)},f=()=>{((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;bU([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}=EK(f,e,s,r);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},IK=e=>{q(()=>()=>{tU.remove(e)},[e])},AK=(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},kK=(e,t,n)=>{const{color:r,background:o}=e.grid.zebraStripes[n];return{...t,...r?{color:r}:void 0,...o?{background:o}:void 0}},PK=(e,t,n)=>{if(t.grid.zebraStripes.show){const r=(n.rowIdx+1)%2==0;return kK(t,e,r?"even":"odd")}return e},DK=(e,t)=>{const n=cb(nV),r=cb(tU(e)),o=cb(gb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");IK(e);let a=t.isDim?n.dimension.values:n.measure.values;a=PK(a,n,e),a=i?n.subTotalRow:a,a=AK(a,n,e,t.isDim);const s=e.isNull||i&&t.isDim?a:EH(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,n){return t===k$.Selected?{...e,...n}:t===k$.Disabled?{...e,background:`${V$}, ${e.background}`}:e}(s,r,n.selectedColors);return{cellStyle:{...l,borderColor:n.grid.border},representationStyle:s,cellSelectionState:r}},MK=$c(Uh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),TK=$c(fm,{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}}})),qK=$c(Jh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...Y$,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),OK=$c(Jh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...Y$,...e,fontWeight:G$,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})),LK=({cell:e,column:t,columnIndex:n,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o})=>{const i=cb(zb),a=cb(Mb),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=RK(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=DK(e,t),m=CK(t.id);return sn.jsx(qK,{cellStyle:{...p,opacity:m},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${ag}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:sn.jsx(wK,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:sn.jsx(yK,{cell:e,style:f,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o,paginationCellAlign:tH(i,e.align)})})})},NK=Jg(0),jK=({column:e,totalsPosition:t,onKeyDown:n,onMouseDown:r})=>{const o=cb(nV),i=cb(qb),a=cb(NK),s=CK(e.id);return sn.jsx(OK,{totalsStyle:{...o.totalRow,...oU(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${ag}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:n,onMouseDown:r,children:sn.jsx(DU,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},_K=()=>{const e=cb(FB),t=cb($B),n=cb(BB),r=cb(Zb),o=cb(Tb),i=cb(zb),a=ub(fG),s=cb(kb),l=cb(Wb);return sn.jsx(fm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:n.length+1,c];return sn.jsx(jK,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:n,isInteractionEnabled:r}=e;if(!t&&r)switch(n.key){case sg.C:yG(n);break;case sg.Space:n.preventDefault();break;default:xG(e)}else Lm(n)})({evt:e,rootElement:r,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{bU(u,r,a,l)}},t.id)})})};var zK=z(_K);const FK=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=cb(BB),r=cb(FB),o=cb($B),i=cb(nV),a=cb(aV),s=cb(sV),l=cb(vb),c=!!xH(l)?.content?.hoverEffect;TG({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=L(t=>new IntersectionObserver(e=>{e.forEach(e=>{const n=t.get(e.target);n?.(e)})},{root:e.current}),[e]);return PG(t)})(t),d=MG();return sn.jsxs(MK,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[r.atTop?sn.jsx(zK,{}):void 0,n.map((e,t)=>{const n=e.at(0)?.isTotalRow??!1;return sn.jsx(TK,{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 sn.jsx(LK,{columnIndex:n,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},r)})},`row-${t}`)}),r.atBottom?sn.jsx(zK,{}):void 0]})};var $K=z(FK);const HK=(e,t)=>!!e?.skipHeader||!!t.hideHeader,BK=Jg(e=>{const t=e(vb),n=e(Ub);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)}}),VK=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,a=cb(BK),s=cb(zb),l=cb(Tb),c=cb(nv),[u,d]=db(pV);if(!l)return null;return sn.jsx(SV,{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=>{pU(e);const t=e.closest(".sn-table-cell");hU(t)})(e.currentTarget)},setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},WK=e=>e.target?.getAttribute("class")?.includes(lg),UK=({isInteractionEnabled:e,column:t})=>{const[n,r]=P(!1),o=cb(iU),i=cb(dH);return{open:n,setOpen:r,handleOpenMenu:t=>{!e||WK(t)||i||r(!0)},toggleSortOrder:n=>{e&&!WK(n)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(n)&&(n.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var GK=class extends GM{constructor(e,t){super(e,t),this.boundingRectangle=XA(null),this.destroy=ak(()=>{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=sT(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=kj({},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 IP(l,c,s,a),n,r);return u}};GK.configure=dD(GK);const KK=({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/RP.distance(n.shape.center,s),type:SM.Collision,priority:xM.Normal}:null},YK=[GK.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],XK=(e,t)=>{const n=cb(zb),r=cb(gb),o=!cb(Nb)||!r("TLV-1531_DRAG_AND_DROP_COLUMNS");return $_({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:YK,data:e,plugins:e=>[...e,gL.configure({feedback:"clone"})],collisionDetector:KK({invert:"rtl"===n})})},JK=({column:e,columnIndex:t,columnsLength:n})=>{const r=cb(nV),o=cb(Zb),i=cb(zb),a=cb(Mb),s=cb($B),l=cb(FB),c=cb(pV)[t],u=ub(fG),d=cb(hG(t)),p=cb(Nb),f=cb(Wb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=UK({isInteractionEnabled:p,column:e}),v=ub(dH),{ref:y,isDragging:x}=XK(e,t),S=CK(e.id),w=cb(Ib),C=w?MU:QU,E=e.isActivelySorted?D$[e.sortDirection]:void 0,R=h?ig:void 0,I=h?"true":void 0,A=t===n-1,k=[0,e.pageColIdx],P={width:c,zIndex:s.length-t},D=d&&0===t&&!f.enabled&&p?0:-1;return sn.jsxs(xU,{"data-dragging":x,ref:y,headerStyle:{...r.header,...oU(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:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${ag}`,tabIndex:D,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:n,handleOpenMenu:r}=e;if(t)switch(n.key){case sg.C:yG(n);break;case sg.Enter:case sg.Space:r?.(n);break;default:xG(e)}else Lm(n)})({evt:e,rootElement:o,cellCoord:k,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&&bU(n,t,r,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":I,"aria-haspopup":"true",children:[sn.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),sn.jsx(VK,{column:e,isLastColumn:A,setIsAdjustingWidth:v})]},e.id)},ZK=()=>{const e=cb($B),t=cb(nV),n=cb(vb),r=cb($b),o=ub(NK),i=cb(pV),a=D(null),s=HK(r,n);return q(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),sn.jsx(sm,{style:{visibility:s?"collapse":void 0},children:sn.jsx(EU,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,n)=>sn.jsx(JK,{column:t,columnIndex:n,columnsLength:e.length},t.id))})})};var QK=z(ZK);var eY=z(()=>{const e=cb(bG),[t,n]=db(MB),{page:r,rowsPerPage:o}=t,i=cb(Fb),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=cb(zB),p=cb(nV),f=cb(hB),h=cb(vb),m=cb(tv),g=cb(Jb),b=cb(Zb),v=cb($b),y=cb(zb),x=cb(Mb),S=cb(nv),w=cb(nU),C=ub(eU),E=cb(kb),R=cb(Wb),I=D(!1),A=D(null),k=D(null),P=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,M=jb(h,v),T=M?f.scrollLeft??0:0,O=M?f.rowPartialHeight??0:0,N=L(()=>{I.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=L(r=>{n({...t,page:r}),e({keys:[["SNTable.Pagination.PageStatusReport",(r+1).toString(),l.toString()]],politeness:"assertive"})},[t,n,l,e]),_=L(r=>{n({...t,page:0,rowsPerPage:r}),e({keys:[["SNTable.Pagination.RowsPerPageChange",r.toString()]],politeness:"assertive"})},[e,t,n]);return(e=>{const t=cb(zb),n=cb(hB);q(()=>{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])})(A),pG(k,I),(()=>{const e=cb(Zb),t=cb(Wb),n=cb(fG);Zm(()=>{const r=uU(e,n);t.active?hU(r):(r?.blur(),fU(e))},[t.active,e])})(),vG(I,r),q(()=>{const e=A.current;e&&(e.scrollLeft=T,e.scrollTop=O)},[t,s,T,O]),dG(()=>{C({type:P$.UpdatePageRows,payload:{pageRows:u}})},[u]),mG(),EG(A),sn.jsxs(uG,{children:[sn.jsxs(IU,{ref:k,dir:y,onKeyDown:e=>{wG({evt:e,totalRowCount:s,page:r,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[sn.jsx(kG,{}),sn.jsxs(IG,{ref:A,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[sn.jsxs(AG,{stickyHeader:!0,"aria-label":P,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[sn.jsx(QK,{}),sn.jsx($K,{updateShouldRefocus:N,tableWrapperRef:k})]}),sn.jsx(rU,{})]}),sn.jsx($W,{footerContainer:i,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),sn.jsx(rG,{isPagination:!0})]})});const tY=Jg(0),nY=Jg(e=>{const t=e(yb);return Math.min(RH,t)}),rY=Jg(e=>{const t=e(yb);return t===RH?0:Math.floor(t/RH)}),oY=Jg(e=>{const t=e(tY),n=e(rY);return Math.min(t,n)}),iY=Jg(e=>({page:e(oY),rowsPerPage:e(nY),rowsPerPageOptions:[]}),(e,t,n)=>{const r=e(rY);t(tY,Math.max(0,Math.min(n,r)))}),aY=Jg(null),sY=Jg(null),lY=Jg(e=>{const t=e(iY),n=e(yb);return Math.min(t.rowsPerPage,n-t.page*t.rowsPerPage)}),cY=Jg(null),uY=Jg(null),dY=Jg(e=>e(FB).atTop?2:1),pY=Jg(e=>e(FB).atTop?1:e(dY)+e(lY)),fY=Jg(e=>cU(Boolean(e(kb)),e(FB))),hY=Jg(e=>({firstBodyRowIdx:e(dY),totalsRowIdx:e(pY),allowedRows:e(fY)})),mY=Jg(e=>({rootElement:e(Zb),totalsPosition:e(FB),rowCount:e(lY),colCount:e(HB),columnWidths:e(pV)})),gY=Jg(e=>({scrollToCell:e(cY),scrollableContainerElement:e(uY)})),bY=Jg(e=>({keyboard:e(Wb),isInSelectionMode:e(kb),selectionsAPI:e(Pb),isSelectionsEnabled:e(Ob)})),vY=Jg(e=>({direction:e(zb),isInteractionEnabled:e(Nb),paginationNeeded:e(UB),announce:e(bG),shouldRefocusRef:e(aY)})),yY=10,xY=e=>e.atTop?2:1,SY=e=>{e.querySelectorAll(".sn-table-cell[tabindex='0']").forEach(e=>{e.setAttribute("tabIndex","-1")})},wY=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},CY=(e,[t,n],r,o)=>{const i=xY(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}"]`)},EY=(e,t,n,r,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=n,d=c-xY(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})(CY(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)}},RY=(e,t,n,r,o,i)=>e<i?[t,e+1]:t<r?[t+1,o]:[t,e],IY=(e,t,n,r,o,i)=>e>o?[t,e-1]:t>n?[t-1,i]:[t,e],AY=(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 sg.Down:case sg.Up:t=((e,t,n,r)=>e===sg.Down&&t<r?t+1:e===sg.Up&&t>n?t-1:t)(e.key,t,c,u);break;case sg.Right:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?IY(e,t,n,0,o,i):RY(e,t,0,r,o,i))(n,t,c,u,0,d,i));break;case sg.Left:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?RY(e,t,0,r,o,i):IY(e,t,n,0,o,i))(n,t,c,u,0,d,i));break;case sg.Home:l?t=Math.max(c,t-yY):(VW(e)&&(t=c),n=0);break;case sg.End:l?t=Math.min(u,t+yY):(VW(e)&&(t=u),n=d);break;case sg.PageDown:t=Math.min(u,t+yY);break;case sg.PageUp:if(l)t=Math.max(c,t-yY);else{const e=s?xY(s):1,n=t-e;t=n>0&&n<=yY?e:Math.max(c,t-yY)}}return[t,n]},kY=[sg.Home,sg.End,sg.PageUp,sg.PageDown],PY=()=>{const e=D(!1),t=D(0),n=D(0),r=D(null),o=D(null),i=D(null),a=D(0),s=ub(fG),l=ub(eU),c=cb(gb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=cb(mY),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=cb(hY),{scrollToCell:v,scrollableContainerElement:y}=cb(gY),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=cb(bY),{direction:E,announce:R,isInteractionEnabled:I,paginationNeeded:A,shouldRefocusRef:P}=cb(vY),M=k(()=>(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]);q(()=>()=>{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 T=L((e,t,n,r)=>{const o=t=>{if(r&&!r())return void n?.(!1);const i=CY(u,e,d,p);if(i)return document.activeElement!==i&&wY(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]),O=L((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,P&&(P.current=!0),o.current?.(),o.current=EY(v,u,e,d,p,y,10,()=>a.current===r&&n.current===t,()=>{T(e,300,()=>{P&&(P.current=!1)},()=>a.current===r&&n.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[T,u,p,v,y,P,d]),N=L(()=>(P&&(P.current=!0),t.current+=1,t.current),[P]),j=L(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=L((e,n)=>{const r=o=>{t.current===e&&(i.current?.(),i.current=EY(v,u,n,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=CY(u,n,d,p);i&&document.activeElement!==i&&wY(i),o>0?requestAnimationFrame(()=>{r(o-1)}):t.current===e&&P&&(P.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{r(300)})})},[u,d,p,v,P,y]),z=L((e,t)=>{if(!KW(e))return;Lm(e),j(),n.current+=1;const o=n.current;a.current+=1,r.current?.(),r.current=null;const i=((e,t)=>xY(t)+e+(t.atBottom?1:0))(p,d),l=AY(e,t,i,f,E,g,d);SY(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,M,c),P&&(P.current=!0),r.current=EY(v,u,l,d,p,y,10,()=>n.current===o,()=>{T(l,300,t=>{P&&(P.current=!1),t&&(e=>kY.includes(e))(e.key)&&O(l,o)},()=>n.current===o)}),l},[u,d,p,f,E,v,s,g,y,P,T,j,M,O]),F=L(e=>{e.key===sg.Esc?x.enabled&&!S&&(Lm(e),x.blur?.(!0)):UW(e.key)&&Lm(e)},[x,S]),$=L((e,t,n)=>{switch(e.key){case sg.C:Lm(e),I&&(e.ctrlKey||e.metaKey)&&gg(e.currentTarget);break;case sg.Enter:case sg.Space:if(!I)return void Lm(e);n?.(e);break;default:z(e,[0,t])}},[z,I]),H=L((t,r,o,i)=>{const a=[r+m,o];switch(t.key){case sg.Space:if(Lm(t),i.isSelectable&&C){e.current=!0;const n=N();l({type:P$.Select,payload:{cell:i,evt:t,announce:R}}),_(n,a)}break;case sg.Enter:if(Lm(t),e.current=!1,S){N(),s(T$),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;T(T$,300,()=>{P&&(P.current=!1)},()=>n.current===t)}break;case sg.Esc:if(e.current=!1,S){Lm(t);const e=N();w?.cancel(),_(e,a)}break;case sg.C:Lm(t),I&&(t.ctrlKey||t.metaKey)&&gg(t.currentTarget);break;case sg.Tab:{const e=t.shiftKey||!A;x.enabled&&S&&e&&(Lm(t),Om(t.currentTarget,x,t.shiftKey));break}default:{const n=t.key===sg.Left||t.key===sg.Right,r=S||Boolean(w?.isModal())||e.current;if(n&&r){Lm(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:P$.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,A,I,N,_,s,v,y,T,P]),B=L(t=>{t.key===sg.Space&&(e.current=!1),t.key===sg.Shift&&l({type:P$.SelectMultiEnd})},[l]),V=L((e,t)=>{if(S)Lm(e);else{if(e.key!==sg.Space)return e.key===sg.C?(Lm(e),void(I&&(e.ctrlKey||e.metaKey)&&gg(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,I]),W=L(e=>{j(),n.current+=1;const t=n.current;SY(u),s(e),x.enabled&&x.focus?.(),T(e,2,n=>{n&&O(e,t)},()=>n.current===t)},[u,s,x,T,j,O]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:L(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:L((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:L(e=>{c&&W([b,e])},[W,b,c])}};var DY=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function MY(e,t){return e===t||!(!DY(e)||!DY(t))}function TY(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!MY(e[n],t[n]))return!1;return!0}function qY(e,t){var n;void 0===t&&(t=TY);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 OY="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function LY(e){cancelAnimationFrame(e.id)}function NY(e,t){var n=OY();var r={id:requestAnimationFrame(function o(){OY()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var jY=-1;function _Y(e){if(void 0===e&&(e=!1),-1===jY||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),jY=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return jY}var zY=null;function FY(e){if(void 0===e&&(e=!1),null===zY||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?zY="positive-descending":(t.scrollLeft=1,zY=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),zY}return zY}var $Y=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function HY(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,lu(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:lu(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=qY(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=qY(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=qY(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(FY()){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&&LY(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=NY(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Zc(t,e),t.getDerivedStateFromProps=function(e,t){return BY(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,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=_Y();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(FY()){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&&LY(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?$Y: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],R=this._getVerticalRangeToRender(),I=R[0],A=R[1],k=[];if(r>0&&g)for(var P=I;P<=A;P++)for(var D=w;D<=E;D++)k.push(C(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,D)}));var M=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Wn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(c||u||"div",{children:k,ref:l,style:{height:M,pointerEvents:x?"none":void 0,width:T}}))},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}(B),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var BY=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},VY=function(e,t){var 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},WY=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},UY=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]},GY=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?KY(e,t,n,i,0,r):YY(e,t,n,Math.max(0,i),r)},KY=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=UY(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},YY=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&UY(e,t,r,n).offset<o;)r+=a,a*=2;return KY(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},XY=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=UY(e,t,n,i),c="column"===e?WY(t,i):VY(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===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}},JY=HY({getColumnOffset:function(e,t,n){return UY("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return GY("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=UY("column",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=UY("column",e,c,r).size;return c},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:VY,getEstimatedTotalWidth:WY,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return XY("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return XY("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return UY("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return GY("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=UY("row",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=UY("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}}),ZY=function(e,t){return e};function QY(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,lu(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:lu(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=qY(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=qY(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=qY(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(FY()){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&&LY(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=NY(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Zc(t,e),t.getDerivedStateFromProps=function(e,t){return eX(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?_Y():0:l.scrollHeight>l.clientHeight?_Y():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(FY()){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&&LY(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?ZY: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],R=w[1],I=[];if(c>0)for(var A=E;A<=R;A++)I.push(C(t,{data:u,key:p(A,u),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var k=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Wn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:I,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],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}(B),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var eX=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},tX=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]},nX=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=tX(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},rX=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&tX(e,n,t).offset<r;)n+=i,i*=2;return nX(e,t,Math.min(n,o-1),Math.floor(n/2),r)},oX=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},iX=QY({getItemOffset:function(e,t,n){return tX(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:oX,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=tX(e,t,o),p=oX(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?nX(e,t,o,0,n):rX(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=tX(e,t,r),d=n+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=tX(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 aX(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 sX=["style"],lX=["style"];function cX(e,t){var n=e.style,r=Un(e,sX),o=t.style,i=Un(t,lX);return!aX(n,o)&&!aX(r,i)}const uX=Jg(0),dX=Jg(0),pX=Jg(0),fX=Jg(e=>e(uX)+e(dX)),hX=Jg(e=>{const t=e(Jb),n=e(UB),r=t.height-(n?41:0);return{width:t.width,height:r}}),mX=Jg(e=>{const t=e(hX),n=e(pH),r=e(fH);return{width:t.width-r,height:t.height-n}}),gX=Jg(e=>{const t=e(mX),n=e(fX),r=e(pX);return Math.min(t.height-n,r)}),bX=Jg(-1),vX=iI(e=>Jg(t=>t(bX)===e)),yX=({style:e})=>sn.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var xX=w.memo(yX,cX);const SX=Jg(e=>{const t=e(mX),n=e(aV),r=e(fX),o=e(pX)+r,i=e(lY)*n+r;return o<2*t.height?o:i}),wX=Jg(e=>e(SX)<=e(hX).height),CX=()=>{},EX=e=>{e.preventDefault()};const RX=({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=cb(vX(t)),h=ub(bX),m=cb(nV),g=cb(zb),b=cb(qb),v=cb(Nb),y=cb(nU),x=cb(gb),S=cb(wX),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:I}=function(e){const t="object"==typeof e,n=cb(Ob),r=ub(eU),o=cb(tU(e));if(IK(e),t&&n){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=EK(EX,e,r,CX);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),A=((e,t,n,r)=>{const o=D(null),i=n&&(!n.isNumeric||n.isDual),a=n?.isTotalRow??!1,s=L(n=>{const o=n.contentBoxSize.at(0)?.blockSize;o&&i&&r(o,e,t,a)},[a,t,r,e,i]);return FU({ref:o,callback:s}),o})(t,e,w,s),k=i[e]?.isDim?m.dimension.values:m.measure.values,P=CK(i[e].id);if("object"==typeof w){const r=((e,t,n,r,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS");let l=PK(o,i,e);l=s?i.subTotalRow:l,l=AK(l,i,e,t.isDim);const c=e.isNull||s&&t.isDim?l:EH(l,e.qAttrExps,t.qAttrExprInfoIDs);return r!==k$.Selected||s?r!==k$.Disabled||s?n?{...c,...i.grid.hoverColors}:c:{...c,color:n?i.grid.hoverColors?.color:c.color,background:`${V$}, ${n?i.grid.hoverColors?.background:c.background}`}:{...c,...i.selectedColors}})(w,i[e],a&&f,I,k,m,x),o={rowindex:t,columnindex:e},s=n=>{v&&p?.(t,e),C?.(n)},D=u?n=>{u(n,t,e,w)}:void 0;return sn.jsx("div",{className:`sn-table-cell ${I} ${ag}`,tabIndex:-1,style:{...n,...r,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:nH(g,w.isLastColumn,y),borderLeftWidth:rH(g,w.isLastColumn,y),justifyContent:Z$(w,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:P},onMouseDown:s,onMouseUp:R,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:D,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:sn.jsx(wK,{cellSelectionState:I,hideTickIcon:!!w.isTotalRow,children:sn.jsx(yK,{forwardRef:m.contentStaticLineCount||1===l?void 0:A,cell:w,style:r,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return sn.jsx(xX,{style:{...n,...k,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:P}})};var IX=z(RX,cX);const AX=JR(Jg(async e=>{const t=e(vb),n=e(Ub),r=e(iY).page,{qDataPages:o}=t.qHyperCube;if(0!==r||0===o.length){const e=r*Math.min(RH,t.qHyperCube.qSize.qcy);if(n&&"getHyperCubeData"in n)return n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),kX=Jg(e=>{const t=e(lY),n=e(mX),r=e(aV);return Math.min(t,Math.ceil(n.height/r))}),PX=Jg(e=>{const t=e(pV),n=e(mX);return t.reduce((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),DX=e=>{const t=D(e);return t.current=e,t},MX=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,TX=e=>-1===e.qElemNumber||!!e.qIsTotalCell,qX=(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},OX=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some(e=>!e[t])},LX=(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(TX);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}=i[n],C=s.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),E=!m&&e.qIsNull,R=m&&AB(e,m),I=E||R?IB(m,e,a,C):e.qText,A=E?L$(I):O$(e),k=O$(e)&&!L$(e.qText??"");f[n]={id:Oz(),...e,align:CB(A,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h,isTotalRow:h,pageRowIdx:p,pageColIdx:n,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:n===u.qcx-1,isNumeric:A,isDual:k,isNull:(!E||!A)&&AB(e,m),representation:fB({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>I,direction:c,enabledFeatures:{[Vz.Image]:!0,[Vz.Indicator]:!0,[Vz.MiniChart]:!0}})},l(f[n],d,n)}),{row:f,pageRowIdx:p}})(n,l,c,e.qArea,u,r,o,i,a,s);n[p]=d})})},NX=({gridState:e,setEstimatedCellHeight:t})=>{const n=cb(vb),r=cb(tv),o=cb(Ub),i=cb(mb),a=cb(zb),s=cb(iY),l=cb(AX),c=cb($B),u=cb(lY),d=cb(kX),p=cb(PX),f=D([]),h=L((e,r)=>{const o=Array.isArray(r)?r.slice(0,u):(e=>Array(e).fill(void 0))(u);return LX(e,s,o,c,n,i,t,a),f.current=o,o},[u,s,c,n,i,t,a]),[m,g]=P(()=>h(l??[]));Zm(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const n=D(new Set),r=D(new Set),o=D(new Set),i=DX(e),a=DX(t),s=k(()=>({enqueue:e=>{const t=MX(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout(async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.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 i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach(e=>{o.current.delete(MX(e))}),console.error("Failed to fetch pages",t)}finally{r.current.delete(e)}}},75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}}),[i,a]);return s})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=L((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(OX(f.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(e)}},[b]),y=L((e,t,n,r)=>{for(let o=t;o<t+r;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(qX(f.current,e,t,n,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(t)}}},[b,s]);return q(()=>{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}},jX=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},_X=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,zX=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=cb(nV),i=cb(pV),{estimateLineCount:a}=Um(o.dimension.values),s=hH(o.dimension.values.fontSize),l=e||t||1===n;return L((e,t,o)=>{if(l||e.representation.type===Vz.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])},FX=({isStaticNbrOfLines:e,minRowHeight:t,state:n,staticRowHeight:r=0})=>{const o=cb(hB);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])},$X=({isSnapshot:e,gridRef:t})=>{const n=cb(nV),r=cb(lY),[o,i]=P(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=cb(iV),s=cb(aV),l=cb(sV),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=cb(vb),r=cb(iY),o=cb(pV),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;Zm(()=>{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]),Zm(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:n})=>{const r=cb(aV),o=cb(sV);return L((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(!_X(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:jX(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})=>L((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=zX({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=L(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return FX({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},HX=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const n=L(e=>{const n=e.contentBoxSize.at(0)?.blockSize;void 0!==n&&t(n)},[t]);FU({ref:e,callback:n})};let BX=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const VX=({loadRows:e,loadColumns:t,gridState:n})=>{const r=cb(hB),o=cb(vb),i=cb(iY),a=cb(lY);return L(({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?BX.Down:r<t?BX.Up:BX.None,i=n>e?BX.Right:n<e?BX.Left:BX.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===BX.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===BX.Up){const t=x+25,n=i.page*i.rowsPerPage,r=Math.max(n,v-25);e(b,r,y,t)}if(g===BX.Right){const e=o.qHyperCube.qSize.qcx-b,n=y+5,r=Math.min(e,n);t(b,v,r,x)}else if(g===BX.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 WX=({columnIndex:e,data:t,rowIndex:n})=>{const r=t.rowsInPage[n]?.[e];return r?.id??`${n}-${e}`},UX=(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)},GX={overflow:"hidden",willChange:"auto"},KX=F((e,t)=>{const{handleBodyKeyDown:n,handleBodyKeyUp:r,focusBodyCellOnClick:o}=PY(),i=cb($B),a=cb(mX),s=ub(pX),l=cb(gX),c=cb(hB),u=cb(vb),d=cb(zb),p=cb(pV),f=cb(lY),h=cb(uY),m=ub(cY),g=D(null),b=D(null),v=D(null),y=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=D(0),S=!!xH(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=$X({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:I,loadRows:A,loadColumns:P}=NX({gridState:y,setEstimatedCellHeight:C}),M=VX({loadRows:A,loadColumns:P,gridState:y}),T=MG(),O=k(()=>({rowsInPage:I,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:T,onKeyDown:n,onKeyUp:r,onCellClick:o}),[I,i,S,R,w,T,n,r,o]);return j(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=ub(eU),{shouldRefocusRef:n}=cb(vY),r=cb(Zb),o=cb(sY);q(()=>{t({type:P$.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=L(()=>{n&&(n.current=r.contains(document.activeElement))},[n,r]);TG({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(I),H(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]),q(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),UX(h,b.current)}),()=>{m(null)}),[h,m]),HX(v,s),sn.jsx(JY,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:GX,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:O,onItemsRendered:M,itemKey:WX,className:"sn-table-body",direction:d,children:IX})});var YX=z(KX);const XX=({children:e})=>{const t=cb(mV),n=cb(SX);return sn.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n},children:e})},JX=(e,t)=>{const n=D(null),r=cb(pV);j(()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)},[t,n,e,r.length]);const o=L(n=>{const r=n.contentBoxSize.at(0)?.blockSize;r&&t(r+9,e)},[e,t]);return FU({ref:n,callback:o}),n},ZX=$c("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}})),QX=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=cb(nV),c=cb(zb),u=cb(Mb),d=cb(nU),p=ub(dH),f=cb(FB),h=cb(Nb),m=cb(pV)[e],g=cb(Wb),b=cb(hG(e)),v=r[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=UK({isInteractionEnabled:h,column:v}),C=cb(Ib),E=JX(e,i),R=r.length-1===e,I=C?MU:QU,{ref:A,isDragging:k}=XK(v,e),P=CK(v.id),D=b&&!g.enabled&&h?0:-1,M=a?t=>{a(t,e,S)}:void 0;return sn.jsxs(ZX,{"data-dragging":k,ref:A,className:`sn-table-cell ${ag}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...oU(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:nH(c,R,d),borderLeftWidth:rH(c,R,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:P},interactions:u,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:D,onKeyDown:M,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[sn.jsx(I,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),sn.jsx(VK,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},eJ=e=>{const[t,n]=P(new Map);Zm(()=>{n(new Map)},[e.length]);const r=L((e,t)=>{n(n=>_X(n.get(t),e)?new Map(n).set(t,e):n)},[]);return{rowHeight:k(()=>jX(t),[t]),setMeasuredCellHeight:r}},tJ=(e,t)=>{H(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},nJ=e=>{const t=cb(tv),n=cb(vb),r=cb(iY),o=cb(pV);Zm(()=>{e.current?.resetAfterIndex(0,!1)},[n,r,e,o,t])},rJ={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},oJ=F((e,t)=>{const{columResizeHandler:n}=e,r=cb($B),o=cb(mX),i=ub(uX),a=w.useRef(null),s=D(null),l=cb(rV),c=cb(vb),u=cb($b),d=cb(zb),p=cb(pV),{rowHeight:f,setMeasuredCellHeight:h}=eJ(r),m=HK(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=PY();return tJ(t,a),nJ(a),HX(s,i),sn.jsx(iX,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...rJ,...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:QX})});var iJ=z(oJ);const aJ=F((e,t)=>{const{children:n,onScroll:r}=e,o=cb(zb),i=cb(Lb),{width:a,height:s}=cb(hX),l=ub(uY),c=L(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return sn.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})}),sJ=({children:e})=>{const t=cb(zb),n=cb(mX);return sn.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})},lJ=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=cb(nV),c=cb(vb),u=cb(zb),d=cb(qb),p=cb(Nb),f=cb(nU),h=cb(wX),m=JX(e,i),g=r[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=r[e],y=c.qHyperCube.qSize.qcx-1===e,x=CK(r[e].id),S=a?t=>{a(t,e)}:void 0;return sn.jsx("div",{className:`sn-table-cell ${ag}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...oU(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:nH(u,y,f),borderLeftWidth:rH(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:sn.jsx(DU,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},cJ=F((e,t)=>{const{totals:n}=e,r=cb($B),o=cb(mX),i=ub(dX),a=D(null),s=D(null),l=cb(oV),c=cb(zb),u=cb(vb),d=cb(pV),{rowHeight:p,setMeasuredCellHeight:f}=eJ(r),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=PY();return tJ(t,a),nJ(a),HX(s,i),sn.jsx(iX,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:rJ,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:lJ})});var uJ=z(cJ);const dJ=(e,t,n)=>{const r=cb(zb),o=cb(hB);return L(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 pJ=z(()=>{const e=cb(FB),t=D(null),n=D(null),r=D(null),o=D(null),i=dJ(n,r,o),a=L(()=>{t.current&&(t.current.scrollTop=0)},[t]);mG(),(e=>{const t=cb(HB),n=cb(iY),r=cb(tv),o=cb(lY);q(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),q(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[n,o,r,e])})(t),EG(t);const s=sn.jsx(uJ,{ref:r,totals:e},"totals");return sn.jsxs(uG,{children:[sn.jsx(aJ,{ref:t,onScroll:i,children:sn.jsxs(XX,{children:[sn.jsxs(sJ,{children:[sn.jsx(iJ,{ref:n,columResizeHandler:a}),e.atTop?s:null,sn.jsx(YX,{ref:o}),e.atBottom?s:null]}),sn.jsx(rU,{})]})}),sn.jsx(rG,{isPagination:!1})]})});const fJ=()=>{const e=cb(vb),t=cb(Jb),n=cb(Mb),{paginationNeeded:r,totalRowCount:o,totalColumnCount:i,totalPages:a}=cb(zB),s=cb(tv),l=cb(nv),c=cb(Wb),[u,d]=db(iY),p=D(null),f=D(!1),h=ub(aY),m=ub(sY);q(()=>{h(f)},[h]);const g=w.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=PY();return(()=>{const e=cb(Zb),{keyboard:t}=cb(bY),n=cb(fG),r=cb(FB),o=cb(lY),{scrollToCell:i}=cb(gY),{shouldRefocusRef:a}=cb(vY),s=D({focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}),l=D(null),c=D(null);j(()=>{s.current={focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}},[n,r,o,i,e]),q(()=>{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=CY(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);r&&document.activeElement!==r&&wY(r),r&&document.activeElement===r||t>0&&(l.current=requestAnimationFrame(()=>{n(t-1)}))};l.current=requestAnimationFrame(()=>{e||n(5)})}else{const e=CY(u,n,r,o);wY(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=CY(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);n?.blur(),SY(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])})(),pG(p,f),sn.jsxs(IU,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[sn.jsx(kG,{}),sn.jsx(pJ,{}),sn.jsx($W,{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 hJ=z(fJ);const mJ=e=>{const t=e.get(Ub),n=e.get(Bb),r=e.get(bb),o=e.get(zb);a(()=>{r&&t&&(n?function(e){const t=e.get(zb),n=e.get(ev),r=bV(t);n.render(sn.jsx(Di,{stylisPlugins:"rtl"===t?[E$]:void 0,children:sn.jsx(Bc,{theme:r,children:sn.jsx(rb,{store:e,children:sn.jsx(gV,{children:sn.jsx(eY,{})})})})}))}(e):function(e){const t=e.get(zb),n=e.get(ev),r=bV(t);n.render(sn.jsx(w.StrictMode,{children:sn.jsx(Bc,{theme:r,children:sn.jsx(rb,{store:e,children:sn.jsx(gV,{children:sn.jsx(hJ,{})})})})}))}(e))},[r,n,e,t,o])};function gJ(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 bJ=(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]}},vJ=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const yJ=(e,t,n,r,o)=>{if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||kB.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},xJ=(e,t,n,r,o)=>{if(r&&!r.isMultiPage)return r;const i=yB(e,r);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=gJ(n,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:yJ(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=bJ(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=(vJ(h,m,g)?d:d+1)+u;let v=p+u;const y=bJ(p,o),x=y?.getBoundingClientRect();return y&&x&&(vJ(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:yJ(s,a,e,t,r),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},SJ=({store:e})=>{const t=e.get(vb),n=e.get(Ub),r=e.get(Zb),o=e.get(Xb),i=e.get($b),a=e.get(Bb);u(async s=>{const l=s;if(!l.snapshotData||!n||l.snapshotData.content)return l;if("getHyperCubeData"in n){const s=e.get(hB),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=xJ(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:()=>xJ(t,e.get(hB),r,i,a)}),[t,e,r,a])},wJ={version:JSON.stringify("6.36.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var CJ=e=>({properties:{initial:wJ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>Cv({...e}),exportProperties:bv,exploration:Ez(e)});const EJ=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),RJ=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});
|
|
121
|
+
*/var WF=(BF||(BF=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,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),I=new RegExp("("+c+v+"[^;}]+;?)","gi"),A=new RegExp("("+c+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),D=new RegExp(l+"(left)"+b+y+v,"gi"),M=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),q=new RegExp(l+"(right)"+x,"gi"),O=/(:dir\( *)ltr( *\))/g,L=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,n){var r,o;return"%"===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(I,"`NOFLIP_SINGLE`"),a=new r(A,"`NOFLIP_CLASS`"),s=new r(R,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(O,"$1`TMPLTR`$2").replace(L,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(n=n.replace(T,"$1"+e).replace(q,"$1left").replace(w,"right")),n=n.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(D,"$1"+e).replace(M,"$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(H,J).replace(B,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)}(VF,VF.exports)),VF.exports),UF=en(WF),GF="comm",KF="rule",YF="decl",XF=Math.abs,JF=String.fromCharCode;function ZF(e){return e.trim()}function QF(e,t,n){return e.replace(t,n)}function e$(e,t){return 0|e.charCodeAt(t)}function t$(e,t,n){return e.slice(t,n)}function n$(e){return e.length}function r$(e,t){return t.push(e),e}var o$=1,i$=1,a$=0,s$=0,l$=0,c$="";function u$(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:o$,column:i$,length:a,return:"",siblings:s}}function d$(){return l$=s$>0?e$(c$,--s$):0,i$--,10===l$&&(i$=1,o$--),l$}function p$(){return l$=s$<a$?e$(c$,s$++):0,i$++,10===l$&&(i$=1,o$++),l$}function f$(){return e$(c$,s$)}function h$(){return s$}function m$(e,t){return t$(c$,e,t)}function g$(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 b$(e){return ZF(m$(s$-1,x$(91===e?e+2:40===e?e+1:e)))}function v$(e){for(;(l$=f$())&&l$<33;)p$();return g$(e)>2||g$(l$)>3?"":" "}function y$(e,t){for(;--t&&p$()&&!(l$<48||l$>102||l$>57&&l$<65||l$>70&&l$<97););return m$(e,h$()+(t<6&&32==f$()&&32==p$()))}function x$(e){for(;p$();)switch(l$){case e:return s$;case 34:case 39:34!==e&&39!==e&&x$(l$);break;case 40:41===e&&x$(e);break;case 92:p$()}return s$}function S$(e,t){for(;p$()&&e+l$!==57&&(e+l$!==84||47!==f$()););return"/*"+m$(t,s$-1)+"*"+JF(47===e?e:p$())}function w$(e){for(;!g$(f$());)p$();return m$(e,s$)}function C$(e){return function(e){return c$="",e}(E$("",null,null,null,[""],e=function(e){return o$=i$=1,a$=n$(c$=e),s$=0,[]}(e),0,[0],e))}function E$(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=p$()){case 40:108!=h&&58==e$(E,d-1)?(v++,E+="("):E+=b$(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=b$(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=JF(y);break}E+=v$(h);break;case 92:E+=y$(h$()-1,7);continue;case 47:switch(f$()){case 42:case 47:r$(I$(S$(p$(),h$()),t,n,l),l),5!=g$(h||1)&&5!=g$(f$()||1)||!n$(E)||" "===t$(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=n$(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=JF(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=QF(E,/\f/g,"")),f>0&&(n$(E)-d||0===m)&&r$(f>32?A$(E+";",r,n,d-1,l):A$(QF(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(r$(C=R$(E,t,n,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)E$(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===e$(E,3))break;case 108:if(97===e$(E,2))break;default:u=0;case 100:case 109:case 115:}u?E$(e,C,C,r&&r$(R$(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,r?S:w):E$(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+n$(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==d$())continue;switch(E+=JF(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(n$(E)-1)*b,b=1;break;case 64:45===f$()&&(E+=b$(p$())),p=f$(),u=d=n$(x=E+=w$(h$())),y++;break;case 45:45===h&&2==n$(E)&&(m=0)}}return i}function R$(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=t$(e,p+1,p=XF(g=a[m])),x=e;v<h;++v)(x=ZF(g>0?f[v]+" "+y:QF(y,/&\f/g,f[v])))&&(l[b++]=x);return u$(e,t,n,0===o?KF:s,l,c,u,d)}function I$(e,t,n,r){return u$(e,t,n,GF,JF(l$),t$(e,2,-2),0,r)}function A$(e,t,n,r,o){return u$(e,t,n,YF,t$(e,0,r),t$(e,r+1,-1),r,o)}function k$(e,t,n){switch(e.type){case"@import":case YF:case GF:return e.return=e.return||e.value;case KF:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===GF&&(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),k$);return n$(r)?e.return=e.value+"{"+r+"}":""}function P$(e,t,n,r){if("@keyframes"===e.type||"@supports"===e.type||e.type===KF&&(!e.parent||"@media"===e.parent.type||e.parent.type===KF)){var o=UF.transform(k$(e));e.children=o?C$(o)[0].children:[],e.return=""}}Object.defineProperty(P$,"name",{value:"stylisRTLPlugin"});const D$=iI(({options:e,...t})=>Jg(Wm(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 M${#v={on:new Map,once:new Map};#y=10;#x(e){this.listenerCount(e)>this.#y&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#S(e,t,n){const r=this.#v[e].get(t)??new Set;r.add(n),this.#v[e].set(t,r),this.#x(t)}setMaxListeners(e){this.#y=e}on(e,t){this.#S("on",e,t)}once(e,t){this.#S("once",e,t)}off(e,t){this.#v.on.get(e)?.delete(t),this.#v.once.get(e)?.delete(t)}emit(e,...t){this.#v.on.get(e)?.forEach(e=>{e(...t)}),this.#v.once.get(e)?.forEach(e=>{e(...t)}),this.#v.once.delete(e)}listenerCount(e){return(this.#v.on.get(e)?.size??0)+(this.#v.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#v.on.clear(),this.#v.once.clear()):(this.#v.on.delete(e),this.#v.once.delete(e))}}const T$=Jg(()=>new M$);let q$=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}({}),L$=function(e){return e.A="ascending",e.D="descending",e}({}),N$=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const j$=[0,0],_$=e=>"number"==typeof e&&!Number.isNaN(+e),z$=e=>_$(e.qNum),F$=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),$$=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),H$=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},B$=(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)},V$=(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:$$(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:H$(r,t,n)}))),r},W$=(e,t,n,r)=>{const o=V$(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=B$(e,a,t);break}r=i}return n})(o,t);return a},U$=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!_$(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||!_$(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)},G$=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=U$(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||!_$(t))return 0;let a=n&&_$(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}},K$=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=G$(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 H$(o,n.limitPaletteColorIndex,r);const a=$$(n.limitRange,t);return W$(o,a,n.limitRange,r)})(o,t,i,r),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let c=l?.position||"right";return"rtl"===n&&(c="right"===c?"left":"right"),{color:a,iconKey:s,position:c}},Y$=(Rm().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)"),X$=4/3,J$="12px",Z$="600",Q$="Source Sans Pro, sans-serif",eH={height:"auto",fontSize:J$,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"}},tH={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:Z$},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},nH=(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,rH=(e,t)=>e.representation.type===Yz.Image&&"fitHeight"===e.representation.imageSize?nH(t,e.representation):e.align,oH=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",iH=(e,t,n)=>{if(!t&&"rtl"===n){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},aH=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,sH=(e,t,n)=>"rtl"===e||t&&!n?"0px":"1px",lH=(e,t,n)=>"rtl"===e?t&&!n?"0px":"1px":"0px",cH=24,uH=$c("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),dH=$c(Td,{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?oH(e,r):void 0})),pH=$c(Td,{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},[`& .${rg}`]:{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"},[`& .${rg}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),fH=$c(Td,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),hH=$c(Td,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),mH=$c(Hu,{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})),gH=Jg(),bH=Jg(0),vH=Jg(0),yH=e=>parseInt(e??eH.fontSize,10)*X$,xH=4/3,SH=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function wH(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const CH=(e,t)=>e?{borderBottomColor:km.DARK_MODE_BORDER,borderRightColor:km.DARK_MODE_BORDER,borderLeftColor:km.DARK_MODE_BORDER,borderTopColor:km.DARK_MODE_BORDER}:{borderLeftColor:km.BORDER_MEDIUM,borderRightColor:km.BORDER_MEDIUM,borderTopColor:km.BORDER_HEAVY,borderBottomColor:t?km.BORDER_HEAVY:km.BORDER_LIGHT},EH=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*xH+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},RH=e=>e.components?.find(e=>"theme"===e.key),IH=(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:SH(n?.fontColor)?wH(km.TEXT,t,n?.fontColor):i||km.TEXT,fontSize:n?.fontSize&&`${n.fontSize}px`||a,padding:n&&"padding"in n?n.padding:void 0,...CH(t.background.isDark,r)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function AH(e,t,n){const r=RH(e)?.header,o=IH("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=Mm(o.background??km.WHITE,dg),o.activeBackground=Mm(o.background??km.WHITE,pg),o}const kH=(e,t)=>{const n=e.toLowerCase().match(/<[^>]+>/g)??[];return n.forEach(e=>(e=>e in tH)(e)&&Object.assign(t,tH[e])),t};function PH(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&&qm(i);a&&(r[n[t]]=a),o=i?kH(i,o):o}),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}}const DH=25e4,MH=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,TH=5e6,qH=5e5;const OH={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:LH(e),value:LH(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function LH(e){try{return decodeURIComponent(e)}catch{return e}}function NH(e){if(!(this instanceof NH))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:()=>OH.fromSearchString(t.search)}})}function jH(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")}NH.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},NH.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=jH(t.key),t.value?n+=`=${jH(t.value)}`:n+=t.useEqualSign?"=":"";return n};var _H=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}},zH=class{decode(e){let t="";const n=new _H(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const FH=e=>e>=0&&e<=1114111,$H=e=>e.match(/[\s]/);var HH=class extends zH{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&&!$H(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return FH(a)?String.fromCharCode(a):"�"}},BH=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}},VH=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 BH.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return BH.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||BH.newInstanceIfNeeded(e,t,this._value)}},WH=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 VH);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const UH=(()=>{const e=[],t=[],n=new WH;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 GH=class extends zH{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,UH.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=UH.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)&&FH(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)&&FH(r)?String.fromCharCode(r):null}},KH=class extends zH{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),FH(i))?String.fromCharCode(i):(e.reset(),null)}};let YH;"undefined"!=typeof document&&(YH=document.createElement("div"));const XH=Array.prototype.indexOf,JH=[",",".","_"," "],ZH=[",",".","-","_"," "],QH={width:["%"],height:["%"]},eB={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},tB={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":eB.image,"background-color":eB.color,"border-color":eB.color,"border-image":eB.image,color:eB.color,icon:eB.image,"list-style-image":eB.image,"outline-color":eB.color},nB={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function rB(e,t,n){let r;if(t){if(XH)return XH.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 oB(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return YH.appendChild(n),t=YH.innerHTML,YH.removeChild(n),t}function iB(e,t,n){let r,o,i,a,s,l,c,u,d;for(e=sB(e).toLowerCase(),t=sB(t),i=0;i<nB.attr_name.length;i++)if(e.match(nB.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<nB.attr_val.length;i++)if(t.toLowerCase().match(nB.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=QH[e],r||(r=ZH),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]/)&&rB(c,r)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return n||(o+='"'),o}function aB(e,t,n){let r,o,i,a,s,l,c,u,d,p;if(e=sB(e).toLowerCase(),t=sB(t),rB(e,nB.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<nB.css_val.length;r++)if(t.toLowerCase().indexOf(nB.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=tB[e],o||(o=eB.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]/)&&rB(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function sB(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new GH,new KH,new HH];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 lB=[];for(let e=0;e<255;e++)lB[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const cB={html:e=>oB(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]=aB(t,n[t],!0),i+=aB(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]=iB(e,t[e],!0),o+=iB(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function uB(e,t){throw new Error(t)}var dB={canonicalize:sB,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?cB.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&uB(this,"Invalid parameter type"),cB.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&uB(this,"Invalid parameter type"),cB.attr(e)):void uB(this,"Invalid parameter type")},encodeForAttr:iB,encodeForAttr2:function(e){return iB("nonsens",e,!0)},encodeForCSS:aB,encodeForHref:function(e){sB(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new NH(e),n=NH.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+NH.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=JH),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),rB(o,t)>=0||null==lB[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:oB,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=sB(t).toLowerCase():uB(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=qH,maxByteSizeImage:r=TH}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=MH.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 pB=(e,t)=>t.qAttrExps?.qValues?.[e],fB=(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"}}},hB=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!dB.isSafeDataURL(t))?{type:Yz.Text,url:void 0,text:e,labelStructure:o}:{type:Yz.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:fB(r,a),labelStructure:o,imageBox:i},mB=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:Yz.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:Yz.MiniChart,text:r,miniChart:a}},gB=(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===Xz.Attribute?void 0:n?.urlLabel},bB=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:Yz.Link,url:dB.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:Yz.Text,url:void 0,text:t,labelStructure:e}}},vB=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:c})=>{const u=Jz(t),d=s(e);return u===Yz.Image&&c[Yz.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=pB(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),hB({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 hB({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=pB(n.imageLabel??-1,e)?.qText??r;return hB({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:Yz.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,d,l,a):u===Yz.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===Xz.Attribute){const i=gB(n.url??-1,e,t);return bB({labelStructure:r,text:o||i||"",url:i})}if(i===Xz.Dimension){const i=gB(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),bB({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:Yz.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,d):u===Yz.Indicator&&c[Yz.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:Yz.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):u===Yz.MiniChart&&c[Yz.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?mB(e,t,i,d):{type:Yz.Text,url:void 0,text:d,labelStructure:a}},yB=Jg(e=>{const t=e($b),n=e(Eb);return e(Rb),{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}}),xB=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),SB=({cId:e})=>e??zz(),wB=1e4;function CB(e,t){return[...t].reverse().find(t=>t*e<=wB)||Math.floor(wB/e)}function EB(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 RB(e,t,n,r){return t?0===n?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(r)?.qText??""}function IB(e,t){const n=e.qHyperCube.qGrandTotalRow.at(t);return _$(n?.qNum)}function AB(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 kB=(e,t,n,r)=>"auto"!==t?t:r||"rtl"!==n?e?"right":"left":e?"left":"right",PB=(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?Mm(s,dg):void 0,c=s?Mm(s,pg):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}};const DB=(e,t,n,r=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((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}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,n,r,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:c,visibleDimInfoIdx:u,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===fg.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==u){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=u,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:I,textAlign:A,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:D,qApprMaxGlyphCount:M,columnWidth:T,qLibraryId:q,headerColor:O}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:q,pageColIdx:c,qApprMaxGlyphCount:M,qReverseSort:D,columnWidth:T??{type:ug.Auto},selectionColIdx:S,isActivelySorted:g,id:SB(h),label:I??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:xB(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:RB(e,f,c,d??-1),...!f&&{isTotalNumeric:IB(e,d??-1)},...AB(A,b,f,n,r),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?PB(O,n):void 0}}(e,o,t,n,r))},MB=(e,t,n,r)=>e?(r?n.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":n.nullValueRepresentation?.text??t.qText??"-",TB=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,qB={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},OB=Jg(e=>{const t=e(LB),n=e(vb),r=e(yB),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>wB?{...t,rowsPerPage:CB(l,t.rowsPerPageOptions),page:0}:t}),LB=Jg(qB),NB=Jg(e=>{const t=e(vb),n=e($b),r=e(yB);return jb(t,n)?{page:r.page||qB.page,rowsPerPage:r.rowsPerPage||qB.rowsPerPage,rowsPerPageOptions:qB.rowsPerPageOptions}:e(OB)},(e,t,n)=>{t(LB,e=>({...e,...n}))}),jB=!0,_B=e=>-1===e.qElemNumber||!!e.qIsTotalCell,zB=Jg(async e=>{const t=e(vb),n=e($b),r=e(zb),{page:o,rowsPerPage:i}=e(NB),a=e(yB),s=e(Ub),l=e(mb),c=e(xb),u=e(gb),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=EB(t,n),v=DB(t,jB,r,u),y=l.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),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(_B);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&TB(c,a.isDim),p=u||d?MB(a.isDim,c,t,y):c.qText,f=u?F$(p):z$(c),g=z$(c)&&!F$(c.qText??"");o[s]={id:zz(),...c,align:kB(f,a.bodyTextAlign,r,jB),rowIdx:n+h,colIdx:a.colIdx,pageRowIdx:n,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i,isTotalRow:i,isLastRow:n===m-1,isNumeric:f,isDual:g,isNull:(!u||!f)&&TB(c,a.isDim),representation:vB({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:r,enabledFeatures:{[Yz.Image]:!0,[Yz.Indicator]:!0,[Yz.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),FB=JR(zB,e=>e),$B=Jg(e=>{const t=e(vb),n=e($b),r=e(Mb),o=e(zb),i=e(gb),a=DB(t,false,o,i),s=EB(t,n),l=t.qHyperCube.qSize.qcy,c=Math.min(DH,l),u=l>DH&&!!r.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/c),paginationNeeded:u}}),HB={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},BB=Jg(),VB=Jg(e=>{const t=e(Bb),n=e(BB);return n||(t?e(FB)??HB:e($B))}),WB=Jg(e=>e(VB).totalsPosition),UB=Jg(e=>e(VB).columns),GB=Jg(e=>e(UB).length),KB=Jg(e=>e(VB).rows),YB=Jg(e=>e(VB).totalRowCount),XB=Jg(e=>e(VB).totalColumnCount),JB=Jg(e=>e(VB).paginationNeeded),ZB=Jg(e=>{const t=e(Zb),n=e(tv),r=e(vb),o=e(WB),i=e(KB),a=o.atTop,s=function(e,t,n,r){const o=RH(e)?.content,i=IH("content",t,o);i.background=t.background.color;const a=EH(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=SH(l)||!!u,p=SH(s)||!!c,f=d||p;let h;h=SH(s)?wH(km.HOVER,t,s):c||(d?"":km.HOVER);const m=f?wH(Pm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(r,n,i.length,t),l=AH(r,n,!a),c=function(e,t,n){const r=RH(e)?.content,o=IH("content",t,r),{borderBottomColor:i,borderTopColor:a,background:s}=AH(e,t,n);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(r,n,a);return{body:s,head:l,totals:c}}),QB=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},eV=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=QB(e,t?.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},tV=(e,t,n,r=km.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=eV(e,t,n);return _m(i,o,a,r)??r},nV=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return J$}},rV=e=>e?.some(e=>"italic"===e)?"italic":"normal",oV=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?Z$:"normal",iV=e=>!1===e?1:3,aV=e=>e?.some(e=>"underline"===e)?"underline":"none",sV=Jg(e=>{const t=e($b),n=e(Bb),r=e(tv),o=e(vb),i=e(ZB),a=e(gb),{header:s,dimensionValues:l,measureValues:c,totalValues:u,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=RH(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=n?km.WHITE:km.TRANSPARENT,v=tV(r,s,"object.straightTableV2.dimension.label.name.backgroundColor",b),y=t?.maxLineCount??m?.rowHeight??r.getStyle("object.straightTableV2","grid","lineClamp"),x=(g?f:void 0)??p;return{header:{fontFamily:s?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??Q$,fontSize:nV(s?.fontSize??r.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:rV(s?.fontStyle),fontWeight:oV(s?.fontStyle,Z$),textDecoration:aV(s?.fontStyle),color:QB(r,s?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??km.TEXT,background:v},headerMenuHoverBackground:Mm(v,dg),headerMenuActiveBackground:Mm(v,pg),dimension:{values:{fontFamily:l?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??Q$,fontSize:nV(l?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:rV(l?.fontStyle),fontWeight:oV(l?.fontStyle,"normal"),textDecoration:aV(l?.fontStyle),color:QB(r,l?.fontColor)??QB(r,m?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??km.TEXT,background:eV(r,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??km.TRANSPARENT}},measure:{values:{fontFamily:c?.fontFamily??r.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??Q$,fontSize:nV(c?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:rV(c?.fontStyle),fontWeight:oV(c?.fontStyle,"normal"),textDecoration:aV(c?.fontStyle),color:QB(r,c?.fontColor)??QB(r,m?.fontColor)??r.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??km.TEXT,background:eV(r,c,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??km.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??r.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??Q$,fontSize:nV(u?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:rV(u?.fontStyle),fontWeight:oV(u?.fontStyle,Z$),textDecoration:aV(u?.fontStyle),color:QB(r,u?.fontColor)??QB(r,m?.fontColor)??r.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??km.TEXT,background:tV(r,u,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??r.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??Q$,fontSize:nV(d?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:rV(d?.fontStyle),fontWeight:oV(d?.fontStyle,Z$),textDecoration:aV(d?.fontStyle),color:QB(r,d?.fontColor)??QB(r,m?.fontColor)??r.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??km.TEXT,background:tV(r,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:rV(x?.fontStyle),fontWeight:oV(x?.fontStyle,"normal"),textDecoration:aV(x?.fontStyle),color:QB(r,x?.fontColor)??QB(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??km.TEXT,background:QB(r,x?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??km.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:rV(p?.fontStyle),fontWeight:oV(p?.fontStyle,"normal"),textDecoration:aV(p?.fontStyle),color:QB(r,p?.fontColor)??QB(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??km.TEXT,background:QB(r,p?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??km.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??iV(o.multiline?.wrapTextInCells),headerLineClamp:iV(o.multiline?.wrapTextInHeaders),border:QB(r,h?.border)??r.getStyle("object.straightTableV2","grid","borderColor")??(r.background.isDark?km.DARK_MODE_BORDER:km.BORDER_MEDIUM),divider:QB(r,h?.divider)??r.getStyle("object.straightTableV2.grid","","divider.borderColor")??km.BORDER_HEAVY,hoverColors:{color:QB(r,m?.hoverFontColor)??r.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:QB(r,m?.hoverColor)??r.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:QB(r,h?.zebraStripes?.color?.odd),background:QB(r,h?.zebraStripes?.background?.odd)},even:{color:QB(r,h?.zebraStripes?.color?.even),background:QB(r,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===QB(r,x?.background),overrideDimNullValueColor:void 0===QB(r,x?.fontColor),overrideMeasNullValueBackground:void 0===QB(r,p?.background),overrideMeasNullValueColor:void 0===QB(r,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:Dm(r),contentStaticLineCount:y}}),lV=Jg(e=>{const t=e(sV);return Math.max(yH(t.header.fontSize)+8,32)}),cV=Jg(e=>{const t=e(sV),n=yH(t.totalRow.fontSize);return Math.max(n+9,24)}),uV=Jg(e=>{const t=e(sV),n=e(Sb),r=e(wb);return Math.max(n>0?yH(t.dimension.values.fontSize):0,r>0?yH(t.measure.values.fontSize):0)}),dV=Jg(e=>{const t=e(sV),n=e(uV),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),pV=Jg(e=>{const t=e(sV),n=yH(t.subTotalRow.fontSize),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),fV=(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(cg.PixelsMax,Math.max(cg.PixelsMin,f)),i-=r[a]};switch(s){case ug.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?cg.PixelsDefault:+e)(l),h();break;case ug.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?cg.PercentageDefault:+e)(c)/100*t,h();break;case ug.FitToContent:e.representation?.type===Yz.Image?o.push(a):(f=n(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case ug.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(cg.AutoMinTable,e)})}return r},hV=Jg(e=>{const t=e(sV),n=e(VB).totalsPosition,r=e(Ib),{measureText:o}=e(D$({...t.header,fontWeight:Z$})),{measureText:i}=e(D$({...t.totalRow,fontWeight:Z$})),{estimateWidth:a}=e(D$(t.dimension.values)),{estimateWidth:s}=e(D$(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+=cH),t+=cH,t+=cH,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(n))}}),mV=Jg(null),gV=Jg(e=>{const t=e(VB),n=e(Jb).width,r=e(vH),o=e(hV);return fV(t.columns,n-r,o)}),bV=Jg(e=>e(mV)??e(gV),(e,t,n)=>{t(mV,n)}),vV=nI(e=>{const t=e(T$);!1===e(gH)&&t.emit("done-adjusting-column-width")}),yV=nI((e,t)=>{e(vb),t(mV,null)}),xV=Jg(e=>e(bV).reduce((e,t)=>e+t,0)),SV=({children:e})=>(cb(yV),cb(vV),e);function wV(e){const t=Rm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Sc({...t,direction:e})}const CV={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},EV={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},RV=$c("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":{...CV},"&::-moz-range-track":{...CV},"&::-ms-track":{...CV},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...EV},"&::-moz-range-thumb":{...EV},"&::-ms-thumb":{...EV},"&: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"}})),IV=({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=eg({translator:u.translator}),f=D({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}};Zm(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,cg.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:ug.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=>{Lm(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=>{Lm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!r&&s?e=>{if(e.key===sg.Left||e.key===sg.Right){Lm(e);const t=5,n=e.key===sg.Left?t:-t,r="rtl"===d?n:-n;l?.(!0),y(f.current.columnWidth+r)}else e.key===sg.Space||e.key===sg.Enter?(Lm(e),s(e),l?.(!1),x()):e.key===sg.Esc&&(Lm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,I=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return sn.jsx(RV,{style:b,hoverColor:o,isLastColumn:n,className:lg,"data-testid":lg,onMouseDown:e=>{Lm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:ug.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Lm(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":I,"aria-valuemin":cg.PixelsMin,"aria-valuemax":cg.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},AV=F((e,t)=>sn.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:sn.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),kV=({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},PV=$c(Td,{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"})),DV=$c(AV,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),MV=$c(Kf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),TV=$c(Ip)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),qV=$c(Qf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),OV=$c(Qf,{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"})),LV=$c("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"})),NV=$c("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),jV=$c(Ku)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),_V=$c(Sf,{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})),zV=F((e,t)=>sn.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:sn.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),FV=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?FV(t):t:e.parentElement?.children?.[0]},$V=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?$V(t):t},HV=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===sg.Down||t===sg.Up){const n=e=>t===sg.Down?FV(e):$V(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},BV=(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 VV={};const WV=({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]=P(!1),f=w.useRef(null),h=L(e=>{e.stopPropagation(),p(!1)},[p]);return sn.jsxs(sn.Fragment,{children:[sn.jsxs(OV,{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),VV={}),a?.length&&(p(!0),VV[r]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:HV,children:[l?sn.jsx(LV,{direction:c,isPagination:u}):null,sn.jsxs(NV,{children:[sn.jsx(_V,{direction:c,isPagination:u,children:sn.jsx(o,{})}),sn.jsx(jV,{variant:"body2",children:r})]}),a?.length?sn.jsx(zV,{}):null]},t),a?.length?sn.jsx(YV,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:BV(a,VV),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},UV=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&sn.jsx(qV,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>sn.jsx(WV,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),GV=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[UV({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?sn.jsx(TV,{"data-testid":"group-divider",variant:"middle"}):void 0]),KV={appear:0,enter:0,exit:0},YV=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?sn.jsx(MV,{className:og,open:t,anchorEl:e,onClose:n,transitionDuration:KV,MenuListProps:{id:ig},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:GV({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,XV=({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:o,onPopoverClose:i})=>L(()=>{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]),JV=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),ZV=(e,t)=>e.some(e=>t[e]>0),QV={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},eW=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=P(null),[a,s]=P(QV);return Zm(()=>{e||(s(QV),i(null))},[e]),q(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=JV(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:ZV(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:ZV(["qSelected"],e),canSelectPossible:ZV(["qOption"],e),canSelectAlternative:ZV(["qAlternative"],e),canSelectExcluded:ZV(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},tW=F((e,t)=>sn.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:sn.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"})})),nW=F((e,t)=>sn.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:sn.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"})})),rW=F((e,t)=>sn.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:sn.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"})})),oW=F((e,t)=>sn.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:sn.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"})})),iW=F((e,t)=>sn.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:sn.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"})})),aW=F((e,t)=>sn.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:sn.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"})})),sW=F((e,t)=>sn.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:sn.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"})})),lW=F((e,t)=>sn.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:sn.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"})})),cW=F((e,t)=>sn.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:sn.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"})})),uW=F((e,t)=>sn.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:sn.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"})})),dW=F((e,t)=>sn.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:sn.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"})})),pW=F((e,t)=>sn.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:sn.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"})})),fW=F((e,t)=>sn.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:sn.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 hW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const mW="/qListObjectDef",gW=({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[hW.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:tW,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:oW,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:sW,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:hz,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[hW.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:lW,enabled:!0}]}]),!e.isLocked&&n[hW.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:fW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(mW))},icon:cW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(mW))},icon:pW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(mW))},icon:uW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(mW))},icon:dW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(mW))},icon:nW,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:aW,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:iW,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[hW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),u?.(c)},icon:rW,enabled:!0}]}]),f},bW=({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=tg})=>{const v=D(null),y=eg({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=r,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=eW({open:e,headerData:r,app:C,qStateName:u?.qStateName}),I=kV({model:f,headerData:r}),A=XV({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),k=L(e=>{e.stopPropagation(),t(!1)},[t]),P=L(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?sn.jsxs(PV,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:rg,onClick:!1===g?P:void 0,ref:v,isAccessibleHeader:g,children:[s?sn.jsx(DV,{height:b,className:ng,"data-testid":ng,isInteractionsActive:i.active??!1,children:sn.jsx(AV,{})}):null,sn.jsx(YV,{open:e,anchorEl:!1===g?v.current:n.current,onClose:k,menuGroups:gW({headerData:r,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:I,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},vW=e=>e.isDark?{background:e.color,borderColor:km.DARK_MODE_BORDER,color:km.DARK_MODE_TEXT,disabledColor:km.DARK_MODE_DISABLED,iconColor:km.DARK_MODE_TEXT}:{background:e.color,borderColor:km.BORDER_MEDIUM,color:km.TEXT,disabledColor:km.DISABLED},yW=$c(Td,{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}`})),xW=$c(qh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),SW=$c(Hd,{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)})),wW=$c(Ku)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),CW=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=k(()=>vW(r.background),[r]);if(!n.active)return null;const a=o?sn.jsx(yW,{footerStyle:i,children:e}):null;return t?V.createPortal(e,t):a},EW=F((e,t)=>sn.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:sn.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),RW=F((e,t)=>sn.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:sn.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),IW=M({}),AW=()=>N(IW),kW=({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=k(()=>vW(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=eg({translator:d}),S=k(()=>({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 sn.jsx(IW.Provider,{value:S,children:e})},PW=({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 DW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),MW=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 TW=()=>{const{direction:e,pageInfo:t,width:n,interactions:r,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=AW(),c=0===t.page,u=PW({type:DW.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:r,tabIndex:l});return n<=(o?.firstPage||MW.FirstPage)?null:sn.jsx(SW,{...u,disabled:!r.active,children:"rtl"===e?sn.jsx(RW,{height:tg}):sn.jsx(EW,{height:tg})})},qW=(e,t,n=!1)=>{n&&e.key===sg.Tab&&!e.shiftKey&&(Lm(e),Om(e.target,t,!1))},OW=()=>{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}=AW(),p=t.page>=r-1,f=PW({type:DW.LastPage,disabledCondition:p,pageNumber:r-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=n.enabled?e=>{qW(e,n,o)}:void 0;return i<=(s?.lastPage||MW.LastPage)?null:sn.jsx(SW,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?sn.jsx(EW,{height:tg}):sn.jsx(RW,{height:tg})})},LW=F((e,t)=>sn.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:sn.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),NW=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=AW(),d=t.page>=r-1,p=PW({type:DW.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>MW.FirstPage&&i>MW.LastPage)&&n.enabled?e=>{qW(e,n,o)}:void 0;return sn.jsx(SW,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?sn.jsx(LW,{height:tg}):sn.jsx(zV,{height:tg})})},jW=()=>{const{direction:e,pageInfo:t,interactions:n,footerStyle:r,handleChangePage:o,translator:i,tabIndex:a}=AW(),s=0===t.page,l=PW({type:DW.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:r,handleChangePage:o,translator:i,interactions:n,tabIndex:a});return sn.jsx(SW,{...l,disabled:!n.active,children:"rtl"===e?sn.jsx(zV,{height:tg}):sn.jsx(LW,{height:tg})})},_W=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=AW(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||MW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return sn.jsx(wW,{variant:"caption",dir:"ltr",children:s})},zW=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=AW(),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 sn.jsxs(sn.Fragment,{children:[sn.jsxs(wW,{variant:"caption",id:p,children:[u,":"]}),sn.jsx(xW,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},FW=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=AW();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||MW.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=sn.jsx(sn.Fragment,{children:e.rowsPerPageOptions.map(e=>sn.jsx("option",{value:e,children:e},e))});return sn.jsx(zW,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},$W=1e3,HW="…",BW=({totalPages:e,page:t})=>{const n=Math.min(e,$W),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-$W):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return sn.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(sn.jsx("option",{value:HW,disabled:!0,children:HW},"startMoreOptions")),o<e-1&&a.push(sn.jsx("option",{value:HW,disabled:!0,children:HW},"endMoreOptions")),sn.jsx(sn.Fragment,{children:a})},VW=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=AW(),{page:i}=e;if(t<=(o?.selectPage||MW.SelectPage))return null;const a=sn.jsx(BW,{totalPages:n,page:i});return sn.jsx(zW,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var WW=z(e=>sn.jsxs(kW,{...e,children:[sn.jsx(FW,{}),sn.jsx(VW,{}),sn.jsx(_W,{}),sn.jsx(TW,{}),sn.jsx(jW,{}),sn.jsx(NW,{}),sn.jsx(OW,{})]}));const UW=e=>sn.jsx(CW,{...e,children:sn.jsx(WW,{...e})}),GW=(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"]})},KW=(e,t,n)=>{n&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},YW=e=>e.ctrlKey||e.metaKey,XW=e=>e.shiftKey&&YW(e),JW=e=>[sg.Left,sg.Right,sg.Up,sg.Down].includes(e),ZW=e=>e.shiftKey&&JW(e.key),QW=e=>(e=>JW(e)||[sg.Home,sg.End,sg.PageUp,sg.PageDown].includes(e))(e.key)&&!XW(e),eU=(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),GW(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})},tU=(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&&ZW(c)))return e;-1===o&&n?.begin(["/qHyperCubeDef"]);const u=((e,t,n,r,o)=>{const i=new Map(t);if("key"in r&&ZW(r)){i.set(n.qElemNumber,n.rowIdx);const t=r.key===sg.Down?1:-1,o=e[n.pageRowIdx+t][n.pageColIdx];return 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];i.set(n.qElemNumber,n.rowIdx)}return i})(i,r,s,c,a);return GW(l,r,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},nU=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}},rU=(e,t)=>{switch(t.type){case O$.Select:return eU(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)=>nU(e.isSelectMultiValues||e.firstCell!==t.cell?e:eU(e,t)))(e,t.payload);case O$.SelectMultiAdd:return tU(e,t.payload);case O$.SelectMultiEnd:return nU(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")}},oU=Jg(e=>{const t=e(Pb);return function(e,t){return Jg(e,function(e,n,r){n(this,t(e(this),r))})}({pageRows:e(VB).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},rU)}),iU=Jg(e=>e(e(oU)),(e,t,n)=>{t(e(oU),n)}),aU=iI(e=>Jg(t=>{const{colIdx:n,rows:r,api:o}=t(iU);return"object"==typeof e&&o?.isModal()?n!==e.selectionColIdx?q$.Disabled:r.has(e.qElemNumber)?q$.Selected:q$.Possible:q$.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),sU=Jg(e=>{const t=e(xV),n=e(Jb).width,r=e(vH);return t>0&&t+r<n}),lU=()=>{const[e,t]=P(!1);return mj({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?sn.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},cU=(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}),uU=Jg(e=>{const t=e(Sb),n=e(Gb);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(),d=u.qHyperCubeDef.qInterColumnSortOrder,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})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),n.applyPatches(p,!0)}}),dU=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r})=>(e>n?e--:t>n&&(t--,e=r),[t,e]),pU=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r,lastRowIdx:o})=>(e<r?e++:t<o&&(t++,e=n),[t,e]),fU=e=>e.atTop?2:1,hU=(e,t)=>({top:e?fU(t):0,bottom:e&&t.atBottom?1:0}),mU=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],gU=e=>e?.setAttribute("tabIndex","0"),bU=e=>e?.setAttribute("tabIndex","-1"),vU=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(bU)},yU=e=>{e?.focus(),gU(e)},xU=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${lg}`);yU(t)},0)},SU=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o,direction:i})=>{vU(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 sg.Down:c<s&&c++;break;case sg.Up:c>a&&c--;break;case sg.Right:if(i)break;[c,u]="rtl"===r?dU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):pU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case sg.Left:if(i)break;[c,u]="rtl"===r?pU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):dU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case sg.Home:(YW(e)||i)&&(c=a),i||(u=0);break;case sg.End:(YW(e)||i)&&(c=s),i||(u=l);break;case sg.PageDown:c=Math.min(s,c+10);break;case sg.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,n,i,o),s=mU(t,a);return yU(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}},wU=(e,t,n,r)=>{vU(t),n(e),r.enabled&&!r.active?r.focus?.():yU(mU(t,e))},CU=(e,t,n)=>{const r=e.currentTarget;if(!n.enabled||t.current||!r)return;const o=e.relatedTarget??document.activeElement,i=!!o&&r.contains(o),a=!!o?.closest(`.${og}`);i||a||((e=>{const t=e.querySelector(`.${N$.First}`),n=e.querySelector(`.${N$.Second}`);t&&n&&(t.innerHTML="",n.innerHTML="")})(r),n.blur?.(!1))},EU=F((e,t)=>sn.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:sn.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"})})),RU=$c(Jh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:n,background:r,color:o})=>({...eH,...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}})),IU=$c("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:J$,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),AU=parseInt(J$,10)/2,kU=$c("div")({position:"absolute",bottom:-AU,left:`calc(50% - ${AU}px)`}),PU=$c(fm)({position:"sticky",top:0,zIndex:1}),DU={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},MU=$c(Td)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),TU=$c("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?{...DU,whiteSpace:"nowrap",display:n?"block":void 0}:{...DU,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),qU=$c("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),OU="cell-text",LU=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=cb(sV);return o?sn.jsx(TU,{"data-testid":OU,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:r,isHeadCell:!0,style:{direction:n?"ltr":void 0},children:e}):sn.jsx(TU,{"data-testid":OU,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})},NU=e=>{const{column:t,isInteractionEnabled:n,open:r,setOpen:o,isPagination:i,forwardRef:a}=e,s=cb(Cb),l=cb(uU),c=cb(zb),u=cb(Mb),d=cb(hb),p=cb(nv),f=cb(pb),h=cb(bV)[t.pageColIdx],m=cb(Ub),g=D(null),b=D(null),v=(({column:e,columnWidth:t})=>{const n=cb(sV),{measureText:r}=Um({fontSize:n.header.fontSize,fontFamily:n.header.fontFamily,fontWeight:Z$});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?sn.jsx(tW,{height:J$,"data-testid":"head-cell-sort-ascending-icon"}):sn.jsx(oW,{height:J$,"data-testid":"head-cell-sort-descending-icon"}),a=n?sn.jsx(IU,{align:t,dir:o,children:i}):void 0,s=r?sn.jsx(fH,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:sn.jsx(EU,{height:J$,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return sn.jsxs(pH,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:iH(t,i,c),children:[S,sn.jsxs(dH,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,sn.jsx(LU,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),n?sn.jsxs(sn.Fragment,{children:[sn.jsx(bW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[hW.Sorting]:!0,[hW.Searching]:!0,[hW.Selections]:!0,[hW.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:xU},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),sn.jsx(uH,{ref:b,direction:c,isPagination:i}),sn.jsx(uH,{ref:g,direction:c})]}):null]})},jU=F((e,t)=>sn.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:sn.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"})})),_U=(e,t)=>e.isCyclic&&t,zU=({column:e})=>{const t=cb(sV),n=cb(zb),r=cb(Ub),o=w.useRef(null),[i,a]=w.useState(!1),s=kV({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return sn.jsxs(sn.Fragment,{children:[sn.jsx(mH,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:sn.jsx(jU,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),sn.jsx(YV,{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:hz,isActive:e.groupDimensionPos===n}))}]],anchorEl:o.current,direction:n,isPagination:!1})]})},FU=e=>e.isLocked,$U=({column:e})=>{const t=cb(pb),n=cb(Cb),r=cb(sV);return sn.jsx(mH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,onClick:r=>{r.stopPropagation(),(async(e,t,n)=>{const r=JV(t??"$",n);let o;try{const t=await(e?.createSessionObject(r));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,n,e)},children:sn.jsx(EU,{height:16,"data-testid":"head-cell-lock-icon"})})},HU=({column:e,menuIconRef:t,open:n,setOpen:r})=>{const o=cb(sV);return sn.jsx(mH,{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:sn.jsx(AV,{height:16})})},BU=({anchorRef:e,column:t,isPagination:n,listboxRef:r,open:o,setOpen:i})=>{const a=cb(pb),s=cb(zb),l=cb(hb),c=cb(Mb),u=cb(Ub),d=cb(Cb),p=cb(nv),f=cb(uU);return sn.jsx(bW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[hW.Sorting]:!0,[hW.Searching]:!0,[hW.Selections]:!0,[hW.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:xU},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:n})},VU=Jg();VU.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 WU=({ref:e,callback:t})=>{const n=cb(VU),r=D(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])},UU=$c(Td)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),GU=({children:e})=>{const t=w.useRef(null),[n,r]=P(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=k(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=L(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 WU({ref:t,callback:i}),sn.jsx(UU,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!n.has(e.key))})},KU=({children:e})=>e,YU=(e,t)=>!e.isLocked&&e.isDim&&t,XU=({column:e,open:t,setOpen:n})=>{const r=cb(sV),o=cb(Cb),i=cb(zb),a=cb(hb);cb(pb);const s=w.useRef(null),l=L(()=>{n(!1)},[n]),c=XV({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return sn.jsx(mH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),n(!0)},children:sn.jsx(lW,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},JU=F((e,t)=>sn.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:sn.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"})})),ZU=F((e,t)=>sn.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:sn.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"})})),QU=({column:e})=>{const{sortDirection:t,isActivelySorted:n}=e,r="A"===t?sn.jsx(ZU,{height:J$,"data-testid":"head-cell-sort-ascending-icon"}):sn.jsx(JU,{height:J$,"data-testid":"head-cell-sort-descending-icon"});return n?sn.jsx(kU,{children:r}):void 0},eG=0,tG=1,nG=2,rG=3,oG=e=>{const{column:t,open:n,setOpen:r,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=cb(sV),c=cb(zb),{measureText:u}=Um(l.header),[d,p]=P(!1),f=D(null),h=D(null),m=D(null),g="number"==typeof a&&a>cg.PixelsMin+18;return sn.jsxs(sn.Fragment,{children:[sn.jsxs(GU,{children:[sn.jsx(KU,{prio:nG,minWidth:cH,children:FU(t)?sn.jsx($U,{column:t}):null},"Lock"),sn.jsx(KU,{prio:tG,minWidth:cH,children:_U(t,s)?sn.jsx(zU,{column:t}):null},"Cyclic"),sn.jsx(KU,{ignore:!0,children:sn.jsx(QU,{column:t})},"Sort"),sn.jsx(KU,{minWidth:u(t.label)+8,children:sn.jsx(hH,{justifyContent:t.headTextAlign,children:sn.jsx(LU,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),sn.jsx(KU,{prio:g?void 0:eG,minWidth:cH,children:d||YU(t,s)?sn.jsx(XU,{open:d,setOpen:p,column:t}):null},"Search"),sn.jsx(KU,{prio:rG,minWidth:cH,children:s?sn.jsx(HU,{menuIconRef:m,column:t,open:n,setOpen:r}):null},"Menu")]}),s?sn.jsxs(sn.Fragment,{children:[sn.jsx(uH,{ref:h,direction:c,isPagination:o}),sn.jsx(uH,{ref:f,direction:c}),sn.jsx(BU,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:n,setOpen:r})]}):null]})},iG=$c("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:n})=>({...t,background:e,color:n})),aG=()=>{},sG=({column:e,isPagination:t})=>{const n=cb(sV),r=cb(zb),o=cb(sU),i=cb(WB),a=!1,s=cb(Ib)?NU:oG;return sn.jsx(iG,{className:"sn-table-cell",applicableStyle:{...n.header,...cU(n,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:sH(r,a,o),borderLeftWidth:lH(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:sn.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:aG})})},lG=({isPagination:e})=>{const t=cb(UB),[n,r]=P();mj({onDragStart:e=>{const t=e.operation.source?.id;r(t)},onDragEnd:()=>{}});const o=n?t.find(e=>e.id===n):void 0;return o?sn.jsx(UN,{children:sn.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:sn.jsx(sG,{column:o,isPagination:e})})}):null},cG=JR(Jg(async e=>{e(vb);const t=e(Gb);return t?.getEffectiveProperties()}),e=>e),uG=Jg(e=>e(cG)?.qHyperCubeDef),dG=[ZL.configure({activationConstraints:[new KL.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],pG=yN.plugins.filter(e=>e!==IO),fG=(e,t,n)=>{const r=JSON.stringify(t),o=JSON.stringify(n);if(r!==o)return{qPath:e,qOp:"Replace",qValue:o}},hG=(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=Fz({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:$z({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=[fG("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),fG("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),fG("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),fG("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},mG=({children:e})=>{const t=cb(Gb),n=cb(uG),r=cb(UB);return sn.jsx(BN,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&hG(t,n,r,o,i)},sensors:dG,plugins:pG,children:e})};function gG(e,t){const n=D(!1);q(()=>{n.current?e():n.current=!0},t)}const bG=(e,t)=>{const n=cb(Wb);q(()=>{const r=e.current;if(!r)return;const o=e=>{CU(e,t,n)};return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}},[e,t,n])},vG=Jg(j$),yG=iI(e=>Jg(t=>{const[n,r]=t(vG);return 0===n&&r===e})),xG=()=>{const e=cb(fb);q(()=>{e.notifyIsDoneRendering()})};var SG={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 wG=Jg(e=>{const t=e(nv),n=e(Zb);let r;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(SG).forEach(t=>{e.add(SG[t])})}(t),({keys:e,politeness:o="polite"})=>{const i=e.map(e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)}).join(" "),a=n.querySelector(`.${N$.First}`),s=n.querySelector(`.${N$.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===N$.First?(l=s,r=N$.Second):(l=a,r=N$.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}}),CG=(e,t)=>{const n=cb(wG),r=cb(Zb),o=cb(XB),i=cb(YB),a=cb(KB),s=cb(WB),[l,c]=db(vG),u=cb(kb),d=cb(Wb);gG(()=>{const t=((e,t,n=!1)=>{const r=[fU(t),e[1]];return n?r:j$})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(vU(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=mU(t,e);n.current?(yU(s),n.current=!1):gU(s),r&&(a({keys:[s?.textContent??""]}),KW(a,s,r))})({resetCellCoord:t,rootElement:r,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:n})},[a.length,i,o,t])},EG=e=>{Lm(e),YW(e)&&gg(e.currentTarget)},RG=e=>{QW(e.evt)&&(Lm(e.evt),SU(e))},IG=e=>{const{evt:t,totalsPosition:n,cell:r,isSelectionMode:o}=e;if(!QW(t))return;Lm(t);const i=((e,t)=>[e.pageRowIdx+fU(t),e.pageColIdx])(r,n),a=hU(o,n),{nextCell:s,nextCellCoord:l}=SU({...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}}):KW(o,a,i)})({...e,nextCell:s})},AG=e=>{const{evt:t}=e;XW(t)?(({evt:e,totalRowCount:t,rowsPerPage:n,page:r,updateShouldRefocus:o,handleChangePage:i})=>{Lm(e);const a=Math.ceil(t/n)-1;e.key===sg.Right&&r<a?(o(),i(r+1)):e.key===sg.Left&&r>0&&(o(),i(r-1))})(e):t.key===sg.Esc?(({evt:e,keyboard:t,isSelectionMode:n})=>{t.enabled&&!n&&(Lm(e),t.blur?.(!0))})(e):JW(t.key)&&Lm(t)},kG=e=>{const{evt:t,selectionsAPI:n}=e;if(t.currentTarget.classList.contains(q$.Disabled))return void Lm(t);const r={...e,isSelectionMode:!!n?.isModal()};switch(t.key){case sg.Space:(({evt:e,cell:t,isSelectionsEnabled:n,selectionDispatch:r,announce:o})=>{Lm(e),t.isSelectable&&n&&r({type:O$.Select,payload:{cell:t,evt:e,announce:o}})})(r);break;case sg.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{Lm(n),e&&(t?.confirm(),r({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(r);break;case sg.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{e&&(Lm(n),t?.cancel(),r({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(r);break;case sg.C:EG(t);break;case sg.Tab:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{const o=e.shiftKey||!r;t.enabled&&n&&o&&(Lm(e),Om(e.currentTarget,t,e.shiftKey))})(r);break;default:IG(r)}},PG=e=>{const t=cb(gH),n=ub(bH),r=ub(vH),o=cb(T$),i=D();WU({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()}}),q(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},DG=$c("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),MG=$c(tm,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),TG=$c(zh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),qG=()=>sn.jsxs(sn.Fragment,{children:[sn.jsx(DG,{className:N$.First,"data-testid":N$.First,"aria-live":"polite","aria-atomic":"true"}),sn.jsx(DG,{className:N$.Second,"data-testid":N$.Second,"aria-live":"polite","aria-atomic":"true"})]}),OG=e=>{const t=D(new Map),n=D(null);q(()=>{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=L((e,r)=>{t.current.set(e,r),n.current?.observe(e)},[t,n]),o=L(e=>{t.current.delete(e),n.current?.unobserve(e)},[n,t]);return k(()=>({addTask:r,removeTask:o}),[r,o])},LG=e=>new ResizeObserver(t=>{t.forEach(t=>{const n=e.get(t.target);n?.(t)})}),NG=()=>OG(LG),jG=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=cb(Pb),r=cb(Wb),o=ub(iU);q(()=>{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])},_G=e=>{e.stopPropagation()},zG=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:_G,color:km.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),FG=({href:e,text:t,interactions:n,color:r})=>sn.jsx(Zp,{...zG({href:e,text:t,interactions:n,color:r}),children:t}),$G=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),HG=window.cancelIdleCallback??(e=>{clearTimeout(e)}),BG="qDimensionInfo/0",VG="qMeasureInfo/0",WG="x",UG="y",GG=e=>({key:"bars",type:"box",data:{extract:{field:BG,props:{start:0,end:{field:VG}}}},settings:{major:{scale:WG},minor:{scale:UG},box:{maxWidthPx:8,fill:{fn:e}}}}),KG=e=>({key:"p",type:"point",data:{extract:{field:BG,props:{y:{field:VG}}}},settings:{x:{scale:WG},y:{scale:UG},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),YG=({qNum:e})=>void 0===e?0:Math.sign(e),XG=(e,t)=>{const{primary:n,nil:r,others:o}=e.getDataColorSpecials(),i=Tm(e,t?.negative,n),a=Tm(e,t?.positive,n);return{key:"pos-neg",type:"box",data:{extract:{field:BG,props:{start:0,end:{field:VG,value:YG}}}},settings:{major:{scale:WG},minor:{scale:UG},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}}}}},JG=(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=Tm(e,t?.main,o),l=Tm(e,t?.max,s),c=Tm(e,t?.min,s),u=Tm(e,t?.first,s),d=Tm(e,t?.last,s);return e=>{const t=UG in e.datum?UG:"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[GG(a)];case"dots":return[KG(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:BG,props:{v:{field:VG}}}},settings:{coordinates:{major:{scale:WG},minor:{scale:UG,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Tm(e,r?.main,e.getDataColorSpecials().primary));return n?[t,KG(a)]:[t]}case"posNeg":return[XG(e,r)];default:return[]}},ZG=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"}),QG=(e,t,n,r)=>({y:{data:{field:VG},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:n},x:{data:{extract:{field:BG}},paddingInner:.3,paddingOuter:0,invert:"rtl"===r,align:"rtl"===r?1:0,maxPxStep:12}}),eK=K();eK.use(G),eK.renderer.prio(["canvas"]);const tK={resolve:()=>{},promise:{}},nK=({chart:e,element:t,requestId:n,theme:r,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:c}=(e=>{const t=D(e.isDownloadedAsPDForImage?_t():tK);return{addChartPromiseToQueue:L(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:L(()=>{if(null===t.current||null!==e.current)return;c();n.current=$G(()=>{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 eK.chart({element:e,data:{type:"q",key:"qHyperCube",data:ZG(s)},settings:{scales:QG(a,l,c,i),components:JG(t,r),strategy:n?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:r,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,c,n,r,o,a,i,l]),safeCancelIdleCallback:L(()=>{null!==n.current&&HG(n.current),n.current=null,l()},[n,l])}},rK=e=>{const t=D(null),n=D(!1);return L(r=>{const o=r.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(HG(e.current),e.current=null)})(t),n.current?0!==o?null!==e.current&&(t.current=$G(()=>{e.current?.update()},{timeout:2e3})):n.current=!1:n.current=!0},[e])},oK=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:n,isSnapshot:r,miniChartData:o,downloadService:i,direction:a})=>{const s=D(null),l=D(null),c=D(null),{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:d}=nK({element:s,chart:l,requestId:c,theme:n,isSnapshot:r,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:r,chart:o})=>{const i=L(e=>{e.isIntersecting?r():n()},[r,n]);q(()=>{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:d,renderChartWithRequestIdleCallback:u,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionObserverTaskScheduler:r})=>{q(()=>r?()=>{}:(e(),()=>{t(),n.current?.destroy(),n.current=null}),[r,t,e,n])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:n})=>{const r=rK(t);q(()=>{const t=e.current;return t?(n.addTask(t,r),()=>{n.removeTask(t)}):()=>{}},[e,r,n])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},iK=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=oK({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return sn.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},aK=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}`},sK=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},lK=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const o=cb(zb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=sn.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:n,objectFit:sK(s),objectPosition:aK(l),overflow:"hidden"}});return r?sn.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?n:"100%",overflow:"hidden",display:"flex",justifyContent:c?nH(o,e):void 0},children:u}):u},cK=F((e,t)=>sn.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:sn.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),uK=F((e,t)=>sn.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:sn.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"})})),dK=F((e,t)=>sn.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:[sn.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"}),sn.jsx("use",{fillRule:"evenodd"})]})),pK=F((e,t)=>sn.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:sn.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"})})),fK=F((e,t)=>sn.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:sn.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"})})),hK=F((e,t)=>sn.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:sn.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"})})),mK=F((e,t)=>sn.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:sn.jsx("path",{d:"M2 7.5h12v1H2z"})})),gK=F((e,t)=>sn.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:sn.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"})})),bK=F((e,t)=>sn.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:sn.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"})})),vK=F((e,t)=>sn.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:sn.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"})})),yK=F((e,t)=>sn.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:sn.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"})})),xK={m:F((e,t)=>sn.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:sn.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":vK,R:ZU,S:JU,T:F((e,t)=>sn.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:sn.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),U:F((e,t)=>sn.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:sn.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),P:bK,Q:hK,"è":F((e,t)=>sn.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:sn.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"})})),"¢":pK,"©":dK,"23F4":fK,2013:yK,"&":gK,add:cK,"minus-2":mK,dot:uK},SK=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&xK[t];return o&&sn.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:sn.jsx(o,{style:{height:e}})})},wK=({representation:e,cellValue:t,paginationCellAlign:n})=>{const r=cb(sV),o=cb(zb),i=cb(tv),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=K$(e,t,o,i),d=(e=>parseInt(e||J$,10))(r.measure.values.fontSize),{color:p,iconKey:f,position:h}=u||{};return l?sn.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?p:void 0},children:["left"===h&&SK({size:d,iconKey:f,color:p}),sn.jsx(LU,{isNumeric:!0,children:a}),"right"===h&&SK({size:d,iconKey:f,color:p})]}):SK({size:d,iconKey:f,color:p})},CK=(e,t,n)=>e.contentStaticLineCount?t*(n??e.grid.contentLineClamp):t,EK=({forwardRef:e,cell:t,style:n,virtualizedCell:r,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=cb(sV),c=cb(uV),u=cb(fb),d=cb(vb),p=cb(tv),f=cb(zb),h=cb(Mb),m=cb(kb);if(t.representation.type===Yz.Image&&!t.representation.url?.trim())return null;if(t.representation.type===Yz.Image)return sn.jsx(lK,{representation:t.representation,textStyle:n,maxImageHeight:CK(l,c,o),wrapInContainer:!r});let g=t.representation.text;t.representation.type!==Yz.Link||m||t.isNull||(g=sn.jsx(FG,{href:t.representation.url,text:t.representation.text,interactions:h,color:n.cellForegroundColor}));const b="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==Yz.Indicator||Number.isNaN(b)?t.representation.type===Yz.MiniChart&&t.representation.miniChart&&!t.isNull?sn.jsx(iK,{height:CK(l,c,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:u}):sn.jsx(LU,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:o,isPagination:!r,children:g}):sn.jsx(wK,{representation:t.representation,cellValue:b,paginationCellAlign:r?void 0:s})},RK=()=>sn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:sn.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),IK=$c("div")({"& path":{stroke:"none !important"}}),AK=({children:e,cellSelectionState:t,hideTickIcon:n})=>t!==q$.Selected||n?e:sn.jsxs(qU,{children:[e,sn.jsx(IK,{children:sn.jsx(RK,{})})]}),kK=e=>{const t=function(){const e=VN(),t=IN(()=>null==e?void 0:e.dragOperation.source,[e]),n=IN(()=>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},PK=(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}})}}),DK=e=>{const t=cb(JB),n=cb(WB),r=cb(wG),o=cb(Zb),i=cb(zb),a=ub(vG),s=ub(iU),l=cb(Wb),c=cb(Ob),u=cb(Pb),d=d=>{kG({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===sg.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;wU([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}=PK(f,e,s,r);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},MK=e=>{q(()=>()=>{aU.remove(e)},[e])},TK=(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},qK=(e,t,n)=>{const{color:r,background:o}=e.grid.zebraStripes[n];return{...t,...r?{color:r}:void 0,...o?{background:o}:void 0}},OK=(e,t,n)=>{if(t.grid.zebraStripes.show){const r=(n.rowIdx+1)%2==0;return qK(t,e,r?"even":"odd")}return e},LK=(e,t)=>{const n=cb(sV),r=cb(aU(e)),o=cb(gb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");MK(e);let a=t.isDim?n.dimension.values:n.measure.values;a=OK(a,n,e),a=i?n.subTotalRow:a,a=TK(a,n,e,t.isDim);const s=e.isNull||i&&t.isDim?a:PH(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,n){return t===q$.Selected?{...e,...n}:t===q$.Disabled?{...e,background:`${Y$}, ${e.background}`}:e}(s,r,n.selectedColors);return{cellStyle:{...l,borderColor:n.grid.border},representationStyle:s,cellSelectionState:r}},NK=$c(Uh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),jK=$c(fm,{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}}})),_K=$c(Jh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...eH,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),zK=$c(Jh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...eH,...e,fontWeight:Z$,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})),FK=({cell:e,column:t,columnIndex:n,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o})=>{const i=cb(zb),a=cb(Mb),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=DK(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=LK(e,t),m=kK(t.id);return sn.jsx(_K,{cellStyle:{...p,opacity:m},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${ag}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:sn.jsx(AK,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:sn.jsx(EK,{cell:e,style:f,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o,paginationCellAlign:aH(i,e.align)})})})},$K=Jg(0),HK=({column:e,totalsPosition:t,onKeyDown:n,onMouseDown:r})=>{const o=cb(sV),i=cb(qb),a=cb($K),s=kK(e.id);return sn.jsx(zK,{totalsStyle:{...o.totalRow,...cU(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${ag}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:n,onMouseDown:r,children:sn.jsx(LU,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},BK=()=>{const e=cb(WB),t=cb(UB),n=cb(KB),r=cb(Zb),o=cb(Tb),i=cb(zb),a=ub(vG),s=cb(kb),l=cb(Wb);return sn.jsx(fm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:n.length+1,c];return sn.jsx(HK,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:n,isInteractionEnabled:r}=e;if(!t&&r)switch(n.key){case sg.C:EG(n);break;case sg.Space:n.preventDefault();break;default:RG(e)}else Lm(n)})({evt:e,rootElement:r,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{wU(u,r,a,l)}},t.id)})})};var VK=z(BK);const WK=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=cb(KB),r=cb(WB),o=cb(UB),i=cb(sV),a=cb(dV),s=cb(pV),l=cb(vb),c=!!RH(l)?.content?.hoverEffect;jG({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=L(t=>new IntersectionObserver(e=>{e.forEach(e=>{const n=t.get(e.target);n?.(e)})},{root:e.current}),[e]);return OG(t)})(t),d=NG();return sn.jsxs(NK,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[r.atTop?sn.jsx(VK,{}):void 0,n.map((e,t)=>{const n=e.at(0)?.isTotalRow??!1;return sn.jsx(jK,{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 sn.jsx(FK,{columnIndex:n,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},r)})},`row-${t}`)}),r.atBottom?sn.jsx(VK,{}):void 0]})};var UK=z(WK);const GK=(e,t)=>!!e?.skipHeader||!!t.hideHeader,KK=Jg(e=>{const t=e(vb),n=e(Ub);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)}}),YK=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,a=cb(KK),s=cb(zb),l=cb(Tb),c=cb(nv),[u,d]=db(bV);if(!l)return null;return sn.jsx(IV,{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=>{bU(e);const t=e.closest(".sn-table-cell");yU(t)})(e.currentTarget)},setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},XK=e=>e.target?.getAttribute("class")?.includes(lg),JK=({isInteractionEnabled:e,column:t})=>{const[n,r]=P(!1),o=cb(uU),i=cb(gH);return{open:n,setOpen:r,handleOpenMenu:t=>{!e||XK(t)||i||r(!0)},toggleSortOrder:n=>{e&&!XK(n)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(n)&&(n.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var ZK=class extends YM{constructor(e,t){super(e,t),this.boundingRectangle=ZA(null),this.destroy=lk(()=>{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=cT(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=Dj({},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 kP(l,c,s,a),n,r);return u}};ZK.configure=fD(ZK);const QK=({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/AP.distance(n.shape.center,s),type:CM.Collision,priority:wM.Normal}:null},eY=[ZK.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],tY=(e,t)=>{const n=cb(zb),r=cb(gb),o=!cb(Nb)||!r("TLV-1531_DRAG_AND_DROP_COLUMNS");return B_({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:eY,data:e,plugins:e=>[...e,vL.configure({feedback:"clone"})],collisionDetector:QK({invert:"rtl"===n})})},nY=({column:e,columnIndex:t,columnsLength:n})=>{const r=cb(sV),o=cb(Zb),i=cb(zb),a=cb(Mb),s=cb(UB),l=cb(WB),c=cb(bV)[t],u=ub(vG),d=cb(yG(t)),p=cb(Nb),f=cb(Wb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=JK({isInteractionEnabled:p,column:e}),v=ub(gH),{ref:y,isDragging:x}=tY(e,t),S=kK(e.id),w=cb(Ib),C=w?NU:oG,E=e.isActivelySorted?L$[e.sortDirection]:void 0,R=h?ig:void 0,I=h?"true":void 0,A=t===n-1,k=[0,e.pageColIdx],P={width:c,zIndex:s.length-t},D=d&&0===t&&!f.enabled&&p?0:-1;return sn.jsxs(RU,{"data-dragging":x,ref:y,headerStyle:{...r.header,...cU(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:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${ag}`,tabIndex:D,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:n,handleOpenMenu:r}=e;if(t)switch(n.key){case sg.C:EG(n);break;case sg.Enter:case sg.Space:r?.(n);break;default:RG(e)}else Lm(n)})({evt:e,rootElement:o,cellCoord:k,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&&wU(n,t,r,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":I,"aria-haspopup":"true",children:[sn.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),sn.jsx(YK,{column:e,isLastColumn:A,setIsAdjustingWidth:v})]},e.id)},rY=()=>{const e=cb(UB),t=cb(sV),n=cb(vb),r=cb($b),o=ub($K),i=cb(bV),a=D(null),s=GK(r,n);return q(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),sn.jsx(sm,{style:{visibility:s?"collapse":void 0},children:sn.jsx(PU,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,n)=>sn.jsx(nY,{column:t,columnIndex:n,columnsLength:e.length},t.id))})})};var oY=z(rY);var iY=z(()=>{const e=cb(wG),[t,n]=db(NB),{page:r,rowsPerPage:o}=t,i=cb(Fb),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=cb(VB),p=cb(sV),f=cb(yB),h=cb(vb),m=cb(tv),g=cb(Jb),b=cb(Zb),v=cb($b),y=cb(zb),x=cb(Mb),S=cb(nv),w=cb(sU),C=ub(iU),E=cb(kb),R=cb(Wb),I=D(!1),A=D(null),k=D(null),P=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,M=jb(h,v),T=M?f.scrollLeft??0:0,O=M?f.rowPartialHeight??0:0,N=L(()=>{I.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=L(r=>{n({...t,page:r}),e({keys:[["SNTable.Pagination.PageStatusReport",(r+1).toString(),l.toString()]],politeness:"assertive"})},[t,n,l,e]),_=L(r=>{n({...t,page:0,rowsPerPage:r}),e({keys:[["SNTable.Pagination.RowsPerPageChange",r.toString()]],politeness:"assertive"})},[e,t,n]);return(e=>{const t=cb(zb),n=cb(yB);q(()=>{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])})(A),bG(k,I),(()=>{const e=cb(Zb),t=cb(Wb),n=cb(vG);Zm(()=>{const r=mU(e,n);t.active?yU(r):(r?.blur(),vU(e))},[t.active,e])})(),CG(I,r),q(()=>{const e=A.current;e&&(e.scrollLeft=T,e.scrollTop=O)},[t,s,T,O]),gG(()=>{C({type:O$.UpdatePageRows,payload:{pageRows:u}})},[u]),xG(),PG(A),sn.jsxs(mG,{children:[sn.jsxs(MU,{ref:k,dir:y,onKeyDown:e=>{AG({evt:e,totalRowCount:s,page:r,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[sn.jsx(qG,{}),sn.jsxs(MG,{ref:A,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[sn.jsxs(TG,{stickyHeader:!0,"aria-label":P,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[sn.jsx(oY,{}),sn.jsx(UK,{updateShouldRefocus:N,tableWrapperRef:k})]}),sn.jsx(lU,{})]}),sn.jsx(UW,{footerContainer:i,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),sn.jsx(lG,{isPagination:!0})]})});const aY=Jg(0),sY=Jg(e=>{const t=e(yb);return Math.min(DH,t)}),lY=Jg(e=>{const t=e(yb);return t===DH?0:Math.floor(t/DH)}),cY=Jg(e=>{const t=e(aY),n=e(lY);return Math.min(t,n)}),uY=Jg(e=>({page:e(cY),rowsPerPage:e(sY),rowsPerPageOptions:[]}),(e,t,n)=>{const r=e(lY);t(aY,Math.max(0,Math.min(n,r)))}),dY=Jg(null),pY=Jg(null),fY=Jg(e=>{const t=e(uY),n=e(yb);return Math.min(t.rowsPerPage,n-t.page*t.rowsPerPage)}),hY=Jg(null),mY=Jg(null),gY=Jg(e=>e(WB).atTop?2:1),bY=Jg(e=>e(WB).atTop?1:e(gY)+e(fY)),vY=Jg(e=>hU(Boolean(e(kb)),e(WB))),yY=Jg(e=>({firstBodyRowIdx:e(gY),totalsRowIdx:e(bY),allowedRows:e(vY)})),xY=Jg(e=>({rootElement:e(Zb),totalsPosition:e(WB),rowCount:e(fY),colCount:e(GB),columnWidths:e(bV)})),SY=Jg(e=>({scrollToCell:e(hY),scrollableContainerElement:e(mY)})),wY=Jg(e=>({keyboard:e(Wb),isInSelectionMode:e(kb),selectionsAPI:e(Pb),isSelectionsEnabled:e(Ob)})),CY=Jg(e=>({direction:e(zb),isInteractionEnabled:e(Nb),paginationNeeded:e(JB),announce:e(wG),shouldRefocusRef:e(dY)})),EY=10,RY=e=>e.atTop?2:1,IY=e=>{e.querySelectorAll(".sn-table-cell[tabindex='0']").forEach(e=>{e.setAttribute("tabIndex","-1")})},AY=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},kY=(e,[t,n],r,o)=>{const i=RY(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}"]`)},PY=(e,t,n,r,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=n,d=c-RY(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})(kY(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)}},DY=(e,t,n,r,o,i)=>e<i?[t,e+1]:t<r?[t+1,o]:[t,e],MY=(e,t,n,r,o,i)=>e>o?[t,e-1]:t>n?[t-1,i]:[t,e],TY=(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 sg.Down:case sg.Up:t=((e,t,n,r)=>e===sg.Down&&t<r?t+1:e===sg.Up&&t>n?t-1:t)(e.key,t,c,u);break;case sg.Right:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?MY(e,t,n,0,o,i):DY(e,t,0,r,o,i))(n,t,c,u,0,d,i));break;case sg.Left:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?DY(e,t,0,r,o,i):MY(e,t,n,0,o,i))(n,t,c,u,0,d,i));break;case sg.Home:l?t=Math.max(c,t-EY):(YW(e)&&(t=c),n=0);break;case sg.End:l?t=Math.min(u,t+EY):(YW(e)&&(t=u),n=d);break;case sg.PageDown:t=Math.min(u,t+EY);break;case sg.PageUp:if(l)t=Math.max(c,t-EY);else{const e=s?RY(s):1,n=t-e;t=n>0&&n<=EY?e:Math.max(c,t-EY)}}return[t,n]},qY=[sg.Home,sg.End,sg.PageUp,sg.PageDown],OY=()=>{const e=D(!1),t=D(0),n=D(0),r=D(null),o=D(null),i=D(null),a=D(0),s=ub(vG),l=ub(iU),c=cb(gb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=cb(xY),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=cb(yY),{scrollToCell:v,scrollableContainerElement:y}=cb(SY),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=cb(wY),{direction:E,announce:R,isInteractionEnabled:I,paginationNeeded:A,shouldRefocusRef:P}=cb(CY),M=k(()=>(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]);q(()=>()=>{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 T=L((e,t,n,r)=>{const o=t=>{if(r&&!r())return void n?.(!1);const i=kY(u,e,d,p);if(i)return document.activeElement!==i&&AY(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]),O=L((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,P&&(P.current=!0),o.current?.(),o.current=PY(v,u,e,d,p,y,10,()=>a.current===r&&n.current===t,()=>{T(e,300,()=>{P&&(P.current=!1)},()=>a.current===r&&n.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[T,u,p,v,y,P,d]),N=L(()=>(P&&(P.current=!0),t.current+=1,t.current),[P]),j=L(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=L((e,n)=>{const r=o=>{t.current===e&&(i.current?.(),i.current=PY(v,u,n,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=kY(u,n,d,p);i&&document.activeElement!==i&&AY(i),o>0?requestAnimationFrame(()=>{r(o-1)}):t.current===e&&P&&(P.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{r(300)})})},[u,d,p,v,P,y]),z=L((e,t)=>{if(!QW(e))return;Lm(e),j(),n.current+=1;const o=n.current;a.current+=1,r.current?.(),r.current=null;const i=((e,t)=>RY(t)+e+(t.atBottom?1:0))(p,d),l=TY(e,t,i,f,E,g,d);IY(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,M,c),P&&(P.current=!0),r.current=PY(v,u,l,d,p,y,10,()=>n.current===o,()=>{T(l,300,t=>{P&&(P.current=!1),t&&(e=>qY.includes(e))(e.key)&&O(l,o)},()=>n.current===o)}),l},[u,d,p,f,E,v,s,g,y,P,T,j,M,O]),F=L(e=>{e.key===sg.Esc?x.enabled&&!S&&(Lm(e),x.blur?.(!0)):JW(e.key)&&Lm(e)},[x,S]),$=L((e,t,n)=>{switch(e.key){case sg.C:Lm(e),I&&(e.ctrlKey||e.metaKey)&&gg(e.currentTarget);break;case sg.Enter:case sg.Space:if(!I)return void Lm(e);n?.(e);break;default:z(e,[0,t])}},[z,I]),H=L((t,r,o,i)=>{const a=[r+m,o];switch(t.key){case sg.Space:if(Lm(t),i.isSelectable&&C){e.current=!0;const n=N();l({type:O$.Select,payload:{cell:i,evt:t,announce:R}}),_(n,a)}break;case sg.Enter:if(Lm(t),e.current=!1,S){N(),s(j$),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;T(j$,300,()=>{P&&(P.current=!1)},()=>n.current===t)}break;case sg.Esc:if(e.current=!1,S){Lm(t);const e=N();w?.cancel(),_(e,a)}break;case sg.C:Lm(t),I&&(t.ctrlKey||t.metaKey)&&gg(t.currentTarget);break;case sg.Tab:{const e=t.shiftKey||!A;x.enabled&&S&&e&&(Lm(t),Om(t.currentTarget,x,t.shiftKey));break}default:{const n=t.key===sg.Left||t.key===sg.Right,r=S||Boolean(w?.isModal())||e.current;if(n&&r){Lm(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:R}});break}}},[m,z,C,l,R,S,w,x,A,I,N,_,s,v,y,T,P]),B=L(t=>{t.key===sg.Space&&(e.current=!1),t.key===sg.Shift&&l({type:O$.SelectMultiEnd})},[l]),V=L((e,t)=>{if(S)Lm(e);else{if(e.key!==sg.Space)return e.key===sg.C?(Lm(e),void(I&&(e.ctrlKey||e.metaKey)&&gg(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,I]),W=L(e=>{j(),n.current+=1;const t=n.current;IY(u),s(e),x.enabled&&x.focus?.(),T(e,2,n=>{n&&O(e,t)},()=>n.current===t)},[u,s,x,T,j,O]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:L(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:L((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:L(e=>{c&&W([b,e])},[W,b,c])}};var LY=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function NY(e,t){return e===t||!(!LY(e)||!LY(t))}function jY(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!NY(e[n],t[n]))return!1;return!0}function _Y(e,t){var n;void 0===t&&(t=jY);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 zY="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function FY(e){cancelAnimationFrame(e.id)}function $Y(e,t){var n=zY();var r={id:requestAnimationFrame(function o(){zY()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var HY=-1;function BY(e){if(void 0===e&&(e=!1),-1===HY||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),HY=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return HY}var VY=null;function WY(e){if(void 0===e&&(e=!1),null===VY||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?VY="positive-descending":(t.scrollLeft=1,VY=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),VY}return VY}var UY=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function GY(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,lu(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:lu(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=_Y(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=_Y(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=_Y(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(WY()){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&&FY(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=$Y(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Zc(t,e),t.getDerivedStateFromProps=function(e,t){return KY(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=BY();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(WY()){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&&FY(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?UY: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],R=this._getVerticalRangeToRender(),I=R[0],A=R[1],k=[];if(r>0&&g)for(var P=I;P<=A;P++)for(var D=w;D<=E;D++)k.push(C(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,D)}));var M=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Wn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(c||u||"div",{children:k,ref:l,style:{height:M,pointerEvents:x?"none":void 0,width:T}}))},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}(B),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var KY=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},YY=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},XY=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},JY=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]},ZY=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?QY(e,t,n,i,0,r):eX(e,t,n,Math.max(0,i),r)},QY=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=JY(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},eX=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&JY(e,t,r,n).offset<o;)r+=a,a*=2;return QY(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},tX=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=JY(e,t,n,i),c="column"===e?XY(t,i):YY(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}},nX=GY({getColumnOffset:function(e,t,n){return JY("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return ZY("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=JY("column",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=JY("column",e,c,r).size;return c},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:YY,getEstimatedTotalWidth:XY,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return tX("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return tX("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return JY("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return ZY("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=JY("row",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=JY("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}}),rX=function(e,t){return e};function oX(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,lu(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:lu(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=_Y(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=_Y(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=_Y(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(WY()){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&&FY(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=$Y(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Zc(t,e),t.getDerivedStateFromProps=function(e,t){return iX(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?BY():0:l.scrollHeight>l.clientHeight?BY():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(WY()){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&&FY(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?rX: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],R=w[1],I=[];if(c>0)for(var A=E;A<=R;A++)I.push(C(t,{data:u,key:p(A,u),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var k=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Wn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:I,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],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}(B),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var iX=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},aX=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]},sX=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=aX(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},lX=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&aX(e,n,t).offset<r;)n+=i,i*=2;return sX(e,t,Math.min(n,o-1),Math.floor(n/2),r)},cX=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},uX=oX({getItemOffset:function(e,t,n){return aX(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:cX,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=aX(e,t,o),p=cX(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?sX(e,t,o,0,n):lX(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=aX(e,t,r),d=n+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=aX(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 dX(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 pX=["style"],fX=["style"];function hX(e,t){var n=e.style,r=Un(e,pX),o=t.style,i=Un(t,fX);return!dX(n,o)&&!dX(r,i)}const mX=Jg(0),gX=Jg(0),bX=Jg(0),vX=Jg(e=>e(mX)+e(gX)),yX=Jg(e=>{const t=e(Jb),n=e(JB),r=t.height-(n?41:0);return{width:t.width,height:r}}),xX=Jg(e=>{const t=e(yX),n=e(bH),r=e(vH);return{width:t.width-r,height:t.height-n}}),SX=Jg(e=>{const t=e(xX),n=e(vX),r=e(bX);return Math.min(t.height-n,r)}),wX=Jg(-1),CX=iI(e=>Jg(t=>t(wX)===e)),EX=({style:e})=>sn.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var RX=w.memo(EX,hX);const IX=Jg(e=>{const t=e(xX),n=e(dV),r=e(vX),o=e(bX)+r,i=e(fY)*n+r;return o<2*t.height?o:i}),AX=Jg(e=>e(IX)<=e(yX).height),kX=()=>{},PX=e=>{e.preventDefault()};const DX=({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=cb(CX(t)),h=ub(wX),m=cb(sV),g=cb(zb),b=cb(qb),v=cb(Nb),y=cb(sU),x=cb(gb),S=cb(AX),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:I}=function(e){const t="object"==typeof e,n=cb(Ob),r=ub(iU),o=cb(aU(e));if(MK(e),t&&n){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=PK(PX,e,r,kX);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),A=((e,t,n,r)=>{const o=D(null),i=n&&(!n.isNumeric||n.isDual),a=n?.isTotalRow??!1,s=L(n=>{const o=n.contentBoxSize.at(0)?.blockSize;o&&i&&r(o,e,t,a)},[a,t,r,e,i]);return WU({ref:o,callback:s}),o})(t,e,w,s),k=i[e]?.isDim?m.dimension.values:m.measure.values,P=kK(i[e].id);if("object"==typeof w){const r=((e,t,n,r,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS");let l=OK(o,i,e);l=s?i.subTotalRow:l,l=TK(l,i,e,t.isDim);const c=e.isNull||s&&t.isDim?l:PH(l,e.qAttrExps,t.qAttrExprInfoIDs);return r!==q$.Selected||s?r!==q$.Disabled||s?n?{...c,...i.grid.hoverColors}:c:{...c,color:n?i.grid.hoverColors?.color:c.color,background:`${Y$}, ${n?i.grid.hoverColors?.background:c.background}`}:{...c,...i.selectedColors}})(w,i[e],a&&f,I,k,m,x),o={rowindex:t,columnindex:e},s=n=>{v&&p?.(t,e),C?.(n)},D=u?n=>{u(n,t,e,w)}:void 0;return sn.jsx("div",{className:`sn-table-cell ${I} ${ag}`,tabIndex:-1,style:{...n,...r,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:sH(g,w.isLastColumn,y),borderLeftWidth:lH(g,w.isLastColumn,y),justifyContent:rH(w,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:P},onMouseDown:s,onMouseUp:R,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:D,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:sn.jsx(AK,{cellSelectionState:I,hideTickIcon:!!w.isTotalRow,children:sn.jsx(EK,{forwardRef:m.contentStaticLineCount||1===l?void 0:A,cell:w,style:r,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return sn.jsx(RX,{style:{...n,...k,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:P}})};var MX=z(DX,hX);const TX=JR(Jg(async e=>{const t=e(vb),n=e(Ub),r=e(uY).page,{qDataPages:o}=t.qHyperCube;if(0!==r||0===o.length){const e=r*Math.min(DH,t.qHyperCube.qSize.qcy);if(n&&"getHyperCubeData"in n)return n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),qX=Jg(e=>{const t=e(fY),n=e(xX),r=e(dV);return Math.min(t,Math.ceil(n.height/r))}),OX=Jg(e=>{const t=e(bV),n=e(xX);return t.reduce((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),LX=e=>{const t=D(e);return t.current=e,t},NX=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,jX=e=>-1===e.qElemNumber||!!e.qIsTotalCell,_X=(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},zX=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some(e=>!e[t])},FX=(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(jX);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}=i[n],C=s.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),E=!m&&e.qIsNull,R=m&&TB(e,m),I=E||R?MB(m,e,a,C):e.qText,A=E?F$(I):z$(e),k=z$(e)&&!F$(e.qText??"");f[n]={id:zz(),...e,align:kB(A,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h,isTotalRow:h,pageRowIdx:p,pageColIdx:n,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:n===u.qcx-1,isNumeric:A,isDual:k,isNull:(!E||!A)&&TB(e,m),representation:vB({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>I,direction:c,enabledFeatures:{[Yz.Image]:!0,[Yz.Indicator]:!0,[Yz.MiniChart]:!0}})},l(f[n],d,n)}),{row:f,pageRowIdx:p}})(n,l,c,e.qArea,u,r,o,i,a,s);n[p]=d})})},$X=({gridState:e,setEstimatedCellHeight:t})=>{const n=cb(vb),r=cb(tv),o=cb(Ub),i=cb(mb),a=cb(zb),s=cb(uY),l=cb(TX),c=cb(UB),u=cb(fY),d=cb(qX),p=cb(OX),f=D([]),h=L((e,r)=>{const o=Array.isArray(r)?r.slice(0,u):(e=>Array(e).fill(void 0))(u);return FX(e,s,o,c,n,i,t,a),f.current=o,o},[u,s,c,n,i,t,a]),[m,g]=P(()=>h(l??[]));Zm(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const n=D(new Set),r=D(new Set),o=D(new Set),i=LX(e),a=LX(t),s=k(()=>({enqueue:e=>{const t=NX(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout(async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.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 i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach(e=>{o.current.delete(NX(e))}),console.error("Failed to fetch pages",t)}finally{r.current.delete(e)}}},75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}}),[i,a]);return s})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=L((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(zX(f.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(e)}},[b]),y=L((e,t,n,r)=>{for(let o=t;o<t+r;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(_X(f.current,e,t,n,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(t)}}},[b,s]);return q(()=>{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}},HX=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},BX=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,VX=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=cb(sV),i=cb(bV),{estimateLineCount:a}=Um(o.dimension.values),s=yH(o.dimension.values.fontSize),l=e||t||1===n;return L((e,t,o)=>{if(l||e.representation.type===Yz.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])},WX=({isStaticNbrOfLines:e,minRowHeight:t,state:n,staticRowHeight:r=0})=>{const o=cb(yB);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])},UX=({isSnapshot:e,gridRef:t})=>{const n=cb(sV),r=cb(fY),[o,i]=P(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=cb(uV),s=cb(dV),l=cb(pV),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=cb(vb),r=cb(uY),o=cb(bV),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;Zm(()=>{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]),Zm(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:n})=>{const r=cb(dV),o=cb(pV);return L((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(!BX(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:HX(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})=>L((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=VX({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=L(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return WX({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},GX=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const n=L(e=>{const n=e.contentBoxSize.at(0)?.blockSize;void 0!==n&&t(n)},[t]);WU({ref:e,callback:n})};let KX=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const YX=({loadRows:e,loadColumns:t,gridState:n})=>{const r=cb(yB),o=cb(vb),i=cb(uY),a=cb(fY);return L(({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?KX.Down:r<t?KX.Up:KX.None,i=n>e?KX.Right:n<e?KX.Left:KX.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===KX.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===KX.Up){const t=x+25,n=i.page*i.rowsPerPage,r=Math.max(n,v-25);e(b,r,y,t)}if(g===KX.Right){const e=o.qHyperCube.qSize.qcx-b,n=y+5,r=Math.min(e,n);t(b,v,r,x)}else if(g===KX.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 XX=({columnIndex:e,data:t,rowIndex:n})=>{const r=t.rowsInPage[n]?.[e];return r?.id??`${n}-${e}`},JX=(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)},ZX={overflow:"hidden",willChange:"auto"},QX=F((e,t)=>{const{handleBodyKeyDown:n,handleBodyKeyUp:r,focusBodyCellOnClick:o}=OY(),i=cb(UB),a=cb(xX),s=ub(bX),l=cb(SX),c=cb(yB),u=cb(vb),d=cb(zb),p=cb(bV),f=cb(fY),h=cb(mY),m=ub(hY),g=D(null),b=D(null),v=D(null),y=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=D(0),S=!!RH(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=UX({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:I,loadRows:A,loadColumns:P}=$X({gridState:y,setEstimatedCellHeight:C}),M=YX({loadRows:A,loadColumns:P,gridState:y}),T=NG(),O=k(()=>({rowsInPage:I,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:T,onKeyDown:n,onKeyUp:r,onCellClick:o}),[I,i,S,R,w,T,n,r,o]);return j(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=ub(iU),{shouldRefocusRef:n}=cb(CY),r=cb(Zb),o=cb(pY);q(()=>{t({type:O$.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=L(()=>{n&&(n.current=r.contains(document.activeElement))},[n,r]);jG({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(I),H(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]),q(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),JX(h,b.current)}),()=>{m(null)}),[h,m]),GX(v,s),sn.jsx(nX,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:ZX,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:O,onItemsRendered:M,itemKey:XX,className:"sn-table-body",direction:d,children:MX})});var eJ=z(QX);const tJ=({children:e})=>{const t=cb(xV),n=cb(IX);return sn.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n},children:e})},nJ=(e,t)=>{const n=D(null),r=cb(bV);j(()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)},[t,n,e,r.length]);const o=L(n=>{const r=n.contentBoxSize.at(0)?.blockSize;r&&t(r+9,e)},[e,t]);return WU({ref:n,callback:o}),n},rJ=$c("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}})),oJ=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=cb(sV),c=cb(zb),u=cb(Mb),d=cb(sU),p=ub(gH),f=cb(WB),h=cb(Nb),m=cb(bV)[e],g=cb(Wb),b=cb(yG(e)),v=r[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=JK({isInteractionEnabled:h,column:v}),C=cb(Ib),E=nJ(e,i),R=r.length-1===e,I=C?NU:oG,{ref:A,isDragging:k}=tY(v,e),P=kK(v.id),D=b&&!g.enabled&&h?0:-1,M=a?t=>{a(t,e,S)}:void 0;return sn.jsxs(rJ,{"data-dragging":k,ref:A,className:`sn-table-cell ${ag}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...cU(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:sH(c,R,d),borderLeftWidth:lH(c,R,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:P},interactions:u,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:D,onKeyDown:M,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[sn.jsx(I,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),sn.jsx(YK,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},iJ=e=>{const[t,n]=P(new Map);Zm(()=>{n(new Map)},[e.length]);const r=L((e,t)=>{n(n=>BX(n.get(t),e)?new Map(n).set(t,e):n)},[]);return{rowHeight:k(()=>HX(t),[t]),setMeasuredCellHeight:r}},aJ=(e,t)=>{H(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},sJ=e=>{const t=cb(tv),n=cb(vb),r=cb(uY),o=cb(bV);Zm(()=>{e.current?.resetAfterIndex(0,!1)},[n,r,e,o,t])},lJ={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},cJ=F((e,t)=>{const{columResizeHandler:n}=e,r=cb(UB),o=cb(xX),i=ub(mX),a=w.useRef(null),s=D(null),l=cb(lV),c=cb(vb),u=cb($b),d=cb(zb),p=cb(bV),{rowHeight:f,setMeasuredCellHeight:h}=iJ(r),m=GK(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=OY();return aJ(t,a),sJ(a),GX(s,i),sn.jsx(uX,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...lJ,...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:oJ})});var uJ=z(cJ);const dJ=F((e,t)=>{const{children:n,onScroll:r}=e,o=cb(zb),i=cb(Lb),{width:a,height:s}=cb(yX),l=ub(mY),c=L(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return sn.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})}),pJ=({children:e})=>{const t=cb(zb),n=cb(xX);return sn.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})},fJ=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=cb(sV),c=cb(vb),u=cb(zb),d=cb(qb),p=cb(Nb),f=cb(sU),h=cb(AX),m=nJ(e,i),g=r[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=r[e],y=c.qHyperCube.qSize.qcx-1===e,x=kK(r[e].id),S=a?t=>{a(t,e)}:void 0;return sn.jsx("div",{className:`sn-table-cell ${ag}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...cU(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:sH(u,y,f),borderLeftWidth:lH(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:sn.jsx(LU,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},hJ=F((e,t)=>{const{totals:n}=e,r=cb(UB),o=cb(xX),i=ub(gX),a=D(null),s=D(null),l=cb(cV),c=cb(zb),u=cb(vb),d=cb(bV),{rowHeight:p,setMeasuredCellHeight:f}=iJ(r),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=OY();return aJ(t,a),sJ(a),GX(s,i),sn.jsx(uX,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:lJ,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:fJ})});var mJ=z(hJ);const gJ=(e,t,n)=>{const r=cb(zb),o=cb(yB);return L(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 bJ=z(()=>{const e=cb(WB),t=D(null),n=D(null),r=D(null),o=D(null),i=gJ(n,r,o),a=L(()=>{t.current&&(t.current.scrollTop=0)},[t]);xG(),(e=>{const t=cb(GB),n=cb(uY),r=cb(tv),o=cb(fY);q(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),q(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[n,o,r,e])})(t),PG(t);const s=sn.jsx(mJ,{ref:r,totals:e},"totals");return sn.jsxs(mG,{children:[sn.jsx(dJ,{ref:t,onScroll:i,children:sn.jsxs(tJ,{children:[sn.jsxs(pJ,{children:[sn.jsx(uJ,{ref:n,columResizeHandler:a}),e.atTop?s:null,sn.jsx(eJ,{ref:o}),e.atBottom?s:null]}),sn.jsx(lU,{})]})}),sn.jsx(lG,{isPagination:!1})]})});const vJ=()=>{const e=cb(vb),t=cb(Jb),n=cb(Mb),{paginationNeeded:r,totalRowCount:o,totalColumnCount:i,totalPages:a}=cb(VB),s=cb(tv),l=cb(nv),c=cb(Wb),[u,d]=db(uY),p=D(null),f=D(!1),h=ub(dY),m=ub(pY);q(()=>{h(f)},[h]);const g=w.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=OY();return(()=>{const e=cb(Zb),{keyboard:t}=cb(wY),n=cb(vG),r=cb(WB),o=cb(fY),{scrollToCell:i}=cb(SY),{shouldRefocusRef:a}=cb(CY),s=D({focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}),l=D(null),c=D(null);j(()=>{s.current={focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}},[n,r,o,i,e]),q(()=>{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=kY(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);r&&document.activeElement!==r&&AY(r),r&&document.activeElement===r||t>0&&(l.current=requestAnimationFrame(()=>{n(t-1)}))};l.current=requestAnimationFrame(()=>{e||n(5)})}else{const e=kY(u,n,r,o);AY(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=kY(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);n?.blur(),IY(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])})(),bG(p,f),sn.jsxs(MU,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[sn.jsx(qG,{}),sn.jsx(bJ,{}),sn.jsx(UW,{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 yJ=z(vJ);const xJ=e=>{const t=e.get(Ub),n=e.get(Bb),r=e.get(bb),o=e.get(zb);a(()=>{r&&t&&(n?function(e){const t=e.get(zb),n=e.get(ev),r=wV(t);n.render(sn.jsx(Di,{stylisPlugins:"rtl"===t?[P$]:void 0,children:sn.jsx(Bc,{theme:r,children:sn.jsx(rb,{store:e,children:sn.jsx(SV,{children:sn.jsx(iY,{})})})})}))}(e):function(e){const t=e.get(zb),n=e.get(ev),r=wV(t);n.render(sn.jsx(w.StrictMode,{children:sn.jsx(Bc,{theme:r,children:sn.jsx(rb,{store:e,children:sn.jsx(SV,{children:sn.jsx(yJ,{})})})})}))}(e))},[r,n,e,t,o])};function SJ(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 wJ=(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]}},CJ=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const EJ=(e,t,n,r,o)=>{if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||qB.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},RJ=(e,t,n,r,o)=>{if(r&&!r.isMultiPage)return r;const i=EB(e,r);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=SJ(n,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:EJ(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=wJ(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=(CJ(h,m,g)?d:d+1)+u;let v=p+u;const y=wJ(p,o),x=y?.getBoundingClientRect();return y&&x&&(CJ(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:EJ(s,a,e,t,r),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},IJ=({store:e})=>{const t=e.get(vb),n=e.get(Ub),r=e.get(Zb),o=e.get(Xb),i=e.get($b),a=e.get(Bb);u(async s=>{const l=s;if(!l.snapshotData||!n||l.snapshotData.content)return l;if("getHyperCubeData"in n){const s=e.get(yB),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=RJ(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:()=>RJ(t,e.get(yB),r,i,a)}),[t,e,r,a])},AJ={version:JSON.stringify("6.37.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var kJ=e=>({properties:{initial:AJ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>Cv({...e}),exportProperties:bv,exploration:Pz(e)});const PJ=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),DJ=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});
|