@nebula.js/sn-table 6.22.0 → 6.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  /*
2
- * @nebula.js/sn-table v6.22.0
2
+ * @nebula.js/sn-table v6.23.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 r,n,o,i,a,s,l,u,c,d,p,f,h,m,g,v,b,y,x,S,w,C,E,R,A,P,M,I,k,D,T,O,L,q,N,_,j,z,F,$,H,B,W,V,U,G,Y;return{setters:[function(e){r=e.useMemo,n=e.useOptions,o=e.usePromise,i=e.useState,a=e.useEffect,s=e.useTheme,l=e.onContextMenu,u=e.HyperCubeHandler,c=e.onTakeSnapshot,d=e.useImperativeHandle,p=e.useStaleLayout,f=e.useElement,h=e.useApp,m=e.useModel,g=e.useInteractionState,v=e.useTranslator,b=e.useSelections,y=e.useKeyboard,x=e.useRect,S=e.useEmbed},function(e){w=e.default,C=e.createElement,E=e,R=e.isValidElement,A=e.cloneElement,P=e.Children,M=e.useMemo,I=e.useState,k=e.useRef,D=e.createContext,T=e.useReducer,O=e.useEffect,L=e.useDebugValue,q=e.useCallback,N=e.useContext,_=e.forwardRef,j=e.memo,z=e.useLayoutEffect,F=e.useInsertionEffect,$=e.startTransition,H=e.useImperativeHandle,B=e.PureComponent},function(e){W=e.default,V=e,U=e.flushSync},function(e){G=e.default},function(e){Y=e.default}],execute:function(){function K(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&&K(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=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),r=parseInt(o[2],10),n=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),r=parseInt(o[2],16),n=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),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}e("default",function(e){return{qae:QG(),ext:OP(e),component(){const t=p(),o=r(()=>iR(),[!1!==t.usePagination]);o.set(xR,e);const i=f();o.set(rA,i),o.set(CR,t),o.set(vR,h()),o.set(XR,m()),o.set(qR,g()),o.set(aA,v()),o.set(OR,b()),o.set(HR,n()),o.set(KR,y()),o.set(tA,x()),o.set(yR,S());const a=GC(t,i,eY,tY);o.set(iA,a),o.set(wR,rE(a,t,e)),o.set(bR,$t()),LP(o),l?.((e,t)=>{const r=t.target,n=r?.closest(`.${dE}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{SE(n)}})}),JG({store:o}),VG(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 r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===Z)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(K(e[0]))({r:r,g:n,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))r=parseInt(s[1],10),n=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))r=parseInt(s[1],10),n=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,r=parseInt(s[2],10),n=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))r=parseInt(s[1],16),n=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))r=parseInt(s[1]+s[1],16),n=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 u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),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 u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),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 u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),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:r,g:n,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,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function ee(e){let t,r,n=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function te(e){let t,r,n=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),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function re(e){if(K(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 ne(e,t){return K(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:ne(Q(e))}function oe(e){return K(e)?1===e.a?re(e):ne(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),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=ee(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Q(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>function(...e){const t=Q(...e);return t.invalid||ae(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=re(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=ne(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=oe(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(K(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?X(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=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),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=ee(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=te(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=te(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.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 r=ae(e),n=ae(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}const ue="#FFFFFF";function ce(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var de,pe="top",fe="top-right",he="right",me="bottom-right",ge="bottom",ve="bottom-left",be="left",ye="top-left";ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(de={},"equal-equal",[pe,ge]),"equal-higher",[ge,me]),"equal-lower",[pe,fe]),"equal-void",[pe,ge]),"higher-equal",[be,ve,pe,fe]),"higher-higher-acute",[ge,ve,be,fe]),"higher-higher-obtuse",[ge,pe]),"higher-lower-negative",[pe,fe,he]),"higher-lower-positive",[ge,ve,be]),"higher-void",[pe]),ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(de,"lower-equal",[pe]),"lower-higher-negative",[pe,ye]),"lower-higher-positive",[me]),"lower-lower-acute",[pe,ye,be,fe,he]),"lower-lower-obtuse",[pe,ge]),"lower-void",[pe]),"void-equal",[pe]),"void-higher",[pe,ge]),"void-lower",[pe,ge,be]),"void-void",[pe]),ce(de,"unclassified",[pe,ge,he,be,fe,me,ve,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,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return xe=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},xe}();function Ae(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Pe(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Me(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Re);var Ie=.7,ke=1/Ie,De="\\s*([+-]?\\d+)\\s*",Te="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Oe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Le=/^#([0-9a-f]{3,8})$/,qe=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),Ne=new RegExp(`^rgb\\(${Oe},${Oe},${Oe}\\)$`),_e=new RegExp(`^rgba\\(${De},${De},${De},${Te}\\)$`),je=new RegExp(`^rgba\\(${Oe},${Oe},${Oe},${Te}\\)$`),ze=new RegExp(`^hsl\\(${Te},${Oe},${Oe}\\)$`),Fe=new RegExp(`^hsla\\(${Te},${Oe},${Oe},${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 We(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Le.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ve(t):3===r?new Ke(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?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=qe.exec(e))?new Ke(t[1],t[2],t[3],1):(t=Ne.exec(e))?new Ke(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_e.exec(e))?Ue(t[1],t[2],t[3],t[4]):(t=je.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)?Ve($e[e]):"transparent"===e?new Ke(NaN,NaN,NaN,0):null}function Ve(e){return new Ke(e>>16&255,e>>8&255,255&e,1)}function Ue(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ke(e,t,r,n)}function Ge(e){return e instanceof Me||(e=We(e)),e?new Ke((e=e.rgb()).r,e.g,e.b,e.opacity):new Ke}function Ye(e,t,r,n){return 1===arguments.length?Ge(e):new Ke(e,t,r,null==n?1:n)}function Ke(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}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,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new nt(e,t,r,n)}function rt(e){if(e instanceof nt)return new nt(e.h,e.s,e.l,e.opacity);if(e instanceof Me||(e=We(e)),!e)return new nt;if(e instanceof nt)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new nt(a,s,l,e.opacity)}function nt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}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,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ae(Me,We,{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 rt(this).formatHsl()},formatRgb:Be,toString:Be}),Ae(Ke,Ye,Pe(Me,{brighter(e){return e=null==e?ke:Math.pow(ke,e),new Ke(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ie:Math.pow(Ie,e),new Ke(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ke(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})),Ae(nt,function(e,t,r,n){return 1===arguments.length?rt(e):new nt(e,t,r,null==n?1:n)},Pe(Me,{brighter(e){return e=null==e?ke:Math.pow(ke,e),new nt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ie:Math.pow(Ie,e),new nt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Ke(at(e>=240?e-240:e+120,o,n),at(e,o,n),at(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new nt(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,ut=.96422,ct=.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 Ke||(e=Ge(e));var t,r,n=xt(e.r),o=xt(e.g),i=xt(e.b),a=vt((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=vt((.4360747*n+.3850649*o+.1430804*i)/ut),r=vt((.0139322*n+.0971045*o+.7141733*i)/ct)),new gt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function gt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function vt(e){return e>ht?Math.pow(e,1/3):e/ft+dt}function bt(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,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}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)}Ae(gt,function(e,t,r,n){return 1===arguments.length?mt(e):new gt(e,t,r,null==n?1:n)},Pe(Me,{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,r=isNaN(this.b)?e:e-this.b/200;return new Ke(yt(3.1338561*(t=ut*bt(t))-1.6168667*(e=1*bt(e))-.4906146*(r=ct*bt(r))),yt(-.9787684*t+1.9161415*e+.033454*r),yt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ae(St,function(e,t,r,n){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,r,null==n?1:n)},Pe(Me,{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 r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ct(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1===(e=+e)?Et:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Ct(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Ye(e)).r,(t=Ye(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Et(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Rt="center",At="bottom";[{key:"NoDataExist",alignment:Rt,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment: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 r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Rt},{key:"DataRangeIncludingZero",alignment:At},{key:"LimitedData",alignment:At},{key:"NegativeOrZeroValues",alignment:At}].reduce(function(e,t){return e[t.key]=t,e},{});var Pt,Mt=["__proto__","constructor"];function It(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Mt.some(function(e){return n.includes(e)})){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function Dt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Tt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Lt)):void 0===t&&(t=Ot);for(var r,n,o,i,a,s=new _t(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new _t(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Nt)}function Ot(e){return e.children}function Lt(e){return Array.isArray(e)?e[1]:null}function qt(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 _t(e){this.data=e,this.depth=this.height=0,this.parent=null}_t.prototype=Tt.prototype={constructor:_t,count:function(){return this.eachAfter(Dt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t},copy:function(){return Tt(this).eachBefore(qt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Pt=function(e){
7
+ System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],function(e,t){"use strict";var r,n,o,i,a,s,l,u,c,d,p,f,h,m,g,b,v,y,x,S,w,C,E,R,A,M,P,I,k,D,T,O,L,q,N,j,_,z,F,$,H,B,W,V,U,G,Y;return{setters:[function(e){r=e.useMemo,n=e.useOptions,o=e.usePromise,i=e.useState,a=e.useEffect,s=e.useTheme,l=e.onContextMenu,u=e.HyperCubeHandler,c=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,A=e.cloneElement,M=e.Children,P=e.useMemo,I=e.useState,k=e.useRef,D=e.createContext,T=e.useReducer,O=e.useEffect,L=e.useDebugValue,q=e.useCallback,N=e.useContext,j=e.forwardRef,_=e.memo,z=e.useLayoutEffect,F=e.useInsertionEffect,$=e.startTransition,H=e.useImperativeHandle,B=e.PureComponent},function(e){W=e.default,V=e,U=e.flushSync},function(e){G=e.default},function(e){Y=e.default}],execute:function(){function K(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&&K(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=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),r=parseInt(o[2],10),n=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),r=parseInt(o[2],16),n=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),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}e("default",function(e){return{qae:iY(),ext:zM(e),component(){const t=p(),o=r(()=>pR(),[!1!==t.usePagination]);o.set(MR,e);const i=f();o.set(uA,i),o.set(kR,t),o.set(ER,h()),o.set(nA,m()),o.set(HR,g()),o.set(fA,b()),o.set(FR,v()),o.set(KR,n()),o.set(rA,y()),o.set(lA,x()),o.set(AR,S());const a=eE(t,i,aY,sY);o.set(pA,a),o.set(IR,uE(a,t,e)),o.set(RR,$t()),FM(o),l?.((e,t)=>{const r=t.target,n=r?.closest(`.${vE}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{PE(n)}})}),nY({store:o}),JG(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 r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===Z)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(K(e[0]))({r:r,g:n,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))r=parseInt(s[1],10),n=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))r=parseInt(s[1],10),n=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,r=parseInt(s[2],10),n=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))r=parseInt(s[1],16),n=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))r=parseInt(s[1]+s[1],16),n=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 u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),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 u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),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 u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),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:r,g:n,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,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function ee(e){let t,r,n=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function te(e){let t,r,n=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),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function re(e){if(K(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 ne(e,t){return K(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:ne(Q(e))}function oe(e){return K(e)?1===e.a?re(e):ne(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),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=ee(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Q(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>function(...e){const t=Q(...e);return t.invalid||ae(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=re(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=ne(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=oe(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(K(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?X(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=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),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=ee(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=te(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=te(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.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 r=ae(e),n=ae(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}const ue="#FFFFFF";function ce(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var de,pe="top",fe="top-right",he="right",me="bottom-right",ge="bottom",be="bottom-left",ve="left",ye="top-left";ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(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]),ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(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]),ce(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,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return xe=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},xe}();function Ae(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Me(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Pe(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Re);var Ie=.7,ke=1/Ie,De="\\s*([+-]?\\d+)\\s*",Te="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Oe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Le=/^#([0-9a-f]{3,8})$/,qe=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),Ne=new RegExp(`^rgb\\(${Oe},${Oe},${Oe}\\)$`),je=new RegExp(`^rgba\\(${De},${De},${De},${Te}\\)$`),_e=new RegExp(`^rgba\\(${Oe},${Oe},${Oe},${Te}\\)$`),ze=new RegExp(`^hsl\\(${Te},${Oe},${Oe}\\)$`),Fe=new RegExp(`^hsla\\(${Te},${Oe},${Oe},${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 We(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Le.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ve(t):3===r?new Ke(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?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=qe.exec(e))?new Ke(t[1],t[2],t[3],1):(t=Ne.exec(e))?new Ke(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)?Ve($e[e]):"transparent"===e?new Ke(NaN,NaN,NaN,0):null}function Ve(e){return new Ke(e>>16&255,e>>8&255,255&e,1)}function Ue(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ke(e,t,r,n)}function Ge(e){return e instanceof Pe||(e=We(e)),e?new Ke((e=e.rgb()).r,e.g,e.b,e.opacity):new Ke}function Ye(e,t,r,n){return 1===arguments.length?Ge(e):new Ke(e,t,r,null==n?1:n)}function Ke(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}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,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new nt(e,t,r,n)}function rt(e){if(e instanceof nt)return new nt(e.h,e.s,e.l,e.opacity);if(e instanceof Pe||(e=We(e)),!e)return new nt;if(e instanceof nt)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new nt(a,s,l,e.opacity)}function nt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}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,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ae(Pe,We,{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 rt(this).formatHsl()},formatRgb:Be,toString:Be}),Ae(Ke,Ye,Me(Pe,{brighter(e){return e=null==e?ke:Math.pow(ke,e),new Ke(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ie:Math.pow(Ie,e),new Ke(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ke(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})),Ae(nt,function(e,t,r,n){return 1===arguments.length?rt(e):new nt(e,t,r,null==n?1:n)},Me(Pe,{brighter(e){return e=null==e?ke:Math.pow(ke,e),new nt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ie:Math.pow(Ie,e),new nt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Ke(at(e>=240?e-240:e+120,o,n),at(e,o,n),at(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new nt(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,ut=.96422,ct=.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 Ke||(e=Ge(e));var t,r,n=xt(e.r),o=xt(e.g),i=xt(e.b),a=bt((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=bt((.4360747*n+.3850649*o+.1430804*i)/ut),r=bt((.0139322*n+.0971045*o+.7141733*i)/ct)),new gt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function gt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}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,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}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)}Ae(gt,function(e,t,r,n){return 1===arguments.length?mt(e):new gt(e,t,r,null==n?1:n)},Me(Pe,{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,r=isNaN(this.b)?e:e-this.b/200;return new Ke(yt(3.1338561*(t=ut*vt(t))-1.6168667*(e=1*vt(e))-.4906146*(r=ct*vt(r))),yt(-.9787684*t+1.9161415*e+.033454*r),yt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ae(St,function(e,t,r,n){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,r,null==n?1:n)},Me(Pe,{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 r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ct(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1===(e=+e)?Et:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Ct(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Ye(e)).r,(t=Ye(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Et(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Rt="center",At="bottom";[{key:"NoDataExist",alignment:Rt,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment: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 r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Rt},{key:"DataRangeIncludingZero",alignment:At},{key:"LimitedData",alignment:At},{key:"NegativeOrZeroValues",alignment:At}].reduce(function(e,t){return e[t.key]=t,e},{});var Mt,Pt=["__proto__","constructor"];function It(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Pt.some(function(e){return n.includes(e)})){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function Dt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Tt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Lt)):void 0===t&&(t=Ot);for(var r,n,o,i,a,s=new jt(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new jt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Nt)}function Ot(e){return e.children}function Lt(e){return Array.isArray(e)?e[1]:null}function qt(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(Dt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t},copy:function(){return Tt(this).eachBefore(qt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Mt=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,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\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0===+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-v+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},Pt({exports:{}});const jt=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function zt(e,t){return r(()=>e,t)}const Ft={},$t=()=>{const{viewState:e}=n(),t=(e=>{const t=r(()=>({current:Ft}),[]);return t.current=t.current===Ft?e:t.current,t})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=r(()=>jt(),[]),l=zt(e=>{t.current.add(e)},[t]),u=zt(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=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(n,i)},r)}}(async()=>{await Promise.all(t.current),t.current.clear(),s()},1e3),[s,t]);return o(async()=>{await a},[a]),r(()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l}),[u,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)"},Wt=12,Vt=14,Ut=16,Gt=24,Yt=3,Kt=300,Xt=400,Jt=600,Zt=700,Qt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var rr={exports:{}},nr={},or=w,ir=Symbol.for("react.element"),ar=Symbol.for("react.fragment"),sr=Object.prototype.hasOwnProperty,lr=or.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ur={key:!0,ref:!0,__self:!0,__source:!0};function cr(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)sr.call(t,n)&&!ur.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:ir,type:e,key:i,ref:a,props:o,_owner:lr.current}}nr.Fragment=ar,nr.jsx=cr,nr.jsxs=cr,rr.exports=nr;var dr=rr.exports;const pr={black:"#000",white:"#fff"},fr="#e57373",hr="#ef5350",mr="#f44336",gr="#d32f2f",vr="#c62828",br="#f3e5f5",yr="#ce93d8",xr="#ba68c8",Sr="#ab47bc",wr="#9c27b0",Cr="#7b1fa2",Er="#e3f2fd",Rr="#90caf9",Ar="#42a5f5",Pr="#1976d2",Mr="#1565c0",Ir="#4fc3f7",kr="#29b6f6",Dr="#03a9f4",Tr="#0288d1",Or="#01579b",Lr="#81c784",qr="#66bb6a",Nr="#4caf50",_r="#388e3c",jr="#2e7d32",zr="#1b5e20",Fr="#ffb74d",$r="#ffa726",Hr="#ff9800",Br="#f57c00",Wr="#e65100",Vr={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ur(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Gr=Object.freeze({__proto__:null,default:Ur}),Yr="$$material";function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(null,arguments)}function Xr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var Jr=function(){return Jr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jr.apply(this,arguments)};function Zr(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Qr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,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},en="-ms-",tn="-moz-",rn="-webkit-",nn="comm",on="rule",an="decl",sn="@import",ln="@keyframes",un=Math.abs,cn=String.fromCharCode,dn=Object.assign;function pn(e){return e.trim()}function fn(e,t){return(e=t.exec(e))?e[0]:e}function hn(e,t,r){return e.replace(t,r)}function mn(e,t,r){return e.indexOf(t,r)}function gn(e,t){return 0|e.charCodeAt(t)}function vn(e,t,r){return e.slice(t,r)}function bn(e){return e.length}function yn(e){return e.length}function xn(e,t){return t.push(e),e}function Sn(e,t){return e.filter(function(e){return!fn(e,t)})}var wn=1,Cn=1,En=0,Rn=0,An=0,Pn="";function Mn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:wn,column:Cn,length:a,return:"",siblings:s}}function In(e,t){return dn(Mn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function kn(e){for(;e.root;)e=In(e.root,{children:[e]});xn(e,e.siblings)}function Dn(){return An=Rn>0?gn(Pn,--Rn):0,Cn--,10===An&&(Cn=1,wn--),An}function Tn(){return An=Rn<En?gn(Pn,Rn++):0,Cn++,10===An&&(Cn=1,wn++),An}function On(){return gn(Pn,Rn)}function Ln(){return Rn}function qn(e,t){return vn(Pn,e,t)}function Nn(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 _n(e){return pn(qn(Rn-1,Fn(91===e?e+2:40===e?e+1:e)))}function jn(e){for(;(An=On())&&An<33;)Tn();return Nn(e)>2||Nn(An)>3?"":" "}function zn(e,t){for(;--t&&Tn()&&!(An<48||An>102||An>57&&An<65||An>70&&An<97););return qn(e,Ln()+(t<6&&32==On()&&32==Tn()))}function Fn(e){for(;Tn();)switch(An){case e:return Rn;case 34:case 39:34!==e&&39!==e&&Fn(An);break;case 40:41===e&&Fn(e);break;case 92:Tn()}return Rn}function $n(e,t){for(;Tn()&&e+An!==57&&(e+An!==84||47!==On()););return"/*"+qn(t,Rn-1)+"*"+cn(47===e?e:Tn())}function Hn(e){for(;!Nn(On());)Tn();return qn(e,Rn)}function Bn(e){return function(e){return Pn="",e}(Wn("",null,null,null,[""],e=function(e){return wn=Cn=1,En=bn(Pn=e),Rn=0,[]}(e),0,[0],e))}function Wn(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=i,w=n,C=y;g;)switch(h=b,b=Tn()){case 40:if(108!=h&&58==gn(C,d-1)){-1!=mn(C+=hn(_n(b),"&","&\f"),"&\f",un(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=_n(b);break;case 9:case 10:case 13:case 32:C+=jn(h);break;case 92:C+=zn(Ln()-1,7);continue;case 47:switch(On()){case 42:case 47:xn(Un($n(Tn(),Ln()),t,r,l),l),5!=Nn(h||1)&&5!=Nn(On()||1)||!bn(C)||" "===vn(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=bn(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=hn(C,/\f/g,"")),f>0&&(bn(C)-d||0===m&&47===h)&&xn(f>32?Gn(C+";",n,r,d-1,l):Gn(hn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(xn(w=Vn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===b)if(0===c)Wn(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===gn(C,3))break;case 108:if(97===gn(C,2))break;default:c=0;case 100:case 109:case 115:}c?Wn(e,w,w,n&&xn(Vn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):Wn(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=v=1,y=C="",d=a;break;case 58:d=1+bn(C),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Dn())continue;switch(C+=cn(b),b*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(bn(C)-1)*v,v=1;break;case 64:45===On()&&(C+=_n(Tn())),p=On(),c=d=bn(y=C+=Hn(Ln())),b++;break;case 45:45===h&&2==bn(C)&&(m=0)}}return i}function Vn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=yn(f),m=0,g=0,v=0;m<n;++m)for(var b=0,y=vn(e,p+1,p=un(g=a[m])),x=e;b<h;++b)(x=pn(g>0?f[b]+" "+y:hn(y,/&\f/g,f[b])))&&(l[v++]=x);return Mn(e,t,r,0===o?on:s,l,u,c,d)}function Un(e,t,r,n){return Mn(e,t,r,nn,cn(An),vn(e,2,-2),0,n)}function Gn(e,t,r,n,o){return Mn(e,t,r,an,vn(e,0,n),vn(e,n+1,-1),n,o)}function Yn(e,t,r){switch(function(e,t){return 45^gn(e,0)?(((t<<2^gn(e,0))<<2^gn(e,1))<<2^gn(e,2))<<2^gn(e,3):0}(e,t)){case 5103:return rn+"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 rn+e+e;case 4855:return rn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return tn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rn+e+tn+e+en+e+e;case 5936:switch(gn(e,t+11)){case 114:return rn+e+en+hn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rn+e+en+hn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rn+e+en+hn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return rn+e+en+e+e;case 6165:return rn+e+en+"flex-"+e+e;case 5187:return rn+e+hn(e,/(\w+).+(:[^]+)/,rn+"box-$1$2"+en+"flex-$1$2")+e;case 5443:return rn+e+en+"flex-item-"+hn(e,/flex-|-self/g,"")+(fn(e,/flex-|baseline/)?"":en+"grid-row-"+hn(e,/flex-|-self/g,""))+e;case 4675:return rn+e+en+"flex-line-pack"+hn(e,/align-content|flex-|-self/g,"")+e;case 5548:return rn+e+en+hn(e,"shrink","negative")+e;case 5292:return rn+e+en+hn(e,"basis","preferred-size")+e;case 6060:return rn+"box-"+hn(e,"-grow","")+rn+e+en+hn(e,"grow","positive")+e;case 4554:return rn+hn(e,/([^-])(transform)/g,"$1"+rn+"$2")+e;case 6187:return hn(hn(hn(e,/(zoom-|grab)/,rn+"$1"),/(image-set)/,rn+"$1"),e,"")+e;case 5495:case 3959:return hn(e,/(image-set\([^]*)/,rn+"$1$`$1");case 4968:return hn(hn(e,/(.+:)(flex-)?(.*)/,rn+"box-pack:$3"+en+"flex-pack:$3"),/space-between/,"justify")+rn+e+e;case 4200:if(!fn(e,/flex-|baseline/))return en+"grid-column-align"+vn(e,t)+e;break;case 2592:case 3360:return en+hn(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,fn(e.props,/grid-\w+-end/)})?~mn(e+(r=r[t].value),"span",0)?e:en+hn(e,"-start","")+e+en+"grid-row-span:"+(~mn(r,"span",0)?fn(r,/\d+/):+fn(r,/\d+/)-+fn(e,/\d+/))+";":en+hn(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return fn(e.props,/grid-\w+-start/)})?e:en+hn(hn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return hn(e,/(.+)-inline(.+)/,rn+"$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(bn(e)-1-t>6)switch(gn(e,t+1)){case 109:if(45!==gn(e,t+4))break;case 102:return hn(e,/(.+:)(.+)-([^]+)/,"$1"+rn+"$2-$3$1"+tn+(108==gn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~mn(e,"stretch",0)?Yn(hn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return hn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,i,a,s){return en+r+":"+n+s+(o?en+r+"-span:"+(i?a:+a-+n)+s:"")+e});case 4949:if(121===gn(e,t+6))return hn(e,":",":"+rn)+e;break;case 6444:switch(gn(e,45===gn(e,14)?18:11)){case 120:return hn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+rn+(45===gn(e,14)?"inline-":"")+"box$3$1"+rn+"$2$3$1"+en+"$2box$3")+e;case 100:return hn(e,":",":"+en)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return hn(e,"scroll-","scroll-snap-")+e}return e}function Kn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Xn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case sn:case"@namespace":case an:return e.return=e.return||e.value;case nn:return"";case ln:return e.return=e.value+"{"+Kn(e.children,n)+"}";case on:if(!bn(e.value=e.props.join(",")))return""}return bn(r=Kn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Jn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case an:return void(e.return=Yn(e.value,e.length,r));case ln:return Kn([In(e,{value:hn(e.value,"@","@"+rn)})],n);case on:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(fn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":kn(In(e,{props:[hn(t,/:(read-\w+)/,":-moz-$1")]})),kn(In(e,{props:[t]})),dn(e,{props:Sn(r,n)});break;case"::placeholder":kn(In(e,{props:[hn(t,/:(plac\w+)/,":"+rn+"input-$1")]})),kn(In(e,{props:[hn(t,/:(plac\w+)/,":-moz-$1")]})),kn(In(e,{props:[hn(t,/:(plac\w+)/,en+"input-$1")]})),kn(In(e,{props:[t]})),dn(e,{props:Sn(r,n)})}return""})}}var Zn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Qn="active",eo="data-styled-version",to="6.3.12",ro="/*!sc*/\n",no="undefined"!=typeof window&&"undefined"!=typeof document,oo=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),io={};function ao(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var so=new Map,lo=new Map,uo=1,co=function(e){if(so.has(e))return so.get(e);for(;lo.has(uo);)uo++;var t=uo++;return so.set(e,t),lo.set(t,e),t},po=function(e,t){uo=t+1,so.set(e,t),lo.set(t,e)},fo=Object.freeze([]),ho=Object.freeze({});function mo(e,t,r){return void 0===r&&(r=ho),e.theme!==r.theme&&e.theme||t||r.theme}var go=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"]),vo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,bo=/(^-|-$)/g;function yo(e){return e.replace(vo,"-").replace(bo,"")}var xo=/(a)(d)/gi,So=function(e){return String.fromCharCode(e+(e>25?39:97))};function wo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=So(t%52)+r;return(So(t%52)+r).replace(xo,"$1-$2")}var Co,Eo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ro=function(e){return Eo(5381,e)};function Ao(e){return wo(Ro(e)>>>0)}function Po(e){return"string"==typeof e&&!0}var Mo="function"==typeof Symbol&&Symbol.for,Io=Mo?Symbol.for("react.memo"):60115,ko=Mo?Symbol.for("react.forward_ref"):60112,Do={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},To={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Oo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Lo=((Co={})[ko]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Co[Io]=Oo,Co);function qo(e){return("type"in(t=e)&&t.type.$$typeof)===Io?Oo:"$$typeof"in e?Lo[e.$$typeof]:Do;var t}var No=Object.defineProperty,_o=Object.getOwnPropertyNames,jo=Object.getOwnPropertySymbols,zo=Object.getOwnPropertyDescriptor,Fo=Object.getPrototypeOf,$o=Object.prototype;function Ho(e,t,r){if("string"!=typeof t){if($o){var n=Fo(t);n&&n!==$o&&Ho(e,n,r)}var o=_o(t);jo&&(o=o.concat(jo(t)));for(var i=qo(e),a=qo(t),s=0;s<o.length;++s){var l=o[s];if(!(l in To||r&&r[l]||a&&l in a||i&&l in i)){var u=zo(t,l);try{No(e,l,u)}catch(e){}}}}return e}function Bo(e){return"function"==typeof e}function Wo(e){return"object"==typeof e&&"styledComponentId"in e}function Vo(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Uo(e,t){return e.join("")}function Go(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Yo(e,t,r){if(void 0===r&&(r=!1),!r&&!Go(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Yo(e[n],t[n]);else if(Go(t))for(var n in t)e[n]=Yo(e[n],t[n]);return e}function Ko(e,t){Object.defineProperty(e,"toString",{value:t})}var Xo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw ao(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+ro;return t},e}(),Jo="style[".concat(Zn,"][").concat(eo,'="').concat(to,'"]'),Zo=new RegExp("^".concat(Zn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Qo=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},ei=function(e){if(!e)return document;if(Qo(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(Qo(t))return t}return document},ti=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},ri=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(ro),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Zo);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(po(c,u),ti(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},ni=function(e){for(var t=ei(e.options.target).querySelectorAll(Jo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Zn)!==Qn&&(ri(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var oi=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Zn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Zn,Qn),n.setAttribute(eo,to);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},ii=function(){function e(e){this.element=oi(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){var t;if(e.sheet)return e.sheet;for(var r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets,n=0,o=r.length;n<o;n++){var i=r[n];if(i.ownerNode===e)return i}throw ao(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),ai=function(){function e(e){this.element=oi(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),si=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),li=no,ui={isServer:!no,useCSSOMInjection:!oo},ci=function(){function e(e,t,r){void 0===e&&(e=ho),void 0===t&&(t={});var n=this;this.options=Jr(Jr({},ui),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&no&&li&&(li=!1,ni(this)),Ko(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return lo.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o);if(void 0===i||!i.size)return"continue";var a=t.getGroup(r);if(0===a.length)return"continue";var s=Zn+".g"+r+'[id="'+o+'"]',l="";i.forEach(function(e){e.length>0&&(l+=e+",")}),n+=a+s+'{content:"'+l+'"}'+ro},i=0;i<r;i++)o(i);return n}(n)})}return e.registerId=function(e){return co(e)},e.prototype.rehydrate=function(){!this.server&&no&&ni(this)},e.prototype.reconstructWithOptions=function(t,r){void 0===r&&(r=!0);var n=new e(Jr(Jr({},this.options),t),this.gs,r&&this.names||void 0);return!this.server&&no&&t.target!==this.options.target&&ei(this.options.target)!==ei(t.target)&&ni(n),n},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new si(r):t?new ii(r):new ai(r)}(this.options),new Xo(e)));var e},e.prototype.hasNameForId=function(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n},e.prototype.registerName=function(e,t){co(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(co(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(co(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}();function di(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Qr||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var pi=function(e){return e>="A"&&e<="Z"};function fi(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;pi(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var hi=Symbol.for("sc-keyframes");var mi=function(e){return null==e||!1===e||""===e},gi=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!mi(n)&&(Array.isArray(n)&&n.isCss||Bo(n)?t.push("".concat(fi(r),":"),n,";"):Go(n)?t.push.apply(t,Zr(Zr(["".concat(r," {")],gi(n),!1),["}"],!1)):t.push("".concat(fi(r),": ").concat(di(r,n),";")))}return t};function vi(e,t,r,n,o){if(void 0===o&&(o=[]),"string"==typeof e)return e&&o.push(e),o;if(mi(e))return o;if(Wo(e))return o.push(".".concat(e.styledComponentId)),o;var i;if(Bo(e))return!Bo(i=e)||i.prototype&&i.prototype.isReactComponent||!t?(o.push(e),o):vi(e(t),t,r,n,o);if(function(e){return"object"==typeof e&&null!==e&&hi in e}(e))return r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o;if(Go(e)){for(var a=gi(e),s=0;s<a.length;s++)o.push(a[s]);return o}if(!Array.isArray(e))return o.push(e.toString()),o;for(s=0;s<e.length;s++)vi(e[s],t,r,n,o);return o}function bi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Bo(r)&&!Wo(r))return!1}return!0}var yi=Ro(to),xi=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&bi(e),this.componentId=t,this.baseHash=Eo(yi,t),this.baseStyle=r,ci.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Vo(n,this.staticRulesId);else{var o=Uo(vi(this.rules,e,t,r)),i=wo(Eo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=Vo(n,i),this.staticRulesId=i}else{for(var s=Eo(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Uo(vi(c,e,t,r));s=Eo(Eo(s,String(u)),d),l+=d}}if(l){var p=wo(s>>>0);if(!t.hasNameForId(this.componentId,p)){var f=r(l,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}n=Vo(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(co(this.componentId)):""}},e}(),Si=/&/g,wi=47,Ci=42;function Ei(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,o=!1,i=0;i<t;i++){var a=e.charCodeAt(i);if(0!==n||o||a!==wi||e.charCodeAt(i+1)!==Ci)if(o)a===Ci&&e.charCodeAt(i+1)===wi&&(o=!1,i++);else if(34!==a&&39!==a||0!==i&&92===e.charCodeAt(i-1)){if(0===n)if(123===a)r++;else if(125===a&&--r<0)return!0}else 0===n?n=a:n===a&&(n=0);else o=!0,i++}return 0!==r||0!==n}function Ri(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ri(e.children,t)),e})}function Ai(e){var t,r,n,o=void 0===e?ho:e,i=o.options,a=void 0===i?ho:i,s=o.plugins,l=void 0===s?fo:s,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=l.slice();c.push(function(e){e.type===on&&e.value.includes("&")&&(n||(n=new RegExp("\\".concat(r,"\\b"),"g")),e.props[0]=e.props[0].replace(Si,r).replace(n,u))}),a.prefix&&c.push(Jn),c.push(Xn);var d,p=[],f=function(e){var t=yn(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)}))),h=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=void 0;var l=function(e){if(!Ei(e))return e;for(var t=e.length,r="",n=0,o=0,i=0,a=!1,s=0;s<t;s++){var l=e.charCodeAt(s);if(0!==i||a||l!==wi||e.charCodeAt(s+1)!==Ci)if(a)l===Ci&&e.charCodeAt(s+1)===wi&&(a=!1,s++);else if(34!==l&&39!==l||0!==s&&92===e.charCodeAt(s-1)){if(0===i)if(123===l)o++;else if(125===l){if(--o<0){for(var u=s+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,s=u-1,n=u;continue}0===o&&(r+=e.substring(n,s+1),n=s+1)}else 59===l&&0===o&&(r+=e.substring(n,s+1),n=s+1)}else 0===i?i=l:i===l&&(i=0);else a=!0,s++}if(n<t){var d=e.substring(n);Ei(d)||(r+=d)}return r}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,r=[],n=0,o=0,i=0,a=0;o<t;){var s=e.charCodeAt(o);if(34!==s&&39!==s||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(s===wi&&o+1<t&&e.charCodeAt(o+1)===Ci){for(o+=2;o+1<t&&(e.charCodeAt(o)!==Ci||e.charCodeAt(o+1)!==wi);)o++;o+=2}else if(40===s&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))a=1,o++;else if(a>0)41===s?a--:40===s&&a++,o++;else if(s===Ci&&o+1<t&&e.charCodeAt(o+1)===wi)o>n&&r.push(e.substring(n,o)),n=o+=2;else if(s===wi&&o+1<t&&e.charCodeAt(o+1)===wi){for(o>n&&r.push(e.substring(n,o));o<t&&10!==e.charCodeAt(o);)o++;n=o}else o++;else o++;else 0===i?i=s:i===s&&(i=0),o++}return 0===n?e:(n<t&&r.push(e.substring(n)),r.join(""))}(e)),u=Bn(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);return a.namespace&&(u=Ri(u,a.namespace)),p=[],Kn(u,f),p};return h.hash=l.length?l.reduce(function(e,t){return t.name||ao(15),Eo(e,t.name)},5381).toString():"",h}var Pi=new ci,Mi=Ai(),Ii=w.createContext({shouldForwardProp:void 0,styleSheet:Pi,stylis:Mi});Ii.Consumer;var ki=w.createContext(void 0);function Di(){return w.useContext(Ii)}function Ti(e){if(!w.useMemo)return e.children;var t=Di().styleSheet,r=w.useMemo(function(){var r=t;return e.sheet?r=e.sheet:e.target&&(r=r.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(r=r.reconstructWithOptions({useCSSOMInjection:!1})),r},[e.disableCSSOMInjection,e.sheet,e.target,t]),n=w.useMemo(function(){return Ai({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=w.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:r,stylis:n}},[e.shouldForwardProp,r,n]);return w.createElement(Ii.Provider,{value:o},w.createElement(ki.Provider,{value:n},e.children))}var Oi=w.createContext(void 0);Oi.Consumer;var Li={};function qi(e,t,r){var n=Wo(e),o=e,i=!Po(e),a=t.attrs,s=void 0===a?fo:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":yo(e);Li[r]=(Li[r]||0)+1;var n="".concat(r,"-").concat(Ao(to+r+Li[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return Po(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(yo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var v=new xi(r,p,n?o.componentStyle:void 0);function b(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=w.useContext(Oi),c=Di(),d=e.shouldForwardProp||c.shouldForwardProp,p=mo(t,u,i)||ho,f=function(e,t,r){for(var n,o=Jr(Jr({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Bo(n=e[i])?n(o):n;for(var s in a)"className"===s?o.className=Vo(o.className,a[s]):"style"===s?o.style=Jr(Jr({},o.style),a[s]):s in t&&void 0===t[s]||(o[s]=a[s])}return"className"in t&&"string"==typeof t.className&&(o.className=Vo(o.className,t.className)),o}(n,t,p),h=f.as||l,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var v=function(e,t){var r=Di();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),b=v.className,y=Vo(a,s);return b&&(y+=" "+b),f.className&&(y+=" "+f.className),m[Po(h)&&!go.has(h)?"class":"className"]=y,r&&(m.ref=r),C(h,m)}(y,e,t)}b.displayName=d;var y=w.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?Vo(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Yo(e,o[n],!0);return e}({},o.defaultProps,e):e}}),Ko(y,function(){return".".concat(y.styledComponentId)}),i&&Ho(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Ni(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var _i=function(e){return Object.assign(e,{isCss:!0})};function ji(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Bo(e)||Go(e))return _i(vi(Ni(fo,Zr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?vi(n):_i(vi(Ni(n,t)))}function zi(e,t,r){if(void 0===r&&(r=ho),!t)throw ao(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,ji.apply(void 0,Zr([n],o,!1)))};return n.attrs=function(n){return zi(e,t,Jr(Jr({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return zi(e,t,Jr(Jr({},r),n))},n}var Fi=function(e){return zi(qi,e)},$i=Fi;go.forEach(function(e){$i[e]=Fi(e)});var Hi,Bi=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=bi(e),ci.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Uo(vi(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&ci.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?r.hasNameForId(o,o)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}();var Wi=function(){function e(e,t){var r=this;this[Hi]=!0,this.inject=function(e,t){void 0===t&&(t=Mi);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ko(this,function(){throw ao(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Mi),this.name+e.hash},e}();function Vi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Uo(ji.apply(void 0,Zr([e],t,!1))),o=Ao(n);return new Wi(o,n)}Hi=hi;var Ui={exports:{}};function Gi(){}function Yi(){}Yi.resetWarningCache=Gi;Ui.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Yi,resetWarningCache:Gi};return r.PropTypes=r,r}();var Ki=er(Ui.exports);function Xi(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}Xi.propTypes={children:Ki.node,injectFirst:Ki.bool};const Ji=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ji.apply(void 0,Zr([e],t,!1)),o="sc-global-".concat(Ao(JSON.stringify(n))),i=new Bi(n,o),a=new WeakMap,s=function(e){var t=Di(),r=w.useContext(Oi),n=a.get(t.styleSheet);return void 0===n&&(n=t.styleSheet.allocateGSInstance(o),a.set(t.styleSheet,n)),w.useLayoutEffect(function(){return t.styleSheet.server||function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,io,r,o);else{var a=Jr(Jr({},t),{theme:mo(t,n,s.defaultProps)});i.renderStyles(e,a,r,o)}}(n,e,t.styleSheet,r,t.stylis),function(){i.removeStyles(n,t.styleSheet)}},[n,e,t.styleSheet,r,t.stylis]),null};return w.memo(s)}(e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n});
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,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(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0===+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",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"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},Mt({exports:{}});const _t=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function zt(e,t){return r(()=>e,t)}const Ft={},$t=()=>{const{viewState:e}=n(),t=(e=>{const t=r(()=>({current:Ft}),[]);return t.current=t.current===Ft?e:t.current,t})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=r(()=>_t(),[]),l=zt(e=>{t.current.add(e)},[t]),u=zt(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=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(n,i)},r)}}(async()=>{await Promise.all(t.current),t.current.clear(),s()},1e3),[s,t]);return o(async()=>{await a},[a]),r(()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l}),[u,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)"},Wt=12,Vt=14,Ut=16,Gt=24,Yt=3,Kt=300,Xt=400,Jt=600,Zt=700,Qt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var rr={exports:{}},nr={},or=w,ir=Symbol.for("react.element"),ar=Symbol.for("react.fragment"),sr=Object.prototype.hasOwnProperty,lr=or.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ur={key:!0,ref:!0,__self:!0,__source:!0};function cr(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)sr.call(t,n)&&!ur.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:ir,type:e,key:i,ref:a,props:o,_owner:lr.current}}nr.Fragment=ar,nr.jsx=cr,nr.jsxs=cr,rr.exports=nr;var dr=rr.exports;const pr={black:"#000",white:"#fff"},fr="#e57373",hr="#ef5350",mr="#f44336",gr="#d32f2f",br="#c62828",vr="#f3e5f5",yr="#ce93d8",xr="#ba68c8",Sr="#ab47bc",wr="#9c27b0",Cr="#7b1fa2",Er="#e3f2fd",Rr="#90caf9",Ar="#42a5f5",Mr="#1976d2",Pr="#1565c0",Ir="#4fc3f7",kr="#29b6f6",Dr="#03a9f4",Tr="#0288d1",Or="#01579b",Lr="#81c784",qr="#66bb6a",Nr="#4caf50",jr="#388e3c",_r="#2e7d32",zr="#1b5e20",Fr="#ffb74d",$r="#ffa726",Hr="#ff9800",Br="#f57c00",Wr="#e65100",Vr={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ur(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Gr=Object.freeze({__proto__:null,default:Ur}),Yr="$$material";function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(null,arguments)}function Xr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var Jr="-ms-",Zr="-moz-",Qr="-webkit-",en="comm",tn="rule",rn="decl",nn="@import",on="@keyframes",an=Math.abs,sn=String.fromCharCode,ln=Object.assign;function un(e){return e.trim()}function cn(e,t){return(e=t.exec(e))?e[0]:e}function dn(e,t,r){return e.replace(t,r)}function pn(e,t,r){return e.indexOf(t,r)}function fn(e,t){return 0|e.charCodeAt(t)}function hn(e,t,r){return e.slice(t,r)}function mn(e){return e.length}function gn(e){return e.length}function bn(e,t){return t.push(e),e}function vn(e,t){return e.filter(function(e){return!cn(e,t)})}var yn,xn,Sn=1,wn=1,Cn=0,En=0,Rn=0,An="";function Mn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Sn,column:wn,length:a,return:"",siblings:s}}function Pn(e,t){return ln(Mn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function In(e){for(;e.root;)e=Pn(e.root,{children:[e]});bn(e,e.siblings)}function kn(){return Rn=En>0?fn(An,--En):0,wn--,10===Rn&&(wn=1,Sn--),Rn}function Dn(){return Rn=En<Cn?fn(An,En++):0,wn++,10===Rn&&(wn=1,Sn++),Rn}function Tn(){return fn(An,En)}function On(){return En}function Ln(e,t){return hn(An,e,t)}function qn(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 Nn(e){return un(Ln(En-1,zn(91===e?e+2:40===e?e+1:e)))}function jn(e){for(;(Rn=Tn())&&Rn<33;)Dn();return qn(e)>2||qn(Rn)>3?"":" "}function _n(e,t){for(;--t&&Dn()&&!(Rn<48||Rn>102||Rn>57&&Rn<65||Rn>70&&Rn<97););return Ln(e,On()+(t<6&&32==Tn()&&32==Dn()))}function zn(e){for(;Dn();)switch(Rn){case e:return En;case 34:case 39:34!==e&&39!==e&&zn(Rn);break;case 40:41===e&&zn(e);break;case 92:Dn()}return En}function Fn(e,t){for(;Dn()&&e+Rn!==57&&(e+Rn!==84||47!==Tn()););return"/*"+Ln(t,En-1)+"*"+sn(47===e?e:Dn())}function $n(e){for(;!qn(Tn());)Dn();return Ln(e,En)}function Hn(e){return function(e){return An="",e}(Bn("",null,null,null,[""],e=function(e){return Sn=wn=1,Cn=mn(An=e),En=0,[]}(e),0,[0],e))}function Bn(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,w=n,C=y;g;)switch(h=v,v=Dn()){case 40:if(108!=h&&58==fn(C,d-1)){-1!=pn(C+=dn(Nn(v),"&","&\f"),"&\f",an(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Nn(v);break;case 9:case 10:case 13:case 32:C+=jn(h);break;case 92:C+=_n(On()-1,7);continue;case 47:switch(Tn()){case 42:case 47:bn(Vn(Fn(Dn(),On()),t,r,l),l),5!=qn(h||1)&&5!=qn(Tn()||1)||!mn(C)||" "===hn(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=mn(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=dn(C,/\f/g,"")),f>0&&(mn(C)-d||0===m&&47===h)&&bn(f>32?Un(C+";",n,r,d-1,l):Un(dn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(bn(w=Wn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)Bn(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===fn(C,3))break;case 108:if(97===fn(C,2))break;default:c=0;case 100:case 109:case 115:}c?Bn(e,w,w,n&&bn(Wn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):Bn(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+mn(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==kn())continue;switch(C+=sn(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(mn(C)-1)*b,b=1;break;case 64:45===Tn()&&(C+=Nn(Dn())),p=Tn(),c=d=mn(y=C+=$n(On())),v++;break;case 45:45===h&&2==mn(C)&&(m=0)}}return i}function Wn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=gn(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=hn(e,p+1,p=an(g=a[m])),x=e;v<h;++v)(x=un(g>0?f[v]+" "+y:dn(y,/&\f/g,f[v])))&&(l[b++]=x);return Mn(e,t,r,0===o?tn:s,l,u,c,d)}function Vn(e,t,r,n){return Mn(e,t,r,en,sn(Rn),hn(e,2,-2),0,n)}function Un(e,t,r,n,o){return Mn(e,t,r,rn,hn(e,0,n),hn(e,n+1,-1),n,o)}function Gn(e,t,r){switch(function(e,t){return 45^fn(e,0)?(((t<<2^fn(e,0))<<2^fn(e,1))<<2^fn(e,2))<<2^fn(e,3):0}(e,t)){case 5103:return Qr+"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 Qr+e+e;case 4855:return Qr+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Zr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Qr+e+Zr+e+Jr+e+e;case 5936:switch(fn(e,t+11)){case 114:return Qr+e+Jr+dn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qr+e+Jr+dn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qr+e+Jr+dn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Qr+e+Jr+e+e;case 6165:return Qr+e+Jr+"flex-"+e+e;case 5187:return Qr+e+dn(e,/(\w+).+(:[^]+)/,Qr+"box-$1$2"+Jr+"flex-$1$2")+e;case 5443:return Qr+e+Jr+"flex-item-"+dn(e,/flex-|-self/g,"")+(cn(e,/flex-|baseline/)?"":Jr+"grid-row-"+dn(e,/flex-|-self/g,""))+e;case 4675:return Qr+e+Jr+"flex-line-pack"+dn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Qr+e+Jr+dn(e,"shrink","negative")+e;case 5292:return Qr+e+Jr+dn(e,"basis","preferred-size")+e;case 6060:return Qr+"box-"+dn(e,"-grow","")+Qr+e+Jr+dn(e,"grow","positive")+e;case 4554:return Qr+dn(e,/([^-])(transform)/g,"$1"+Qr+"$2")+e;case 6187:return dn(dn(dn(e,/(zoom-|grab)/,Qr+"$1"),/(image-set)/,Qr+"$1"),e,"")+e;case 5495:case 3959:return dn(e,/(image-set\([^]*)/,Qr+"$1$`$1");case 4968:return dn(dn(e,/(.+:)(flex-)?(.*)/,Qr+"box-pack:$3"+Jr+"flex-pack:$3"),/space-between/,"justify")+Qr+e+e;case 4200:if(!cn(e,/flex-|baseline/))return Jr+"grid-column-align"+hn(e,t)+e;break;case 2592:case 3360:return Jr+dn(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,cn(e.props,/grid-\w+-end/)})?~pn(e+(r=r[t].value),"span",0)?e:Jr+dn(e,"-start","")+e+Jr+"grid-row-span:"+(~pn(r,"span",0)?cn(r,/\d+/):+cn(r,/\d+/)-+cn(e,/\d+/))+";":Jr+dn(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return cn(e.props,/grid-\w+-start/)})?e:Jr+dn(dn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return dn(e,/(.+)-inline(.+)/,Qr+"$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(mn(e)-1-t>6)switch(fn(e,t+1)){case 109:if(45!==fn(e,t+4))break;case 102:return dn(e,/(.+:)(.+)-([^]+)/,"$1"+Qr+"$2-$3$1"+Zr+(108==fn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~pn(e,"stretch",0)?Gn(dn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return dn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,i,a,s){return Jr+r+":"+n+s+(o?Jr+r+"-span:"+(i?a:+a-+n)+s:"")+e});case 4949:if(121===fn(e,t+6))return dn(e,":",":"+Qr)+e;break;case 6444:switch(fn(e,45===fn(e,14)?18:11)){case 120:return dn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Qr+(45===fn(e,14)?"inline-":"")+"box$3$1"+Qr+"$2$3$1"+Jr+"$2box$3")+e;case 100:return dn(e,":",":"+Jr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return dn(e,"scroll-","scroll-snap-")+e}return e}function Yn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Kn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case nn:case"@namespace":case rn:return e.return=e.return||e.value;case en:return"";case on:return e.return=e.value+"{"+Yn(e.children,n)+"}";case tn:if(!mn(e.value=e.props.join(",")))return""}return mn(r=Yn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Xn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case rn:return void(e.return=Gn(e.value,e.length,r));case on:return Yn([Pn(e,{value:dn(e.value,"@","@"+Qr)})],n);case tn:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(cn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":In(Pn(e,{props:[dn(t,/:(read-\w+)/,":-moz-$1")]})),In(Pn(e,{props:[t]})),ln(e,{props:vn(r,n)});break;case"::placeholder":In(Pn(e,{props:[dn(t,/:(plac\w+)/,":"+Qr+"input-$1")]})),In(Pn(e,{props:[dn(t,/:(plac\w+)/,":-moz-$1")]})),In(Pn(e,{props:[dn(t,/:(plac\w+)/,Jr+"input-$1")]})),In(Pn(e,{props:[t]})),ln(e,{props:vn(r,n)})}return""})}}const Jn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Zn="active",Qn="data-styled-version",eo="6.4.0",to="/*!sc*/\n",ro="undefined"!=typeof window&&"undefined"!=typeof document;function no(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const oo=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(xn=null!==(yn=no("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==yn?yn:no("SC_DISABLE_SPEEDY"))&&void 0!==xn?xn:"undefined"==typeof process||void 0===process.env||!1),io="sc-keyframes-",ao={};function so(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 lo=new Map,uo=new Map,co=1;const po=e=>{if(lo.has(e))return lo.get(e);for(;uo.has(co);)co++;const t=co++;return lo.set(e,t),uo.set(t,e),t},fo=e=>uo.get(e),ho=(e,t)=>{co=t+1,lo.set(e,t),uo.set(t,e)},mo=Object.freeze([]),go=Object.freeze({});function bo(e,t,r=go){return e.theme!==r.theme&&e.theme||t||r.theme}const vo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,yo=/(^-|-$)/g;function xo(e){return e.replace(vo,"-").replace(yo,"")}const So=/(a)(d)/gi,wo=e=>String.fromCharCode(e+(e>25?39:97));function Co(e){let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=wo(t%52)+r;return(wo(t%52)+r).replace(So,"$1-$2")}const Eo=5381,Ro=(e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e},Ao=e=>Ro(Eo,e);function Mo(e){return Co(Ao(e)>>>0)}function Po(e){return"string"==typeof e&&!0}function Io(e){return Po(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const ko=Symbol.for("react.memo"),Do=Symbol.for("react.forward_ref"),To={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Oo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Lo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qo={[Do]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[ko]:Lo};function No(e){return("type"in(t=e)&&t.type.$$typeof)===ko?Lo:"$$typeof"in e?qo[e.$$typeof]:To;var t}const jo=Object.defineProperty,_o=Object.getOwnPropertyNames,zo=Object.getOwnPropertySymbols,Fo=Object.getOwnPropertyDescriptor,$o=Object.getPrototypeOf,Ho=Object.prototype;function Bo(e,t,r){if("string"!=typeof t){const n=$o(t);n&&n!==Ho&&Bo(e,n,r);const o=_o(t).concat(zo(t)),i=No(e),a=No(t);for(let n=0;n<o.length;++n){const s=o[n];if(!(s in Oo||r&&r[s]||a&&s in a||i&&s in i)){const r=Fo(t,s);try{jo(e,s,r)}catch(e){}}}}return e}function Wo(e){return"function"==typeof e}function Vo(e){return"object"==typeof e&&"styledComponentId"in e}function Uo(e,t){return e&&t?e+" "+t:e||t||""}function Go(e,t){return e.join("")}function Yo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ko(e,t,r=!1){if(!r&&!Yo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let r=0;r<t.length;r++)e[r]=Ko(e[r],t[r]);else if(Yo(t))for(const r in t)e[r]=Ko(e[r],t[r]);return e}function Xo(e,t){Object.defineProperty(e,"toString",{value:t})}const Jo=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 r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(let r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,r=t.length;let n=r;for(;e>=n;)if(n<<=1,n<0)throw so(16,`${e}`);this.groupSizes=new Uint32Array(n),this.groupSizes.set(t),this.length=n;for(let e=r;e<n;e++)this.groupSizes[e]=0}let r=this.indexOfGroup(e+1),n=0;for(let o=0,i=t.length;o<i;o++)this.tag.insertRule(r,t[o])&&(this.groupSizes[e]++,r++,n++);n>0&&this._cGroup>e&&(this._cIndex+=n)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(let e=r;e<n;e++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r;for(let e=n;e<o;e++)t+=this.tag.getRule(e)+to;return t}},Zo=`style[${Jn}][${Qn}="${eo}"]`,Qo=new RegExp(`^${Jn}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),ei=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,ti=e=>{if(!e)return document;if(ei(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(ei(t))return t}return document},ri=(e,t,r)=>{const n=r.split(",");let o;for(let r=0,i=n.length;r<i;r++)(o=n[r])&&e.registerName(t,o)},ni=(e,t)=>{var r;const n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(to),o=[];for(let t=0,r=n.length;t<r;t++){const r=n[t].trim();if(!r)continue;const i=r.match(Qo);if(i){const t=0|parseInt(i[1],10),r=i[2];0!==t&&(ho(r,t),ri(e,r,i[3]),e.getTag().insertRules(t,o)),o.length=0}else o.push(r)}},oi=e=>{const t=ti(e.options.target).querySelectorAll(Zo);for(let r=0,n=t.length;r<n;r++){const n=t[r];n&&n.getAttribute(Jn)!==Zn&&(ni(e,n),n.parentNode&&n.parentNode.removeChild(n))}};let ii=!1;const ai=(e,t)=>{const r=document.head,n=e||r,o=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${Jn}]`));return t[t.length-1]})(n),a=void 0!==i?i.nextSibling:null;o.setAttribute(Jn,Zn),o.setAttribute(Qn,eo);const s=t||function(){if(!1!==ii)return ii;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return ii=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return ii=t.getAttribute("content")||void 0}return ii="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&o.setAttribute("nonce",s),n.insertBefore(o,a),o},si=class{constructor(e,t){this.element=ai(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,n=r.length;t<n;t++){const n=r[t];if(n.ownerNode===e)return n}throw so(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:""}},li=class{constructor(e,t){this.element=ai(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const r=document.createTextNode(t);return this.element.insertBefore(r,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 ui=ro;const ci={isServer:!ro,useCSSOMInjection:!oo};class di{static registerId(e){return po(e)}constructor(e=go,t={},r){this.options=Object.assign(Object.assign({},ci),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ro&&ui&&(ui=!1,oi(this)),Xo(this,()=>(e=>{const t=e.getTag(),{length:r}=t;let n="";for(let o=0;o<r;o++){const r=fo(o);if(void 0===r)continue;const i=e.names.get(r);if(void 0===i||!i.size)continue;const a=t.getGroup(o);if(0===a.length)continue;const s=Jn+".g"+o+'[id="'+r+'"]';let l="";for(const e of i)e.length>0&&(l+=e+",");n+=a+s+'{content:"'+l+'"}'+to}return n})(this))}rehydrate(){!this.server&&ro&&oi(this)}reconstructWithOptions(e,t=!0){const r=new di(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&ro&&e.target!==this.options.target&&ti(this.options.target)!==ti(e.target)&&oi(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:r})=>e?new si(t,r):new li(t,r))(this.options),new Jo(e)));var e}hasNameForId(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n}registerName(e,t){po(e),e.startsWith(io)&&this.keyframeIds.add(e);const r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,r){this.registerName(e,t),this.getTag().insertRules(po(e),r)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(po(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const pi=new WeakSet,fi={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 hi(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in fi||e.startsWith("--")?String(t).trim():t+"px"}const mi=e=>e>="A"&&e<="Z";function gi(e){let t="";for(let r=0;r<e.length;r++){const n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;mi(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}const bi=Symbol.for("sc-keyframes");function vi(e){return Wo(e)&&!(e.prototype&&e.prototype.isReactComponent)}const yi=e=>null==e||!1===e||""===e,xi=Symbol.for("react.client.reference");function Si(e){return e.$$typeof===xi}const wi=e=>{const t=[];for(const r in e){const n=e[r];e.hasOwnProperty(r)&&!yi(n)&&(Array.isArray(n)&&pi.has(n)||Wo(n)?t.push(gi(r)+":",n,";"):Yo(n)?t.push(r+" {",...wi(n),"}"):t.push(gi(r)+": "+hi(r,n)+";"))}return t};function Ci(e,t,r,n,o=[]){if(yi(e))return o;const i=typeof e;if("string"===i)return o.push(e),o;if("function"===i){if(Si(e))return o;if(vi(e)&&t){return Ci(e(t),t,r,n,o)}return o.push(e),o}if(Array.isArray(e)){for(let i=0;i<e.length;i++)Ci(e[i],t,r,n,o);return o}if(Vo(e))return o.push(`.${e.styledComponentId}`),o;if(function(e){return"object"==typeof e&&null!==e&&bi in e}(e))return r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o;if(Si(e))return o;if(Yo(e)){const t=wi(e);for(let e=0;e<t.length;e++)o.push(t[e]);return o}return o.push(e.toString()),o}const Ei=Ao(eo);class Ri{constructor(e,t,r){this.rules=e,this.componentId=t,this.baseHash=Ro(Ei,t),this.baseStyle=r,di.registerId(t)}generateAndInjectStyles(e,t,r){let n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";{let o="";for(let n=0;n<this.rules.length;n++){const i=this.rules[n];if("string"==typeof i)o+=i;else if(i)if(vi(i)){const n=i(e);"string"==typeof n?o+=n:null!=n&&!1!==n&&(o+=Go(Ci(n,e,t,r)))}else o+=Go(Ci(i,e,t,r))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=r.hash?r.hash+o:o;let i=this.dynamicNameCache.get(e);if(!i){if(i=Co(Ro(Ro(this.baseHash,r.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=r(o,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}n=Uo(n,i)}}return n}}const Ai=/&/g,Mi=47;function Pi(e,t){let r=0;for(;--t>=0&&92===e.charCodeAt(t);)r++;return!(1&~r)}function Ii(e){const t=e.length;let r="",n=0,o=0,i=0,a=!1,s=!1;for(let l=0;l<t;l++){const u=e.charCodeAt(l);if(0!==i||a||u!==Mi||42!==e.charCodeAt(l+1))if(a)42===u&&e.charCodeAt(l+1)===Mi&&(a=!1,l++);else if(34!==u&&39!==u||Pi(e,l)){if(0===i)if(123===u)o++;else if(125===u){if(o--,o<0){s=!0;let r=l+1;for(;r<t;){const t=e.charCodeAt(r);if(59===t||10===t)break;r++}r<t&&59===e.charCodeAt(r)&&r++,o=0,l=r-1,n=r;continue}0===o&&(r+=e.substring(n,l+1),n=l+1)}else 59===u&&0===o&&(r+=e.substring(n,l+1),n=l+1)}else 0===i?i=u:i===u&&(i=0);else a=!0,l++}return s||0!==o||0!==i?(n<t&&0===o&&0===i&&(r+=e.substring(n)),r):e}function ki(e,t){for(let r=0;r<e.length;r++){const n=e[r];if("rule"===n.type){n.value=t+" "+n.value,n.value=n.value.replaceAll(",",","+t+" ");const e=n.props,r=[];for(let n=0;n<e.length;n++)r[n]=t+" "+e[n];n.props=r}Array.isArray(n.children)&&"@keyframes"!==n.type&&(n.children=ki(n.children,t))}return e}function Di({options:e=go,plugins:t=mo}=go){let r,n,o;const i=(e,t,o)=>o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?`.${r}`:e,a=t.slice();a.push(e=>{e.type===tn&&e.value.includes("&")&&(o||(o=new RegExp(`\\${n}\\b`,"g")),e.props[0]=e.props[0].replace(Ai,n).replace(o,i))}),e.prefix&&a.push(Xn),a.push(Kn);let s=[];const l=function(e){var t=gn(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(a.concat((d=e=>s.push(e),function(e){e.root||(e=e.return)&&d(e)}))),u=(t,i="",a="",u="&")=>{r=u,n=i,o=void 0;const c=function(e){const t=-1!==e.indexOf("//"),r=-1!==e.indexOf("}");if(!t&&!r)return e;if(!t)return Ii(e);const n=e.length;let o="",i=0,a=0,s=0,l=0,u=0,c=!1;for(;a<n;){const t=e.charCodeAt(a);if(34!==t&&39!==t||Pi(e,a))if(0===s)if(t===Mi&&a+1<n&&42===e.charCodeAt(a+1)){for(a+=2;a+1<n&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==Mi);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<n&&e.charCodeAt(a+1)===Mi)o+=e.substring(i,a),a+=2,i=a,c=!0;else if(t===Mi&&a+1<n&&e.charCodeAt(a+1)===Mi){for(o+=e.substring(i,a);a<n&&10!==e.charCodeAt(a);)a++;i=a,c=!0}else 123===t?u++:125===t&&u--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===s?s=t:s===t&&(s=0),a++}return c?(i<n&&(o+=e.substring(i)),0===u?o:Ii(o)):0===u?e:Ii(e)}(t);let d=Hn(a||i?a+" "+i+" { "+c+" }":c);return e.namespace&&(d=ki(d,e.namespace)),s=[],Yn(d,l),s},c=e;var d;let p=Eo;for(let e=0;e<t.length;e++)t[e].name||so(15),p=Ro(p,t[e].name);return(null==c?void 0:c.namespace)&&(p=Ro(p,c.namespace)),(null==c?void 0:c.prefix)&&(p=Ro(p,"p")),u.hash=p!==Eo?p.toString():"",u}const Ti=new di,Oi=Di(),Li=w.createContext({shouldForwardProp:void 0,styleSheet:Ti,stylis:Oi,stylisPlugins:void 0});function qi(){return w.useContext(Li)}function Ni(e){var t;const r=qi(),{styleSheet:n}=r,o=w.useMemo(()=>{let t=n;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,n]),i=w.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?r.stylis:Di({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:r.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,r.stylis,r.stylisPlugins]),a="shouldForwardProp"in e?e.shouldForwardProp:r.shouldForwardProp,s=null!==(t=e.stylisPlugins)&&void 0!==t?t:r.stylisPlugins,l=w.useMemo(()=>({shouldForwardProp:a,styleSheet:o,stylis:i,stylisPlugins:s}),[a,o,i,s]);return w.createElement(Li.Provider,{value:l},e.children)}Li.Consumer;const ji=w.createContext(void 0);ji.Consumer;const _i=Object.prototype.hasOwnProperty,zi={};function Fi(e,t){const r="string"!=typeof e?"sc":xo(e);zi[r]=(zi[r]||0)+1;const n=r+"-"+Mo(eo+r+zi[r]);return t?t+"-"+n:n}function $i(e,t,r){const n=Vo(e),o=e,i=!Po(e),{attrs:a=mo,componentId:s=Fi(t.displayName,t.parentComponentId),displayName:l=Io(e)}=t,u=t.displayName&&t.componentId?xo(t.displayName)+"-"+t.componentId:t.componentId||s,c=n&&o.attrs?o.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:d}=t;if(n&&o.shouldForwardProp){const e=o.shouldForwardProp;if(t.shouldForwardProp){const r=t.shouldForwardProp;d=(t,n)=>e(t,n)&&r(t,n)}else d=e}const p=new Ri(r,u,n?o.componentStyle:void 0);function f(e,t){return function(e,t,r){const{attrs:n,componentStyle:o,defaultProps:i,foldedComponentIds:a,styledComponentId:s,target:l}=e,u=w.useContext(ji),c=qi(),d=e.shouldForwardProp||c.shouldForwardProp,p=bo(t,u,i)||go;let f,h;{const e=w.useRef(null),r=e.current;if(null!==r&&r[1]===p&&r[2]===c.styleSheet&&r[3]===c.stylis&&r[7]===o&&function(e,t,r){const n=e,o=t;let i=0;for(const e in o)if(_i.call(o,e)&&(i++,n[e]!==o[e]))return!1;return i===r}(r[0],t,r[4]))f=r[5],h=r[6];else{f=function(e,t,r){const n=Object.assign(Object.assign({},t),{className:void 0,theme:r}),o=e.length>1;for(let r=0;r<e.length;r++){const i=e[r],a=Wo(i)?i(o?Object.assign({},n):n):i;for(const e in a)"className"===e?n.className=Uo(n.className,a[e]):"style"===e?n.style=Object.assign(Object.assign({},n.style),a[e]):e in t&&void 0===t[e]||(n[e]=a[e])}return"className"in t&&"string"==typeof t.className&&(n.className=Uo(n.className,t.className)),n}(n,t,p),h=function(e,t,r,n){return e.generateAndInjectStyles(t,r,n)}(o,f,c.styleSheet,c.stylis);let r=0;for(const e in t)_i.call(t,e)&&r++;e.current=[t,p,c.styleSheet,c.stylis,r,f,h,o]}}const m=f.as||l,g=function(e,t,r,n){const o={};for(const i in e)void 0===e[i]||"$"===i[0]||"as"===i||"theme"===i&&e.theme===r||("forwardedAs"===i?o.as=e.forwardedAs:n&&!n(i,t)||(o[i]=e[i]));return o}(f,m,p,d);let b=Uo(a,s);return h&&(b+=" "+h),f.className&&(b+=" "+f.className),g[Po(m)&&m.includes("-")?"class":"className"]=b,r&&(g.ref=r),C(m,g)}(h,e,t)}f.displayName=l;let h=w.forwardRef(f);return h.attrs=c,h.componentStyle=p,h.displayName=l,h.shouldForwardProp=d,h.foldedComponentIds=n?Uo(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=u,h.target=n?o.target:e,Object.defineProperty(h,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=n?function(e,...t){for(const r of t)Ko(e,r,!0);return e}({},o.defaultProps,e):e}}),Xo(h,()=>`.${h.styledComponentId}`),i&&Bo(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var Hi=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 Bi(e,t){const r=[e[0]];for(let n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}const Wi=e=>(pi.add(e),e);function Vi(e,...t){if(Wo(e)||Yo(e))return Wi(Ci(Bi(mo,[e,...t])));const r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Ci(r):Wi(Ci(Bi(r,t)))}function Ui(e,t,r=go){if(!t)throw so(1,t);const n=(n,...o)=>e(t,r,Vi(n,...o));return n.attrs=n=>Ui(e,t,Object.assign(Object.assign({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)})),n.withConfig=n=>Ui(e,t,Object.assign(Object.assign({},r),n)),n}const Gi=e=>Ui($i,e),Yi=Gi;Hi.forEach(e=>{Yi[e]=Gi(e)});class Ki{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 r=e[t];if(Wo(r)&&!Vo(r))return!1}return!0}(e),di.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,r,n){const o=this.componentId;if(this.isStatic){if(r.hasNameForId(o,o+e))this.instanceRules.has(e)||this.computeRules(e,t,r,n);else{const i=this.computeRules(e,t,r,n);r.insertRules(o,i.name,i.rules)}return}const i=this.instanceRules.get(e);if(this.computeRules(e,t,r,n),!r.server&&i){const t=i.rules,r=this.instanceRules.get(e).rules;if(t.length===r.length){let e=!0;for(let n=0;n<t.length;n++)if(t[n]!==r[n]){e=!1;break}if(e)return}}this.rebuildGroup(r)}computeRules(e,t,r,n){const o=Go(Ci(this.rules,t,r,n)),i={name:this.componentId+e,rules:n(o,"")};return this.instanceRules.set(e,i),i}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const r of this.instanceRules.values())e.insertRules(t,r.name,r.rules)}}var Xi;class Ji{constructor(e,t){this[Xi]=!0,this.inject=(e,t=Oi)=>{const r=this.getName(t);if(!e.hasNameForId(this.id,r)){const n=t(this.rules,r,"@keyframes");e.insertRules(this.id,r,n)}},this.name=e,this.id=io+e,this.rules=t,po(this.id),Xo(this,()=>{throw so(12,String(this.name))})}getName(e=Oi){return e.hash?this.name+Co(+e.hash>>>0):this.name}}function Zi(e,...t){const r=Go(Vi(e,...t)),n=Mo(r);return new Ji(n,r)}Xi=bi;var Qi={exports:{}};function ea(){}function ta(){}ta.resetWarningCache=ea;Qi.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ta,resetWarningCache:ea};return r.PropTypes=r,r}();var ra=er(Qi.exports);function na(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}na.propTypes={children:ra.node,injectFirst:ra.bool};const oa=function(e,...t){const r=Vi(e,...t),n=`sc-global-${Mo(JSON.stringify(r))}`,o=new Ki(r,n),i=e=>{const t=qi(),r=w.useContext(ji);let i;{const e=w.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(n)),i=e.current}t.styleSheet.server&&a(i,e,t.styleSheet,r,t.stylis);{const s=o.isStatic?[i,t.styleSheet,o]:[i,e,t.styleSheet,r,t.stylis,o],l=w.useRef(o);w.useLayoutEffect(()=>(t.styleSheet.server||(l.current!==o&&(t.styleSheet.clearRules(n),l.current=o),a(i,e,t.styleSheet,r,t.stylis)),()=>{o.removeStyles(i,t.styleSheet)}),s)}return t.styleSheet.server&&o.instanceRules.delete(i),null};function a(e,t,r,n,a){if(o.isStatic)o.renderStyles(e,ao,r,a);else{const s=Object.assign(Object.assign({},t),{theme:bo(t,n,i.defaultProps)});o.renderStyles(e,s,r,a)}}return w.memo(i)}(e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n});
10
10
  /**
11
11
  * @mui/styled-engine-sc v6.4.3
12
12
  *
@@ -14,7 +14,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.le
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- function Zi(e,t){let r;return r=t?$i(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):$i(e),r}function Qi(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function ea(e){return e}Ji.propTypes={defaultTheme:Ki.object,styles:Ki.oneOfType([Ki.array,Ki.string,Ki.object,Ki.func])};var ta=Object.freeze({__proto__:null,GlobalStyles:Ji,StyledEngineProvider:Xi,ThemeContext:Oi,css:ji,default:Zi,internal_mutateStyles:Qi,internal_processStyles:function(e,t){return Qi(e,t)},internal_serializeStyles:ea,keyframes:Vi});function ra(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function na(e){if(E.isValidElement(e)||!ra(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=na(e[r])}),t}function oa(e,t,r={clone:!0}){const n=r.clone?Kr({},e):e;return ra(e)&&ra(t)&&Object.keys(t).forEach(o=>{E.isValidElement(t[o])?n[o]=t[o]:ra(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ra(e[o])?n[o]=oa(e[o],t[o],r):r.clone?n[o]=ra(t[o])?na(t[o]):t[o]:n[o]=t[o]}),n}var ia=Object.freeze({__proto__:null,default:oa,isPlainObject:ra});const aa=["values","unit","step"];function sa(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Xr(e,aa),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>Kr({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Kr({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const la={borderRadius:4};function ua(e,t){return t?oa(e,t,{clone:!1}):e}const ca={xs:0,sm:600,md:900,lg:1200,xl:1536},da={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ca[e]}px)`};function pa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||da;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||da;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||ca).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function fa(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function ha(e){if("string"!=typeof e)throw new Error(Ur(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ma=Object.freeze({__proto__:null,default:ha});function ga(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function va(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:ga(e,r)||n,t&&(o=t(o,n,e)),o}function ba(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=ga(e.theme,n)||{};return pa(e,i,e=>{let n=va(a,o,e);return e===n&&"string"==typeof e&&(n=va(a,o,`${t}${"default"===e?"":ha(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes={},i.filterProps=[t],i}const ya={m:"margin",p:"padding"},xa={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Sa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wa=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!Sa[e])return[e];e=Sa[e]}const[t,r]=e.split(""),n=ya[t],o=xa[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),Ca=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ea=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ra(e,t,r,n){var o;const i=null!=(o=ga(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Aa(e){return Ra(e,"spacing",8)}function Pa(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Ma(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=Pa(t,r),e),{})}(wa(r),n);return pa(e,e[r],o)}function Ia(e,t){const r=Aa(e.theme);return Object.keys(e).map(n=>Ma(e,t,n,r)).reduce(ua,{})}function ka(e){return Ia(e,Ca)}function Da(e){return Ia(e,Ea)}function Ta(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?ua(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function Oa(e){return"number"!=typeof e?e:`${e}px solid`}function La(e,t){return ba({prop:e,themeKey:"borders",transform:t})}ka.propTypes={},ka.filterProps=Ca,Da.propTypes={},Da.filterProps=Ea;const qa=La("border",Oa),Na=La("borderTop",Oa),_a=La("borderRight",Oa),ja=La("borderBottom",Oa),za=La("borderLeft",Oa),Fa=La("borderColor"),$a=La("borderTopColor"),Ha=La("borderRightColor"),Ba=La("borderBottomColor"),Wa=La("borderLeftColor"),Va=La("outline",Oa),Ua=La("outlineColor"),Ga=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ra(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Pa(t,e)});return pa(e,e.borderRadius,r)}return null};Ga.propTypes={},Ga.filterProps=["borderRadius"],Ta(qa,Na,_a,ja,za,Fa,$a,Ha,Ba,Wa,Ga,Va,Ua);const Ya=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ra(e.theme,"spacing",8),r=e=>({gap:Pa(t,e)});return pa(e,e.gap,r)}return null};Ya.propTypes={},Ya.filterProps=["gap"];const Ka=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ra(e.theme,"spacing",8),r=e=>({columnGap:Pa(t,e)});return pa(e,e.columnGap,r)}return null};Ka.propTypes={},Ka.filterProps=["columnGap"];const Xa=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ra(e.theme,"spacing",8),r=e=>({rowGap:Pa(t,e)});return pa(e,e.rowGap,r)}return null};Xa.propTypes={},Xa.filterProps=["rowGap"];function Ja(e,t){return"grey"===t?t:e}Ta(Ya,Ka,Xa,ba({prop:"gridColumn"}),ba({prop:"gridRow"}),ba({prop:"gridAutoFlow"}),ba({prop:"gridAutoColumns"}),ba({prop:"gridAutoRows"}),ba({prop:"gridTemplateColumns"}),ba({prop:"gridTemplateRows"}),ba({prop:"gridTemplateAreas"}),ba({prop:"gridArea"}));function Za(e){return e<=1&&0!==e?100*e+"%":e}Ta(ba({prop:"color",themeKey:"palette",transform:Ja}),ba({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ja}),ba({prop:"backgroundColor",themeKey:"palette",transform:Ja}));const Qa=ba({prop:"width",transform:Za}),es=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||ca[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Za(t)}};return pa(e,e.maxWidth,t)}return null};es.filterProps=["maxWidth"];const ts=ba({prop:"minWidth",transform:Za}),rs=ba({prop:"height",transform:Za}),ns=ba({prop:"maxHeight",transform:Za}),os=ba({prop:"minHeight",transform:Za});ba({prop:"size",cssProperty:"width",transform:Za}),ba({prop:"size",cssProperty:"height",transform:Za});Ta(Qa,es,ts,rs,ns,os,ba({prop:"boxSizing"}));const is={border:{themeKey:"borders",transform:Oa},borderTop:{themeKey:"borders",transform:Oa},borderRight:{themeKey:"borders",transform:Oa},borderBottom:{themeKey:"borders",transform:Oa},borderLeft:{themeKey:"borders",transform:Oa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Oa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ga},color:{themeKey:"palette",transform:Ja},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ja},backgroundColor:{themeKey:"palette",transform:Ja},p:{style:Da},pt:{style:Da},pr:{style:Da},pb:{style:Da},pl:{style:Da},px:{style:Da},py:{style:Da},padding:{style:Da},paddingTop:{style:Da},paddingRight:{style:Da},paddingBottom:{style:Da},paddingLeft:{style:Da},paddingX:{style:Da},paddingY:{style:Da},paddingInline:{style:Da},paddingInlineStart:{style:Da},paddingInlineEnd:{style:Da},paddingBlock:{style:Da},paddingBlockStart:{style:Da},paddingBlockEnd:{style:Da},m:{style:ka},mt:{style:ka},mr:{style:ka},mb:{style:ka},ml:{style:ka},mx:{style:ka},my:{style:ka},margin:{style:ka},marginTop:{style:ka},marginRight:{style:ka},marginBottom:{style:ka},marginLeft:{style:ka},marginX:{style:ka},marginY:{style:ka},marginInline:{style:ka},marginInlineStart:{style:ka},marginInlineEnd:{style:ka},marginBlock:{style:ka},marginBlockStart:{style:ka},marginBlockEnd:{style:ka},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ya},rowGap:{style:Xa},columnGap:{style:Ka},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Za},maxWidth:{style:es},minWidth:{transform:Za},height:{transform:Za},maxHeight:{transform:Za},minHeight:{transform:Za},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function as(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=ga(r,s)||{};if(u)return u(o);return pa(o,t,t=>{let r=va(c,l,t);return t===r&&"string"==typeof t&&(r=va(c,l,`${e}${"default"===t?"":ha(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:is;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{});return r||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(n).forEach(r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=ua(u,e(r,o,i,s));else{const e=pa({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?u=ua(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=ua(u,e(r,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":fa(l,u)}:fa(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const ss=as();function ls(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}ss.filterProps=["sx"];const us=["breakpoints","palette","spacing","shape"];function cs(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Xr(e,us),s=sa(r),l=function(e=8){if(e.mui)return e;const t=Aa({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}(o);let u=oa({breakpoints:s,direction:"ltr",components:{},palette:Kr({mode:"light"},n),spacing:l,shape:Kr({},la,i)},a);return u.applyStyles=ls,u=t.reduce((e,t)=>oa(e,t),u),u.unstable_sxConfig=Kr({},is,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ss({sx:e,theme:this})},u}var ds=Object.freeze({__proto__:null,default:cs,private_createBreakpoints:sa,unstable_applyStyles:ls});function ps(e=null){const t=E.useContext(Oi);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const fs=cs();function hs(e=fs){return ps(e)}function ms(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function gs({styles:e,themeId:t,defaultTheme:r={}}){const n=hs(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>ms("function"==typeof e?e(o):e)):ms(i)),dr.jsx(Ji,{styles:i})}const vs=["sx"];function bs(e){const{sx:t}=e,r=Xr(e,vs),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:is;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ra(r)?Kr({},n,r):n}:Kr({},n,t),Kr({},o,{sx:i})}var ys=Object.freeze({__proto__:null,default:ss,extendSxProp:bs,unstable_createStyleFunctionSx:as,unstable_defaultSxConfig:is});const xs=e=>e,Ss=(()=>{let e=xs;return{configure(t){e=t},generate:t=>e(t),reset(){e=xs}}})();function ws(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ws(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Cs(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ws(e))&&(n&&(n+=" "),n+=t);return n}const Es=["className","component"];const Rs={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function As(e,t,r="Mui"){const n=Rs[t];return n?`${r}-${n}`:`${Ss.generate(e)}-${t}`}function Ps(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=As(e,t,r)}),n}var Ms={exports:{}},Is={},ks=Symbol.for("react.transitional.element"),Ds=Symbol.for("react.portal"),Ts=Symbol.for("react.fragment"),Os=Symbol.for("react.strict_mode"),Ls=Symbol.for("react.profiler"),qs=Symbol.for("react.consumer"),Ns=Symbol.for("react.context"),_s=Symbol.for("react.forward_ref"),js=Symbol.for("react.suspense"),zs=Symbol.for("react.suspense_list"),Fs=Symbol.for("react.memo"),$s=Symbol.for("react.lazy"),Hs=Symbol.for("react.view_transition"),Bs=Symbol.for("react.client.reference");function Ws(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ks:switch(e=e.type){case Ts:case Ls:case Os:case js:case zs:case Hs:return e;default:switch(e=e&&e.$$typeof){case Ns:case _s:case $s:case Fs:case qs:return e;default:return t}}case Ds:return t}}}Is.ContextConsumer=qs,Is.ContextProvider=Ns,Is.Element=ks,Is.ForwardRef=_s,Is.Fragment=Ts,Is.Lazy=$s,Is.Memo=Fs,Is.Portal=Ds,Is.Profiler=Ls,Is.StrictMode=Os,Is.Suspense=js,Is.SuspenseList=zs,Is.isContextConsumer=function(e){return Ws(e)===qs},Is.isContextProvider=function(e){return Ws(e)===Ns},Is.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ks},Is.isForwardRef=function(e){return Ws(e)===_s},Is.isFragment=function(e){return Ws(e)===Ts},Is.isLazy=function(e){return Ws(e)===$s},Is.isMemo=function(e){return Ws(e)===Fs},Is.isPortal=function(e){return Ws(e)===Ds},Is.isProfiler=function(e){return Ws(e)===Ls},Is.isStrictMode=function(e){return Ws(e)===Os},Is.isSuspense=function(e){return Ws(e)===js},Is.isSuspenseList=function(e){return Ws(e)===zs},Is.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ts||e===Ls||e===Os||e===js||e===zs||"object"==typeof e&&null!==e&&(e.$$typeof===$s||e.$$typeof===Fs||e.$$typeof===Ns||e.$$typeof===qs||e.$$typeof===_s||e.$$typeof===Bs||void 0!==e.getModuleId)},Is.typeOf=Ws,Ms.exports=Is;var Vs=Ms.exports;const Us=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Gs(e){const t=`${e}`.match(Us);return t&&t[1]||""}function Ys(e,t=""){return e.displayName||e.name||Gs(e)||t}function Ks(e,t,r){const n=Ys(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Xs=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ys(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Vs.ForwardRef:return Ks(e,e.render,"ForwardRef");case Vs.Memo:return Ks(e,e.type,"memo");default:return}}},getFunctionName:Gs});function Js(e,t){const r=Kr({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Kr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=Kr({},i),Object.keys(o).forEach(e=>{r[n][e]=Js(o[e],i[e])})):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])}),r}const Zs="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;function Qs(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var el=Object.freeze({__proto__:null,default:Qs});function tl(e){if(e.type)return e;if("#"===e.charAt(0))return tl(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Ur(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Ur(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}function rl(e,t){return e=tl(e),t=function(e,t=0,r=1){return Qs(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function nl(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function ol(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n}function il(e){return e&&e.ownerDocument||document}function al(e){return il(e).defaultView||window}function sl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let ll=0;const ul=E["useId".toString()];function cl(e){if(void 0!==ul){return ul()}return function(e){const[t,r]=E.useState(e),n=t;return E.useEffect(()=>{null==t&&(ll+=1,r(`mui-${ll}`))},[t]),n}(e)}function dl({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=E.useRef(void 0!==e),[i,a]=E.useState(t);return[o?e:i,E.useCallback(e=>{o||a(e)},[])]}function pl(e){const t=E.useRef(e);return Zs(()=>{t.current=e}),E.useRef((...e)=>(0,t.current)(...e)).current}function fl(...e){return E.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{sl(e,t)})},e)}const hl={};const ml=[];class gl{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new gl}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function vl(){const e=function(e,t){const r=E.useRef(hl);return r.current===hl&&(r.current=e(t)),r}(gl.create).current;return function(e){E.useEffect(e,ml)}(e.disposeEffect),e}let bl=!0,yl=!1;const xl=new gl,Sl={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function wl(e){e.metaKey||e.altKey||e.ctrlKey||(bl=!0)}function Cl(){bl=!1}function El(){"hidden"===this.visibilityState&&yl&&(bl=!0)}function Rl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return bl||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Sl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Al(){const e=E.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",wl,!0),t.addEventListener("mousedown",Cl,!0),t.addEventListener("pointerdown",Cl,!0),t.addEventListener("touchstart",Cl,!0),t.addEventListener("visibilitychange",El,!0))},[]),t=E.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Rl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(yl=!0,xl.start(100,()=>{yl=!1}),t.current=!1,!0)},ref:e}}function Pl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ml(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}function Il(e){return"string"==typeof e}function kl(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function Dl(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}const Tl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ol(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Xr(e,Tl),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Cs(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Kr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Kr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=kl(Kr({},o,n)),s=Dl(n),l=Dl(o),u=t(a),c=Cs(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=Kr({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=Kr({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Kr({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Il(e)?t:Kr({},t,{ownerState:Kr({},t.ownerState,r)})}(r,Kr({},l,{ref:fl(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Ll(e){var t;return parseInt(E.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const ql=E.createContext(null);function Nl(){return E.useContext(ql)}var _l="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function jl(e){const{children:t,theme:r}=e,n=Nl(),o=E.useMemo(()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Kr({},e,t)}(n,r);return null!=e&&(e[_l]=null!==n),e},[r,n]);return dr.jsx(ql.Provider,{value:o,children:t})}const zl=["value"],Fl=E.createContext();function $l(e){let{value:t}=e,r=Xr(e,zl);return dr.jsx(Fl.Provider,Kr({value:null==t||t},r))}const Hl=E.createContext(void 0);function Bl({value:e,children:t}){return dr.jsx(Hl.Provider,{value:e,children:t})}function Wl({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Js(o.defaultProps,n):o.styleOverrides||o.variants?n:Js(o,n)}({props:e,name:t,theme:{components:E.useContext(Hl)}})}const Vl={};function Ul(e,t,r,n=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Kr({},t,{[e]:i}):i;return n?()=>a:a}return Kr({},t,e?{[e]:r}:r)},[e,t,r,n])}function Gl(e){const{children:t,theme:r,themeId:n}=e,o=ps(Vl),i=Nl()||Vl,a=Ul(n,o,r),s=Ul(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=ps(),r=cl()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Zs(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}},[o,r]),o?dr.jsx(gs,{styles:o}):null}(a);return dr.jsx(jl,{theme:s,children:dr.jsx(Oi.Provider,{value:a,children:dr.jsx($l,{value:l,children:dr.jsxs(Bl,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Yl(e){return Yl="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},Yl(e)}function Kl(e){var t=function(e,t){if("object"!=Yl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Yl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Yl(t)?t:t+""}function Xl(e,t){return Kr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Jl={},Zl={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Zl);var Ql=Zl.exports,eu=tr(Gr),tu=tr(el),ru=Ql;Object.defineProperty(Jl,"__esModule",{value:!0});var nu=Jl.alpha=gu;Jl.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=du(e),a=du(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return fu({type:"rgb",values:s})},Jl.colorChannel=void 0;var ou=Jl.darken=vu;Jl.decomposeColor=du,Jl.emphasize=yu;var iu=Jl.getContrastRatio=function(e,t){const r=mu(e),n=mu(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Jl.getLuminance=mu,Jl.hexToRgb=cu,Jl.hslToRgb=hu;var au=Jl.lighten=bu;Jl.private_safeAlpha=function(e,t,r){try{return gu(e,t)}catch(t){return e}},Jl.private_safeColorChannel=void 0,Jl.private_safeDarken=function(e,t,r){try{return vu(e,t)}catch(t){return e}},Jl.private_safeEmphasize=function(e,t,r){try{return yu(e,t)}catch(t){return e}},Jl.private_safeLighten=function(e,t,r){try{return bu(e,t)}catch(t){return e}},Jl.recomposeColor=fu,Jl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=du(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var su=ru(eu),lu=ru(tu);function uu(e,t=0,r=1){return(0,lu.default)(e,t,r)}function cu(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function du(e){if(e.type)return e;if("#"===e.charAt(0))return du(cu(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,su.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,su.default)(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}const pu=e=>{const t=du(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};Jl.colorChannel=pu;function fu(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function hu(e){e=du(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),fu({type:s,values:l})}function mu(e){let t="hsl"===(e=du(e)).type||"hsla"===e.type?du(hu(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gu(e,t){return e=du(e),t=uu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,fu(e)}function vu(e,t){if(e=du(e),t=uu(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return fu(e)}function bu(e,t){if(e=du(e),t=uu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return fu(e)}function yu(e,t=.15){return mu(e)>.5?vu(e,t):bu(e,t)}Jl.private_safeColorChannel=(e,t)=>{try{return pu(e)}catch(t){return e}};const xu=["mode","contrastThreshold","tonalOffset"],Su={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:pr.white,default:pr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},wu={text:{primary:pr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:pr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Cu(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=au(e.main,o):"dark"===t&&(e.dark=ou(e.main,i)))}function Eu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Xr(e,xu),i=e.primary||function(e="light"){return"dark"===e?{main:Rr,light:Er,dark:Ar}:{main:Pr,light:Ar,dark:Mr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:yr,light:br,dark:Sr}:{main:wr,light:xr,dark:Cr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:mr,light:fr,dark:gr}:{main:gr,light:hr,dark:vr}}(t),l=e.info||function(e="light"){return"dark"===e?{main:kr,light:Ir,dark:Tr}:{main:Tr,light:Dr,dark:Or}}(t),u=e.success||function(e="light"){return"dark"===e?{main:qr,light:Lr,dark:_r}:{main:jr,light:Nr,dark:zr}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:$r,light:Fr,dark:Br}:{main:"#ed6c02",light:Hr,dark:Wr}}(t);function d(e){return iu(e,wu.text.primary)>=r?wu.text.primary:Su.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Kr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Ur(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Ur(12,t?` (${t})`:"",JSON.stringify(e.main)));return Cu(e,"light",o,n),Cu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:wu,light:Su};return oa(Kr({common:Kr({},pr),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Vr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Ru=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Au={textTransform:"uppercase"},Pu='"Roboto", "Helvetica", "Arial", sans-serif';function Mu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Pu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Xr(r,Ru),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Kr({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Pu?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Au),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Au),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return oa(Kr({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Iu(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ku=["none",Iu(0,2,1,-1,0,1,1,0,0,1,3,0),Iu(0,3,1,-2,0,2,2,0,0,1,5,0),Iu(0,3,3,-2,0,3,4,0,0,1,8,0),Iu(0,2,4,-1,0,4,5,0,0,1,10,0),Iu(0,3,5,-1,0,5,8,0,0,1,14,0),Iu(0,3,5,-1,0,6,10,0,0,1,18,0),Iu(0,4,5,-2,0,7,10,1,0,2,16,1),Iu(0,5,5,-3,0,8,10,1,0,3,14,2),Iu(0,5,6,-3,0,9,12,1,0,3,16,2),Iu(0,6,6,-3,0,10,14,1,0,4,18,3),Iu(0,6,7,-4,0,11,15,1,0,4,20,3),Iu(0,7,8,-4,0,12,17,2,0,5,22,4),Iu(0,7,8,-4,0,13,19,2,0,5,24,4),Iu(0,7,9,-4,0,14,21,2,0,5,26,4),Iu(0,8,9,-5,0,15,22,2,0,6,28,5),Iu(0,8,10,-5,0,16,24,2,0,6,30,5),Iu(0,8,11,-5,0,17,26,2,0,6,32,5),Iu(0,9,11,-5,0,18,28,2,0,7,34,6),Iu(0,9,12,-6,0,19,29,2,0,7,36,6),Iu(0,10,13,-6,0,20,31,3,0,8,38,7),Iu(0,10,13,-6,0,21,33,3,0,8,40,7),Iu(0,10,14,-6,0,22,35,3,0,8,42,7),Iu(0,11,14,-7,0,23,36,3,0,9,44,8),Iu(0,11,15,-7,0,24,38,3,0,9,46,8)],Du=["duration","easing","delay"],Tu={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ou={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Lu(e){return`${Math.round(e)}ms`}function qu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Nu(e){const t=Kr({},Tu,e.easing),r=Kr({},Ou,e.duration);return Kr({getAutoHeightDuration:qu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Xr(n,Du),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Lu(o)} ${i} ${"string"==typeof a?a:Lu(a)}`).join(",")}},e,{easing:t,duration:r})}const _u={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ju=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function zu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Xr(e,ju);if(e.vars&&void 0===e.generateCssVars)throw new Error(Ur(18));const s=Eu(n),l=cs(e);let u=oa(l,{mixins:Xl(l.breakpoints,r),palette:s,shadows:ku.slice(),typography:Mu(s,i),transitions:Nu(o),zIndex:Kr({},_u)});return u=oa(u,a),u=t.reduce((e,t)=>oa(e,t),u),u.unstable_sxConfig=Kr({},is,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ss({sx:e,theme:this})},u}const Fu=zu();function $u(){const e=hs(Fu);return e[Yr]||e}var Hu,Bu={},Wu={exports:{}};function Vu(){return Hu||(Hu=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Wu)),Wu.exports}var Uu,Gu={exports:{}};function Yu(){return Uu||(Uu=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Gu)),Gu.exports}var Ku=tr(ta),Xu=tr(ia),Ju=tr(ma),Zu=tr(Xs),Qu=tr(ds),ec=tr(ys),tc=Ql;Object.defineProperty(Bu,"__esModule",{value:!0});var rc=Bu.default=function(e={}){const{themeId:t,defaultTheme:r=mc,rootShouldForwardProp:n=fc,slotShouldForwardProp:o=fc}=e,i=e=>(0,lc.default)((0,nc.default)({},e,{theme:vc((0,nc.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,ic.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=bc(gc(l))}=a,p=(0,oc.default)(a,dc),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=fc;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,ic.default)(e,(0,nc.default)({shouldForwardProp:g,label:void 0},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,ac.isPlainObject)(e)?n=>{const o=vc({theme:n.theme,defaultTheme:r,themeId:t});return yc(e,(0,nc.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push(e=>{const n=vc((0,nc.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,r])=>{i[t]=yc(r,(0,nc.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),d(e,i)}),s&&!h&&l.push(e=>{var n;const o=vc((0,nc.default)({},e,{defaultTheme:r,themeId:t}));return yc({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,nc.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(y.withConfig=v.withConfig),y}};Bu.shouldForwardProp=fc,Bu.systemDefaultTheme=void 0;var nc=tc(Vu()),oc=tc(Yu()),ic=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=pc(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Ku),ac=Xu;tc(Ju),tc(Zu);var sc=tc(Qu),lc=tc(ec);const uc=["ownerState"],cc=["variants"],dc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function pc(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(pc=function(e){return e?r:t})(e)}function fc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function hc(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const mc=Bu.systemDefaultTheme=(0,sc.default)(),gc=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function vc({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function bc(e){return e?(t,r)=>r[e]:null}function yc(e,t,r){let{ownerState:n}=t,o=(0,oc.default)(t,uc);const i="function"==typeof e?e((0,nc.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap(e=>yc(e,(0,nc.default)({ownerState:n},o),r));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,oc.default)(i,cc);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,nc.default)({ownerState:n},o,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,nc.default)({ownerState:n},o,n)):e.style;t.push(r?hc((0,ic.internal_serializeStyles)(i),r):i)}}),t}return r?hc((0,ic.internal_serializeStyles)(i),r):i}function xc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Sc=e=>xc(e)&&"classes"!==e,wc=rc({themeId:Yr,defaultTheme:Fu,rootShouldForwardProp:Sc}),Cc=["theme"];function Ec(e){let{theme:t}=e,r=Xr(e,Cc);const n=t[Yr];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Kr({},n,{vars:null}):t&&!t.vars&&(o=Kr({},t,{vars:null}))),dr.jsx(Gl,Kr({},r,{themeId:n?Yr:void 0,theme:o}))}const Rc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ac(e){return Wl(e)}function Pc(e){return As("MuiSvgIcon",e)}Ps("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Mc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Ic=wc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${ha(r.color)}`],t[`fontSize${ha(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),kc=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Xr(r,Mc),f=E.isValidElement(n)&&"svg"===n.type,h=Kr({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Ml({root:["root","inherit"!==t&&`color${ha(t)}`,`fontSize${ha(r)}`]},Pc,n)})(h);return dr.jsxs(Ic,Kr({as:a,className:Cs(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?dr.jsx("title",{children:c}):null]}))});function Dc(e,t){return Dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dc(e,t)}function Tc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dc(e,t)}kc.muiName="SvgIcon";var Oc=!1,Lc=w.createContext(null),qc="unmounted",Nc="exited",_c="entering",jc="entered",zc="exiting",Fc=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Nc,n.appearStatus=_c):o=jc:o=t.unmountOnExit||t.mountOnEnter?qc:Nc,n.state={status:o},n.nextCallback=null,n}Tc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===qc?{status:Nc}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==_c&&r!==jc&&(t=_c):r!==_c&&r!==jc||(t=zc)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===_c){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:W.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nc&&this.setState({status:qc})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[W.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Oc?this.safeSetState({status:jc},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:_c},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:jc},function(){t.props.onEntered(i,a)})})}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:W.findDOMNode(this);t&&!Oc?(this.props.onExit(n),this.safeSetState({status:zc},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:Nc},function(){e.props.onExited(n)})})})):this.safeSetState({status:Nc},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:W.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===qc)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=Xr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return w.createElement(Lc.Provider,{value:null},"function"==typeof r?r(e,n):w.cloneElement(w.Children.only(r),n))},t}(w.Component);function $c(){}function Hc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bc(e,t){var r=Object.create(null);return e&&P.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&R(e)?t(e):e}(e)}),r}function Wc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Vc(e,t,r){var n=Bc(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(R(a)){var s=i in t,l=i in n,u=t[i],c=R(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&R(u)&&(o[i]=A(a,{onExited:r.bind(null,a),in:u.props.in,exit:Wc(a,"exit",e),enter:Wc(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:r.bind(null,a),in:!0,exit:Wc(a,"exit",e),enter:Wc(a,"enter",e)})}}),o}Fc.contextType=Lc,Fc.propTypes={},Fc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$c,onEntering:$c,onEntered:$c,onExit:$c,onExiting:$c,onExited:$c},Fc.UNMOUNTED=qc,Fc.EXITED=Nc,Fc.ENTERING=_c,Fc.ENTERED=jc,Fc.EXITING=zc;var Uc=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Gc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Hc(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Tc(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Bc(r.children,function(e){return A(e,{onExited:n.bind(null,e),in:!0,appear:Wc(e,"appear",r),enter:Wc(e,"enter",r),exit:Wc(e,"exit",r)})})):Vc(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Bc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=Kr({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Xr(e,["component","childFactory"]),o=this.state.contextValue,i=Uc(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?w.createElement(Lc.Provider,{value:o},i):w.createElement(Lc.Provider,{value:o},w.createElement(t,n,i))},t}(w.Component);Gc.propTypes={},Gc.defaultProps={component:"div",childFactory:function(e){return e}};const Yc=e=>e.scrollTop;function Kc(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Xc(e){return As("MuiPaper",e)}Ps("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Jc=["className","component","elevation","square","variant"],Zc=wc("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return Kr({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Kr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${nu("#fff",Rc(t.elevation))}, ${nu("#fff",Rc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),Qc=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Xr(r,Jc),u=Kr({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Ml({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Xc,o)})(u);return dr.jsx(Zc,Kr({as:o,ownerState:u,className:Cs(c.root,n),ref:t},l))});const ed=Ps("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),td=["center","classes","className"];let rd,nd,od,id,ad=e=>e;const sd=Vi(rd||(rd=ad`
17
+ function ia(e,t){let r;return r=t?Yi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Yi(e),r}function aa(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function sa(e){return e}oa.propTypes={defaultTheme:ra.object,styles:ra.oneOfType([ra.array,ra.string,ra.object,ra.func])};var la=Object.freeze({__proto__:null,GlobalStyles:oa,StyledEngineProvider:na,ThemeContext:ji,css:Vi,default:ia,internal_mutateStyles:aa,internal_processStyles:function(e,t){return aa(e,t)},internal_serializeStyles:sa,keyframes:Zi});function ua(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ca(e){if(E.isValidElement(e)||!ua(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=ca(e[r])}),t}function da(e,t,r={clone:!0}){const n=r.clone?Kr({},e):e;return ua(e)&&ua(t)&&Object.keys(t).forEach(o=>{E.isValidElement(t[o])?n[o]=t[o]:ua(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ua(e[o])?n[o]=da(e[o],t[o],r):r.clone?n[o]=ua(t[o])?ca(t[o]):t[o]:n[o]=t[o]}),n}var pa=Object.freeze({__proto__:null,default:da,isPlainObject:ua});const fa=["values","unit","step"];function ha(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Xr(e,fa),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>Kr({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Kr({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const ma={borderRadius:4};function ga(e,t){return t?da(e,t,{clone:!1}):e}const ba={xs:0,sm:600,md:900,lg:1200,xl:1536},va={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ba[e]}px)`};function ya(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||va;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||va;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||ba).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function xa(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function Sa(e){if("string"!=typeof e)throw new Error(Ur(7));return e.charAt(0).toUpperCase()+e.slice(1)}var wa=Object.freeze({__proto__:null,default:Sa});function Ca(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Ea(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ca(e,r)||n,t&&(o=t(o,n,e)),o}function Ra(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Ca(e.theme,n)||{};return ya(e,i,e=>{let n=Ea(a,o,e);return e===n&&"string"==typeof e&&(n=Ea(a,o,`${t}${"default"===e?"":Sa(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes={},i.filterProps=[t],i}const Aa={m:"margin",p:"padding"},Ma={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Pa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ia=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!Pa[e])return[e];e=Pa[e]}const[t,r]=e.split(""),n=Aa[t],o=Ma[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),ka=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Da=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ta(e,t,r,n){var o;const i=null!=(o=Ca(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Oa(e){return Ta(e,"spacing",8)}function La(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function qa(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=La(t,r),e),{})}(Ia(r),n);return ya(e,e[r],o)}function Na(e,t){const r=Oa(e.theme);return Object.keys(e).map(n=>qa(e,t,n,r)).reduce(ga,{})}function ja(e){return Na(e,ka)}function _a(e){return Na(e,Da)}function za(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?ga(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function Fa(e){return"number"!=typeof e?e:`${e}px solid`}function $a(e,t){return Ra({prop:e,themeKey:"borders",transform:t})}ja.propTypes={},ja.filterProps=ka,_a.propTypes={},_a.filterProps=Da;const Ha=$a("border",Fa),Ba=$a("borderTop",Fa),Wa=$a("borderRight",Fa),Va=$a("borderBottom",Fa),Ua=$a("borderLeft",Fa),Ga=$a("borderColor"),Ya=$a("borderTopColor"),Ka=$a("borderRightColor"),Xa=$a("borderBottomColor"),Ja=$a("borderLeftColor"),Za=$a("outline",Fa),Qa=$a("outlineColor"),es=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ta(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:La(t,e)});return ya(e,e.borderRadius,r)}return null};es.propTypes={},es.filterProps=["borderRadius"],za(Ha,Ba,Wa,Va,Ua,Ga,Ya,Ka,Xa,Ja,es,Za,Qa);const ts=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ta(e.theme,"spacing",8),r=e=>({gap:La(t,e)});return ya(e,e.gap,r)}return null};ts.propTypes={},ts.filterProps=["gap"];const rs=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ta(e.theme,"spacing",8),r=e=>({columnGap:La(t,e)});return ya(e,e.columnGap,r)}return null};rs.propTypes={},rs.filterProps=["columnGap"];const ns=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ta(e.theme,"spacing",8),r=e=>({rowGap:La(t,e)});return ya(e,e.rowGap,r)}return null};ns.propTypes={},ns.filterProps=["rowGap"];function os(e,t){return"grey"===t?t:e}za(ts,rs,ns,Ra({prop:"gridColumn"}),Ra({prop:"gridRow"}),Ra({prop:"gridAutoFlow"}),Ra({prop:"gridAutoColumns"}),Ra({prop:"gridAutoRows"}),Ra({prop:"gridTemplateColumns"}),Ra({prop:"gridTemplateRows"}),Ra({prop:"gridTemplateAreas"}),Ra({prop:"gridArea"}));function is(e){return e<=1&&0!==e?100*e+"%":e}za(Ra({prop:"color",themeKey:"palette",transform:os}),Ra({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:os}),Ra({prop:"backgroundColor",themeKey:"palette",transform:os}));const as=Ra({prop:"width",transform:is}),ss=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||ba[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:is(t)}};return ya(e,e.maxWidth,t)}return null};ss.filterProps=["maxWidth"];const ls=Ra({prop:"minWidth",transform:is}),us=Ra({prop:"height",transform:is}),cs=Ra({prop:"maxHeight",transform:is}),ds=Ra({prop:"minHeight",transform:is});Ra({prop:"size",cssProperty:"width",transform:is}),Ra({prop:"size",cssProperty:"height",transform:is});za(as,ss,ls,us,cs,ds,Ra({prop:"boxSizing"}));const ps={border:{themeKey:"borders",transform:Fa},borderTop:{themeKey:"borders",transform:Fa},borderRight:{themeKey:"borders",transform:Fa},borderBottom:{themeKey:"borders",transform:Fa},borderLeft:{themeKey:"borders",transform:Fa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:es},color:{themeKey:"palette",transform:os},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:os},backgroundColor:{themeKey:"palette",transform:os},p:{style:_a},pt:{style:_a},pr:{style:_a},pb:{style:_a},pl:{style:_a},px:{style:_a},py:{style:_a},padding:{style:_a},paddingTop:{style:_a},paddingRight:{style:_a},paddingBottom:{style:_a},paddingLeft:{style:_a},paddingX:{style:_a},paddingY:{style:_a},paddingInline:{style:_a},paddingInlineStart:{style:_a},paddingInlineEnd:{style:_a},paddingBlock:{style:_a},paddingBlockStart:{style:_a},paddingBlockEnd:{style:_a},m:{style:ja},mt:{style:ja},mr:{style:ja},mb:{style:ja},ml:{style:ja},mx:{style:ja},my:{style:ja},margin:{style:ja},marginTop:{style:ja},marginRight:{style:ja},marginBottom:{style:ja},marginLeft:{style:ja},marginX:{style:ja},marginY:{style:ja},marginInline:{style:ja},marginInlineStart:{style:ja},marginInlineEnd:{style:ja},marginBlock:{style:ja},marginBlockStart:{style:ja},marginBlockEnd:{style:ja},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ts},rowGap:{style:ns},columnGap:{style:rs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:is},maxWidth:{style:ss},minWidth:{transform:is},height:{transform:is},maxHeight:{transform:is},minHeight:{transform:is},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fs(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Ca(r,s)||{};if(u)return u(o);return ya(o,t,t=>{let r=Ea(c,l,t);return t===r&&"string"==typeof t&&(r=Ea(c,l,`${e}${"default"===t?"":Sa(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:ps;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{});return r||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(n).forEach(r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=ga(u,e(r,o,i,s));else{const e=ya({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?u=ga(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=ga(u,e(r,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":xa(l,u)}:xa(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const hs=fs();function ms(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}hs.filterProps=["sx"];const gs=["breakpoints","palette","spacing","shape"];function bs(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Xr(e,gs),s=ha(r),l=function(e=8){if(e.mui)return e;const t=Oa({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}(o);let u=da({breakpoints:s,direction:"ltr",components:{},palette:Kr({mode:"light"},n),spacing:l,shape:Kr({},ma,i)},a);return u.applyStyles=ms,u=t.reduce((e,t)=>da(e,t),u),u.unstable_sxConfig=Kr({},ps,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return hs({sx:e,theme:this})},u}var vs=Object.freeze({__proto__:null,default:bs,private_createBreakpoints:ha,unstable_applyStyles:ms});function ys(e=null){const t=E.useContext(ji);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const xs=bs();function Ss(e=xs){return ys(e)}function ws(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Cs({styles:e,themeId:t,defaultTheme:r={}}){const n=Ss(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>ws("function"==typeof e?e(o):e)):ws(i)),dr.jsx(oa,{styles:i})}const Es=["sx"];function Rs(e){const{sx:t}=e,r=Xr(e,Es),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:ps;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ua(r)?Kr({},n,r):n}:Kr({},n,t),Kr({},o,{sx:i})}var As=Object.freeze({__proto__:null,default:hs,extendSxProp:Rs,unstable_createStyleFunctionSx:fs,unstable_defaultSxConfig:ps});const Ms=e=>e,Ps=(()=>{let e=Ms;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ms}}})();function Is(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Is(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ks(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Is(e))&&(n&&(n+=" "),n+=t);return n}const Ds=["className","component"];const Ts={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Os(e,t,r="Mui"){const n=Ts[t];return n?`${r}-${n}`:`${Ps.generate(e)}-${t}`}function Ls(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=Os(e,t,r)}),n}var qs={exports:{}},Ns={},js=Symbol.for("react.transitional.element"),_s=Symbol.for("react.portal"),zs=Symbol.for("react.fragment"),Fs=Symbol.for("react.strict_mode"),$s=Symbol.for("react.profiler"),Hs=Symbol.for("react.consumer"),Bs=Symbol.for("react.context"),Ws=Symbol.for("react.forward_ref"),Vs=Symbol.for("react.suspense"),Us=Symbol.for("react.suspense_list"),Gs=Symbol.for("react.memo"),Ys=Symbol.for("react.lazy"),Ks=Symbol.for("react.view_transition"),Xs=Symbol.for("react.client.reference");function Js(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case js:switch(e=e.type){case zs:case $s:case Fs:case Vs:case Us:case Ks:return e;default:switch(e=e&&e.$$typeof){case Bs:case Ws:case Ys:case Gs:case Hs:return e;default:return t}}case _s:return t}}}Ns.ContextConsumer=Hs,Ns.ContextProvider=Bs,Ns.Element=js,Ns.ForwardRef=Ws,Ns.Fragment=zs,Ns.Lazy=Ys,Ns.Memo=Gs,Ns.Portal=_s,Ns.Profiler=$s,Ns.StrictMode=Fs,Ns.Suspense=Vs,Ns.SuspenseList=Us,Ns.isContextConsumer=function(e){return Js(e)===Hs},Ns.isContextProvider=function(e){return Js(e)===Bs},Ns.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===js},Ns.isForwardRef=function(e){return Js(e)===Ws},Ns.isFragment=function(e){return Js(e)===zs},Ns.isLazy=function(e){return Js(e)===Ys},Ns.isMemo=function(e){return Js(e)===Gs},Ns.isPortal=function(e){return Js(e)===_s},Ns.isProfiler=function(e){return Js(e)===$s},Ns.isStrictMode=function(e){return Js(e)===Fs},Ns.isSuspense=function(e){return Js(e)===Vs},Ns.isSuspenseList=function(e){return Js(e)===Us},Ns.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===zs||e===$s||e===Fs||e===Vs||e===Us||"object"==typeof e&&null!==e&&(e.$$typeof===Ys||e.$$typeof===Gs||e.$$typeof===Bs||e.$$typeof===Hs||e.$$typeof===Ws||e.$$typeof===Xs||void 0!==e.getModuleId)},Ns.typeOf=Js,qs.exports=Ns;var Zs=qs.exports;const Qs=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function el(e){const t=`${e}`.match(Qs);return t&&t[1]||""}function tl(e,t=""){return e.displayName||e.name||el(e)||t}function rl(e,t,r){const n=tl(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var nl=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return tl(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Zs.ForwardRef:return rl(e,e.render,"ForwardRef");case Zs.Memo:return rl(e,e.type,"memo");default:return}}},getFunctionName:el});function ol(e,t){const r=Kr({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Kr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=Kr({},i),Object.keys(o).forEach(e=>{r[n][e]=ol(o[e],i[e])})):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])}),r}const il="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;function al(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var sl=Object.freeze({__proto__:null,default:al});function ll(e){if(e.type)return e;if("#"===e.charAt(0))return ll(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Ur(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Ur(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}function ul(e,t){return e=ll(e),t=function(e,t=0,r=1){return al(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function cl(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function dl(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n}function pl(e){return e&&e.ownerDocument||document}function fl(e){return pl(e).defaultView||window}function hl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let ml=0;const gl=E["useId".toString()];function bl(e){if(void 0!==gl){return gl()}return function(e){const[t,r]=E.useState(e),n=t;return E.useEffect(()=>{null==t&&(ml+=1,r(`mui-${ml}`))},[t]),n}(e)}function vl({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=E.useRef(void 0!==e),[i,a]=E.useState(t);return[o?e:i,E.useCallback(e=>{o||a(e)},[])]}function yl(e){const t=E.useRef(e);return il(()=>{t.current=e}),E.useRef((...e)=>(0,t.current)(...e)).current}function xl(...e){return E.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{hl(e,t)})},e)}const Sl={};const wl=[];class Cl{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Cl}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function El(){const e=function(e,t){const r=E.useRef(Sl);return r.current===Sl&&(r.current=e(t)),r}(Cl.create).current;return function(e){E.useEffect(e,wl)}(e.disposeEffect),e}let Rl=!0,Al=!1;const Ml=new Cl,Pl={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Il(e){e.metaKey||e.altKey||e.ctrlKey||(Rl=!0)}function kl(){Rl=!1}function Dl(){"hidden"===this.visibilityState&&Al&&(Rl=!0)}function Tl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Rl||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Pl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Ol(){const e=E.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Il,!0),t.addEventListener("mousedown",kl,!0),t.addEventListener("pointerdown",kl,!0),t.addEventListener("touchstart",kl,!0),t.addEventListener("visibilitychange",Dl,!0))},[]),t=E.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Tl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Al=!0,Ml.start(100,()=>{Al=!1}),t.current=!1,!0)},ref:e}}function Ll(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ql(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}function Nl(e){return"string"==typeof e}function jl(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function _l(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}const zl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Fl(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Xr(e,zl),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=ks(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Kr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Kr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=jl(Kr({},o,n)),s=_l(n),l=_l(o),u=t(a),c=ks(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=Kr({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=Kr({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Kr({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Nl(e)?t:Kr({},t,{ownerState:Kr({},t.ownerState,r)})}(r,Kr({},l,{ref:xl(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function $l(e){var t;return parseInt(E.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Hl=E.createContext(null);function Bl(){return E.useContext(Hl)}var Wl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Vl(e){const{children:t,theme:r}=e,n=Bl(),o=E.useMemo(()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Kr({},e,t)}(n,r);return null!=e&&(e[Wl]=null!==n),e},[r,n]);return dr.jsx(Hl.Provider,{value:o,children:t})}const Ul=["value"],Gl=E.createContext();function Yl(e){let{value:t}=e,r=Xr(e,Ul);return dr.jsx(Gl.Provider,Kr({value:null==t||t},r))}const Kl=E.createContext(void 0);function Xl({value:e,children:t}){return dr.jsx(Kl.Provider,{value:e,children:t})}function Jl({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?ol(o.defaultProps,n):o.styleOverrides||o.variants?n:ol(o,n)}({props:e,name:t,theme:{components:E.useContext(Kl)}})}const Zl={};function Ql(e,t,r,n=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Kr({},t,{[e]:i}):i;return n?()=>a:a}return Kr({},t,e?{[e]:r}:r)},[e,t,r,n])}function eu(e){const{children:t,theme:r,themeId:n}=e,o=ys(Zl),i=Bl()||Zl,a=Ql(n,o,r),s=Ql(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=ys(),r=bl()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",il(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}},[o,r]),o?dr.jsx(Cs,{styles:o}):null}(a);return dr.jsx(Vl,{theme:s,children:dr.jsx(ji.Provider,{value:a,children:dr.jsx(Yl,{value:l,children:dr.jsxs(Xl,{value:null==a?void 0:a.components,children:[u,t]})})})})}function tu(e){return tu="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},tu(e)}function ru(e){var t=function(e,t){if("object"!=tu(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=tu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==tu(t)?t:t+""}function nu(e,t){return Kr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ou={},iu={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(iu);var au=iu.exports,su=tr(Gr),lu=tr(sl),uu=au;Object.defineProperty(ou,"__esModule",{value:!0});var cu=ou.alpha=Cu;ou.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=vu(e),a=vu(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return xu({type:"rgb",values:s})},ou.colorChannel=void 0;var du=ou.darken=Eu;ou.decomposeColor=vu,ou.emphasize=Au;var pu=ou.getContrastRatio=function(e,t){const r=wu(e),n=wu(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};ou.getLuminance=wu,ou.hexToRgb=bu,ou.hslToRgb=Su;var fu=ou.lighten=Ru;ou.private_safeAlpha=function(e,t,r){try{return Cu(e,t)}catch(t){return e}},ou.private_safeColorChannel=void 0,ou.private_safeDarken=function(e,t,r){try{return Eu(e,t)}catch(t){return e}},ou.private_safeEmphasize=function(e,t,r){try{return Au(e,t)}catch(t){return e}},ou.private_safeLighten=function(e,t,r){try{return Ru(e,t)}catch(t){return e}},ou.recomposeColor=xu,ou.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=vu(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var hu=uu(su),mu=uu(lu);function gu(e,t=0,r=1){return(0,mu.default)(e,t,r)}function bu(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function vu(e){if(e.type)return e;if("#"===e.charAt(0))return vu(bu(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,hu.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,hu.default)(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}const yu=e=>{const t=vu(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};ou.colorChannel=yu;function xu(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Su(e){e=vu(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),xu({type:s,values:l})}function wu(e){let t="hsl"===(e=vu(e)).type||"hsla"===e.type?vu(Su(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Cu(e,t){return e=vu(e),t=gu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,xu(e)}function Eu(e,t){if(e=vu(e),t=gu(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return xu(e)}function Ru(e,t){if(e=vu(e),t=gu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return xu(e)}function Au(e,t=.15){return wu(e)>.5?Eu(e,t):Ru(e,t)}ou.private_safeColorChannel=(e,t)=>{try{return yu(e)}catch(t){return e}};const Mu=["mode","contrastThreshold","tonalOffset"],Pu={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:pr.white,default:pr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Iu={text:{primary:pr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:pr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ku(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=fu(e.main,o):"dark"===t&&(e.dark=du(e.main,i)))}function Du(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Xr(e,Mu),i=e.primary||function(e="light"){return"dark"===e?{main:Rr,light:Er,dark:Ar}:{main:Mr,light:Ar,dark:Pr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:yr,light:vr,dark:Sr}:{main:wr,light:xr,dark:Cr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:mr,light:fr,dark:gr}:{main:gr,light:hr,dark:br}}(t),l=e.info||function(e="light"){return"dark"===e?{main:kr,light:Ir,dark:Tr}:{main:Tr,light:Dr,dark:Or}}(t),u=e.success||function(e="light"){return"dark"===e?{main:qr,light:Lr,dark:jr}:{main:_r,light:Nr,dark:zr}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:$r,light:Fr,dark:Br}:{main:"#ed6c02",light:Hr,dark:Wr}}(t);function d(e){return pu(e,Iu.text.primary)>=r?Iu.text.primary:Pu.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Kr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Ur(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Ur(12,t?` (${t})`:"",JSON.stringify(e.main)));return ku(e,"light",o,n),ku(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Iu,light:Pu};return da(Kr({common:Kr({},pr),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Vr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Tu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ou={textTransform:"uppercase"},Lu='"Roboto", "Helvetica", "Arial", sans-serif';function qu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Lu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Xr(r,Tu),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Kr({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Lu?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Ou),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ou),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return da(Kr({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Nu(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ju=["none",Nu(0,2,1,-1,0,1,1,0,0,1,3,0),Nu(0,3,1,-2,0,2,2,0,0,1,5,0),Nu(0,3,3,-2,0,3,4,0,0,1,8,0),Nu(0,2,4,-1,0,4,5,0,0,1,10,0),Nu(0,3,5,-1,0,5,8,0,0,1,14,0),Nu(0,3,5,-1,0,6,10,0,0,1,18,0),Nu(0,4,5,-2,0,7,10,1,0,2,16,1),Nu(0,5,5,-3,0,8,10,1,0,3,14,2),Nu(0,5,6,-3,0,9,12,1,0,3,16,2),Nu(0,6,6,-3,0,10,14,1,0,4,18,3),Nu(0,6,7,-4,0,11,15,1,0,4,20,3),Nu(0,7,8,-4,0,12,17,2,0,5,22,4),Nu(0,7,8,-4,0,13,19,2,0,5,24,4),Nu(0,7,9,-4,0,14,21,2,0,5,26,4),Nu(0,8,9,-5,0,15,22,2,0,6,28,5),Nu(0,8,10,-5,0,16,24,2,0,6,30,5),Nu(0,8,11,-5,0,17,26,2,0,6,32,5),Nu(0,9,11,-5,0,18,28,2,0,7,34,6),Nu(0,9,12,-6,0,19,29,2,0,7,36,6),Nu(0,10,13,-6,0,20,31,3,0,8,38,7),Nu(0,10,13,-6,0,21,33,3,0,8,40,7),Nu(0,10,14,-6,0,22,35,3,0,8,42,7),Nu(0,11,14,-7,0,23,36,3,0,9,44,8),Nu(0,11,15,-7,0,24,38,3,0,9,46,8)],_u=["duration","easing","delay"],zu={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Fu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $u(e){return`${Math.round(e)}ms`}function Hu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Bu(e){const t=Kr({},zu,e.easing),r=Kr({},Fu,e.duration);return Kr({getAutoHeightDuration:Hu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Xr(n,_u),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:$u(o)} ${i} ${"string"==typeof a?a:$u(a)}`).join(",")}},e,{easing:t,duration:r})}const Wu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Vu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Uu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Xr(e,Vu);if(e.vars&&void 0===e.generateCssVars)throw new Error(Ur(18));const s=Du(n),l=bs(e);let u=da(l,{mixins:nu(l.breakpoints,r),palette:s,shadows:ju.slice(),typography:qu(s,i),transitions:Bu(o),zIndex:Kr({},Wu)});return u=da(u,a),u=t.reduce((e,t)=>da(e,t),u),u.unstable_sxConfig=Kr({},ps,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return hs({sx:e,theme:this})},u}const Gu=Uu();function Yu(){const e=Ss(Gu);return e[Yr]||e}var Ku,Xu={},Ju={exports:{}};function Zu(){return Ku||(Ku=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ju)),Ju.exports}var Qu,ec={exports:{}};function tc(){return Qu||(Qu=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(ec)),ec.exports}var rc=tr(la),nc=tr(pa),oc=tr(wa),ic=tr(nl),ac=tr(vs),sc=tr(As),lc=au;Object.defineProperty(Xu,"__esModule",{value:!0});var uc=Xu.default=function(e={}){const{themeId:t,defaultTheme:r=wc,rootShouldForwardProp:n=xc,slotShouldForwardProp:o=xc}=e,i=e=>(0,mc.default)((0,cc.default)({},e,{theme:Ec((0,cc.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,pc.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Rc(Cc(l))}=a,p=(0,dc.default)(a,vc),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=xc;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,pc.default)(e,(0,cc.default)({shouldForwardProp:g,label:void 0},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,fc.isPlainObject)(e)?n=>{const o=Ec({theme:n.theme,defaultTheme:r,themeId:t});return Ac(e,(0,cc.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(n,...o)=>{let a=v(n);const l=o?o.map(v):[];s&&d&&l.push(e=>{const n=Ec((0,cc.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,r])=>{i[t]=Ac(r,(0,cc.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),d(e,i)}),s&&!h&&l.push(e=>{var n;const o=Ec((0,cc.default)({},e,{defaultTheme:r,themeId:t}));return Ac({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,cc.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=b(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return b.withConfig&&(y.withConfig=b.withConfig),y}};Xu.shouldForwardProp=xc,Xu.systemDefaultTheme=void 0;var cc=lc(Zu()),dc=lc(tc()),pc=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=yc(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(rc),fc=nc;lc(oc),lc(ic);var hc=lc(ac),mc=lc(sc);const gc=["ownerState"],bc=["variants"],vc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yc(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(yc=function(e){return e?r:t})(e)}function xc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Sc(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const wc=Xu.systemDefaultTheme=(0,hc.default)(),Cc=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ec({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Rc(e){return e?(t,r)=>r[e]:null}function Ac(e,t,r){let{ownerState:n}=t,o=(0,dc.default)(t,gc);const i="function"==typeof e?e((0,cc.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap(e=>Ac(e,(0,cc.default)({ownerState:n},o),r));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,dc.default)(i,bc);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,cc.default)({ownerState:n},o,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,cc.default)({ownerState:n},o,n)):e.style;t.push(r?Sc((0,pc.internal_serializeStyles)(i),r):i)}}),t}return r?Sc((0,pc.internal_serializeStyles)(i),r):i}function Mc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Pc=e=>Mc(e)&&"classes"!==e,Ic=uc({themeId:Yr,defaultTheme:Gu,rootShouldForwardProp:Pc}),kc=["theme"];function Dc(e){let{theme:t}=e,r=Xr(e,kc);const n=t[Yr];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Kr({},n,{vars:null}):t&&!t.vars&&(o=Kr({},t,{vars:null}))),dr.jsx(eu,Kr({},r,{themeId:n?Yr:void 0,theme:o}))}const Tc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Oc(e){return Jl(e)}function Lc(e){return Os("MuiSvgIcon",e)}Ls("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const qc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Nc=Ic("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Sa(r.color)}`],t[`fontSize${Sa(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),jc=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Xr(r,qc),f=E.isValidElement(n)&&"svg"===n.type,h=Kr({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return ql({root:["root","inherit"!==t&&`color${Sa(t)}`,`fontSize${Sa(r)}`]},Lc,n)})(h);return dr.jsxs(Nc,Kr({as:a,className:ks(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?dr.jsx("title",{children:c}):null]}))});function _c(e,t){return _c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_c(e,t)}function zc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_c(e,t)}jc.muiName="SvgIcon";var Fc=!1,$c=w.createContext(null),Hc="unmounted",Bc="exited",Wc="entering",Vc="entered",Uc="exiting",Gc=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Bc,n.appearStatus=Wc):o=Vc:o=t.unmountOnExit||t.mountOnEnter?Hc:Bc,n.state={status:o},n.nextCallback=null,n}zc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Hc?{status:Bc}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Wc&&r!==Vc&&(t=Wc):r!==Wc&&r!==Vc||(t=Uc)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Wc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:W.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bc&&this.setState({status:Hc})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[W.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Fc?this.safeSetState({status:Vc},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Wc},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Vc},function(){t.props.onEntered(i,a)})})}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:W.findDOMNode(this);t&&!Fc?(this.props.onExit(n),this.safeSetState({status:Uc},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:Bc},function(){e.props.onExited(n)})})})):this.safeSetState({status:Bc},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:W.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Hc)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=Xr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return w.createElement($c.Provider,{value:null},"function"==typeof r?r(e,n):w.cloneElement(w.Children.only(r),n))},t}(w.Component);function Yc(){}function Kc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xc(e,t){var r=Object.create(null);return e&&M.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&R(e)?t(e):e}(e)}),r}function Jc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Zc(e,t,r){var n=Xc(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(R(a)){var s=i in t,l=i in n,u=t[i],c=R(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&R(u)&&(o[i]=A(a,{onExited:r.bind(null,a),in:u.props.in,exit:Jc(a,"exit",e),enter:Jc(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:r.bind(null,a),in:!0,exit:Jc(a,"exit",e),enter:Jc(a,"enter",e)})}}),o}Gc.contextType=$c,Gc.propTypes={},Gc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yc,onEntering:Yc,onEntered:Yc,onExit:Yc,onExiting:Yc,onExited:Yc},Gc.UNMOUNTED=Hc,Gc.EXITED=Bc,Gc.ENTERING=Wc,Gc.ENTERED=Vc,Gc.EXITING=Uc;var Qc=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ed=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Kc(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}zc(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Xc(r.children,function(e){return A(e,{onExited:n.bind(null,e),in:!0,appear:Jc(e,"appear",r),enter:Jc(e,"enter",r),exit:Jc(e,"exit",r)})})):Zc(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Xc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=Kr({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Xr(e,["component","childFactory"]),o=this.state.contextValue,i=Qc(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?w.createElement($c.Provider,{value:o},i):w.createElement($c.Provider,{value:o},w.createElement(t,n,i))},t}(w.Component);ed.propTypes={},ed.defaultProps={component:"div",childFactory:function(e){return e}};const td=e=>e.scrollTop;function rd(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function nd(e){return Os("MuiPaper",e)}Ls("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const od=["className","component","elevation","square","variant"],id=Ic("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return Kr({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Kr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${cu("#fff",Tc(t.elevation))}, ${cu("#fff",Tc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),ad=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Xr(r,od),u=Kr({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return ql({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},nd,o)})(u);return dr.jsx(id,Kr({as:o,ownerState:u,className:ks(c.root,n),ref:t},l))});const sd=Ls("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ld=["center","classes","className"];let ud,cd,dd,pd,fd=e=>e;const hd=Zi(ud||(ud=fd`
18
18
  0% {
19
19
  transform: scale(0);
20
20
  opacity: 0.1;
@@ -24,7 +24,7 @@ function Zi(e,t){let r;return r=t?$i(e).withConfig({displayName:t.label,shouldFo
24
24
  transform: scale(1);
25
25
  opacity: 0.3;
26
26
  }
27
- `)),ld=Vi(nd||(nd=ad`
27
+ `)),md=Zi(cd||(cd=fd`
28
28
  0% {
29
29
  opacity: 1;
30
30
  }
@@ -32,7 +32,7 @@ function Zi(e,t){let r;return r=t?$i(e).withConfig({displayName:t.label,shouldFo
32
32
  100% {
33
33
  opacity: 0;
34
34
  }
35
- `)),ud=Vi(od||(od=ad`
35
+ `)),gd=Zi(dd||(dd=fd`
36
36
  0% {
37
37
  transform: scale(1);
38
38
  }
@@ -44,7 +44,7 @@ function Zi(e,t){let r;return r=t?$i(e).withConfig({displayName:t.label,shouldFo
44
44
  100% {
45
45
  transform: scale(1);
46
46
  }
47
- `)),cd=wc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),dd=wc(function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=E.useState(!1),p=Cs(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Cs(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),E.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,s,u]),dr.jsx("span",{className:p,style:f,children:dr.jsx("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})(id||(id=ad`
47
+ `)),bd=Ic("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),vd=Ic(function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=E.useState(!1),p=ks(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=ks(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),E.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,s,u]),dr.jsx("span",{className:p,style:f,children:dr.jsx("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})(pd||(pd=fd`
48
48
  opacity: 0;
49
49
  position: absolute;
50
50
 
@@ -87,19 +87,19 @@ function Zi(e,t){let r;return r=t?$i(e).withConfig({displayName:t.label,shouldFo
87
87
  animation-iteration-count: infinite;
88
88
  animation-delay: 200ms;
89
89
  }
90
- `),ed.rippleVisible,sd,550,({theme:e})=>e.transitions.easing.easeInOut,ed.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ed.child,ed.childLeaving,ld,550,({theme:e})=>e.transitions.easing.easeInOut,ed.childPulsate,ud,({theme:e})=>e.transitions.easing.easeInOut),pd=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Xr(r,td),[s,l]=E.useState([]),u=E.useRef(0),c=E.useRef(null);E.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=E.useRef(!1),p=vl(),f=E.useRef(null),h=E.useRef(null),m=E.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l(e=>[...e,dr.jsx(dd,{classes:{ripple:Cs(o.ripple,ed.ripple),rippleVisible:Cs(o.rippleVisible,ed.rippleVisible),ripplePulsate:Cs(o.ripplePulsate,ed.ripplePulsate),child:Cs(o.child,ed.child),childLeaving:Cs(o.childLeaving,ed.childLeaving),childPulsate:Cs(o.childPulsate,ed.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)]),u.current+=1,c.current=a},[o]),g=E.useCallback((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},[n,m,p]),v=E.useCallback(()=>{g({},{pulsate:!0})},[g]),b=E.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,()=>{b(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[p]);return E.useImperativeHandle(t,()=>({pulsate:v,start:g,stop:b}),[v,g,b]),dr.jsx(cd,Kr({className:Cs(ed.root,o.root,i),ref:h},a,{children:dr.jsx(Gc,{component:null,exit:!0,children:s})}))});function fd(e){return As("MuiButtonBase",e)}const hd=Ps("MuiButtonBase",["root","disabled","focusVisible"]),md=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],gd=wc("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${hd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vd=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:C,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:M=0,TouchRippleProps:I,touchRippleRef:k,type:D}=r,T=Xr(r,md),O=E.useRef(null),L=E.useRef(null),q=fl(L,k),{isFocusVisibleRef:N,onFocus:_,onBlur:j,ref:z}=Al(),[F,$]=E.useState(!1);l&&F&&$(!1),E.useImperativeHandle(n,()=>({focusVisible:()=>{$(!0),O.current.focus()}}),[]);const[H,B]=E.useState(!1);E.useEffect(()=>{B(!0)},[]);const W=H&&!u&&!l;function V(e,t,r=c){return pl(n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0})}E.useEffect(()=>{F&&d&&!u&&H&&L.current.pulsate()},[u,d,F,H]);const U=V("start",S),G=V("stop",m),Y=V("stop",g),K=V("stop",C),X=V("stop",e=>{F&&e.preventDefault(),w&&w(e)}),J=V("start",P),Z=V("stop",R),Q=V("stop",A),ee=V("stop",e=>{j(e),!1===N.current&&$(!1),f&&f(e)},!1),te=pl(e=>{O.current||(O.current=e.currentTarget),_(e),!0===N.current&&($(!0),b&&b(e)),v&&v(e)}),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=E.useRef(!1),oe=pl(e=>{d&&!ne.current&&F&&L.current&&" "===e.key&&(ne.current=!0,L.current.stop(e,()=>{L.current.start(e)})),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=pl(e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,()=>{L.current.pulsate(e)})),x&&x(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=fl(t,z,O),ue=Kr({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Ml({root:["root",t&&"disabled",r&&"focusVisible"]},fd,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return dr.jsxs(gd,Kr({as:ae,className:Cs(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:M,type:D},se,T,{children:[i,W?dr.jsx(pd,Kr({ref:q,center:o},I)):null]}))});function bd(e){return As("MuiIconButton",e)}const yd=Ps("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),xd=["edge","children","className","color","disabled","disableFocusRipple","size"],Sd=wc(vd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${ha(r.color)}`],r.edge&&t[`edge${ha(r.edge)}`],t[`size${ha(r.size)}`]]}})(({theme:e,ownerState:t})=>Kr({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nu(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return Kr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Kr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":Kr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nu(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${yd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),wd=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=Xr(r,xd),d=Kr({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return Ml({root:["root",r&&"disabled","default"!==n&&`color${ha(n)}`,o&&`edge${ha(o)}`,`size${ha(i)}`]},bd,t)})(d);return dr.jsx(Sd,Kr({className:Cs(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function Cd(e){return As("MuiTypography",e)}Ps("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ed=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Rd=wc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${ha(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Kr({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Ad={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Pd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Md=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiTypography"}),n=(e=>Pd[e]||e)(r.color),o=bs(Kr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Ad}=o,f=Xr(o,Ed),h=Kr({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Ad[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Ml({root:["root",i,"inherit"!==e.align&&`align${ha(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Cd,a)})(h);return dr.jsx(Rd,Kr({as:m,ref:t,ownerState:h,className:Cs(g.root,a)},f))});const Id=E.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=E.useState(null),s=fl(E.isValidElement(r)?Ll(r):null,t);if(Zs(()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),Zs(()=>{if(i&&!o)return sl(t,i),()=>{sl(t,null)}},[t,i,o]),o){if(E.isValidElement(r)){const e={ref:s};return E.cloneElement(r,e)}return dr.jsx(E.Fragment,{children:r})}return dr.jsx(E.Fragment,{children:i?V.createPortal(r,i):i})}),kd=["onChange","maxRows","minRows","style","value"];function Dd(e){return parseInt(e,10)||0}const Td={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Od(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Ld=E.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Xr(e,kd),{current:l}=E.useRef(null!=a),u=E.useRef(null),c=fl(t,u),d=E.useRef(null),p=E.useRef(null),f=E.useCallback(()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=al(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=Dd(i.paddingBottom)+Dd(i.paddingTop),l=Dd(i.borderBottomWidth)+Dd(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}},[n,o,e.placeholder]),h=pl(()=>{const e=u.current,t=f();if(!e||!t||Od(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r}),m=E.useCallback(()=>{const e=u.current,t=f();if(!e||!t||Od(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=E.useRef(-1);Zs(()=>{const e=ol(m),t=null==u?void 0:u.current;if(!t)return;const r=al(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[f,m,h]),Zs(()=>{m()});return dr.jsxs(E.Fragment,{children:[dr.jsx("textarea",Kr({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),dr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Kr({},Td,i,{paddingTop:0,paddingBottom:0})})]})});function qd({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const Nd=E.createContext(void 0);function _d(){return E.useContext(Nd)}function jd(e){return dr.jsx(gs,Kr({},e,{defaultTheme:Fu,themeId:Yr}))}function zd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Fd(e,t=!1){return e&&(zd(e.value)&&""!==e.value||t&&zd(e.defaultValue)&&""!==e.defaultValue)}function $d(e){return As("MuiInputBase",e)}const Hd=Ps("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Bd=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Wd=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ha(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Vd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Ud=wc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Wd})(({theme:e,ownerState:t})=>Kr({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Hd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Kr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Gd=wc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Vd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Kr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Kr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Hd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Hd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),Yd=dr.jsx(jd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Kd=E.forwardRef(function(e,t){var r;const n=Ac({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:C,onChange:R,onClick:A,onFocus:P,onKeyDown:M,onKeyUp:I,placeholder:k,readOnly:D,renderSuffix:T,rows:O,slotProps:L={},slots:q={},startAdornment:N,type:_="text",value:j}=n,z=Xr(n,Bd),F=null!=v.value?v.value:j,{current:$}=E.useRef(null!=F),H=E.useRef(),B=E.useCallback(e=>{},[]),W=fl(H,b,v.ref,B),[V,U]=E.useState(!1),G=_d(),Y=qd({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,E.useEffect(()=>{!G&&d&&V&&(U(!1),C&&C())},[G,d,V,C]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=E.useCallback(e=>{Fd(e)?K&&K():X&&X()},[K,X]);Zs(()=>{$&&J({value:F})},[F,J,$]);E.useEffect(()=>{J(H.current)},[]);let Z=g,Q=v;S&&"input"===Z&&(Q=Kr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Q),Z=Ld);E.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=Kr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:S,size:Y.size,startAdornment:N,type:_}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Ml({root:["root",`color${ha(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ha(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},$d,t)})(ee),re=q.root||l.Root||Ud,ne=L.root||u.root||{},oe=q.input||l.Input||Gd;return Q=Kr({},Q,null!=(r=L.input)?r:u.input),dr.jsxs(E.Fragment,{children:[!p&&Yd,dr.jsxs(re,Kr({},ne,!Il(re)&&{ownerState:Kr({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:Cs(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,dr.jsx(Nd.Provider,{value:null,children:dr.jsx(oe,Kr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:w,placeholder:k,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:M,onKeyUp:I,type:_},Q,!Il(oe)&&{as:Z,ownerState:Kr({},ee,Q.ownerState)},{ref:W,className:Cs(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(Ur(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(Kr({},Y,{startAdornment:N})):null]}))]})});function Xd(e){return As("MuiInput",e)}const Jd=Kr({},Hd,Ps("MuiInput",["root","underline","input"]));function Zd(e){return As("MuiOutlinedInput",e)}const Qd=Kr({},Hd,Ps("MuiOutlinedInput",["root","notchedOutline","input"]));function ep(e){return As("MuiFilledInput",e)}const tp=Kr({},Hd,Ps("MuiFilledInput",["root","underline","input"]));var rp=function(e,t){function r(r,n){return dr.jsx(kc,Kr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=kc.muiName,E.memo(E.forwardRef(r))}(dr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const np=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],op={entering:{opacity:1},entered:{opacity:1}},ip=E.forwardRef(function(e,t){const r=$u(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:v=Fc}=e,b=Xr(e,np),y=E.useRef(null),x=fl(y,Ll(a),t),S=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},w=S(d),C=S((e,t)=>{Yc(e);const n=Kc({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)}),R=S(c),A=S(h),P=S(e=>{const t=Kc({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)}),M=S(f);return dr.jsx(v,Kr({appear:i,in:l,nodeRef:y,onEnter:C,onEntered:R,onEntering:w,onExit:P,onExited:M,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>E.cloneElement(a,Kr({style:Kr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},op[e],m,a.props.style),ref:x},t))}))});function ap(e){return As("MuiBackdrop",e)}Ps("MuiBackdrop",["root","invisible"]);const sp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],lp=wc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>Kr({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),up=E.forwardRef(function(e,t){var r,n,o;const i=Ac({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=ip,transitionDuration:g}=i,v=Xr(i,sp),b=Kr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Ml({root:["root",r&&"invisible"]},ap,t)})(b),x=null!=(r=f.root)?r:c.root;return dr.jsx(m,Kr({in:p,timeout:g},v,{children:dr.jsx(lp,Kr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:Cs(y.root,s,null==x?void 0:x.className),ownerState:Kr({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),cp=Ps("MuiBox",["root"]),dp=zu(),pp=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Zi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ss);return E.forwardRef(function(e,a){const s=hs(r),l=bs(e),{className:u,component:c="div"}=l,d=Xr(l,Es);return dr.jsx(i,Kr({as:c,ref:a,className:Cs(u,o?o(n):n),theme:t&&s[t]||s},d))})}({themeId:Yr,defaultTheme:dp,defaultClassName:cp.root,generateClassName:Ss.generate});function fp(e){return As("MuiButton",e)}const hp=Ps("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),mp=E.createContext({}),gp=E.createContext(void 0),vp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],bp=e=>Kr({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),yp=wc(vd,{shouldForwardProp:e=>Sc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ha(r.color)}`],t[`size${ha(r.size)}`],t[`${r.variant}Size${ha(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Kr({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Kr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:nu(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nu(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nu(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Kr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${hp.focusVisible}`]:Kr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${hp.disabled}`]:Kr({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${nu(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${hp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hp.disabled}`]:{boxShadow:"none"}}),xp=wc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ha(r.size)}`]]}})(({ownerState:e})=>Kr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},bp(e))),Sp=wc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ha(r.size)}`]]}})(({ownerState:e})=>Kr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},bp(e))),wp=E.forwardRef(function(e,t){const r=E.useContext(mp),n=E.useContext(gp),o=Ac({props:Js(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=Xr(o,vp),x=Kr({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Kr({},a,Ml({root:["root",i,`${i}${ha(t)}`,`size${ha(o)}`,`${i}Size${ha(o)}`,`color${ha(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ha(o)}`],endIcon:["icon","endIcon",`iconSize${ha(o)}`]},fp,a))})(x),w=g&&dr.jsx(xp,{className:S.startIcon,ownerState:x,children:g}),C=p&&dr.jsx(Sp,{className:S.endIcon,ownerState:x,children:p}),R=n||"";return dr.jsxs(yp,Kr({ownerState:x,className:Cs(r.className,S.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Cs(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[w,i,C]}))});function Cp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ep(e){return parseInt(al(e).getComputedStyle(e).paddingRight,10)||0}function Rp(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Cp(e,o)})}function Ap(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function Pp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=il(e);return t.body===e?al(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Pl(il(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Ep(n)+e}px`;const t=il(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ep(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=il(n).body;else{const t=n.parentElement,r=al(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const Mp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ip(e){const t=[],r=[];return Array.from(e.querySelectorAll(Mp)).forEach((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function kp(){return!0}function Dp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Ip,isEnabled:a=kp,open:s}=e,l=E.useRef(!1),u=E.useRef(null),c=E.useRef(null),d=E.useRef(null),p=E.useRef(null),f=E.useRef(!1),h=E.useRef(null),m=fl(Ll(t),h),g=E.useRef(null);E.useEffect(()=>{s&&h.current&&(f.current=!r)},[r,s]),E.useEffect(()=>{if(!s||!h.current)return;const e=il(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),E.useEffect(()=>{if(!s||!h.current)return;const e=il(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,a,s,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return dr.jsxs(E.Fragment,{children:[dr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),dr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const Tp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Cp(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Rp(t,e.mount,e.modalRef,n,!0);const o=Ap(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Ap(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=Pp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Ap(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Cp(e.modalRef,t),Rp(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Cp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Op(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Tp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=E.useRef({}),f=E.useRef(null),h=E.useRef(null),m=fl(h,d),[g,v]=E.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},w=pl(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||il(f.current).body;o.add(x(),e),h.current&&S()}),C=E.useCallback(()=>o.isTopModal(x()),[o]),R=pl(e=>{f.current=e,e&&(c&&C()?S():h.current&&Cp(h.current,y))}),A=E.useCallback(()=>{o.remove(x(),y)},[y,o]);E.useEffect(()=>()=>{A()},[A]),E.useEffect(()=>{c?w():b&&i||A()},[c,A,b,i,w]);const P=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=kl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Kr({},r,t);return Kr({role:"presentation"},n,{onKeyDown:P(n),ref:m})},getBackdropProps:(e={})=>Kr({"aria-hidden":!0},e,{onClick:M(e),open:c}),getTransitionProps:()=>({onEnter:nl(()=>{v(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:nl(()=>{v(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:C,exited:g,hasTransition:b}}function Lp(e){return As("MuiModal",e)}Ps("MuiModal",["root","hidden","backdrop"]);const qp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Np=wc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Kr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),_p=wc(up,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),jp=E.forwardRef(function(e,t){var r,n,o,i,a,s;const l=Ac({name:"MuiModal",props:e}),{BackdropComponent:u=_p,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:M,slotProps:I,slots:k}=l,D=Xr(l,qp),T=Kr({},l,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:L,getTransitionProps:q,portalRef:N,isTopModal:_,exited:j,hasTransition:z}=Op(Kr({},T,{rootRef:t})),F=Kr({},T,{exited:j}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Ml({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Lp,n)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:Np,W=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==I?void 0:I.root)?a:v.root,U=null!=(s=null==I?void 0:I.backdrop)?s:v.backdrop,G=Ol({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:Cs(d,null==V?void 0:V.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),Y=Ol({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L(Kr({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Cs(null==U?void 0:U.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:F});return A||M||z&&!j?dr.jsx(Id,{ref:N,container:h,disablePortal:S,children:dr.jsxs(B,Kr({},G,{children:[!R&&u?dr.jsx(W,Kr({},Y)):null,dr.jsx(Dp,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:_,open:M,children:E.cloneElement(f,H)})]}))}):null});function zp(e){return As("MuiDivider",e)}const Fp=Ps("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$p=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Hp=wc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Kr({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:nu(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Kr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Kr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Kr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Kr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Bp=wc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Kr({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Wp=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Xr(r,$p),h=Kr({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Ml({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},zp,n)})(h);return dr.jsx(Hp,Kr({as:a,className:Cs(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?dr.jsx(Bp,{className:m.wrapper,ownerState:h,children:o}):null}))});Wp.muiSkipListHighlight=!0;const Vp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Up=wc(Ud,{shouldForwardProp:e=>Sc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Wd(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Kr({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${tp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${tp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${tp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${tp.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${tp.disabled}, .${tp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${tp.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Kr({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),Gp=wc(Gd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Vd})(({theme:e,ownerState:t})=>Kr({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Yp=E.forwardRef(function(e,t){var r,n,o,i;const a=Ac({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Xr(a,Vp),g=Kr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:r}=e;return Kr({},t,Ml({root:["root",!r&&"underline"],input:["input"]},ep,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?oa(b,null!=p?p:l):b,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Up,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Gp;return dr.jsx(Kd,Kr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))});Yp.muiName="Input";const Kp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xp(e){return`scale(${e}, ${e**2})`}const Jp={entering:{opacity:1,transform:Xp(1)},entered:{opacity:1,transform:"none"}},Zp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qp=E.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Fc}=e,g=Xr(e,Kp),v=vl(),b=E.useRef(),y=$u(),x=E.useRef(null),S=fl(x,Ll(o),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(u),R=w((e,t)=>{Yc(e);const{duration:r,delay:n,easing:o}=Kc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Zp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)}),A=w(l),P=w(p),M=w(e=>{const{duration:t,delay:r,easing:n}=Kc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Zp?o:.666*o,delay:Zp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Xp(.75),c&&c(e)}),I=w(d);return dr.jsx(m,Kr({appear:n,in:a,nodeRef:x,onEnter:R,onEntered:A,onEntering:C,onExit:M,onExited:I,onExiting:P,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),r&&r(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>E.cloneElement(o,Kr({style:Kr({opacity:0,transform:Xp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Jp[e],f,o.props.style),ref:S},t))}))});Qp.muiSupportAuto=!0;const ef=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],tf=wc(Ud,{shouldForwardProp:e=>Sc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Wd(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Kr({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Jd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Jd.disabled}, .${Jd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Jd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),rf=wc(Gd,{name:"MuiInput",slot:"Input",overridesResolver:Vd})({}),nf=E.forwardRef(function(e,t){var r,n,o,i;const a=Ac({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Xr(a,ef),v=(e=>{const{classes:t,disableUnderline:r}=e;return Kr({},t,Ml({root:["root",!r&&"underline"],input:["input"]},Xd,t))})(a),b={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?oa(null!=f?f:u,b):b,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:tf,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:rf;return dr.jsx(Kd,Kr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))});function of(e){return As("MuiLink",e)}nf.muiName="Input";const af=Ps("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),sf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},lf=({theme:e,ownerState:t})=>{const r=(e=>sf[e]||e)(t.color),n=ga(e,`palette.${r}`,!1)||t.color,o=ga(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:nu(n,.4)},uf=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],cf=wc(Md,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ha(r.underline)}`],"button"===r.component&&t.button]}})(({theme:e,ownerState:t})=>Kr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Kr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:lf({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${af.focusVisible}`]:{outline:"auto"}})),df=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=Xr(r,uf),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=Al(),[v,b]=E.useState(!1),y=fl(t,g),x=Kr({},r,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Ml({root:["root",`underline${ha(o)}`,"button"===r&&"button",n&&"focusVisible"]},of,t)})(x);return dr.jsx(cf,Kr({color:o,className:Cs(S.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&b(!0),s&&s(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(sf).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),pf=E.createContext({});function ff(e){return As("MuiList",e)}Ps("MuiList",["root","padding","dense","subheader"]);const hf=["children","className","component","dense","disablePadding","subheader"],mf=wc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>Kr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),gf=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Xr(r,hf),c=E.useMemo(()=>({dense:a}),[a]),d=Kr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Ml({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},ff,t)})(d);return dr.jsx(pf.Provider,{value:c,children:dr.jsxs(mf,Kr({as:i,className:Cs(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})});function vf(e){return As("MuiListItemIcon",e)}const bf=Ps("MuiListItemIcon",["root","alignItemsFlexStart"]),yf=["className"],xf=wc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Kr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Sf=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Xr(r,yf),i=Kr({},r,{alignItems:E.useContext(pf).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Ml({root:["root","flex-start"===t&&"alignItemsFlexStart"]},vf,r)})(i);return dr.jsx(xf,Kr({className:Cs(a.root,n),ownerState:i,ref:t},o))}),wf=Ps("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Cf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ef(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Rf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Af(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Pf(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Af(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Mf=E.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Xr(e,Cf),p=E.useRef(null),f=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zs(()=>{n&&p.current.focus()},[n]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${Pl(il(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}}),[]);const h=fl(p,t);let m=-1;E.Children.forEach(i,(e,t)=>{E.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=E.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),E.cloneElement(e,t)}return e});return dr.jsx(gf,Kr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=il(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Pf(t,n,l,s,Ef);else if("ArrowUp"===r)e.preventDefault(),Pf(t,n,l,s,Rf);else if("Home"===r)e.preventDefault(),Pf(t,null,l,s,Ef);else if("End"===r)e.preventDefault(),Pf(t,null,l,s,Rf);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&Af(n,o);o.previousKeyMatched&&(l||Pf(t,n,!1,s,Ef,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))});function If(e){return As("MuiPopover",e)}Ps("MuiPopover",["root","paper"]);const kf=["onEntering"],Df=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Tf=["slotProps"];function Of(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Lf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function qf(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Nf(e){return"function"==typeof e?e():e}const _f=wc(jp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jf=wc(Qc,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),zf=E.forwardRef(function(e,t){var r,n,o;const i=Ac({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Qp,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:R=!1}=i,A=Xr(i.TransitionProps,kf),P=Xr(i,Df),M=null!=(r=null==y?void 0:y.paper)?r:v,I=E.useRef(),k=fl(I,M.ref),D=Kr({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:M,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:A}),T=(e=>{const{classes:t}=e;return Ml({root:["root"],paper:["paper"]},If,t)})(D),O=E.useCallback(()=>{if("anchorPosition"===c)return u;const e=Nf(s),t=(e&&1===e.nodeType?e:il(I.current).body).getBoundingClientRect();return{top:t.top+Of(t,l.vertical),left:t.left+Lf(t,l.horizontal)}},[s,l.horizontal,l.vertical,u,c]),L=E.useCallback(e=>({vertical:Of(e,x.vertical),horizontal:Lf(e,x.horizontal)}),[x.horizontal,x.vertical]),q=E.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:qf(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=al(Nf(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:qf(r)}},[s,c,O,L,m]),[N,_]=E.useState(g),j=E.useCallback(()=>{const e=I.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,_(!0)},[q]);E.useEffect(()=>(R&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[s,R,j]);E.useEffect(()=>{g&&j()}),E.useImperativeHandle(a,()=>g?{updatePosition:()=>{j()}}:null,[g,j]),E.useEffect(()=>{if(!g)return;const e=ol(()=>{j()}),t=al(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,j]);let z=w;"auto"!==w||S.muiSupportAuto||(z=void 0);const F=f||(s?il(Nf(s)).body:void 0),$=null!=(n=null==b?void 0:b.root)?n:_f,H=null!=(o=null==b?void 0:b.paper)?o:jf,B=Ol({elementType:H,externalSlotProps:Kr({},M,{style:N?M.style:Kr({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:D,className:Cs(T.paper,null==M?void 0:M.className)}),W=Ol({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:Cs(T.root,p)}),{slotProps:V}=W,U=Xr(W,Tf);return dr.jsx($,Kr({},U,!Il($)&&{slotProps:V,disableScrollLock:R},{children:dr.jsx(S,Kr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),j()},onExited:()=>{_(!1)},timeout:z},A,{children:dr.jsx(H,Kr({},B,{children:d}))}))}))});function Ff(e){return As("MuiMenu",e)}Ps("MuiMenu",["root","paper","list"]);const $f=["onEntering"],Hf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Bf={vertical:"top",horizontal:"right"},Wf={vertical:"top",horizontal:"left"},Vf=wc(zf,{shouldForwardProp:e=>Sc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Uf=wc(jf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Gf=wc(Mf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Yf=E.forwardRef(function(e,t){var r,n;const o=Ac({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Xr(o.TransitionProps,$f),x=Xr(o,Hf),S=(()=>{const e=E.useContext(Fl);return null!=e&&e})(),w=Kr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Ml({root:["root"],paper:["paper"],list:["list"]},Ff,t)})(w),R=i&&!l&&d,A=E.useRef(null);let P=-1;E.Children.map(a,(e,t)=>{E.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))});const M=null!=(r=v.paper)?r:Uf,I=null!=(n=b.paper)?n:p,k=Ol({elementType:v.root,externalSlotProps:b.root,ownerState:w,className:[C.root,s]}),D=Ol({elementType:M,externalSlotProps:I,ownerState:w,className:C.paper});return dr.jsx(Vf,Kr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Bf:Wf,slots:{paper:M,root:v.root},slotProps:{root:k,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:Kr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:dr.jsx(Gf,Kr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===P||l),autoFocusItem:R,variant:g},u,{className:Cs(C.list,u.className),children:a}))}))});function Kf(e){return As("MuiMenuItem",e)}const Xf=Ps("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Jf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Zf=wc(vd,{shouldForwardProp:e=>Sc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>Kr({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nu(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nu(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fp.inset}`]:{marginLeft:52},[`& .${wf.root}`]:{marginTop:0,marginBottom:0},[`& .${wf.inset}`]:{paddingLeft:36},[`& .${bf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Kr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${bf.root} svg`]:{fontSize:"1.25rem"}}))),Qf=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Xr(r,Jf),f=E.useContext(pf),h=E.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=E.useRef(null);Zs(()=>{n&&m.current&&m.current.focus()},[n]);const g=Kr({},r,{dense:h.dense,divider:a,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Kr({},a,Ml({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Kf,a))})(r),b=fl(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),dr.jsx(pf.Provider,{value:h,children:dr.jsx(Zf,Kr({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Cs(v.focusVisible,l),className:Cs(v.root,d)},p,{ownerState:g,classes:v}))})});function eh(e){return As("MuiNativeSelect",e)}const th=Ps("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),rh=["className","disabled","error","IconComponent","inputRef","variant"],nh=({ownerState:e,theme:t})=>Kr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Kr({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${th.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),oh=wc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Sc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${th.multiple}`]:t.multiple}]}})(nh),ih=({ownerState:e,theme:t})=>Kr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${th.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ah=wc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ha(r.variant)}`],r.open&&t.iconOpen]}})(ih),sh=E.forwardRef(function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Xr(e,rh),u=Kr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Ml({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ha(r)}`,i&&"iconOpen",n&&"disabled"]},eh,t)})(u);return dr.jsxs(E.Fragment,{children:[dr.jsx(oh,Kr({ownerState:u,className:Cs(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:dr.jsx(ah,{as:i,ownerState:u,className:c.icon})]})});var lh;const uh=["children","classes","className","label","notched"],ch=wc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Sc})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),dh=wc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Sc})(({ownerState:e,theme:t})=>Kr({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Kr({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));const ph=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],fh=wc(Ud,{shouldForwardProp:e=>Sc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Kr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Qd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Qd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Qd.focused} .${Qd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Qd.error} .${Qd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Qd.disabled} .${Qd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Kr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),hh=wc(function(e){const{className:t,label:r,notched:n}=e,o=Xr(e,uh),i=null!=r&&""!==r,a=Kr({},e,{notched:n,withLabel:i});return dr.jsx(ch,Kr({"aria-hidden":!0,className:t,ownerState:a},o,{children:dr.jsx(dh,{ownerState:a,children:i?dr.jsx("span",{children:r}):lh||(lh=dr.jsx("span",{className:"notranslate",children:"​"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),mh=wc(Gd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Vd})(({theme:e,ownerState:t})=>Kr({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),gh=E.forwardRef(function(e,t){var r,n,o,i,a;const s=Ac({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Xr(s,ph),v=(e=>{const{classes:t}=e;return Kr({},t,Ml({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Zd,t))})(s),b=_d(),y=qd({props:s,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Kr({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(r=null!=(n=h.root)?n:l.Root)?r:fh,w=null!=(o=null!=(i=h.input)?i:l.Input)?o:mh;return dr.jsx(Kd,Kr({slots:{root:S,input:w},renderSuffix:e=>dr.jsx(hh,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=dr.jsxs(E.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:Kr({},v,{notchedOutline:null})}))});function vh(e){return As("MuiSelect",e)}gh.muiName="Input";const bh=Ps("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var yh;const xh=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Sh=wc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${bh.select}`]:t.select},{[`&.${bh.select}`]:t[r.variant]},{[`&.${bh.error}`]:t.error},{[`&.${bh.multiple}`]:t.multiple}]}})(nh,{[`&.${bh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),wh=wc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ha(r.variant)}`],r.open&&t.iconOpen]}})(ih),Ch=wc("input",{shouldForwardProp:e=>xc(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Eh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Rh(e){return null==e||"string"==typeof e&&!e.trim()}const Ah=E.forwardRef(function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:w,onFocus:C,onOpen:R,open:A,readOnly:P,renderValue:M,SelectDisplayProps:I={},tabIndex:k,value:D,variant:T="standard"}=e,O=Xr(e,xh),[L,q]=dl({controlled:D,default:c,name:"Select"}),[N,_]=dl({controlled:A,default:u,name:"Select"}),j=E.useRef(null),z=E.useRef(null),[F,$]=E.useState(null),{current:H}=E.useRef(null!=A),[B,W]=E.useState(),V=fl(t,m),U=E.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;E.useImperativeHandle(V,()=>({focus:()=>{z.current.focus()},node:j.current,value:L}),[L]),E.useEffect(()=>{u&&N&&F&&!H&&(W(a?null:G.clientWidth),z.current.focus())},[F,a]),E.useEffect(()=>{i&&z.current.focus()},[i]),E.useEffect(()=>{if(!g)return;const e=il(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const Y=(e,t)=>{e?R&&R(t):w&&w(t),H||(W(a?null:G.clientWidth),_(e))},K=E.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==r&&(q(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),S(o,e)}b||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Fd({value:L})||p)&&(M?Z=M(L):te=!0);const re=K.map(e=>{if(!E.isValidElement(e))return null;let t;if(b){if(!Array.isArray(L))throw new Error(Ur(2));t=L.some(t=>Eh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=Eh(L,e.props.value),t&&te&&(Q=e.props.children);return E.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=b?0===ee.length?null:ee.reduce((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e),[]):Q);let ne,oe=B;!a&&H&&F&&(oe=G.clientWidth),ne=void 0!==k?k:d?null:0;const ie=I.id||(y?`mui-component-select-${y}`:void 0),ae=Kr({},e,{variant:T,value:L,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Ml({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ha(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},vh,t)})(ae),le=Kr({},v.PaperProps,null==(r=v.slotProps)?void 0:r.paper),ue=cl();return dr.jsxs(E.Fragment,{children:[dr.jsx(Sh,Kr({ref:U,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:y}}),x(e))},onFocus:C},I,{ownerState:ae,className:Cs(I.className,se.select,l),id:ie,children:Rh(Z)?yh||(yh=dr.jsx("span",{className:"notranslate",children:"​"})):Z})),dr.jsx(Ch,Kr({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:y,ref:j,"aria-hidden":!0,onChange:e=>{const t=K.find(t=>t.props.value===e.target.value);void 0!==t&&(q(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),dr.jsx(wh,{as:h,className:se.icon,ownerState:ae}),dr.jsx(Yf,Kr({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Kr({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:Kr({},v.slotProps,{paper:Kr({},le,{style:Kr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}),Ph=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Mh=["root"],Ih={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Sc(e)&&"variant"!==e,slot:"Root"},kh=wc(nf,Ih)(""),Dh=wc(gh,Ih)(""),Th=wc(Yp,Ih)(""),Oh=E.forwardRef(function(e,t){const r=Ac({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=rp,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:w,variant:C="outlined"}=r,R=Xr(r,Ph),A=v?sh:Ah,P=qd({props:r,muiFormControl:_d(),states:["variant","error"]}),M=P.variant||C,I=Kr({},r,{variant:M,classes:i}),k=(e=>{const{classes:t}=e;return t})(I),D=Xr(k,Mh),T=d||{standard:dr.jsx(kh,{ownerState:I}),outlined:dr.jsx(Dh,{label:f,ownerState:I}),filled:dr.jsx(Th,{ownerState:I})}[M],O=fl(t,Ll(T));return dr.jsx(E.Fragment,{children:E.cloneElement(T,Kr({inputComponent:A,inputProps:Kr({children:o,error:P.error,IconComponent:u,variant:M,type:void 0,multiple:g},v?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Kr({id:c},w)},p,{classes:p?oa(D,p.classes):D},d?d.props.inputProps:{})},(g&&v||l)&&"outlined"===M?{notched:!0}:{},{ref:O,className:Cs(T.props.className,a,k.root)},!d&&{variant:M},R))})});Oh.muiName="Select";const Lh=E.createContext();function qh(e){return As("MuiTable",e)}Ps("MuiTable",["root","stickyHeader"]);const Nh=["className","component","padding","size","stickyHeader"],_h=wc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Kr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Kr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),jh="table",zh=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiTable"}),{className:n,component:o=jh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Xr(r,Nh),u=Kr({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Ml({root:["root",r&&"stickyHeader"]},qh,t)})(u),d=E.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return dr.jsx(Lh.Provider,{value:d,children:dr.jsx(_h,Kr({as:o,role:o===jh?null:"table",ref:t,className:Cs(c.root,n),ownerState:u},l))})}),Fh=E.createContext();function $h(e){return As("MuiTableBody",e)}Ps("MuiTableBody",["root"]);const Hh=["className","component"],Bh=wc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Wh={variant:"body"},Vh="tbody",Uh=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiTableBody"}),{className:n,component:o=Vh}=r,i=Xr(r,Hh),a=Kr({},r,{component:o}),s=(e=>{const{classes:t}=e;return Ml({root:["root"]},$h,t)})(a);return dr.jsx(Fh.Provider,{value:Wh,children:dr.jsx(Bh,Kr({className:Cs(s.root,n),as:o,ref:t,role:o===Vh?null:"rowgroup",ownerState:a},i))})});function Gh(e){return As("MuiTableCell",e)}const Yh=Ps("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Kh=["align","className","component","padding","scope","size","sortDirection","variant"],Xh=wc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ha(r.size)}`],"normal"!==r.padding&&t[`padding${ha(r.padding)}`],"inherit"!==r.align&&t[`align${ha(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Kr({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?au(nu(e.palette.divider,1),.88):ou(nu(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Yh.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Jh=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Xr(r,Kh),p=E.useContext(Lh),f=E.useContext(Fh),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const v=c||f&&f.variant,b=Kr({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&p&&p.stickyHeader,variant:v}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Ml({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${ha(n)}`,"normal"!==o&&`padding${ha(o)}`,`size${ha(i)}`]},Gh,t)})(b);let x=null;return u&&(x="asc"===u?"ascending":"descending"),dr.jsx(Xh,Kr({as:m,ref:t,className:Cs(y.root,o),"aria-sort":x,scope:g,ownerState:b},d))});function Zh(e){return As("MuiTableContainer",e)}Ps("MuiTableContainer",["root"]);const Qh=["className","component"],em=wc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),tm=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Xr(r,Qh),a=Kr({},r,{component:o}),s=(e=>{const{classes:t}=e;return Ml({root:["root"]},Zh,t)})(a);return dr.jsx(em,Kr({ref:t,as:o,className:Cs(s.root,n),ownerState:a},i))});function rm(e){return As("MuiTableHead",e)}Ps("MuiTableHead",["root"]);const nm=["className","component"],om=wc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),im={variant:"head"},am="thead",sm=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiTableHead"}),{className:n,component:o=am}=r,i=Xr(r,nm),a=Kr({},r,{component:o}),s=(e=>{const{classes:t}=e;return Ml({root:["root"]},rm,t)})(a);return dr.jsx(Fh.Provider,{value:im,children:dr.jsx(om,Kr({as:o,className:Cs(s.root,n),ref:t,role:o===am?null:"rowgroup",ownerState:a},i))})});function lm(e){return As("MuiTableRow",e)}const um=Ps("MuiTableRow",["root","selected","hover","head","footer"]),cm=["className","component","hover","selected"],dm=wc("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${um.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${um.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nu(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),pm="tr",fm=E.forwardRef(function(e,t){const r=Ac({props:e,name:"MuiTableRow"}),{className:n,component:o=pm,hover:i=!1,selected:a=!1}=r,s=Xr(r,cm),l=E.useContext(Fh),u=Kr({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Ml({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},lm,t)})(u);return dr.jsx(dm,Kr({as:o,ref:t,className:Cs(c.root,n),role:o===pm?null:"row",ownerState:u},s))});function hm(e){return dr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:dr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function mm({fontSize:e="medium",children:t=null,className:r=""}={}){return dr.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function gm(e={}){return dr.jsx(mm,{...e,children:dr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[dr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),dr.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function vm(e={}){return dr.jsx(mm,{fontSize:"medium",...e,children:dr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[dr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),dr.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function bm(e){return dr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:dr.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function ym(e={}){return dr.jsx(mm,{...e,children:dr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:dr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[dr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),dr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function xm(e={}){return dr.jsx(mm,{fontSize:"medium",...e,children:dr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:dr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:dr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Sm({className:e}){return dr.jsx(mm,{fontSize:"small",className:e,children:dr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:dr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:dr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:dr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[dr.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),dr.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function wm(e={}){return dr.jsx(mm,{...e,children:dr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:dr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:dr.jsx("rect",{stroke:Bt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Cm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Bt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Bt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:dr.jsx(hm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Bt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Bt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`,borderRadius:Yt,backgroundColor:Bt.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Bt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Bt.WHITE,color:Bt.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Yt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Bt.GREYSCALE_0_15,backgroundColor:Bt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Bt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Bt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Bt.GREEN_PALE},"&:active":{backgroundColor:Bt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Bt.GREEN_PALE,boxShadow:`0 0 0 3px ${rl(Bt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Bt.BLUE_PALE},"&:active":{backgroundColor:Bt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Bt.BLUE_PALE,boxShadow:`0 0 0 3px ${rl(Bt.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Yt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Bt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Bt.GREYSCALE_0_42,backgroundColor:Bt.GREYSCALE_100_60,"&:active":{backgroundColor:Bt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Bt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Bt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Bt.PURPLE,"&.Mui-focusVisible":{borderColor:Bt.PURPLE,boxShadow:`0 0 0 3px ${rl(Bt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Bt.GREEN,"&.Mui-focusVisible":{borderColor:Bt.GREEN,boxShadow:`0 0 0 3px ${rl(Bt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Bt.BLUE,"&.Mui-focusVisible":{borderColor:Bt.BLUE,boxShadow:`0 0 0 3px ${rl(Bt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Bt.ORANGE,"&.Mui-focusVisible":{borderColor:Bt.ORANGE,boxShadow:`0 0 0 3px ${rl(Bt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Bt.RED,"&.Mui-focusVisible":{borderColor:Bt.RED,boxShadow:`0 0 0 3px ${rl(Bt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Bt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Bt.PURPLE_PALE},"&:active":{backgroundColor:Bt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Bt.PURPLE_PALE,boxShadow:`0 0 0 3px ${rl(Bt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Bt.GREEN_PALE},"&:active":{backgroundColor:Bt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Bt.GREEN_PALE,boxShadow:`0 0 0 3px ${rl(Bt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Bt.BLUE_PALE},"&:active":{backgroundColor:Bt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Bt.BLUE_PALE,boxShadow:`0 0 0 3px ${rl(Bt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Bt.ORANGE_PALE},"&:active":{backgroundColor:Bt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Bt.ORANGE_PALE,boxShadow:`0 0 0 3px ${rl(Bt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Bt.RED_PALE},"&:active":{backgroundColor:Bt.RED_DARK},"&.Mui-focusVisible":{borderColor:Bt.RED_PALE,boxShadow:`0 0 0 3px ${rl(Bt.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Bt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Bt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Yt,boxShadow:`inset 0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:dr.jsx(bm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Wt,borderRadius:Yt,color:Bt.TEXT_PRIMARY,backgroundColor:Bt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Bt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Bt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Bt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Bt.GREYSCALE_0_05,color:Bt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Bt.GREEN,borderColor:Bt.GREEN},"&.MuiChip-outlinedInfo":{color:Bt.BLUE,borderColor:Bt.BLUE},"&.MuiChip-outlinedWarning":{color:Bt.ORANGE,borderColor:Bt.ORANGE},"&.MuiChip-outlinedError":{color:Bt.RED,borderColor:Bt.RED}},outlined:{border:`solid 1px ${Bt.GREYSCALE_0_15}`,backgroundColor:Bt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Yt,boxShadow:"none",backgroundColor:Bt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Bt.GREEN,borderColor:Bt.GREEN},outlinedSecondary:{color:Bt.BLUE,borderColor:Bt.BLUE},label:{fontFamily:Qt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:dr.jsx(bm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:dr.jsx(hm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Yt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Yt,fontSize:Vt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Bt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Bt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Bt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Bt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Bt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Yt,border:`solid 1px ${Bt.GREYSCALE_0_15}`,color:Bt.GREYSCALE_0_60,marginRight:0,width:Gt,height:Gt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Bt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Yt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Bt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Vt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Wt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Bt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Bt.GREYSCALE_25,fontSize:Wt,fontFamily:Qt.FONT_FAMILY,fontWeight:Jt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Bt.TEXT_PRIMARY},"&.Mui-error":{color:Bt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Bt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Xt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Bt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Xt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Vt,lineHeight:"16px",backgroundColor:Bt.WHITE,borderRadius:Yt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bt.GREYSCALE_0_05}`,borderColor:Bt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Bt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Bt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bt.RED}`,boxShadow:`0px 0px 0px 1px ${Bt.RED}, inset 0 2px 0 0 ${Bt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bt.GREYSCALE_0_10}`,borderColor:Bt.GREYSCALE_0_10,backgroundColor:Bt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Bt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Bt.GREYSCALE_0_15,borderRadius:Yt,boxShadow:`inset 0 2px 0 0 ${Bt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>dr.jsx(hm,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Bt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Bt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Bt.GREYSCALE_0_03},"&:active":{backgroundColor:Bt.GREYSCALE_0_10},"&:focus":{backgroundColor:Bt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Bt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Bt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Bt.GREYSCALE_0_30,"&:hover":{backgroundColor:Bt.GREYSCALE_0_0,borderColor:Bt.GREYSCALE_0_15},"& ~svg":{color:Bt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Bt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Yt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Bt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Bt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Vt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Wt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Wt,fontWeight:Jt,color:Bt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Jt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Bt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Bt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:dr.jsx(xm,{}),checkedIcon:dr.jsx(vm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Bt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Bt.GREEN_PALE,boxShadow:`0 0 0 3px ${rl(Bt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Bt.BLUE_PALE,boxShadow:`0 0 0 3px ${rl(Bt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Bt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Bt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:dr.jsx(wm,{}),checkedIcon:dr.jsx(gm,{}),indeterminateIcon:dr.jsx(ym,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Yt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Bt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Bt.GREYSCALE_0_55,color:Bt.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Bt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Bt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Bt.GREYSCALE_0_55,"&:hover":{color:Bt.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Bt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Bt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Vt,color:Bt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Jt},secondary:{fontSize:Wt,color:Bt.GREYSCALE_45,fontWeight:Xt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Vt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Vt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Bt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Wt,borderBottom:`solid 1px ${Bt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Vt,color:Bt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Bt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Bt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Bt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Bt.RED}}},"&.Mui-focusVisible":{backgroundColor:Bt.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Bt.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Bt.GREEN,height:"24px","&.Mui-disabled":{color:Bt.GREYSCALE_0_15}},rail:{backgroundColor:Bt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Bt.GREYSCALE_0_05}`,borderRadius:Yt,boxShadow:`inset 0px 0px 0px 1px ${Bt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Bt.GREYSCALE_0_05}`,borderRadius:Yt},thumb:{height:"16px",width:"16px",borderRadius:Yt,backgroundColor:Bt.WHITE,boxShadow:`0px 1px 2px 0px ${Bt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Bt.GREYSCALE_0_05}`,"&:hover":{borderRadius:Yt,boxShadow:`0 2px 4px 0 ${Bt.GREYSCALE_0_30}, 0 0 0 1px ${Bt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Bt.GREYSCALE_0_15}, 0 0 0 1px ${Bt.GREYSCALE_0_06}, 0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Bt.GREYSCALE_0_15}, 0 0 0 1px ${Bt.GREYSCALE_0_06}, 0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Bt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Bt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Bt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Bt.GREYSCALE_0_15},markLabel:{color:Bt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Bt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Bt.WHITE,color:Bt.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Bt.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Bt.GREEN_PALE,boxShadow:`0 0 0 3px ${rl(Bt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Bt.BLUE_PALE,boxShadow:`0 0 0 3px ${rl(Bt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Bt.GREYSCALE_0_15,borderRadius:Yt},thumb:{height:"16px",width:"16px",borderRadius:Yt,backgroundColor:Bt.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Vt,fontWeight:Jt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Bt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`,backgroundColor:Bt.GREYSCALE_0_03,borderRadius:Yt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Bt.GREYSCALE_25,"&.Mui-selected":{color:Bt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Vt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Yt,"&:hover":{backgroundColor:Bt.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Bt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Bt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Yt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Bt.GREYSCALE_0_05},"&:hover":{backgroundColor:Bt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Bt.GREYSCALE_85}`,borderRight:`1px solid ${Bt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Jt,backgroundColor:Bt.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Bt.GREYSCALE_98,borderBottom:`1px solid ${Bt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Bt.GREYSCALE_85}`,borderTop:`1px solid ${Bt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Bt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Bt.GREYSCALE_0_05,"&:hover":{backgroundColor:Bt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Bt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>dr.jsx(Sm,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Bt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Vt,borderRadius:Yt,padding:"7px 16px",border:`1px solid ${Bt.GREYSCALE_0_15}`,backgroundColor:Bt.GREYSCALE_100_60,color:Bt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Bt.GREYSCALE_0_10,border:`1px solid ${Bt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Bt.GREYSCALE_0_03,border:`1px solid ${Bt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Bt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Bt.MISC_FOCUS_BORDER}`,border:`1px solid ${Bt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Bt.GREYSCALE_25,backgroundColor:Bt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Bt.GREYSCALE_0_10,border:`1px solid ${Bt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Wt,height:24,width:24,padding:7},sizeLarge:{fontSize:Ut,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Vt,borderRadius:Yt}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Bt.GREYSCALE_20},tooltip:{backgroundColor:Bt.GREYSCALE_20,fontSize:Wt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Em=e=>({mode:"light",primary:{ultraLight:Bt.GREEN_ULTRA_LIGHT,light:Bt.GREEN_PALE,main:Bt.GREEN,dark:Bt.GREEN_DARK,extraDark:Bt.GREEN_EXTRA_DARK,contrastText:Bt.WHITE},secondary:{ultraLight:Bt.BLUE_ULTRA_LIGHT,light:Bt.BLUE_PALE,main:Bt.BLUE,dark:Bt.BLUE_DARK,extraDark:Bt.BLUE_EXTRA_DARK,contrastText:Bt.WHITE},error:{ultraLight:Bt.RED_ULTRA_LIGHT,light:Bt.RED_PALE,main:Bt.RED,dark:Bt.RED_DARK,extraDark:Bt.RED_EXTRA_DARK,contrastText:Bt.WHITE},warning:{ultraLight:Bt.ORANGE_ULTRA_LIGHT,light:Bt.ORANGE_PALE,main:Bt.ORANGE,dark:Bt.ORANGE_DARK,extraDark:Bt.ORANGE_EXTRA_DARK,contrastText:Bt.WHITE},success:{ultraLight:Bt.GREEN_ULTRA_LIGHT,light:Bt.GREEN_PALE,main:Bt.GREEN,dark:Bt.GREEN_DARK,extraDark:Bt.GREEN_EXTRA_DARK,contrastText:Bt.WHITE},info:{ultraLight:Bt.BLUE_ULTRA_LIGHT,light:Bt.BLUE_PALE,main:Bt.BLUE,dark:Bt.BLUE_DARK,extraDark:Bt.BLUE_EXTRA_DARK,contrastText:Bt.WHITE},text:{primary:Bt.TEXT_PRIMARY,secondary:Bt.TEXT_SECONDARY,disabled:Bt.GREYSCALE_0_30},action:{hover:Bt.GREYSCALE_0_03,hoverOpacity:.03,selected:Bt.GREYSCALE_0_05,selectedOpacity:.05,focus:Bt.MISC_FOCUS_BORDER},amethyst:{ultraLight:Bt.WHITE,main:Bt.PURPLE,light:Bt.PURPLE_PALE,dark:Bt.PURPLE_DARK,extraDark:Bt.GREYSCALE_0_0,contrastText:Bt.WHITE},background:{paper:Bt.WHITE,default:Bt.GREYSCALE_95},divider:Bt.GREYSCALE_0_15}),Rm={...Ht};var Am={},Pm={exports:{}},Mm={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Mm);var Im=Mm.exports;!function(e){var t=Im.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Pm);var km=Pm.exports,Dm={};function Tm(e,t){return function(){return null}}function Om(e){return e&&"object"===Yl(e)&&e.constructor===Object}function Lm(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Kr({},e):e;return Om(e)&&Om(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(Om(t[o])&&o in e?n[o]=Lm(e[o],t[o],r):n[o]=t[o])}),n}var qm=(Ki.element,function(){return null});qm.isRequired=(Ki.element.isRequired,function(){return null});var Nm=function(){return null};var _m={exports:{}},jm={},zm=60103,Fm=60106,$m=60107,Hm=60108,Bm=60114,Wm=60109,Vm=60110,Um=60112,Gm=60113,Ym=60120,Km=60115,Xm=60116,Jm=60121,Zm=60122,Qm=60117,eg=60129,tg=60131;if("function"==typeof Symbol&&Symbol.for){var rg=Symbol.for;zm=rg("react.element"),Fm=rg("react.portal"),$m=rg("react.fragment"),Hm=rg("react.strict_mode"),Bm=rg("react.profiler"),Wm=rg("react.provider"),Vm=rg("react.context"),Um=rg("react.forward_ref"),Gm=rg("react.suspense"),Ym=rg("react.suspense_list"),Km=rg("react.memo"),Xm=rg("react.lazy"),Jm=rg("react.block"),Zm=rg("react.server.block"),Qm=rg("react.fundamental"),eg=rg("react.debug_trace_mode"),tg=rg("react.legacy_hidden")}function ng(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case zm:switch(e=e.type){case $m:case Bm:case Hm:case Gm:case Ym:return e;default:switch(e=e&&e.$$typeof){case Vm:case Um:case Xm:case Km:case Wm:return e;default:return t}}case Fm:return t}}}var og=Wm,ig=zm,ag=Um,sg=$m,lg=Xm,ug=Km,cg=Fm,dg=Bm,pg=Hm,fg=Gm;jm.ContextConsumer=Vm,jm.ContextProvider=og,jm.Element=ig,jm.ForwardRef=ag,jm.Fragment=sg,jm.Lazy=lg,jm.Memo=ug,jm.Portal=cg,jm.Profiler=dg,jm.StrictMode=pg,jm.Suspense=fg,jm.isAsyncMode=function(){return!1},jm.isConcurrentMode=function(){return!1},jm.isContextConsumer=function(e){return ng(e)===Vm},jm.isContextProvider=function(e){return ng(e)===Wm},jm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===zm},jm.isForwardRef=function(e){return ng(e)===Um},jm.isFragment=function(e){return ng(e)===$m},jm.isLazy=function(e){return ng(e)===Xm},jm.isMemo=function(e){return ng(e)===Km},jm.isPortal=function(e){return ng(e)===Fm},jm.isProfiler=function(e){return ng(e)===Bm},jm.isStrictMode=function(e){return ng(e)===Hm},jm.isSuspense=function(e){return ng(e)===Gm},jm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===$m||e===Bm||e===eg||e===Hm||e===Gm||e===Ym||e===tg||"object"==typeof e&&null!==e&&(e.$$typeof===Xm||e.$$typeof===Km||e.$$typeof===Wm||e.$$typeof===Vm||e.$$typeof===Um||e.$$typeof===Qm||e.$$typeof===Jm||e[0]===Zm)},jm.typeOf=ng,_m.exports=jm;var hg=_m.exports,mg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function gg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(mg);return t&&t[1]||""}(e)||t}function vg(e,t,r){var n=gg(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var bg="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),yg=Ki.oneOfType([Ki.func,Ki.object]),xg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Tm,deepmerge:Lm,elementAcceptingRef:qm,elementTypeAcceptingRef:Nm,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return gg(e,"Component");if("object"===Yl(e))switch(e.$$typeof){case hg.ForwardRef:return vg(e,e.render,"ForwardRef");case hg.Memo:return vg(e,e.type,"memo");default:return}}},ponyfillGlobal:bg,refType:yg}),Sg=tr(xg);Object.defineProperty(Dm,"__esModule",{value:!0}),Dm.hexToRgb=Eg,Dm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=Ag(e),r=t.values;return"#".concat(r.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},Dm.hslToRgb=Rg,Dm.decomposeColor=Ag,Dm.recomposeColor=Pg,Dm.getContrastRatio=function(e,t){var r=Mg(e),n=Mg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Dm.getLuminance=Mg,Dm.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Mg(e)>.5?kg(e,t):Dg(e,t)},Dm.fade=function(e,t){return Ig(e,t)},Dm.alpha=Ig,Dm.darken=kg,Dm.lighten=Dg;var wg=Sg;function Cg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function Eg(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function Rg(e){var t=(e=Ag(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Pg({type:s,values:l})}function Ag(e){if(e.type)return e;if("#"===e.charAt(0))return Ag(Eg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,wg.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map(function(e){return parseFloat(e)})}}function Pg(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function Mg(e){var t="hsl"===(e=Ag(e)).type?Ag(Rg(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ig(e,t){return e=Ag(e),t=Cg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Pg(e)}function kg(e,t){if(e=Ag(e),t=Cg(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return Pg(e)}function Dg(e,t){if(e=Ag(e),t=Cg(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return Pg(e)}var Tg,Og,Lg,qg={},Ng={exports:{}},_g={exports:{}},jg={exports:{}};function zg(){return Tg||(Tg=1,function(e){var t=Im.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(jg)),jg.exports}function Fg(){return Og||(Og=1,function(e){var t=Im.default,r=zg();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(_g)),_g.exports}function $g(){return Lg||(Lg=1,function(e){var t=Fg();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Ng)),Ng.exports}var Hg,Bg={exports:{}};function Wg(){return Hg||(Hg=1,function(e){var t=Yu();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Bg)),Bg.exports}var Vg,Ug={};var Gg,Yg={};var Kg,Xg={},Jg={};var Zg,Qg={};var ev,tv={};var rv,nv={};var ov,iv={};var av,sv={};var lv,uv={};var cv,dv,pv={};function fv(){if(dv)return Xg;dv=1;var e=Ql;Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,b=e.secondary,y=void 0===b?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:b,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,A=e.success,P=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,M=e.type,I=void 0===M?"light":M,k=e.contrastThreshold,D=void 0===k?3:k,T=e.tonalOffset,O=void 0===T?.2:T,L=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=q(e.main)),e},_={dark:h,light:f},j=(0,n.deepmerge)((0,t.default)({common:o.default,type:I,primary:N(v),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(P),grey:i.default,contrastThreshold:D,getContrastText:q,augmentColor:N,tonalOffset:O},_[I]),L);return j},Xg.dark=Xg.light=void 0;var t=e(Vu()),r=e(Wg()),n=Sg,o=e(function(){if(Kg)return Jg;Kg=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.default=void 0;var e={black:"#000",white:"#fff"};return Jg.default=e,Jg}()),i=e(function(){if(Zg)return Qg;Zg=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return Qg.default=e,Qg}()),a=e(function(){if(ev)return tv;ev=1,Object.defineProperty(tv,"__esModule",{value:!0}),tv.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return tv.default=e,tv}()),s=e(function(){if(rv)return nv;rv=1,Object.defineProperty(nv,"__esModule",{value:!0}),nv.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return nv.default=e,nv}()),l=e(function(){if(ov)return iv;ov=1,Object.defineProperty(iv,"__esModule",{value:!0}),iv.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return iv.default=e,iv}()),u=e(function(){if(av)return sv;av=1,Object.defineProperty(sv,"__esModule",{value:!0}),sv.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return sv.default=e,sv}()),c=e(function(){if(lv)return uv;lv=1,Object.defineProperty(uv,"__esModule",{value:!0}),uv.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return uv.default=e,uv}()),d=e(function(){if(cv)return pv;cv=1,Object.defineProperty(pv,"__esModule",{value:!0}),pv.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return pv.default=e,pv}()),p=Dm,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};Xg.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return Xg.dark=h,Xg}var hv,mv={};var gv,vv={};var bv,yv={};var xv={};function Sv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function wv(e,t){if(e){if("string"==typeof e)return Sv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sv(e,t):void 0}}function Cv(e){return function(e){if(Array.isArray(e))return Sv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ev(e,t){return t?Lm(e,t,{clone:!1}):e}var Rv={xs:0,sm:600,md:960,lg:1280,xl:1920},Av={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Rv[e],"px)")}};function Pv(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Av;return t.reduce(function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e},{})}if("object"===Yl(t)){var o=e.theme.breakpoints||Av;return Object.keys(t).reduce(function(e,n){return e[o.up(n)]=r(t[n]),e},{})}return r(t)}function Mv(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function Iv(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Mv(e.theme,o)||{};return Pv(e,r,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Mv(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Kl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)})};return a.propTypes={},a.filterProps=[t],a}function kv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce(function(t,r){var n=r(e);return n?Ev(t,n):t},{})};return n.propTypes={},n.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),n}function Dv(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Tv=Iv({prop:"border",themeKey:"borders",transform:Dv}),Ov=Iv({prop:"borderTop",themeKey:"borders",transform:Dv}),Lv=Iv({prop:"borderRight",themeKey:"borders",transform:Dv}),qv=Iv({prop:"borderBottom",themeKey:"borders",transform:Dv}),Nv=Iv({prop:"borderLeft",themeKey:"borders",transform:Dv}),_v=Iv({prop:"borderColor",themeKey:"palette"}),jv=Iv({prop:"borderRadius",themeKey:"shape"}),zv=kv(Tv,Ov,Lv,qv,Nv,_v,jv);function Fv(e,t){var r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}function $v(e){var t=function(t){var r=e(t);return t.css?Kr({},Ev(r,e(Kr({theme:t.theme},t.css))),Fv(t.css,[e.filterProps])):t.sx?Kr({},Ev(r,e(Kr({theme:t.theme},t.sx))),Fv(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(Cv(e.filterProps)),t}var Hv=kv(Iv({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Iv({prop:"display"}),Iv({prop:"overflow"}),Iv({prop:"textOverflow"}),Iv({prop:"visibility"}),Iv({prop:"whiteSpace"})),Bv=Iv({prop:"flexBasis"}),Wv=Iv({prop:"flexDirection"}),Vv=Iv({prop:"flexWrap"}),Uv=Iv({prop:"justifyContent"}),Gv=Iv({prop:"alignItems"}),Yv=Iv({prop:"alignContent"}),Kv=Iv({prop:"order"}),Xv=Iv({prop:"flex"}),Jv=Iv({prop:"flexGrow"}),Zv=Iv({prop:"flexShrink"}),Qv=Iv({prop:"alignSelf"}),eb=Iv({prop:"justifyItems"}),tb=Iv({prop:"justifySelf"}),rb=kv(Bv,Wv,Vv,Uv,Gv,Yv,Kv,Xv,Jv,Zv,Qv,eb,tb),nb=Iv({prop:"gridGap"}),ob=Iv({prop:"gridColumnGap"}),ib=Iv({prop:"gridRowGap"}),ab=Iv({prop:"gridColumn"}),sb=Iv({prop:"gridRow"}),lb=Iv({prop:"gridAutoFlow"}),ub=Iv({prop:"gridAutoColumns"}),cb=Iv({prop:"gridAutoRows"}),db=Iv({prop:"gridTemplateColumns"}),pb=Iv({prop:"gridTemplateRows"}),fb=Iv({prop:"gridTemplateAreas"}),hb=Iv({prop:"gridArea"}),mb=kv(nb,ob,ib,ab,sb,lb,ub,cb,db,pb,fb,hb),gb=Iv({prop:"color",themeKey:"palette"}),vb=Iv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),bb=kv(gb,vb),yb=Iv({prop:"position"}),xb=Iv({prop:"zIndex",themeKey:"zIndex"}),Sb=Iv({prop:"top"}),wb=Iv({prop:"right"}),Cb=Iv({prop:"bottom"}),Eb=Iv({prop:"left"}),Rb=kv(yb,xb,Sb,wb,Cb,Eb),Ab=Iv({prop:"boxShadow",themeKey:"shadows"});function Pb(e){return e<=1?"".concat(100*e,"%"):e}var Mb=Iv({prop:"width",transform:Pb}),Ib=Iv({prop:"maxWidth",transform:Pb}),kb=Iv({prop:"minWidth",transform:Pb}),Db=Iv({prop:"height",transform:Pb}),Tb=Iv({prop:"maxHeight",transform:Pb}),Ob=Iv({prop:"minHeight",transform:Pb}),Lb=Iv({prop:"size",cssProperty:"width",transform:Pb}),qb=Iv({prop:"size",cssProperty:"height",transform:Pb}),Nb=Iv({prop:"boxSizing"}),_b=kv(Mb,Ib,kb,Db,Tb,Ob,Nb);function jb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||wv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var zb={m:"margin",p:"padding"},Fb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$b={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hb=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){if(e.length>2){if(!$b[e])return[e];e=$b[e]}var t=jb(e.split(""),2),r=t[0],n=t[1],o=zb[r],i=Fb[n]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),Bb=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Wb(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Vb(e,t){return function(r){return e.reduce(function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e},{})}}function Ub(e){var t=Wb(e.theme);return Object.keys(e).map(function(r){if(-1===Bb.indexOf(r))return null;var n=Vb(Hb(r),t),o=e[r];return Pv(e,o,n)}).reduce(Ev,{})}Ub.propTypes={},Ub.filterProps=Bb;var Gb,Yb=Iv({prop:"fontFamily",themeKey:"typography"}),Kb=Iv({prop:"fontSize",themeKey:"typography"}),Xb=Iv({prop:"fontStyle",themeKey:"typography"}),Jb=Iv({prop:"fontWeight",themeKey:"typography"}),Zb=Iv({prop:"letterSpacing"}),Qb=Iv({prop:"lineHeight"}),ey=Iv({prop:"textAlign"}),ty=kv(Yb,Kb,Xb,Jb,Zb,Qb,ey),ry=Object.freeze({__proto__:null,alignContent:Yv,alignItems:Gv,alignSelf:Qv,bgcolor:vb,border:Tv,borderBottom:qv,borderColor:_v,borderLeft:Nv,borderRadius:jv,borderRight:Lv,borderTop:Ov,borders:zv,bottom:Cb,boxSizing:Nb,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Av,o=n.keys.reduce(function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(Kr({theme:t.theme},t[o]))),r},null);return Ev(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Cv(e.filterProps)),t},color:gb,compose:kv,createUnarySpacing:Wb,css:function(e){return $v(e)},display:Hv,flex:Xv,flexBasis:Bv,flexDirection:Wv,flexGrow:Jv,flexShrink:Zv,flexWrap:Vv,flexbox:rb,fontFamily:Yb,fontSize:Kb,fontStyle:Xb,fontWeight:Jb,grid:mb,gridArea:hb,gridAutoColumns:ub,gridAutoFlow:lb,gridAutoRows:cb,gridColumn:ab,gridColumnGap:ob,gridGap:nb,gridRow:sb,gridRowGap:ib,gridTemplateAreas:fb,gridTemplateColumns:db,gridTemplateRows:pb,height:Db,justifyContent:Uv,justifyItems:eb,justifySelf:tb,left:Eb,letterSpacing:Zb,lineHeight:Qb,maxHeight:Tb,maxWidth:Ib,minHeight:Ob,minWidth:kb,order:Kv,palette:bb,position:yb,positions:Rb,right:wb,shadows:Ab,sizeHeight:qb,sizeWidth:Lb,sizing:_b,spacing:Ub,style:Iv,styleFunctionSx:$v,textAlign:ey,top:Sb,typography:ty,width:Mb,zIndex:xb}),ny=tr(ry);var oy,iy={};function ay(){if(oy)return iy;oy=1;var e=Ql;Object.defineProperty(iy,"__esModule",{value:!0}),iy.default=iy.duration=iy.easing=void 0;var t=e(Wg()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};iy.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}iy.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return iy.default=i,iy}var sy,ly,uy={};function cy(){if(ly)return qg;ly=1;var e=Ql;Object.defineProperty(qg,"__esModule",{value:!0}),qg.createMuiTheme=function(){return p.apply(void 0,arguments)},qg.default=void 0,e($g());var t=e(Wg()),r=Sg,n=e(function(){if(Vg)return Ug;Vg=1;var e=Ql;Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},Ug.keys=void 0;var t=e(Vu()),r=e(Wg()),n=["xs","sm","md","lg","xl"];return Ug.keys=n,Ug}()),o=e(function(){if(Gg)return Yg;Gg=1;var e=Ql;Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e($g()),r=e(Vu());return Yg}()),i=e(fv()),a=e(function(){if(hv)return mv;hv=1;var e=Ql;Object.defineProperty(mv,"__esModule",{value:!0}),mv.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,v=void 0===g?400:g,b=u.fontWeightMedium,y=void 0===b?500:b,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=f/14,M=R||function(e){return"".concat(e/C*P,"rem")},I=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},k={h1:I(m,96,1.167,-1.5),h2:I(m,60,1.2,-.5),h3:I(v,48,1.167,0),h4:I(v,34,1.235,.25),h5:I(v,24,1.334,0),h6:I(y,20,1.6,.15),subtitle1:I(v,16,1.75,.15),subtitle2:I(y,14,1.57,.1),body1:I(v,16,1.5,.15),body2:I(v,14,1.43,.15),button:I(y,14,1.75,.4,a),caption:I(v,12,1.66,.4),overline:I(v,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:y,fontWeightBold:S},k),A,{clone:!1})};var t=e(Vu()),r=e(Wg()),n=Sg;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return mv}()),s=e(function(){if(gv)return vv;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}gv=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return vv.default=t,vv}()),l=e(function(){if(bv)return yv;bv=1,Object.defineProperty(yv,"__esModule",{value:!0}),yv.default=void 0;var e={borderRadius:4};return yv.default=e,yv}()),u=e(function(){if(Gb)return xv;Gb=1,Object.defineProperty(xv,"__esModule",{value:!0}),xv.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=ny;return xv}()),c=e(ay()),d=e(function(){if(sy)return uy;sy=1,Object.defineProperty(uy,"__esModule",{value:!0}),uy.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return uy.default=e,uy}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,v=void 0===g?{}:g,b=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),C=(0,n.default)(f),E=(0,u.default)(b),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,P=new Array(A>1?A-1:0),M=1;M<A;M++)P[M-1]=arguments[M];return R=P.reduce(function(e,t){return(0,r.deepmerge)(e,t)},R)}var f=p;return qg.default=f,qg}var dy,py={};var fy={},hy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",my=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function gy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==my.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[hy]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function vy(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var by="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},yy="object"===("undefined"==typeof window?"undefined":by(window))&&"object"===("undefined"==typeof document?"undefined":by(document))&&9===document.nodeType;function xy(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Kl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Sy={}.constructor;function wy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(wy);if(e.constructor!==Sy)return e;var t={};for(var r in e)t[r]=wy(e[r]);return t}function Cy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=wy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var Ey=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},Ry=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=Ey(e[r]," ");else t=Ey(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Ay(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Py(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function My(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=Ay(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=Py(p+":"+u+Ry(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Py(h+":"+u+Ry(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(n&&(n+=l),n+=Py(g+":"+u+Ry(v)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Py(""+e+u+"{"+n,--i)+Py("}",i)):n}var Iy=/([[\].#*$><+~=|^:(),"'`\s])/g,ky="undefined"!=typeof CSS&&CSS.escape,Dy=function(e){return ky?ky(e):e.replace(Iy,"\\$1")},Ty=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Oy=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Hc(Hc(o)),s),o.selectorText="."+Dy(o.id)),o}Tc(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=Ry(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Kr({},e,{allowEmpty:!0}):e;return My(this.selectorText,this.style,r)},xy(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(Ty),Ly={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Oy(e,t,r)}},qy={indent:1,children:!0},Ny=/@([\w-]+)/,_y=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Ny);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new sx(Kr({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=qy);var t=Ay(e).linebreak;if(null==e.indent&&(e.indent=qy.indent),null==e.children&&(e.children=qy.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),jy=/@container|@media|@supports\s+/,zy={onCreateRule:function(e,t,r){return jy.test(e)?new _y(e,t,r):null}},Fy={indent:1,children:!0},$y=/@keyframes\s+([\w-]+)/,Hy=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match($y);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:Dy(a(this,i)),this.rules=new sx(Kr({},r,{parent:this})),t)this.rules.add(s,t[s],Kr({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Fy);var t=Ay(e).linebreak;if(null==e.indent&&(e.indent=Fy.indent),null==e.children&&(e.children=Fy.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),By=/@keyframes\s+/,Wy=/\$([\w-]+)/g,Vy=function(e,t){return"string"==typeof e?e.replace(Wy,function(e,r){return r in t?t[r]:e}):e},Uy=function(e,t,r){var n=e[t],o=Vy(n,r);o!==n&&(e[t]=o)},Gy={onCreateRule:function(e,t,r){return"string"==typeof e&&By.test(e)?new Hy(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Uy(e,"animation-name",r.keyframes),"animation"in e&&Uy(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Vy(e,n.keyframes);default:return e}}},Yy=function(e){function t(){return e.apply(this,arguments)||this}return Tc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Kr({},e,{allowEmpty:!0}):e;return My(this.key,this.style,r)},t}(Ty),Ky={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Yy(e,t,r):null}},Xy=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=Ay(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=My(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return My(this.at,this.style,e)},e}(),Jy=/@font-face/,Zy={onCreateRule:function(e,t,r){return Jy.test(e)?new Xy(e,t,r):null}},Qy=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return My(this.key,this.style,e)},e}(),ex={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Qy(e,t,r):null}},tx=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),rx={"@charset":!0,"@import":!0,"@namespace":!0},nx={onCreateRule:function(e,t,r){return e in rx?new tx(e,t,r):null}},ox=[Ly,zy,Gy,Ky,Zy,ex,nx],ix={process:!0},ax={force:!0,process:!0},sx=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=Kr({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Dy(this.classes[d]));var p=Cy(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=Kr({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Oy?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Hy&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Oy?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Hy&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=ix);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,ax)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ax)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=Ay(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),lx=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Kr({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new sx(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),ux=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),cx=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Xr(t,["attached"]),o=Ay(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},xy(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),dx=new cx,px="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),fx="2f1acc6c3a606b082e5eef5e54414ffb";null==px[fx]&&(px[fx]=0);var hx=px[fx]++,mx=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+hx+o+t:i+r.key+"-"+hx+(o?"-"+o:"")+"-"+t}},gx=function(e){var t;return function(){return t||(t=e()),t}},vx=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},bx=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=Ry(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},yx=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},xx=function(e,t){return e.selectorText=t,e.selectorText===t},Sx=gx(function(){return document.querySelector("head")});function wx(e){var t=dx.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=Sx(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Cx=gx(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Ex=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Rx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Ax=function(){function e(e){this.getPropertyValue=vx,this.setProperty=bx,this.removeProperty=yx,this.setSelector=xx,this.hasInsertedRules=!1,this.cssRules=[],e&&dx.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=Cx();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=wx(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Sx().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=Rx(r,t);if(!1===(o=Ex(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=Rx(r,t),l=Ex(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof lx&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Px=0,Mx=function(){function e(e){this.id=Px++,this.version="10.10.0",this.plugins=new ux,this.options={id:{minify:!1},createGenerateId:mx,Renderer:yy?Ax:null,plugins:[]},this.generateId=mx({minify:!1});for(var t=0;t<ox.length;t++)this.plugins.use(ox[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Kr({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===dx.index?0:dx.index+1);var n=new lx(e,Kr({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),dx.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=Kr({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=Cy(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){e.plugins.use(t)}),this},e}(),Ix=function(e){return new Mx(e)},kx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Dx(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=Dx(n);i&&(t||(t={}),t[r]=i)}}return t}
90
+ `),sd.rippleVisible,hd,550,({theme:e})=>e.transitions.easing.easeInOut,sd.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,sd.child,sd.childLeaving,md,550,({theme:e})=>e.transitions.easing.easeInOut,sd.childPulsate,gd,({theme:e})=>e.transitions.easing.easeInOut),yd=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Xr(r,ld),[s,l]=E.useState([]),u=E.useRef(0),c=E.useRef(null);E.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=E.useRef(!1),p=El(),f=E.useRef(null),h=E.useRef(null),m=E.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l(e=>[...e,dr.jsx(vd,{classes:{ripple:ks(o.ripple,sd.ripple),rippleVisible:ks(o.rippleVisible,sd.rippleVisible),ripplePulsate:ks(o.ripplePulsate,sd.ripplePulsate),child:ks(o.child,sd.child),childLeaving:ks(o.childLeaving,sd.childLeaving),childPulsate:ks(o.childPulsate,sd.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)]),u.current+=1,c.current=a},[o]),g=E.useCallback((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},[n,m,p]),b=E.useCallback(()=>{g({},{pulsate:!0})},[g]),v=E.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,()=>{v(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[p]);return E.useImperativeHandle(t,()=>({pulsate:b,start:g,stop:v}),[b,g,v]),dr.jsx(bd,Kr({className:ks(sd.root,o.root,i),ref:h},a,{children:dr.jsx(ed,{component:null,exit:!0,children:s})}))});function xd(e){return Os("MuiButtonBase",e)}const Sd=Ls("MuiButtonBase",["root","disabled","focusVisible"]),wd=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Cd=Ic("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Sd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ed=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:C,onTouchEnd:R,onTouchMove:A,onTouchStart:M,tabIndex:P=0,TouchRippleProps:I,touchRippleRef:k,type:D}=r,T=Xr(r,wd),O=E.useRef(null),L=E.useRef(null),q=xl(L,k),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=Ol(),[F,$]=E.useState(!1);l&&F&&$(!1),E.useImperativeHandle(n,()=>({focusVisible:()=>{$(!0),O.current.focus()}}),[]);const[H,B]=E.useState(!1);E.useEffect(()=>{B(!0)},[]);const W=H&&!u&&!l;function V(e,t,r=c){return yl(n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0})}E.useEffect(()=>{F&&d&&!u&&H&&L.current.pulsate()},[u,d,F,H]);const U=V("start",S),G=V("stop",m),Y=V("stop",g),K=V("stop",C),X=V("stop",e=>{F&&e.preventDefault(),w&&w(e)}),J=V("start",M),Z=V("stop",R),Q=V("stop",A),ee=V("stop",e=>{_(e),!1===N.current&&$(!1),f&&f(e)},!1),te=yl(e=>{O.current||(O.current=e.currentTarget),j(e),!0===N.current&&($(!0),v&&v(e)),b&&b(e)}),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=E.useRef(!1),oe=yl(e=>{d&&!ne.current&&F&&L.current&&" "===e.key&&(ne.current=!0,L.current.stop(e,()=>{L.current.start(e)})),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=yl(e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,()=>{L.current.pulsate(e)})),x&&x(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=xl(t,z,O),ue=Kr({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:P,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ql({root:["root",t&&"disabled",r&&"focusVisible"]},xd,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return dr.jsxs(Cd,Kr({as:ae,className:ks(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:P,type:D},se,T,{children:[i,W?dr.jsx(yd,Kr({ref:q,center:o},I)):null]}))});function Rd(e){return Os("MuiIconButton",e)}const Ad=Ls("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Md=["edge","children","className","color","disabled","disableFocusRipple","size"],Pd=Ic(Ed,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Sa(r.color)}`],r.edge&&t[`edge${Sa(r.edge)}`],t[`size${Sa(r.size)}`]]}})(({theme:e,ownerState:t})=>Kr({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cu(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return Kr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Kr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":Kr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cu(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Ad.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Id=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=Xr(r,Md),d=Kr({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return ql({root:["root",r&&"disabled","default"!==n&&`color${Sa(n)}`,o&&`edge${Sa(o)}`,`size${Sa(i)}`]},Rd,t)})(d);return dr.jsx(Pd,Kr({className:ks(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function kd(e){return Os("MuiTypography",e)}Ls("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Dd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Td=Ic("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Sa(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Kr({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Od={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ld={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qd=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiTypography"}),n=(e=>Ld[e]||e)(r.color),o=Rs(Kr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Od}=o,f=Xr(o,Dd),h=Kr({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Od[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return ql({root:["root",i,"inherit"!==e.align&&`align${Sa(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},kd,a)})(h);return dr.jsx(Td,Kr({as:m,ref:t,ownerState:h,className:ks(g.root,a)},f))});const Nd=E.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=E.useState(null),s=xl(E.isValidElement(r)?$l(r):null,t);if(il(()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),il(()=>{if(i&&!o)return hl(t,i),()=>{hl(t,null)}},[t,i,o]),o){if(E.isValidElement(r)){const e={ref:s};return E.cloneElement(r,e)}return dr.jsx(E.Fragment,{children:r})}return dr.jsx(E.Fragment,{children:i?V.createPortal(r,i):i})}),jd=["onChange","maxRows","minRows","style","value"];function _d(e){return parseInt(e,10)||0}const zd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Fd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const $d=E.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Xr(e,jd),{current:l}=E.useRef(null!=a),u=E.useRef(null),c=xl(t,u),d=E.useRef(null),p=E.useRef(null),f=E.useCallback(()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=fl(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=_d(i.paddingBottom)+_d(i.paddingTop),l=_d(i.borderBottomWidth)+_d(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}},[n,o,e.placeholder]),h=yl(()=>{const e=u.current,t=f();if(!e||!t||Fd(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r}),m=E.useCallback(()=>{const e=u.current,t=f();if(!e||!t||Fd(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=E.useRef(-1);il(()=>{const e=dl(m),t=null==u?void 0:u.current;if(!t)return;const r=fl(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[f,m,h]),il(()=>{m()});return dr.jsxs(E.Fragment,{children:[dr.jsx("textarea",Kr({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),dr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Kr({},zd,i,{paddingTop:0,paddingBottom:0})})]})});function Hd({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const Bd=E.createContext(void 0);function Wd(){return E.useContext(Bd)}function Vd(e){return dr.jsx(Cs,Kr({},e,{defaultTheme:Gu,themeId:Yr}))}function Ud(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Gd(e,t=!1){return e&&(Ud(e.value)&&""!==e.value||t&&Ud(e.defaultValue)&&""!==e.defaultValue)}function Yd(e){return Os("MuiInputBase",e)}const Kd=Ls("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Xd=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Jd=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Sa(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Zd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Qd=Ic("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Jd})(({theme:e,ownerState:t})=>Kr({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Kd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Kr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),ep=Ic("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Zd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Kr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Kr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Kd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Kd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),tp=dr.jsx(Vd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),rp=E.forwardRef(function(e,t){var r;const n=Oc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:C,onChange:R,onClick:A,onFocus:M,onKeyDown:P,onKeyUp:I,placeholder:k,readOnly:D,renderSuffix:T,rows:O,slotProps:L={},slots:q={},startAdornment:N,type:j="text",value:_}=n,z=Xr(n,Xd),F=null!=b.value?b.value:_,{current:$}=E.useRef(null!=F),H=E.useRef(),B=E.useCallback(e=>{},[]),W=xl(H,v,b.ref,B),[V,U]=E.useState(!1),G=Wd(),Y=Hd({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,E.useEffect(()=>{!G&&d&&V&&(U(!1),C&&C())},[G,d,V,C]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=E.useCallback(e=>{Gd(e)?K&&K():X&&X()},[K,X]);il(()=>{$&&J({value:F})},[F,J,$]);E.useEffect(()=>{J(H.current)},[]);let Z=g,Q=b;S&&"input"===Z&&(Q=Kr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Q),Z=$d);E.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=Kr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:S,size:Y.size,startAdornment:N,type:j}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return ql({root:["root",`color${Sa(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Sa(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Yd,t)})(ee),re=q.root||l.Root||Qd,ne=L.root||u.root||{},oe=q.input||l.Input||ep;return Q=Kr({},Q,null!=(r=L.input)?r:u.input),dr.jsxs(E.Fragment,{children:[!p&&tp,dr.jsxs(re,Kr({},ne,!Nl(re)&&{ownerState:Kr({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:ks(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,dr.jsx(Bd.Provider,{value:null,children:dr.jsx(oe,Kr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:w,placeholder:k,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:P,onKeyUp:I,type:j},Q,!Nl(oe)&&{as:Z,ownerState:Kr({},ee,Q.ownerState)},{ref:W,className:ks(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(Ur(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(M&&M(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(Kr({},Y,{startAdornment:N})):null]}))]})});function np(e){return Os("MuiInput",e)}const op=Kr({},Kd,Ls("MuiInput",["root","underline","input"]));function ip(e){return Os("MuiOutlinedInput",e)}const ap=Kr({},Kd,Ls("MuiOutlinedInput",["root","notchedOutline","input"]));function sp(e){return Os("MuiFilledInput",e)}const lp=Kr({},Kd,Ls("MuiFilledInput",["root","underline","input"]));var up=function(e,t){function r(r,n){return dr.jsx(jc,Kr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=jc.muiName,E.memo(E.forwardRef(r))}(dr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const cp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],dp={entering:{opacity:1},entered:{opacity:1}},pp=E.forwardRef(function(e,t){const r=Yu(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=Gc}=e,v=Xr(e,cp),y=E.useRef(null),x=xl(y,$l(a),t),S=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},w=S(d),C=S((e,t)=>{td(e);const n=rd({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)}),R=S(c),A=S(h),M=S(e=>{const t=rd({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)}),P=S(f);return dr.jsx(b,Kr({appear:i,in:l,nodeRef:y,onEnter:C,onEntered:R,onEntering:w,onExit:M,onExited:P,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>E.cloneElement(a,Kr({style:Kr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},dp[e],m,a.props.style),ref:x},t))}))});function fp(e){return Os("MuiBackdrop",e)}Ls("MuiBackdrop",["root","invisible"]);const hp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],mp=Ic("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>Kr({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),gp=E.forwardRef(function(e,t){var r,n,o;const i=Oc({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=pp,transitionDuration:g}=i,b=Xr(i,hp),v=Kr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return ql({root:["root",r&&"invisible"]},fp,t)})(v),x=null!=(r=f.root)?r:c.root;return dr.jsx(m,Kr({in:p,timeout:g},b,{children:dr.jsx(mp,Kr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:ks(y.root,s,null==x?void 0:x.className),ownerState:Kr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),bp=Ls("MuiBox",["root"]),vp=Uu(),yp=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ia("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(hs);return E.forwardRef(function(e,a){const s=Ss(r),l=Rs(e),{className:u,component:c="div"}=l,d=Xr(l,Ds);return dr.jsx(i,Kr({as:c,ref:a,className:ks(u,o?o(n):n),theme:t&&s[t]||s},d))})}({themeId:Yr,defaultTheme:vp,defaultClassName:bp.root,generateClassName:Ps.generate});function xp(e){return Os("MuiButton",e)}const Sp=Ls("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),wp=E.createContext({}),Cp=E.createContext(void 0),Ep=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Rp=e=>Kr({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ap=Ic(Ed,{shouldForwardProp:e=>Pc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Sa(r.color)}`],t[`size${Sa(r.size)}`],t[`${r.variant}Size${Sa(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Kr({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Kr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:cu(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cu(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cu(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Kr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Sp.focusVisible}`]:Kr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Sp.disabled}`]:Kr({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${cu(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Sp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sp.disabled}`]:{boxShadow:"none"}}),Mp=Ic("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Sa(r.size)}`]]}})(({ownerState:e})=>Kr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Rp(e))),Pp=Ic("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Sa(r.size)}`]]}})(({ownerState:e})=>Kr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Rp(e))),Ip=E.forwardRef(function(e,t){const r=E.useContext(wp),n=E.useContext(Cp),o=Oc({props:ol(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Xr(o,Ep),x=Kr({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Kr({},a,ql({root:["root",i,`${i}${Sa(t)}`,`size${Sa(o)}`,`${i}Size${Sa(o)}`,`color${Sa(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Sa(o)}`],endIcon:["icon","endIcon",`iconSize${Sa(o)}`]},xp,a))})(x),w=g&&dr.jsx(Mp,{className:S.startIcon,ownerState:x,children:g}),C=p&&dr.jsx(Pp,{className:S.endIcon,ownerState:x,children:p}),R=n||"";return dr.jsxs(Ap,Kr({ownerState:x,className:ks(r.className,S.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:ks(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[w,i,C]}))});function kp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Dp(e){return parseInt(fl(e).getComputedStyle(e).paddingRight,10)||0}function Tp(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&kp(e,o)})}function Op(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function Lp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=pl(e);return t.body===e?fl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Ll(pl(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Dp(n)+e}px`;const t=pl(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Dp(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=pl(n).body;else{const t=n.parentElement,r=fl(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const qp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Np(e){const t=[],r=[];return Array.from(e.querySelectorAll(qp)).forEach((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function jp(){return!0}function _p(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Np,isEnabled:a=jp,open:s}=e,l=E.useRef(!1),u=E.useRef(null),c=E.useRef(null),d=E.useRef(null),p=E.useRef(null),f=E.useRef(!1),h=E.useRef(null),m=xl($l(t),h),g=E.useRef(null);E.useEffect(()=>{s&&h.current&&(f.current=!r)},[r,s]),E.useEffect(()=>{if(!s||!h.current)return;const e=pl(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),E.useEffect(()=>{if(!s||!h.current)return;const e=pl(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return dr.jsxs(E.Fragment,{children:[dr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),dr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const zp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&kp(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Tp(t,e.mount,e.modalRef,n,!0);const o=Op(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Op(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=Lp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Op(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&kp(e.modalRef,t),Tp(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&kp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Fp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=zp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=E.useRef({}),f=E.useRef(null),h=E.useRef(null),m=xl(h,d),[g,b]=E.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},w=yl(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||pl(f.current).body;o.add(x(),e),h.current&&S()}),C=E.useCallback(()=>o.isTopModal(x()),[o]),R=yl(e=>{f.current=e,e&&(c&&C()?S():h.current&&kp(h.current,y))}),A=E.useCallback(()=>{o.remove(x(),y)},[y,o]);E.useEffect(()=>()=>{A()},[A]),E.useEffect(()=>{c?w():v&&i||A()},[c,A,v,i,w]);const M=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},P=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=jl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Kr({},r,t);return Kr({role:"presentation"},n,{onKeyDown:M(n),ref:m})},getBackdropProps:(e={})=>Kr({"aria-hidden":!0},e,{onClick:P(e),open:c}),getTransitionProps:()=>({onEnter:cl(()=>{b(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:cl(()=>{b(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:C,exited:g,hasTransition:v}}function $p(e){return Os("MuiModal",e)}Ls("MuiModal",["root","hidden","backdrop"]);const Hp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Bp=Ic("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Kr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Wp=Ic(gp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Vp=E.forwardRef(function(e,t){var r,n,o,i,a,s;const l=Oc({name:"MuiModal",props:e}),{BackdropComponent:u=Wp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:M,open:P,slotProps:I,slots:k}=l,D=Xr(l,Hp),T=Kr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:L,getTransitionProps:q,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=Fp(Kr({},T,{rootRef:t})),F=Kr({},T,{exited:_}),$=(e=>{const{open:t,exited:r,classes:n}=e;return ql({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},$p,n)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:Bp,W=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==I?void 0:I.root)?a:b.root,U=null!=(s=null==I?void 0:I.backdrop)?s:b.backdrop,G=Fl({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:ks(d,null==V?void 0:V.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),Y=Fl({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L(Kr({},e,{onClick:t=>{M&&M(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ks(null==U?void 0:U.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:F});return A||P||z&&!_?dr.jsx(Nd,{ref:N,container:h,disablePortal:S,children:dr.jsxs(B,Kr({},G,{children:[!R&&u?dr.jsx(W,Kr({},Y)):null,dr.jsx(_p,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:j,open:P,children:E.cloneElement(f,H)})]}))}):null});function Up(e){return Os("MuiDivider",e)}const Gp=Ls("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Yp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Kp=Ic("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Kr({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:cu(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Kr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Kr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Kr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Kr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Xp=Ic("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Kr({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Jp=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Xr(r,Yp),h=Kr({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return ql({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Up,n)})(h);return dr.jsx(Kp,Kr({as:a,className:ks(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?dr.jsx(Xp,{className:m.wrapper,ownerState:h,children:o}):null}))});Jp.muiSkipListHighlight=!0;const Zp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Qp=Ic(Qd,{shouldForwardProp:e=>Pc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Jd(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Kr({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${lp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${lp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lp.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lp.disabled}, .${lp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${lp.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Kr({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),ef=Ic(ep,{name:"MuiFilledInput",slot:"Input",overridesResolver:Zd})(({theme:e,ownerState:t})=>Kr({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),tf=E.forwardRef(function(e,t){var r,n,o,i;const a=Oc({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Xr(a,Zp),g=Kr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Kr({},t,ql({root:["root",!r&&"underline"],input:["input"]},sp,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?da(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Qp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:ef;return dr.jsx(rp,Kr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))});tf.muiName="Input";const rf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nf(e){return`scale(${e}, ${e**2})`}const of={entering:{opacity:1,transform:nf(1)},entered:{opacity:1,transform:"none"}},af="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),sf=E.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Gc}=e,g=Xr(e,rf),b=El(),v=E.useRef(),y=Yu(),x=E.useRef(null),S=xl(x,$l(o),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(u),R=w((e,t)=>{td(e);const{duration:r,delay:n,easing:o}=rd({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:af?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)}),A=w(l),M=w(p),P=w(e=>{const{duration:t,delay:r,easing:n}=rd({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:af?o:.666*o,delay:af?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=nf(.75),c&&c(e)}),I=w(d);return dr.jsx(m,Kr({appear:n,in:a,nodeRef:x,onEnter:R,onEntered:A,onEntering:C,onExit:P,onExited:I,onExiting:M,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>E.cloneElement(o,Kr({style:Kr({opacity:0,transform:nf(.75),visibility:"exited"!==e||a?void 0:"hidden"},of[e],f,o.props.style),ref:S},t))}))});sf.muiSupportAuto=!0;const lf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],uf=Ic(Qd,{shouldForwardProp:e=>Pc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Jd(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Kr({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${op.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${op.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${op.disabled}, .${op.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${op.disabled}:before`]:{borderBottomStyle:"dotted"}})}),cf=Ic(ep,{name:"MuiInput",slot:"Input",overridesResolver:Zd})({}),df=E.forwardRef(function(e,t){var r,n,o,i;const a=Oc({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Xr(a,lf),b=(e=>{const{classes:t,disableUnderline:r}=e;return Kr({},t,ql({root:["root",!r&&"underline"],input:["input"]},np,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?da(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:uf,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:cf;return dr.jsx(rp,Kr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))});function pf(e){return Os("MuiLink",e)}df.muiName="Input";const ff=Ls("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),hf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},mf=({theme:e,ownerState:t})=>{const r=(e=>hf[e]||e)(t.color),n=Ca(e,`palette.${r}`,!1)||t.color,o=Ca(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:cu(n,.4)},gf=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],bf=Ic(qd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Sa(r.underline)}`],"button"===r.component&&t.button]}})(({theme:e,ownerState:t})=>Kr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Kr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:mf({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ff.focusVisible}`]:{outline:"auto"}})),vf=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=Xr(r,gf),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=Ol(),[b,v]=E.useState(!1),y=xl(t,g),x=Kr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return ql({root:["root",`underline${Sa(o)}`,"button"===r&&"button",n&&"focusVisible"]},pf,t)})(x);return dr.jsx(bf,Kr({color:o,className:ks(S.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(hf).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),yf=E.createContext({});function xf(e){return Os("MuiList",e)}Ls("MuiList",["root","padding","dense","subheader"]);const Sf=["children","className","component","dense","disablePadding","subheader"],wf=Ic("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>Kr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Cf=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Xr(r,Sf),c=E.useMemo(()=>({dense:a}),[a]),d=Kr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ql({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},xf,t)})(d);return dr.jsx(yf.Provider,{value:c,children:dr.jsxs(wf,Kr({as:i,className:ks(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})});function Ef(e){return Os("MuiListItemIcon",e)}const Rf=Ls("MuiListItemIcon",["root","alignItemsFlexStart"]),Af=["className"],Mf=Ic("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Kr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Pf=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Xr(r,Af),i=Kr({},r,{alignItems:E.useContext(yf).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return ql({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Ef,r)})(i);return dr.jsx(Mf,Kr({className:ks(a.root,n),ownerState:i,ref:t},o))}),If=Ls("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),kf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Df(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Tf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Of(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Lf(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Of(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const qf=E.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Xr(e,kf),p=E.useRef(null),f=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});il(()=>{n&&p.current.focus()},[n]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${Ll(pl(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}}),[]);const h=xl(p,t);let m=-1;E.Children.forEach(i,(e,t)=>{E.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=E.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),E.cloneElement(e,t)}return e});return dr.jsx(Cf,Kr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=pl(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Lf(t,n,l,s,Df);else if("ArrowUp"===r)e.preventDefault(),Lf(t,n,l,s,Tf);else if("Home"===r)e.preventDefault(),Lf(t,null,l,s,Df);else if("End"===r)e.preventDefault(),Lf(t,null,l,s,Tf);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&Of(n,o);o.previousKeyMatched&&(l||Lf(t,n,!1,s,Df,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))});function Nf(e){return Os("MuiPopover",e)}Ls("MuiPopover",["root","paper"]);const jf=["onEntering"],_f=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],zf=["slotProps"];function Ff(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function $f(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Hf(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Bf(e){return"function"==typeof e?e():e}const Wf=Ic(Vp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vf=Ic(ad,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Uf=E.forwardRef(function(e,t){var r,n,o;const i=Oc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=sf,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:R=!1}=i,A=Xr(i.TransitionProps,jf),M=Xr(i,_f),P=null!=(r=null==y?void 0:y.paper)?r:b,I=E.useRef(),k=xl(I,P.ref),D=Kr({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:P,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:A}),T=(e=>{const{classes:t}=e;return ql({root:["root"],paper:["paper"]},Nf,t)})(D),O=E.useCallback(()=>{if("anchorPosition"===c)return u;const e=Bf(s),t=(e&&1===e.nodeType?e:pl(I.current).body).getBoundingClientRect();return{top:t.top+Ff(t,l.vertical),left:t.left+$f(t,l.horizontal)}},[s,l.horizontal,l.vertical,u,c]),L=E.useCallback(e=>({vertical:Ff(e,x.vertical),horizontal:$f(e,x.horizontal)}),[x.horizontal,x.vertical]),q=E.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:Hf(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=fl(Bf(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Hf(r)}},[s,c,O,L,m]),[N,j]=E.useState(g),_=E.useCallback(()=>{const e=I.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)},[q]);E.useEffect(()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,R,_]);E.useEffect(()=>{g&&_()}),E.useImperativeHandle(a,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),E.useEffect(()=>{if(!g)return;const e=dl(()=>{_()}),t=fl(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,_]);let z=w;"auto"!==w||S.muiSupportAuto||(z=void 0);const F=f||(s?pl(Bf(s)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:Wf,H=null!=(o=null==v?void 0:v.paper)?o:Vf,B=Fl({elementType:H,externalSlotProps:Kr({},P,{style:N?P.style:Kr({},P.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:D,className:ks(T.paper,null==P?void 0:P.className)}),W=Fl({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:M,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:ks(T.root,p)}),{slotProps:V}=W,U=Xr(W,zf);return dr.jsx($,Kr({},U,!Nl($)&&{slotProps:V,disableScrollLock:R},{children:dr.jsx(S,Kr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),_()},onExited:()=>{j(!1)},timeout:z},A,{children:dr.jsx(H,Kr({},B,{children:d}))}))}))});function Gf(e){return Os("MuiMenu",e)}Ls("MuiMenu",["root","paper","list"]);const Yf=["onEntering"],Kf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Xf={vertical:"top",horizontal:"right"},Jf={vertical:"top",horizontal:"left"},Zf=Ic(Uf,{shouldForwardProp:e=>Pc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qf=Ic(Vf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eh=Ic(qf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),th=E.forwardRef(function(e,t){var r,n;const o=Oc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Xr(o.TransitionProps,Yf),x=Xr(o,Kf),S=(()=>{const e=E.useContext(Gl);return null!=e&&e})(),w=Kr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return ql({root:["root"],paper:["paper"],list:["list"]},Gf,t)})(w),R=i&&!l&&d,A=E.useRef(null);let M=-1;E.Children.map(a,(e,t)=>{E.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===M)&&(M=t))});const P=null!=(r=b.paper)?r:Qf,I=null!=(n=v.paper)?n:p,k=Fl({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[C.root,s]}),D=Fl({elementType:P,externalSlotProps:I,ownerState:w,className:C.paper});return dr.jsx(Zf,Kr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Xf:Jf,slots:{paper:P,root:b.root},slotProps:{root:k,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:Kr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:dr.jsx(eh,Kr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===M||l),autoFocusItem:R,variant:g},u,{className:ks(C.list,u.className),children:a}))}))});function rh(e){return Os("MuiMenuItem",e)}const nh=Ls("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),oh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ih=Ic(Ed,{shouldForwardProp:e=>Pc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>Kr({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cu(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cu(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${nh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Gp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Gp.inset}`]:{marginLeft:52},[`& .${If.root}`]:{marginTop:0,marginBottom:0},[`& .${If.inset}`]:{paddingLeft:36},[`& .${Rf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Kr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Rf.root} svg`]:{fontSize:"1.25rem"}}))),ah=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Xr(r,oh),f=E.useContext(yf),h=E.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=E.useRef(null);il(()=>{n&&m.current&&m.current.focus()},[n]);const g=Kr({},r,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Kr({},a,ql({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},rh,a))})(r),v=xl(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),dr.jsx(yf.Provider,{value:h,children:dr.jsx(ih,Kr({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:ks(b.focusVisible,l),className:ks(b.root,d)},p,{ownerState:g,classes:b}))})});function sh(e){return Os("MuiNativeSelect",e)}const lh=Ls("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),uh=["className","disabled","error","IconComponent","inputRef","variant"],ch=({ownerState:e,theme:t})=>Kr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Kr({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${lh.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),dh=Ic("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Pc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${lh.multiple}`]:t.multiple}]}})(ch),ph=({ownerState:e,theme:t})=>Kr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${lh.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),fh=Ic("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Sa(r.variant)}`],r.open&&t.iconOpen]}})(ph),hh=E.forwardRef(function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Xr(e,uh),u=Kr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ql({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Sa(r)}`,i&&"iconOpen",n&&"disabled"]},sh,t)})(u);return dr.jsxs(E.Fragment,{children:[dr.jsx(dh,Kr({ownerState:u,className:ks(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:dr.jsx(fh,{as:i,ownerState:u,className:c.icon})]})});var mh;const gh=["children","classes","className","label","notched"],bh=Ic("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Pc})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),vh=Ic("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Pc})(({ownerState:e,theme:t})=>Kr({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Kr({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));const yh=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],xh=Ic(Qd,{shouldForwardProp:e=>Pc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Jd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Kr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ap.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ap.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ap.focused} .${ap.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ap.error} .${ap.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ap.disabled} .${ap.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Kr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),Sh=Ic(function(e){const{className:t,label:r,notched:n}=e,o=Xr(e,gh),i=null!=r&&""!==r,a=Kr({},e,{notched:n,withLabel:i});return dr.jsx(bh,Kr({"aria-hidden":!0,className:t,ownerState:a},o,{children:dr.jsx(vh,{ownerState:a,children:i?dr.jsx("span",{children:r}):mh||(mh=dr.jsx("span",{className:"notranslate",children:"​"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),wh=Ic(ep,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Zd})(({theme:e,ownerState:t})=>Kr({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Ch=E.forwardRef(function(e,t){var r,n,o,i,a;const s=Oc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Xr(s,yh),b=(e=>{const{classes:t}=e;return Kr({},t,ql({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ip,t))})(s),v=Wd(),y=Hd({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Kr({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(r=null!=(n=h.root)?n:l.Root)?r:xh,w=null!=(o=null!=(i=h.input)?i:l.Input)?o:wh;return dr.jsx(rp,Kr({slots:{root:S,input:w},renderSuffix:e=>dr.jsx(Sh,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=dr.jsxs(E.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:Kr({},b,{notchedOutline:null})}))});function Eh(e){return Os("MuiSelect",e)}Ch.muiName="Input";const Rh=Ls("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ah;const Mh=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Ph=Ic("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Rh.select}`]:t.select},{[`&.${Rh.select}`]:t[r.variant]},{[`&.${Rh.error}`]:t.error},{[`&.${Rh.multiple}`]:t.multiple}]}})(ch,{[`&.${Rh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ih=Ic("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Sa(r.variant)}`],r.open&&t.iconOpen]}})(ph),kh=Ic("input",{shouldForwardProp:e=>Mc(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Dh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Th(e){return null==e||"string"==typeof e&&!e.trim()}const Oh=E.forwardRef(function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:w,onFocus:C,onOpen:R,open:A,readOnly:M,renderValue:P,SelectDisplayProps:I={},tabIndex:k,value:D,variant:T="standard"}=e,O=Xr(e,Mh),[L,q]=vl({controlled:D,default:c,name:"Select"}),[N,j]=vl({controlled:A,default:u,name:"Select"}),_=E.useRef(null),z=E.useRef(null),[F,$]=E.useState(null),{current:H}=E.useRef(null!=A),[B,W]=E.useState(),V=xl(t,m),U=E.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;E.useImperativeHandle(V,()=>({focus:()=>{z.current.focus()},node:_.current,value:L}),[L]),E.useEffect(()=>{u&&N&&F&&!H&&(W(a?null:G.clientWidth),z.current.focus())},[F,a]),E.useEffect(()=>{i&&z.current.focus()},[i]),E.useEffect(()=>{if(!g)return;const e=pl(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const Y=(e,t)=>{e?R&&R(t):w&&w(t),H||(W(a?null:G.clientWidth),j(e))},K=E.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==r&&(q(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),S(o,e)}v||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Gd({value:L})||p)&&(P?Z=P(L):te=!0);const re=K.map(e=>{if(!E.isValidElement(e))return null;let t;if(v){if(!Array.isArray(L))throw new Error(Ur(2));t=L.some(t=>Dh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=Dh(L,e.props.value),t&&te&&(Q=e.props.children);return E.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=v?0===ee.length?null:ee.reduce((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e),[]):Q);let ne,oe=B;!a&&H&&F&&(oe=G.clientWidth),ne=void 0!==k?k:d?null:0;const ie=I.id||(y?`mui-component-select-${y}`:void 0),ae=Kr({},e,{variant:T,value:L,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ql({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Sa(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Eh,t)})(ae),le=Kr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=bl();return dr.jsxs(E.Fragment,{children:[dr.jsx(Ph,Kr({ref:U,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||M?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:y}}),x(e))},onFocus:C},I,{ownerState:ae,className:ks(I.className,se.select,l),id:ie,children:Th(Z)?Ah||(Ah=dr.jsx("span",{className:"notranslate",children:"​"})):Z})),dr.jsx(kh,Kr({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find(t=>t.props.value===e.target.value);void 0!==t&&(q(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),dr.jsx(Ih,{as:h,className:se.icon,ownerState:ae}),dr.jsx(th,Kr({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Kr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Kr({},b.slotProps,{paper:Kr({},le,{style:Kr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}),Lh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],qh=["root"],Nh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Pc(e)&&"variant"!==e,slot:"Root"},jh=Ic(df,Nh)(""),_h=Ic(Ch,Nh)(""),zh=Ic(tf,Nh)(""),Fh=E.forwardRef(function(e,t){const r=Oc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=up,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:w,variant:C="outlined"}=r,R=Xr(r,Lh),A=b?hh:Oh,M=Hd({props:r,muiFormControl:Wd(),states:["variant","error"]}),P=M.variant||C,I=Kr({},r,{variant:P,classes:i}),k=(e=>{const{classes:t}=e;return t})(I),D=Xr(k,qh),T=d||{standard:dr.jsx(jh,{ownerState:I}),outlined:dr.jsx(_h,{label:f,ownerState:I}),filled:dr.jsx(zh,{ownerState:I})}[P],O=xl(t,$l(T));return dr.jsx(E.Fragment,{children:E.cloneElement(T,Kr({inputComponent:A,inputProps:Kr({children:o,error:M.error,IconComponent:u,variant:P,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Kr({id:c},w)},p,{classes:p?da(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===P?{notched:!0}:{},{ref:O,className:ks(T.props.className,a,k.root)},!d&&{variant:P},R))})});Fh.muiName="Select";const $h=E.createContext();function Hh(e){return Os("MuiTable",e)}Ls("MuiTable",["root","stickyHeader"]);const Bh=["className","component","padding","size","stickyHeader"],Wh=Ic("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Kr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Kr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Vh="table",Uh=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiTable"}),{className:n,component:o=Vh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Xr(r,Bh),u=Kr({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return ql({root:["root",r&&"stickyHeader"]},Hh,t)})(u),d=E.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return dr.jsx($h.Provider,{value:d,children:dr.jsx(Wh,Kr({as:o,role:o===Vh?null:"table",ref:t,className:ks(c.root,n),ownerState:u},l))})}),Gh=E.createContext();function Yh(e){return Os("MuiTableBody",e)}Ls("MuiTableBody",["root"]);const Kh=["className","component"],Xh=Ic("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Jh={variant:"body"},Zh="tbody",Qh=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiTableBody"}),{className:n,component:o=Zh}=r,i=Xr(r,Kh),a=Kr({},r,{component:o}),s=(e=>{const{classes:t}=e;return ql({root:["root"]},Yh,t)})(a);return dr.jsx(Gh.Provider,{value:Jh,children:dr.jsx(Xh,Kr({className:ks(s.root,n),as:o,ref:t,role:o===Zh?null:"rowgroup",ownerState:a},i))})});function em(e){return Os("MuiTableCell",e)}const tm=Ls("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),rm=["align","className","component","padding","scope","size","sortDirection","variant"],nm=Ic("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Sa(r.size)}`],"normal"!==r.padding&&t[`padding${Sa(r.padding)}`],"inherit"!==r.align&&t[`align${Sa(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Kr({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?fu(cu(e.palette.divider,1),.88):du(cu(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${tm.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),om=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Xr(r,rm),p=E.useContext($h),f=E.useContext(Gh),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=c||f&&f.variant,v=Kr({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return ql({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Sa(n)}`,"normal"!==o&&`padding${Sa(o)}`,`size${Sa(i)}`]},em,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),dr.jsx(nm,Kr({as:m,ref:t,className:ks(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))});function im(e){return Os("MuiTableContainer",e)}Ls("MuiTableContainer",["root"]);const am=["className","component"],sm=Ic("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),lm=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Xr(r,am),a=Kr({},r,{component:o}),s=(e=>{const{classes:t}=e;return ql({root:["root"]},im,t)})(a);return dr.jsx(sm,Kr({ref:t,as:o,className:ks(s.root,n),ownerState:a},i))});function um(e){return Os("MuiTableHead",e)}Ls("MuiTableHead",["root"]);const cm=["className","component"],dm=Ic("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),pm={variant:"head"},fm="thead",hm=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiTableHead"}),{className:n,component:o=fm}=r,i=Xr(r,cm),a=Kr({},r,{component:o}),s=(e=>{const{classes:t}=e;return ql({root:["root"]},um,t)})(a);return dr.jsx(Gh.Provider,{value:pm,children:dr.jsx(dm,Kr({as:o,className:ks(s.root,n),ref:t,role:o===fm?null:"rowgroup",ownerState:a},i))})});function mm(e){return Os("MuiTableRow",e)}const gm=Ls("MuiTableRow",["root","selected","hover","head","footer"]),bm=["className","component","hover","selected"],vm=Ic("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${gm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${gm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cu(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),ym="tr",xm=E.forwardRef(function(e,t){const r=Oc({props:e,name:"MuiTableRow"}),{className:n,component:o=ym,hover:i=!1,selected:a=!1}=r,s=Xr(r,bm),l=E.useContext(Gh),u=Kr({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return ql({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},mm,t)})(u);return dr.jsx(vm,Kr({as:o,ref:t,className:ks(c.root,n),role:o===ym?null:"row",ownerState:u},s))});function Sm(e){return dr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:dr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function wm({fontSize:e="medium",children:t=null,className:r=""}={}){return dr.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function Cm(e={}){return dr.jsx(wm,{...e,children:dr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[dr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),dr.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function Em(e={}){return dr.jsx(wm,{fontSize:"medium",...e,children:dr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[dr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),dr.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function Rm(e){return dr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:dr.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function Am(e={}){return dr.jsx(wm,{...e,children:dr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:dr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[dr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),dr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Mm(e={}){return dr.jsx(wm,{fontSize:"medium",...e,children:dr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:dr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:dr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Pm({className:e}){return dr.jsx(wm,{fontSize:"small",className:e,children:dr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:dr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:dr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:dr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[dr.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),dr.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Im(e={}){return dr.jsx(wm,{...e,children:dr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:dr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:dr.jsx("rect",{stroke:Bt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var km=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Bt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Bt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:dr.jsx(Sm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Bt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Bt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`,borderRadius:Yt,backgroundColor:Bt.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Bt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Bt.WHITE,color:Bt.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Yt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Bt.GREYSCALE_0_15,backgroundColor:Bt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Bt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Bt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Bt.GREEN_PALE},"&:active":{backgroundColor:Bt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Bt.GREEN_PALE,boxShadow:`0 0 0 3px ${ul(Bt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Bt.BLUE_PALE},"&:active":{backgroundColor:Bt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Bt.BLUE_PALE,boxShadow:`0 0 0 3px ${ul(Bt.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Yt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Bt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Bt.GREYSCALE_0_42,backgroundColor:Bt.GREYSCALE_100_60,"&:active":{backgroundColor:Bt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Bt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Bt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Bt.PURPLE,"&.Mui-focusVisible":{borderColor:Bt.PURPLE,boxShadow:`0 0 0 3px ${ul(Bt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Bt.GREEN,"&.Mui-focusVisible":{borderColor:Bt.GREEN,boxShadow:`0 0 0 3px ${ul(Bt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Bt.BLUE,"&.Mui-focusVisible":{borderColor:Bt.BLUE,boxShadow:`0 0 0 3px ${ul(Bt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Bt.ORANGE,"&.Mui-focusVisible":{borderColor:Bt.ORANGE,boxShadow:`0 0 0 3px ${ul(Bt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Bt.RED,"&.Mui-focusVisible":{borderColor:Bt.RED,boxShadow:`0 0 0 3px ${ul(Bt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Bt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Bt.PURPLE_PALE},"&:active":{backgroundColor:Bt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Bt.PURPLE_PALE,boxShadow:`0 0 0 3px ${ul(Bt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Bt.GREEN_PALE},"&:active":{backgroundColor:Bt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Bt.GREEN_PALE,boxShadow:`0 0 0 3px ${ul(Bt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Bt.BLUE_PALE},"&:active":{backgroundColor:Bt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Bt.BLUE_PALE,boxShadow:`0 0 0 3px ${ul(Bt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Bt.ORANGE_PALE},"&:active":{backgroundColor:Bt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Bt.ORANGE_PALE,boxShadow:`0 0 0 3px ${ul(Bt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Bt.RED_PALE},"&:active":{backgroundColor:Bt.RED_DARK},"&.Mui-focusVisible":{borderColor:Bt.RED_PALE,boxShadow:`0 0 0 3px ${ul(Bt.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Bt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Bt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Yt,boxShadow:`inset 0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:dr.jsx(Rm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Wt,borderRadius:Yt,color:Bt.TEXT_PRIMARY,backgroundColor:Bt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Bt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Bt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Bt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Bt.GREYSCALE_0_05,color:Bt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Bt.GREEN,borderColor:Bt.GREEN},"&.MuiChip-outlinedInfo":{color:Bt.BLUE,borderColor:Bt.BLUE},"&.MuiChip-outlinedWarning":{color:Bt.ORANGE,borderColor:Bt.ORANGE},"&.MuiChip-outlinedError":{color:Bt.RED,borderColor:Bt.RED}},outlined:{border:`solid 1px ${Bt.GREYSCALE_0_15}`,backgroundColor:Bt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Yt,boxShadow:"none",backgroundColor:Bt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Bt.GREEN,borderColor:Bt.GREEN},outlinedSecondary:{color:Bt.BLUE,borderColor:Bt.BLUE},label:{fontFamily:Qt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:dr.jsx(Rm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:dr.jsx(Sm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Yt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Yt,fontSize:Vt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Bt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Bt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Bt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Bt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Bt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Yt,border:`solid 1px ${Bt.GREYSCALE_0_15}`,color:Bt.GREYSCALE_0_60,marginRight:0,width:Gt,height:Gt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Bt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Yt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Bt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Vt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Wt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Bt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Bt.GREYSCALE_25,fontSize:Wt,fontFamily:Qt.FONT_FAMILY,fontWeight:Jt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Bt.TEXT_PRIMARY},"&.Mui-error":{color:Bt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Bt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Xt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Bt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Xt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Vt,lineHeight:"16px",backgroundColor:Bt.WHITE,borderRadius:Yt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bt.GREYSCALE_0_05}`,borderColor:Bt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Bt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Bt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bt.RED}`,boxShadow:`0px 0px 0px 1px ${Bt.RED}, inset 0 2px 0 0 ${Bt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bt.GREYSCALE_0_10}`,borderColor:Bt.GREYSCALE_0_10,backgroundColor:Bt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Bt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Bt.GREYSCALE_0_15,borderRadius:Yt,boxShadow:`inset 0 2px 0 0 ${Bt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>dr.jsx(Sm,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Bt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Bt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Bt.GREYSCALE_0_03},"&:active":{backgroundColor:Bt.GREYSCALE_0_10},"&:focus":{backgroundColor:Bt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Bt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Bt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Bt.GREYSCALE_0_30,"&:hover":{backgroundColor:Bt.GREYSCALE_0_0,borderColor:Bt.GREYSCALE_0_15},"& ~svg":{color:Bt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Bt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Yt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Bt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Bt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Vt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Wt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Wt,fontWeight:Jt,color:Bt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Jt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Bt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Bt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:dr.jsx(Mm,{}),checkedIcon:dr.jsx(Em,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Bt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Bt.GREEN_PALE,boxShadow:`0 0 0 3px ${ul(Bt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Bt.BLUE_PALE,boxShadow:`0 0 0 3px ${ul(Bt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Bt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Bt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:dr.jsx(Im,{}),checkedIcon:dr.jsx(Cm,{}),indeterminateIcon:dr.jsx(Am,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Yt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Bt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Bt.GREYSCALE_0_55,color:Bt.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Bt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Bt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Bt.GREYSCALE_0_55,"&:hover":{color:Bt.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Bt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Bt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Vt,color:Bt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Jt},secondary:{fontSize:Wt,color:Bt.GREYSCALE_45,fontWeight:Xt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Vt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Vt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Bt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Wt,borderBottom:`solid 1px ${Bt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Vt,color:Bt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Bt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Bt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Bt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Bt.RED}}},"&.Mui-focusVisible":{backgroundColor:Bt.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Bt.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Bt.GREEN,height:"24px","&.Mui-disabled":{color:Bt.GREYSCALE_0_15}},rail:{backgroundColor:Bt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Bt.GREYSCALE_0_05}`,borderRadius:Yt,boxShadow:`inset 0px 0px 0px 1px ${Bt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Bt.GREYSCALE_0_05}`,borderRadius:Yt},thumb:{height:"16px",width:"16px",borderRadius:Yt,backgroundColor:Bt.WHITE,boxShadow:`0px 1px 2px 0px ${Bt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Bt.GREYSCALE_0_05}`,"&:hover":{borderRadius:Yt,boxShadow:`0 2px 4px 0 ${Bt.GREYSCALE_0_30}, 0 0 0 1px ${Bt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Bt.GREYSCALE_0_15}, 0 0 0 1px ${Bt.GREYSCALE_0_06}, 0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Bt.GREYSCALE_0_15}, 0 0 0 1px ${Bt.GREYSCALE_0_06}, 0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Bt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Bt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Bt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Bt.GREYSCALE_0_15},markLabel:{color:Bt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Bt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Bt.WHITE,color:Bt.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Bt.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Bt.GREEN_PALE,boxShadow:`0 0 0 3px ${ul(Bt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Bt.BLUE_PALE,boxShadow:`0 0 0 3px ${ul(Bt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Bt.GREYSCALE_0_15,borderRadius:Yt},thumb:{height:"16px",width:"16px",borderRadius:Yt,backgroundColor:Bt.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Vt,fontWeight:Jt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Bt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Bt.MISC_FOCUS_BORDER}`,backgroundColor:Bt.GREYSCALE_0_03,borderRadius:Yt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Bt.GREYSCALE_25,"&.Mui-selected":{color:Bt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Vt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Yt,"&:hover":{backgroundColor:Bt.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Bt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Bt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Yt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Bt.GREYSCALE_0_05},"&:hover":{backgroundColor:Bt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Bt.GREYSCALE_85}`,borderRight:`1px solid ${Bt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Jt,backgroundColor:Bt.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Bt.GREYSCALE_98,borderBottom:`1px solid ${Bt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Bt.GREYSCALE_85}`,borderTop:`1px solid ${Bt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Bt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Bt.GREYSCALE_0_05,"&:hover":{backgroundColor:Bt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Bt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>dr.jsx(Pm,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Bt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Vt,borderRadius:Yt,padding:"7px 16px",border:`1px solid ${Bt.GREYSCALE_0_15}`,backgroundColor:Bt.GREYSCALE_100_60,color:Bt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Bt.GREYSCALE_0_10,border:`1px solid ${Bt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Bt.GREYSCALE_0_03,border:`1px solid ${Bt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Bt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Bt.MISC_FOCUS_BORDER}`,border:`1px solid ${Bt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Bt.GREYSCALE_25,backgroundColor:Bt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Bt.GREYSCALE_0_10,border:`1px solid ${Bt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Wt,height:24,width:24,padding:7},sizeLarge:{fontSize:Ut,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Vt,borderRadius:Yt}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Bt.GREYSCALE_20},tooltip:{backgroundColor:Bt.GREYSCALE_20,fontSize:Wt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Dm=e=>({mode:"light",primary:{ultraLight:Bt.GREEN_ULTRA_LIGHT,light:Bt.GREEN_PALE,main:Bt.GREEN,dark:Bt.GREEN_DARK,extraDark:Bt.GREEN_EXTRA_DARK,contrastText:Bt.WHITE},secondary:{ultraLight:Bt.BLUE_ULTRA_LIGHT,light:Bt.BLUE_PALE,main:Bt.BLUE,dark:Bt.BLUE_DARK,extraDark:Bt.BLUE_EXTRA_DARK,contrastText:Bt.WHITE},error:{ultraLight:Bt.RED_ULTRA_LIGHT,light:Bt.RED_PALE,main:Bt.RED,dark:Bt.RED_DARK,extraDark:Bt.RED_EXTRA_DARK,contrastText:Bt.WHITE},warning:{ultraLight:Bt.ORANGE_ULTRA_LIGHT,light:Bt.ORANGE_PALE,main:Bt.ORANGE,dark:Bt.ORANGE_DARK,extraDark:Bt.ORANGE_EXTRA_DARK,contrastText:Bt.WHITE},success:{ultraLight:Bt.GREEN_ULTRA_LIGHT,light:Bt.GREEN_PALE,main:Bt.GREEN,dark:Bt.GREEN_DARK,extraDark:Bt.GREEN_EXTRA_DARK,contrastText:Bt.WHITE},info:{ultraLight:Bt.BLUE_ULTRA_LIGHT,light:Bt.BLUE_PALE,main:Bt.BLUE,dark:Bt.BLUE_DARK,extraDark:Bt.BLUE_EXTRA_DARK,contrastText:Bt.WHITE},text:{primary:Bt.TEXT_PRIMARY,secondary:Bt.TEXT_SECONDARY,disabled:Bt.GREYSCALE_0_30},action:{hover:Bt.GREYSCALE_0_03,hoverOpacity:.03,selected:Bt.GREYSCALE_0_05,selectedOpacity:.05,focus:Bt.MISC_FOCUS_BORDER},amethyst:{ultraLight:Bt.WHITE,main:Bt.PURPLE,light:Bt.PURPLE_PALE,dark:Bt.PURPLE_DARK,extraDark:Bt.GREYSCALE_0_0,contrastText:Bt.WHITE},background:{paper:Bt.WHITE,default:Bt.GREYSCALE_95},divider:Bt.GREYSCALE_0_15}),Tm={...Ht};var Om={},Lm={exports:{}},qm={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(qm);var Nm=qm.exports;!function(e){var t=Nm.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Lm);var jm=Lm.exports,_m={};function zm(e,t){return function(){return null}}function Fm(e){return e&&"object"===tu(e)&&e.constructor===Object}function $m(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Kr({},e):e;return Fm(e)&&Fm(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(Fm(t[o])&&o in e?n[o]=$m(e[o],t[o],r):n[o]=t[o])}),n}var Hm=(ra.element,function(){return null});Hm.isRequired=(ra.element.isRequired,function(){return null});var Bm=function(){return null};var Wm={exports:{}},Vm={},Um=60103,Gm=60106,Ym=60107,Km=60108,Xm=60114,Jm=60109,Zm=60110,Qm=60112,eg=60113,tg=60120,rg=60115,ng=60116,og=60121,ig=60122,ag=60117,sg=60129,lg=60131;if("function"==typeof Symbol&&Symbol.for){var ug=Symbol.for;Um=ug("react.element"),Gm=ug("react.portal"),Ym=ug("react.fragment"),Km=ug("react.strict_mode"),Xm=ug("react.profiler"),Jm=ug("react.provider"),Zm=ug("react.context"),Qm=ug("react.forward_ref"),eg=ug("react.suspense"),tg=ug("react.suspense_list"),rg=ug("react.memo"),ng=ug("react.lazy"),og=ug("react.block"),ig=ug("react.server.block"),ag=ug("react.fundamental"),sg=ug("react.debug_trace_mode"),lg=ug("react.legacy_hidden")}function cg(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Um:switch(e=e.type){case Ym:case Xm:case Km:case eg:case tg:return e;default:switch(e=e&&e.$$typeof){case Zm:case Qm:case ng:case rg:case Jm:return e;default:return t}}case Gm:return t}}}var dg=Jm,pg=Um,fg=Qm,hg=Ym,mg=ng,gg=rg,bg=Gm,vg=Xm,yg=Km,xg=eg;Vm.ContextConsumer=Zm,Vm.ContextProvider=dg,Vm.Element=pg,Vm.ForwardRef=fg,Vm.Fragment=hg,Vm.Lazy=mg,Vm.Memo=gg,Vm.Portal=bg,Vm.Profiler=vg,Vm.StrictMode=yg,Vm.Suspense=xg,Vm.isAsyncMode=function(){return!1},Vm.isConcurrentMode=function(){return!1},Vm.isContextConsumer=function(e){return cg(e)===Zm},Vm.isContextProvider=function(e){return cg(e)===Jm},Vm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Um},Vm.isForwardRef=function(e){return cg(e)===Qm},Vm.isFragment=function(e){return cg(e)===Ym},Vm.isLazy=function(e){return cg(e)===ng},Vm.isMemo=function(e){return cg(e)===rg},Vm.isPortal=function(e){return cg(e)===Gm},Vm.isProfiler=function(e){return cg(e)===Xm},Vm.isStrictMode=function(e){return cg(e)===Km},Vm.isSuspense=function(e){return cg(e)===eg},Vm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ym||e===Xm||e===sg||e===Km||e===eg||e===tg||e===lg||"object"==typeof e&&null!==e&&(e.$$typeof===ng||e.$$typeof===rg||e.$$typeof===Jm||e.$$typeof===Zm||e.$$typeof===Qm||e.$$typeof===ag||e.$$typeof===og||e[0]===ig)},Vm.typeOf=cg,Wm.exports=Vm;var Sg=Wm.exports,wg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Cg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(wg);return t&&t[1]||""}(e)||t}function Eg(e,t,r){var n=Cg(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var Rg="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Ag=ra.oneOfType([ra.func,ra.object]),Mg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:zm,deepmerge:$m,elementAcceptingRef:Hm,elementTypeAcceptingRef:Bm,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Cg(e,"Component");if("object"===tu(e))switch(e.$$typeof){case Sg.ForwardRef:return Eg(e,e.render,"ForwardRef");case Sg.Memo:return Eg(e,e.type,"memo");default:return}}},ponyfillGlobal:Rg,refType:Ag}),Pg=tr(Mg);Object.defineProperty(_m,"__esModule",{value:!0}),_m.hexToRgb=Dg,_m.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=Og(e),r=t.values;return"#".concat(r.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},_m.hslToRgb=Tg,_m.decomposeColor=Og,_m.recomposeColor=Lg,_m.getContrastRatio=function(e,t){var r=qg(e),n=qg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},_m.getLuminance=qg,_m.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return qg(e)>.5?jg(e,t):_g(e,t)},_m.fade=function(e,t){return Ng(e,t)},_m.alpha=Ng,_m.darken=jg,_m.lighten=_g;var Ig=Pg;function kg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function Dg(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function Tg(e){var t=(e=Og(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Lg({type:s,values:l})}function Og(e){if(e.type)return e;if("#"===e.charAt(0))return Og(Dg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,Ig.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map(function(e){return parseFloat(e)})}}function Lg(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function qg(e){var t="hsl"===(e=Og(e)).type?Og(Tg(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ng(e,t){return e=Og(e),t=kg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Lg(e)}function jg(e,t){if(e=Og(e),t=kg(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return Lg(e)}function _g(e,t){if(e=Og(e),t=kg(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return Lg(e)}var zg,Fg,$g,Hg={},Bg={exports:{}},Wg={exports:{}},Vg={exports:{}};function Ug(){return zg||(zg=1,function(e){var t=Nm.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Vg)),Vg.exports}function Gg(){return Fg||(Fg=1,function(e){var t=Nm.default,r=Ug();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Wg)),Wg.exports}function Yg(){return $g||($g=1,function(e){var t=Gg();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Bg)),Bg.exports}var Kg,Xg={exports:{}};function Jg(){return Kg||(Kg=1,function(e){var t=tc();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Xg)),Xg.exports}var Zg,Qg={};var eb,tb={};var rb,nb={},ob={};var ib,ab={};var sb,lb={};var ub,cb={};var db,pb={};var fb,hb={};var mb,gb={};var bb,vb,yb={};function xb(){if(vb)return nb;vb=1;var e=au;Object.defineProperty(nb,"__esModule",{value:!0}),nb.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,A=e.success,M=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,P=e.type,I=void 0===P?"light":P,k=e.contrastThreshold,D=void 0===k?3:k,T=e.tonalOffset,O=void 0===T?.2:T,L=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=q(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:I,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(M),grey:i.default,contrastThreshold:D,getContrastText:q,augmentColor:N,tonalOffset:O},j[I]),L);return _},nb.dark=nb.light=void 0;var t=e(Zu()),r=e(Jg()),n=Pg,o=e(function(){if(rb)return ob;rb=1,Object.defineProperty(ob,"__esModule",{value:!0}),ob.default=void 0;var e={black:"#000",white:"#fff"};return ob.default=e,ob}()),i=e(function(){if(ib)return ab;ib=1,Object.defineProperty(ab,"__esModule",{value:!0}),ab.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return ab.default=e,ab}()),a=e(function(){if(sb)return lb;sb=1,Object.defineProperty(lb,"__esModule",{value:!0}),lb.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return lb.default=e,lb}()),s=e(function(){if(ub)return cb;ub=1,Object.defineProperty(cb,"__esModule",{value:!0}),cb.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return cb.default=e,cb}()),l=e(function(){if(db)return pb;db=1,Object.defineProperty(pb,"__esModule",{value:!0}),pb.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return pb.default=e,pb}()),u=e(function(){if(fb)return hb;fb=1,Object.defineProperty(hb,"__esModule",{value:!0}),hb.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return hb.default=e,hb}()),c=e(function(){if(mb)return gb;mb=1,Object.defineProperty(gb,"__esModule",{value:!0}),gb.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return gb.default=e,gb}()),d=e(function(){if(bb)return yb;bb=1,Object.defineProperty(yb,"__esModule",{value:!0}),yb.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return yb.default=e,yb}()),p=_m,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};nb.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return nb.dark=h,nb}var Sb,wb={};var Cb,Eb={};var Rb,Ab={};var Mb={};function Pb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ib(e,t){if(e){if("string"==typeof e)return Pb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pb(e,t):void 0}}function kb(e){return function(e){if(Array.isArray(e))return Pb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ib(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Db(e,t){return t?$m(e,t,{clone:!1}):e}var Tb={xs:0,sm:600,md:960,lg:1280,xl:1920},Ob={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Tb[e],"px)")}};function Lb(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Ob;return t.reduce(function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e},{})}if("object"===tu(t)){var o=e.theme.breakpoints||Ob;return Object.keys(t).reduce(function(e,n){return e[o.up(n)]=r(t[n]),e},{})}return r(t)}function qb(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function Nb(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=qb(e.theme,o)||{};return Lb(e,r,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=qb(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=ru(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)})};return a.propTypes={},a.filterProps=[t],a}function jb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce(function(t,r){var n=r(e);return n?Db(t,n):t},{})};return n.propTypes={},n.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),n}function _b(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var zb=Nb({prop:"border",themeKey:"borders",transform:_b}),Fb=Nb({prop:"borderTop",themeKey:"borders",transform:_b}),$b=Nb({prop:"borderRight",themeKey:"borders",transform:_b}),Hb=Nb({prop:"borderBottom",themeKey:"borders",transform:_b}),Bb=Nb({prop:"borderLeft",themeKey:"borders",transform:_b}),Wb=Nb({prop:"borderColor",themeKey:"palette"}),Vb=Nb({prop:"borderRadius",themeKey:"shape"}),Ub=jb(zb,Fb,$b,Hb,Bb,Wb,Vb);function Gb(e,t){var r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}function Yb(e){var t=function(t){var r=e(t);return t.css?Kr({},Db(r,e(Kr({theme:t.theme},t.css))),Gb(t.css,[e.filterProps])):t.sx?Kr({},Db(r,e(Kr({theme:t.theme},t.sx))),Gb(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(kb(e.filterProps)),t}var Kb=jb(Nb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Nb({prop:"display"}),Nb({prop:"overflow"}),Nb({prop:"textOverflow"}),Nb({prop:"visibility"}),Nb({prop:"whiteSpace"})),Xb=Nb({prop:"flexBasis"}),Jb=Nb({prop:"flexDirection"}),Zb=Nb({prop:"flexWrap"}),Qb=Nb({prop:"justifyContent"}),ev=Nb({prop:"alignItems"}),tv=Nb({prop:"alignContent"}),rv=Nb({prop:"order"}),nv=Nb({prop:"flex"}),ov=Nb({prop:"flexGrow"}),iv=Nb({prop:"flexShrink"}),av=Nb({prop:"alignSelf"}),sv=Nb({prop:"justifyItems"}),lv=Nb({prop:"justifySelf"}),uv=jb(Xb,Jb,Zb,Qb,ev,tv,rv,nv,ov,iv,av,sv,lv),cv=Nb({prop:"gridGap"}),dv=Nb({prop:"gridColumnGap"}),pv=Nb({prop:"gridRowGap"}),fv=Nb({prop:"gridColumn"}),hv=Nb({prop:"gridRow"}),mv=Nb({prop:"gridAutoFlow"}),gv=Nb({prop:"gridAutoColumns"}),bv=Nb({prop:"gridAutoRows"}),vv=Nb({prop:"gridTemplateColumns"}),yv=Nb({prop:"gridTemplateRows"}),xv=Nb({prop:"gridTemplateAreas"}),Sv=Nb({prop:"gridArea"}),wv=jb(cv,dv,pv,fv,hv,mv,gv,bv,vv,yv,xv,Sv),Cv=Nb({prop:"color",themeKey:"palette"}),Ev=Nb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Rv=jb(Cv,Ev),Av=Nb({prop:"position"}),Mv=Nb({prop:"zIndex",themeKey:"zIndex"}),Pv=Nb({prop:"top"}),Iv=Nb({prop:"right"}),kv=Nb({prop:"bottom"}),Dv=Nb({prop:"left"}),Tv=jb(Av,Mv,Pv,Iv,kv,Dv),Ov=Nb({prop:"boxShadow",themeKey:"shadows"});function Lv(e){return e<=1?"".concat(100*e,"%"):e}var qv=Nb({prop:"width",transform:Lv}),Nv=Nb({prop:"maxWidth",transform:Lv}),jv=Nb({prop:"minWidth",transform:Lv}),_v=Nb({prop:"height",transform:Lv}),zv=Nb({prop:"maxHeight",transform:Lv}),Fv=Nb({prop:"minHeight",transform:Lv}),$v=Nb({prop:"size",cssProperty:"width",transform:Lv}),Hv=Nb({prop:"size",cssProperty:"height",transform:Lv}),Bv=Nb({prop:"boxSizing"}),Wv=jb(qv,Nv,jv,_v,zv,Fv,Bv);function Vv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Ib(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Uv={m:"margin",p:"padding"},Gv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kv=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){if(e.length>2){if(!Yv[e])return[e];e=Yv[e]}var t=Vv(e.split(""),2),r=t[0],n=t[1],o=Uv[r],i=Gv[n]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),Xv=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Jv(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Zv(e,t){return function(r){return e.reduce(function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e},{})}}function Qv(e){var t=Jv(e.theme);return Object.keys(e).map(function(r){if(-1===Xv.indexOf(r))return null;var n=Zv(Kv(r),t),o=e[r];return Lb(e,o,n)}).reduce(Db,{})}Qv.propTypes={},Qv.filterProps=Xv;var ey,ty=Nb({prop:"fontFamily",themeKey:"typography"}),ry=Nb({prop:"fontSize",themeKey:"typography"}),ny=Nb({prop:"fontStyle",themeKey:"typography"}),oy=Nb({prop:"fontWeight",themeKey:"typography"}),iy=Nb({prop:"letterSpacing"}),ay=Nb({prop:"lineHeight"}),sy=Nb({prop:"textAlign"}),ly=jb(ty,ry,ny,oy,iy,ay,sy),uy=Object.freeze({__proto__:null,alignContent:tv,alignItems:ev,alignSelf:av,bgcolor:Ev,border:zb,borderBottom:Hb,borderColor:Wb,borderLeft:Bb,borderRadius:Vb,borderRight:$b,borderTop:Fb,borders:Ub,bottom:kv,boxSizing:Bv,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Ob,o=n.keys.reduce(function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(Kr({theme:t.theme},t[o]))),r},null);return Db(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(kb(e.filterProps)),t},color:Cv,compose:jb,createUnarySpacing:Jv,css:function(e){return Yb(e)},display:Kb,flex:nv,flexBasis:Xb,flexDirection:Jb,flexGrow:ov,flexShrink:iv,flexWrap:Zb,flexbox:uv,fontFamily:ty,fontSize:ry,fontStyle:ny,fontWeight:oy,grid:wv,gridArea:Sv,gridAutoColumns:gv,gridAutoFlow:mv,gridAutoRows:bv,gridColumn:fv,gridColumnGap:dv,gridGap:cv,gridRow:hv,gridRowGap:pv,gridTemplateAreas:xv,gridTemplateColumns:vv,gridTemplateRows:yv,height:_v,justifyContent:Qb,justifyItems:sv,justifySelf:lv,left:Dv,letterSpacing:iy,lineHeight:ay,maxHeight:zv,maxWidth:Nv,minHeight:Fv,minWidth:jv,order:rv,palette:Rv,position:Av,positions:Tv,right:Iv,shadows:Ov,sizeHeight:Hv,sizeWidth:$v,sizing:Wv,spacing:Qv,style:Nb,styleFunctionSx:Yb,textAlign:sy,top:Pv,typography:ly,width:qv,zIndex:Mv}),cy=tr(uy);var dy,py={};function fy(){if(dy)return py;dy=1;var e=au;Object.defineProperty(py,"__esModule",{value:!0}),py.default=py.duration=py.easing=void 0;var t=e(Jg()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};py.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}py.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return py.default=i,py}var hy,my,gy={};function by(){if(my)return Hg;my=1;var e=au;Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.createMuiTheme=function(){return p.apply(void 0,arguments)},Hg.default=void 0,e(Yg());var t=e(Jg()),r=Pg,n=e(function(){if(Zg)return Qg;Zg=1;var e=au;Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},Qg.keys=void 0;var t=e(Zu()),r=e(Jg()),n=["xs","sm","md","lg","xl"];return Qg.keys=n,Qg}()),o=e(function(){if(eb)return tb;eb=1;var e=au;Object.defineProperty(tb,"__esModule",{value:!0}),tb.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(Yg()),r=e(Zu());return tb}()),i=e(xb()),a=e(function(){if(Sb)return wb;Sb=1;var e=au;Object.defineProperty(wb,"__esModule",{value:!0}),wb.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),M=f/14,P=R||function(e){return"".concat(e/C*M,"rem")},I=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:P(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},k={h1:I(m,96,1.167,-1.5),h2:I(m,60,1.2,-.5),h3:I(b,48,1.167,0),h4:I(b,34,1.235,.25),h5:I(b,24,1.334,0),h6:I(y,20,1.6,.15),subtitle1:I(b,16,1.75,.15),subtitle2:I(y,14,1.57,.1),body1:I(b,16,1.5,.15),body2:I(b,14,1.43,.15),button:I(y,14,1.75,.4,a),caption:I(b,12,1.66,.4),overline:I(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:P,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},k),A,{clone:!1})};var t=e(Zu()),r=e(Jg()),n=Pg;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return wb}()),s=e(function(){if(Cb)return Eb;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}Cb=1,Object.defineProperty(Eb,"__esModule",{value:!0}),Eb.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return Eb.default=t,Eb}()),l=e(function(){if(Rb)return Ab;Rb=1,Object.defineProperty(Ab,"__esModule",{value:!0}),Ab.default=void 0;var e={borderRadius:4};return Ab.default=e,Ab}()),u=e(function(){if(ey)return Mb;ey=1,Object.defineProperty(Mb,"__esModule",{value:!0}),Mb.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=cy;return Mb}()),c=e(fy()),d=e(function(){if(hy)return gy;hy=1,Object.defineProperty(gy,"__esModule",{value:!0}),gy.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return gy.default=e,gy}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,M=new Array(A>1?A-1:0),P=1;P<A;P++)M[P-1]=arguments[P];return R=M.reduce(function(e,t){return(0,r.deepmerge)(e,t)},R)}var f=p;return Hg.default=f,Hg}var vy,yy={};var xy={},Sy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",wy=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Cy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==wy.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[Sy]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function Ey(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var Ry="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},Ay="object"===("undefined"==typeof window?"undefined":Ry(window))&&"object"===("undefined"==typeof document?"undefined":Ry(document))&&9===document.nodeType;function My(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ru(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Py={}.constructor;function Iy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Iy);if(e.constructor!==Py)return e;var t={};for(var r in e)t[r]=Iy(e[r]);return t}function ky(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=Iy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var Dy=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},Ty=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=Dy(e[r]," ");else t=Dy(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Oy(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Ly(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function qy(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=Oy(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=Ly(p+":"+u+Ty(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Ly(h+":"+u+Ty(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=Ly(g+":"+u+Ty(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Ly(""+e+u+"{"+n,--i)+Ly("}",i)):n}var Ny=/([[\].#*$><+~=|^:(),"'`\s])/g,jy="undefined"!=typeof CSS&&CSS.escape,_y=function(e){return jy?jy(e):e.replace(Ny,"\\$1")},zy=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Fy=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Kc(Kc(o)),s),o.selectorText="."+_y(o.id)),o}zc(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=Ty(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Kr({},e,{allowEmpty:!0}):e;return qy(this.selectorText,this.style,r)},My(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(zy),$y={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Fy(e,t,r)}},Hy={indent:1,children:!0},By=/@([\w-]+)/,Wy=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(By);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new hx(Kr({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=Hy);var t=Oy(e).linebreak;if(null==e.indent&&(e.indent=Hy.indent),null==e.children&&(e.children=Hy.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Vy=/@container|@media|@supports\s+/,Uy={onCreateRule:function(e,t,r){return Vy.test(e)?new Wy(e,t,r):null}},Gy={indent:1,children:!0},Yy=/@keyframes\s+([\w-]+)/,Ky=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Yy);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:_y(a(this,i)),this.rules=new hx(Kr({},r,{parent:this})),t)this.rules.add(s,t[s],Kr({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Gy);var t=Oy(e).linebreak;if(null==e.indent&&(e.indent=Gy.indent),null==e.children&&(e.children=Gy.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Xy=/@keyframes\s+/,Jy=/\$([\w-]+)/g,Zy=function(e,t){return"string"==typeof e?e.replace(Jy,function(e,r){return r in t?t[r]:e}):e},Qy=function(e,t,r){var n=e[t],o=Zy(n,r);o!==n&&(e[t]=o)},ex={onCreateRule:function(e,t,r){return"string"==typeof e&&Xy.test(e)?new Ky(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Qy(e,"animation-name",r.keyframes),"animation"in e&&Qy(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Zy(e,n.keyframes);default:return e}}},tx=function(e){function t(){return e.apply(this,arguments)||this}return zc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Kr({},e,{allowEmpty:!0}):e;return qy(this.key,this.style,r)},t}(zy),rx={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new tx(e,t,r):null}},nx=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=Oy(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=qy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return qy(this.at,this.style,e)},e}(),ox=/@font-face/,ix={onCreateRule:function(e,t,r){return ox.test(e)?new nx(e,t,r):null}},ax=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return qy(this.key,this.style,e)},e}(),sx={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new ax(e,t,r):null}},lx=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ux={"@charset":!0,"@import":!0,"@namespace":!0},cx={onCreateRule:function(e,t,r){return e in ux?new lx(e,t,r):null}},dx=[$y,Uy,ex,rx,ix,sx,cx],px={process:!0},fx={force:!0,process:!0},hx=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=Kr({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+_y(this.classes[d]));var p=ky(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=Kr({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Fy?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ky&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Fy?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ky&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=px);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,fx)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,fx)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=Oy(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),mx=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Kr({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new hx(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),gx=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),bx=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Xr(t,["attached"]),o=Oy(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},My(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),vx=new bx,yx="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),xx="2f1acc6c3a606b082e5eef5e54414ffb";null==yx[xx]&&(yx[xx]=0);var Sx=yx[xx]++,wx=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+Sx+o+t:i+r.key+"-"+Sx+(o?"-"+o:"")+"-"+t}},Cx=function(e){var t;return function(){return t||(t=e()),t}},Ex=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Rx=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=Ty(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Ax=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Mx=function(e,t){return e.selectorText=t,e.selectorText===t},Px=Cx(function(){return document.querySelector("head")});function Ix(e){var t=vx.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=Px(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var kx=Cx(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Dx=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Tx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Ox=function(){function e(e){this.getPropertyValue=Ex,this.setProperty=Rx,this.removeProperty=Ax,this.setSelector=Mx,this.hasInsertedRules=!1,this.cssRules=[],e&&vx.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=kx();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=Ix(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Px().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=Tx(r,t);if(!1===(o=Dx(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=Tx(r,t),l=Dx(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof mx&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Lx=0,qx=function(){function e(e){this.id=Lx++,this.version="10.10.0",this.plugins=new gx,this.options={id:{minify:!1},createGenerateId:wx,Renderer:Ay?Ox:null,plugins:[]},this.generateId=wx({minify:!1});for(var t=0;t<dx.length;t++)this.plugins.use(dx[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Kr({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===vx.index?0:vx.index+1);var n=new mx(e,Kr({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),vx.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=Kr({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=ky(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){e.plugins.use(t)}),this},e}(),Nx=function(e){return new qx(e)},jx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function _x(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=_x(n);i&&(t||(t={}),t[r]=i)}}return t}
91
91
  /**
92
92
  * A better abstraction over CSS.
93
93
  *
94
94
  * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
95
95
  * @website https://github.com/cssinjs/jss
96
96
  * @license MIT
97
- */Ix();var Tx=Date.now(),Ox="fnValues"+Tx,Lx="fnStyle"+ ++Tx,qx="@global",Nx="@global ",_x=function(){function e(e,t,r){for(var n in this.type="global",this.at=qx,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new sx(Kr({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),jx=function(){function e(e,t,r){this.type="global",this.at=qx,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,Kr({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),zx=/\s*,\s*/g;function Fx(e,t){for(var r=e.split(zx),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function $x(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===qx)return new _x(e,t,r);if("@"===e[0]&&e.substr(0,8)===Nx)return new jx(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[qx]:null;if(o){for(var i in o)t.addRule(i,o[i],Kr({},r,{selector:Fx(i,e.selector)}));delete n[qx]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===qx){var i=Fx(o.substr(7),e.selector);t.addRule(i,n[o],Kr({},r,{selector:i})),delete n[o]}}(e,t))}}}var Hx=/\s*,\s*/g,Bx=/&/g,Wx=/\$([\w-]+)/g;function Vx(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(Hx),n=e.split(Hx),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Bx,a):a+" "+l}return o}function r(e,t,r){if(r)return Kr({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=Kr({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(Wx,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],Kr({},a,{selector:f})):u.addRule(h,n[c],Kr({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Ux=/[A-Z]/g,Gx=/^ms-/,Yx={};function Kx(e){return"-"+e.toLowerCase()}function Xx(e){if(Yx.hasOwnProperty(e))return Yx[e];var t=e.replace(Ux,Kx);return Yx[e]=Gx.test(t)?"-"+t:t}function Jx(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Xx(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Jx):t.fallbacks=Jx(e.fallbacks)),t}var Zx=kx&&CSS?CSS.px:"px",Qx=kx&&CSS?CSS.ms:"ms",eS=kx&&CSS?CSS.percent:"%";function tS(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var rS=tS({"animation-delay":Qx,"animation-duration":Qx,"background-position":Zx,"background-position-x":Zx,"background-position-y":Zx,"background-size":Zx,border:Zx,"border-bottom":Zx,"border-bottom-left-radius":Zx,"border-bottom-right-radius":Zx,"border-bottom-width":Zx,"border-left":Zx,"border-left-width":Zx,"border-radius":Zx,"border-right":Zx,"border-right-width":Zx,"border-top":Zx,"border-top-left-radius":Zx,"border-top-right-radius":Zx,"border-top-width":Zx,"border-width":Zx,"border-block":Zx,"border-block-end":Zx,"border-block-end-width":Zx,"border-block-start":Zx,"border-block-start-width":Zx,"border-block-width":Zx,"border-inline":Zx,"border-inline-end":Zx,"border-inline-end-width":Zx,"border-inline-start":Zx,"border-inline-start-width":Zx,"border-inline-width":Zx,"border-start-start-radius":Zx,"border-start-end-radius":Zx,"border-end-start-radius":Zx,"border-end-end-radius":Zx,margin:Zx,"margin-bottom":Zx,"margin-left":Zx,"margin-right":Zx,"margin-top":Zx,"margin-block":Zx,"margin-block-end":Zx,"margin-block-start":Zx,"margin-inline":Zx,"margin-inline-end":Zx,"margin-inline-start":Zx,padding:Zx,"padding-bottom":Zx,"padding-left":Zx,"padding-right":Zx,"padding-top":Zx,"padding-block":Zx,"padding-block-end":Zx,"padding-block-start":Zx,"padding-inline":Zx,"padding-inline-end":Zx,"padding-inline-start":Zx,"mask-position-x":Zx,"mask-position-y":Zx,"mask-size":Zx,height:Zx,width:Zx,"min-height":Zx,"max-height":Zx,"min-width":Zx,"max-width":Zx,bottom:Zx,left:Zx,top:Zx,right:Zx,inset:Zx,"inset-block":Zx,"inset-block-end":Zx,"inset-block-start":Zx,"inset-inline":Zx,"inset-inline-end":Zx,"inset-inline-start":Zx,"box-shadow":Zx,"text-shadow":Zx,"column-gap":Zx,"column-rule":Zx,"column-rule-width":Zx,"column-width":Zx,"font-size":Zx,"font-size-delta":Zx,"letter-spacing":Zx,"text-decoration-thickness":Zx,"text-indent":Zx,"text-stroke":Zx,"text-stroke-width":Zx,"word-spacing":Zx,motion:Zx,"motion-offset":Zx,outline:Zx,"outline-offset":Zx,"outline-width":Zx,perspective:Zx,"perspective-origin-x":eS,"perspective-origin-y":eS,"transform-origin":eS,"transform-origin-x":eS,"transform-origin-y":eS,"transform-origin-z":eS,"transition-delay":Qx,"transition-duration":Qx,"vertical-align":Zx,"flex-basis":Zx,"shape-margin":Zx,size:Zx,gap:Zx,grid:Zx,"grid-gap":Zx,"row-gap":Zx,"grid-row-gap":Zx,"grid-column-gap":Zx,"grid-template-rows":Zx,"grid-template-columns":Zx,"grid-auto-rows":Zx,"grid-auto-columns":Zx,"box-shadow-x":Zx,"box-shadow-y":Zx,"box-shadow-blur":Zx,"box-shadow-spread":Zx,"font-line-height":Zx,"text-shadow-x":Zx,"text-shadow-y":Zx,"text-shadow-blur":Zx});function nS(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=nS(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=nS(o,t[o],r);else for(var i in t)t[i]=nS(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||rS[e];return!a||0===t&&a===Zx?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function oS(e){void 0===e&&(e={});var t=tS(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=nS(n,e[n],t);return e},onChangeValue:function(e,r){return nS(r,e,t)}}}var iS="",aS="",sS="",lS="",uS=yy&&"ontouchstart"in document.documentElement;if(yy){var cS={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},dS=document.createElement("p").style;for(var pS in cS)if(pS+"Transform"in dS){iS=pS,aS=cS[pS];break}"Webkit"===iS&&"msHyphens"in dS&&(iS="ms",aS=cS.ms,lS="edge"),"Webkit"===iS&&"-apple-trailing-word"in dS&&(sS="apple")}var fS=iS,hS=aS,mS=sS,gS=lS,vS=uS;var bS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===fS?"-webkit-"+e:hS+e)}},yS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===fS?hS+"print-"+e:e)}},xS=/[-\s]+(.)?/g;function SS(e,t){return t?t.toUpperCase():""}function wS(e){return e.replace(xS,SS)}function CS(e){return wS("-"+e)}var ES,RS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===fS){var r="mask-image";if(wS(r)in t)return e;if(fS+CS(r)in t)return hS+e}return e}},AS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==mS||vS?e:hS+e)}},PS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:hS+e)}},MS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:hS+e)}},IS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===fS||"ms"===fS&&"edge"!==gS?hS+e:e)}},kS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===fS||"ms"===fS||"apple"===mS?hS+e:e)}},DS={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===fS?"WebkitColumn"+CS(e)in t&&hS+"column-"+e:"Moz"===fS&&("page"+CS(e)in t&&"page-"+e))}},TS={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===fS)return e;var r=e.replace("-inline","");return fS+CS(r)in t&&hS+r}},OS={supportedProperty:function(e,t){return wS(e)in t&&e}},LS={supportedProperty:function(e,t){var r=CS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:fS+r in t?hS+e:"Webkit"!==fS&&"Webkit"+r in t&&"-webkit-"+e}},qS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===fS?""+hS+e:e)}},NS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===fS?hS+"scroll-chaining":e)}},_S={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},jS={supportedProperty:function(e,t){var r=_S[e];return!!r&&(fS+CS(r)in t&&hS+r)}},zS={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},FS=Object.keys(zS),$S=function(e){return hS+e},HS={supportedProperty:function(e,t,r){var n=r.multiple;if(FS.indexOf(e)>-1){var o=zS[e];if(!Array.isArray(o))return fS+CS(o)in t&&hS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(fS+CS(o[0])in t))return!1;return o.map($S)}return!1}},BS=[bS,yS,RS,AS,PS,MS,IS,kS,DS,TS,OS,LS,qS,NS,jS,HS],WS=BS.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),VS=BS.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Cv(t.noPrefill)),e},[]),US={};if(yy){ES=document.createElement("p");var GS=window.getComputedStyle(document.documentElement,"");for(var YS in GS)isNaN(YS)||(US[GS[YS]]=GS[YS]);VS.forEach(function(e){return delete US[e]})}function KS(e,t){if(void 0===t&&(t={}),!ES)return e;if(null!=US[e])return US[e];"transition"!==e&&"transform"!==e||(t[e]=e in ES.style);for(var r=0;r<WS.length&&(US[e]=WS[r](e,ES.style,t),!US[e]);r++);try{ES.style[e]=""}catch(e){return!1}return US[e]}var XS,JS={},ZS={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},QS=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ew(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?KS(t):", "+KS(r);return n||(t||r)}function tw(e,t){var r=t;if(!XS||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=JS[n])return JS[n];try{XS.style[e]=r}catch(e){return JS[n]=!1,!1}if(ZS[e])r=r.replace(QS,ew);else if(""===XS.style[e]&&("-ms-flex"===(r=hS+r)&&(XS.style[e]="-ms-flexbox"),XS.style[e]=r,""===XS.style[e]))return JS[n]=!1,!1;return XS.style[e]="",JS[n]=r,JS[n]}function rw(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=KS(r);i&&i!==r&&(o=!0);var a=!1,s=tw(i,Ry(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===fS?e:"@"+hS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return tw(t,Ry(e))||e}}}function nw(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}function ow(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=Cy(e,{},r);return n[Lx]=t,n},onProcessStyle:function(e,t){if(Ox in t||Lx in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[Ox]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Lx];i&&(o.style=i(e)||{});var a=o[Ox];if(a)for(var s in a)o.prop(s,a[s](e),n)}},$x(),Vx(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Jx(e[t]);return e}return Jx(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Xx(t);return t===n?e:(r.prop(n,e),null)}},oS(),"undefined"==typeof window?null:rw(),nw()]}}function iw(e,t){if(null==e)return{};var r,n,o=Xr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function aw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=Kr({},t);return Object.keys(r).forEach(function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))}),n}yy&&(XS=document.createElement("p"));var sw=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},lw=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},uw=function(e,t,r){e.get(t).delete(r)},cw=w.createContext(null);function dw(){return w.useContext(cw)}var pw,fw=Ix(ow()),hw=gy(),mw=new Map,gw={disableGeneration:!1,generateClassName:hw,jss:fw,sheetsCache:null,sheetsManager:mw,sheetsRegistry:null},vw=w.createContext(gw);function bw(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=iw(e,["children","injectFirst","disableGeneration"]),s=Kr({},w.useContext(vw),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!pw){var l=document.head;pw=document.createComment("mui-inject-first"),l.insertBefore(pw,l.firstChild)}s.jss=Ix({plugins:ow().plugins,insertionPoint:pw})}return w.createElement(vw.Provider,{value:s},t)}var yw=-1e9;var xw={};function Sw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=lw(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},sw(o.sheetsManager,i,n,s));var l=Kr({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=lw(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,Kr({link:!1},l))).attach(),o.sheetsCache&&sw(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Dx(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Kr({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=aw({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function ww(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?xw:i,s=iw(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=Kr({},o);return Object.keys(i).forEach(function(e){a[e]=Lm(a[e],i[e])}),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:yw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=dw()||a,n=Kr({},w.useContext(vw),s),i=w.useRef(),u=w.useRef();!function(e,t){var r,n=w.useRef([]),o=w.useMemo(function(){return{}},t);n.current!==o&&(n.current=o,r=e()),w.useEffect(function(){return function(){r&&r()}},[o])}(function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return Sw(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=lw(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(uw(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,l]),w.useEffect(function(){u.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(i.current,e),u.current=!0});var c=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=aw({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var Cw=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return xy(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new cx;var r=gy();return w.createElement(bw,Kr({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return w.createElement("style",Kr({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function Ew(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Ew(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Rw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Ew(e))&&(n&&(n+=" "),n+=t);return n}var Aw={exports:{}},Pw={},Mw="function"==typeof Symbol&&Symbol.for,Iw=Mw?Symbol.for("react.element"):60103,kw=Mw?Symbol.for("react.portal"):60106,Dw=Mw?Symbol.for("react.fragment"):60107,Tw=Mw?Symbol.for("react.strict_mode"):60108,Ow=Mw?Symbol.for("react.profiler"):60114,Lw=Mw?Symbol.for("react.provider"):60109,qw=Mw?Symbol.for("react.context"):60110,Nw=Mw?Symbol.for("react.async_mode"):60111,_w=Mw?Symbol.for("react.concurrent_mode"):60111,jw=Mw?Symbol.for("react.forward_ref"):60112,zw=Mw?Symbol.for("react.suspense"):60113,Fw=Mw?Symbol.for("react.suspense_list"):60120,$w=Mw?Symbol.for("react.memo"):60115,Hw=Mw?Symbol.for("react.lazy"):60116,Bw=Mw?Symbol.for("react.block"):60121,Ww=Mw?Symbol.for("react.fundamental"):60117,Vw=Mw?Symbol.for("react.responder"):60118,Uw=Mw?Symbol.for("react.scope"):60119;function Gw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Iw:switch(e=e.type){case Nw:case _w:case Dw:case Ow:case Tw:case zw:return e;default:switch(e=e&&e.$$typeof){case qw:case jw:case Hw:case $w:case Lw:return e;default:return t}}case kw:return t}}}function Yw(e){return Gw(e)===_w}Pw.AsyncMode=Nw,Pw.ConcurrentMode=_w,Pw.ContextConsumer=qw,Pw.ContextProvider=Lw,Pw.Element=Iw,Pw.ForwardRef=jw,Pw.Fragment=Dw,Pw.Lazy=Hw,Pw.Memo=$w,Pw.Portal=kw,Pw.Profiler=Ow,Pw.StrictMode=Tw,Pw.Suspense=zw,Pw.isAsyncMode=function(e){return Yw(e)||Gw(e)===Nw},Pw.isConcurrentMode=Yw,Pw.isContextConsumer=function(e){return Gw(e)===qw},Pw.isContextProvider=function(e){return Gw(e)===Lw},Pw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Iw},Pw.isForwardRef=function(e){return Gw(e)===jw},Pw.isFragment=function(e){return Gw(e)===Dw},Pw.isLazy=function(e){return Gw(e)===Hw},Pw.isMemo=function(e){return Gw(e)===$w},Pw.isPortal=function(e){return Gw(e)===kw},Pw.isProfiler=function(e){return Gw(e)===Ow},Pw.isStrictMode=function(e){return Gw(e)===Tw},Pw.isSuspense=function(e){return Gw(e)===zw},Pw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Dw||e===_w||e===Ow||e===Tw||e===zw||e===Fw||"object"==typeof e&&null!==e&&(e.$$typeof===Hw||e.$$typeof===$w||e.$$typeof===Lw||e.$$typeof===qw||e.$$typeof===jw||e.$$typeof===Ww||e.$$typeof===Vw||e.$$typeof===Uw||e.$$typeof===Bw)},Pw.typeOf=Gw,Aw.exports=Pw;var Kw=Aw.exports,Xw={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Jw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Zw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qw={};function eC(e){return Kw.isMemo(e)?Zw:Qw[e.$$typeof]||Xw}Qw[Kw.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qw[Kw.Memo]=Zw;var tC=Object.defineProperty,rC=Object.getOwnPropertyNames,nC=Object.getOwnPropertySymbols,oC=Object.getOwnPropertyDescriptor,iC=Object.getPrototypeOf,aC=Object.prototype;var sC=function e(t,r,n){if("string"!=typeof r){if(aC){var o=iC(r);o&&o!==aC&&e(t,o,n)}var i=rC(r);nC&&(i=i.concat(nC(r)));for(var a=eC(t),s=eC(r),l=0;l<i.length;++l){var u=i[l];if(!(Jw[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=oC(r,u);try{tC(t,u,c)}catch(e){}}}}return t},lC=er(sC);function uC(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=w.forwardRef(function(r,n){var o=r.innerRef,i=iw(r,["innerRef"]),a=dw()||e;return w.createElement(t,Kr({theme:a,ref:o||n},i))});return lC(r,t),r}}var cC,dC=uC(),pC=Object.freeze({__proto__:null,ServerStyleSheets:Cw,StylesContext:vw,StylesProvider:bw,ThemeProvider:function(e){var t=e.children,r=e.theme,n=dw(),o=w.useMemo(function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):Kr({},e,t)}(n,r);return null!=e&&(e[hy]=null!==n),e},[r,n]);return w.createElement(cw.Provider,{value:o},t)},createGenerateClassName:gy,createStyles:function(e){return e},getThemeProps:vy,jssPreset:ow,makeStyles:ww,mergeClasses:aw,sheetsManager:mw,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=iw(n,["name"]),a=o,s=ww("function"==typeof t?function(e){return{root:function(r){return t(Kr({theme:e},r))}}}:{root:t},Kr({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=w.forwardRef(function(t,n){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,p=iw(t,["children","className","clone","component"]),f=Rw(s(t).root,u),h=p;if(r&&(o=h,i=r,a={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(a[e]=o[e])}),h=a),c)return w.cloneElement(l,Kr({className:Rw(l.props.className,f)},h));if("function"==typeof l)return l(Kr({className:f},h));var m=d||e;return w.createElement(m,Kr({ref:n,className:f},h),l)});return lC(l,e),l}},useTheme:dw,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=iw(t,["defaultTheme","withTheme","name"]),l=a,u=ww(e,Kr({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),c=w.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=iw(e,["classes","innerRef"]),c=u(Kr({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=dw()||n,a&&(d=vy({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),w.createElement(r,Kr({ref:s||t,classes:c},d))});return lC(c,r),c}},withTheme:dC,withThemeCreator:uC}),fC=tr(pC);
97
+ */Nx();var zx=Date.now(),Fx="fnValues"+zx,$x="fnStyle"+ ++zx,Hx="@global",Bx="@global ",Wx=function(){function e(e,t,r){for(var n in this.type="global",this.at=Hx,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new hx(Kr({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Vx=function(){function e(e,t,r){this.type="global",this.at=Hx,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,Kr({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ux=/\s*,\s*/g;function Gx(e,t){for(var r=e.split(Ux),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Yx(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Hx)return new Wx(e,t,r);if("@"===e[0]&&e.substr(0,8)===Bx)return new Vx(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[Hx]:null;if(o){for(var i in o)t.addRule(i,o[i],Kr({},r,{selector:Gx(i,e.selector)}));delete n[Hx]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Hx){var i=Gx(o.substr(7),e.selector);t.addRule(i,n[o],Kr({},r,{selector:i})),delete n[o]}}(e,t))}}}var Kx=/\s*,\s*/g,Xx=/&/g,Jx=/\$([\w-]+)/g;function Zx(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(Kx),n=e.split(Kx),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Xx,a):a+" "+l}return o}function r(e,t,r){if(r)return Kr({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=Kr({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(Jx,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],Kr({},a,{selector:f})):u.addRule(h,n[c],Kr({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Qx=/[A-Z]/g,eS=/^ms-/,tS={};function rS(e){return"-"+e.toLowerCase()}function nS(e){if(tS.hasOwnProperty(e))return tS[e];var t=e.replace(Qx,rS);return tS[e]=eS.test(t)?"-"+t:t}function oS(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:nS(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(oS):t.fallbacks=oS(e.fallbacks)),t}var iS=jx&&CSS?CSS.px:"px",aS=jx&&CSS?CSS.ms:"ms",sS=jx&&CSS?CSS.percent:"%";function lS(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var uS=lS({"animation-delay":aS,"animation-duration":aS,"background-position":iS,"background-position-x":iS,"background-position-y":iS,"background-size":iS,border:iS,"border-bottom":iS,"border-bottom-left-radius":iS,"border-bottom-right-radius":iS,"border-bottom-width":iS,"border-left":iS,"border-left-width":iS,"border-radius":iS,"border-right":iS,"border-right-width":iS,"border-top":iS,"border-top-left-radius":iS,"border-top-right-radius":iS,"border-top-width":iS,"border-width":iS,"border-block":iS,"border-block-end":iS,"border-block-end-width":iS,"border-block-start":iS,"border-block-start-width":iS,"border-block-width":iS,"border-inline":iS,"border-inline-end":iS,"border-inline-end-width":iS,"border-inline-start":iS,"border-inline-start-width":iS,"border-inline-width":iS,"border-start-start-radius":iS,"border-start-end-radius":iS,"border-end-start-radius":iS,"border-end-end-radius":iS,margin:iS,"margin-bottom":iS,"margin-left":iS,"margin-right":iS,"margin-top":iS,"margin-block":iS,"margin-block-end":iS,"margin-block-start":iS,"margin-inline":iS,"margin-inline-end":iS,"margin-inline-start":iS,padding:iS,"padding-bottom":iS,"padding-left":iS,"padding-right":iS,"padding-top":iS,"padding-block":iS,"padding-block-end":iS,"padding-block-start":iS,"padding-inline":iS,"padding-inline-end":iS,"padding-inline-start":iS,"mask-position-x":iS,"mask-position-y":iS,"mask-size":iS,height:iS,width:iS,"min-height":iS,"max-height":iS,"min-width":iS,"max-width":iS,bottom:iS,left:iS,top:iS,right:iS,inset:iS,"inset-block":iS,"inset-block-end":iS,"inset-block-start":iS,"inset-inline":iS,"inset-inline-end":iS,"inset-inline-start":iS,"box-shadow":iS,"text-shadow":iS,"column-gap":iS,"column-rule":iS,"column-rule-width":iS,"column-width":iS,"font-size":iS,"font-size-delta":iS,"letter-spacing":iS,"text-decoration-thickness":iS,"text-indent":iS,"text-stroke":iS,"text-stroke-width":iS,"word-spacing":iS,motion:iS,"motion-offset":iS,outline:iS,"outline-offset":iS,"outline-width":iS,perspective:iS,"perspective-origin-x":sS,"perspective-origin-y":sS,"transform-origin":sS,"transform-origin-x":sS,"transform-origin-y":sS,"transform-origin-z":sS,"transition-delay":aS,"transition-duration":aS,"vertical-align":iS,"flex-basis":iS,"shape-margin":iS,size:iS,gap:iS,grid:iS,"grid-gap":iS,"row-gap":iS,"grid-row-gap":iS,"grid-column-gap":iS,"grid-template-rows":iS,"grid-template-columns":iS,"grid-auto-rows":iS,"grid-auto-columns":iS,"box-shadow-x":iS,"box-shadow-y":iS,"box-shadow-blur":iS,"box-shadow-spread":iS,"font-line-height":iS,"text-shadow-x":iS,"text-shadow-y":iS,"text-shadow-blur":iS});function cS(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=cS(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=cS(o,t[o],r);else for(var i in t)t[i]=cS(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||uS[e];return!a||0===t&&a===iS?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function dS(e){void 0===e&&(e={});var t=lS(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=cS(n,e[n],t);return e},onChangeValue:function(e,r){return cS(r,e,t)}}}var pS="",fS="",hS="",mS="",gS=Ay&&"ontouchstart"in document.documentElement;if(Ay){var bS={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},vS=document.createElement("p").style;for(var yS in bS)if(yS+"Transform"in vS){pS=yS,fS=bS[yS];break}"Webkit"===pS&&"msHyphens"in vS&&(pS="ms",fS=bS.ms,mS="edge"),"Webkit"===pS&&"-apple-trailing-word"in vS&&(hS="apple")}var xS=pS,SS=fS,wS=hS,CS=mS,ES=gS;var RS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===xS?"-webkit-"+e:SS+e)}},AS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===xS?SS+"print-"+e:e)}},MS=/[-\s]+(.)?/g;function PS(e,t){return t?t.toUpperCase():""}function IS(e){return e.replace(MS,PS)}function kS(e){return IS("-"+e)}var DS,TS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===xS){var r="mask-image";if(IS(r)in t)return e;if(xS+kS(r)in t)return SS+e}return e}},OS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==wS||ES?e:SS+e)}},LS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:SS+e)}},qS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:SS+e)}},NS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===xS||"ms"===xS&&"edge"!==CS?SS+e:e)}},jS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===xS||"ms"===xS||"apple"===wS?SS+e:e)}},_S={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===xS?"WebkitColumn"+kS(e)in t&&SS+"column-"+e:"Moz"===xS&&("page"+kS(e)in t&&"page-"+e))}},zS={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===xS)return e;var r=e.replace("-inline","");return xS+kS(r)in t&&SS+r}},FS={supportedProperty:function(e,t){return IS(e)in t&&e}},$S={supportedProperty:function(e,t){var r=kS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:xS+r in t?SS+e:"Webkit"!==xS&&"Webkit"+r in t&&"-webkit-"+e}},HS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===xS?""+SS+e:e)}},BS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===xS?SS+"scroll-chaining":e)}},WS={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},VS={supportedProperty:function(e,t){var r=WS[e];return!!r&&(xS+kS(r)in t&&SS+r)}},US={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},GS=Object.keys(US),YS=function(e){return SS+e},KS={supportedProperty:function(e,t,r){var n=r.multiple;if(GS.indexOf(e)>-1){var o=US[e];if(!Array.isArray(o))return xS+kS(o)in t&&SS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(xS+kS(o[0])in t))return!1;return o.map(YS)}return!1}},XS=[RS,AS,TS,OS,LS,qS,NS,jS,_S,zS,FS,$S,HS,BS,VS,KS],JS=XS.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),ZS=XS.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,kb(t.noPrefill)),e},[]),QS={};if(Ay){DS=document.createElement("p");var ew=window.getComputedStyle(document.documentElement,"");for(var tw in ew)isNaN(tw)||(QS[ew[tw]]=ew[tw]);ZS.forEach(function(e){return delete QS[e]})}function rw(e,t){if(void 0===t&&(t={}),!DS)return e;if(null!=QS[e])return QS[e];"transition"!==e&&"transform"!==e||(t[e]=e in DS.style);for(var r=0;r<JS.length&&(QS[e]=JS[r](e,DS.style,t),!QS[e]);r++);try{DS.style[e]=""}catch(e){return!1}return QS[e]}var nw,ow={},iw={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},aw=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function sw(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?rw(t):", "+rw(r);return n||(t||r)}function lw(e,t){var r=t;if(!nw||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=ow[n])return ow[n];try{nw.style[e]=r}catch(e){return ow[n]=!1,!1}if(iw[e])r=r.replace(aw,sw);else if(""===nw.style[e]&&("-ms-flex"===(r=SS+r)&&(nw.style[e]="-ms-flexbox"),nw.style[e]=r,""===nw.style[e]))return ow[n]=!1,!1;return nw.style[e]="",ow[n]=r,ow[n]}function uw(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=rw(r);i&&i!==r&&(o=!0);var a=!1,s=lw(i,Ty(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===xS?e:"@"+SS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return lw(t,Ty(e))||e}}}function cw(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}function dw(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=ky(e,{},r);return n[$x]=t,n},onProcessStyle:function(e,t){if(Fx in t||$x in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[Fx]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[$x];i&&(o.style=i(e)||{});var a=o[Fx];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Yx(),Zx(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=oS(e[t]);return e}return oS(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=nS(t);return t===n?e:(r.prop(n,e),null)}},dS(),"undefined"==typeof window?null:uw(),cw()]}}function pw(e,t){if(null==e)return{};var r,n,o=Xr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function fw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=Kr({},t);return Object.keys(r).forEach(function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))}),n}Ay&&(nw=document.createElement("p"));var hw=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},mw=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},gw=function(e,t,r){e.get(t).delete(r)},bw=w.createContext(null);function vw(){return w.useContext(bw)}var yw,xw=Nx(dw()),Sw=Cy(),ww=new Map,Cw={disableGeneration:!1,generateClassName:Sw,jss:xw,sheetsCache:null,sheetsManager:ww,sheetsRegistry:null},Ew=w.createContext(Cw);function Rw(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=pw(e,["children","injectFirst","disableGeneration"]),s=Kr({},w.useContext(Ew),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!yw){var l=document.head;yw=document.createComment("mui-inject-first"),l.insertBefore(yw,l.firstChild)}s.jss=Nx({plugins:dw().plugins,insertionPoint:yw})}return w.createElement(Ew.Provider,{value:s},t)}var Aw=-1e9;var Mw={};function Pw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=mw(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},hw(o.sheetsManager,i,n,s));var l=Kr({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=mw(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,Kr({link:!1},l))).attach(),o.sheetsCache&&hw(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=_x(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Kr({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=fw({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function Iw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?Mw:i,s=pw(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=Kr({},o);return Object.keys(i).forEach(function(e){a[e]=$m(a[e],i[e])}),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:Aw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=vw()||a,n=Kr({},w.useContext(Ew),s),i=w.useRef(),u=w.useRef();!function(e,t){var r,n=w.useRef([]),o=w.useMemo(function(){return{}},t);n.current!==o&&(n.current=o,r=e()),w.useEffect(function(){return function(){r&&r()}},[o])}(function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return Pw(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=mw(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(gw(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,l]),w.useEffect(function(){u.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(i.current,e),u.current=!0});var c=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=fw({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var kw=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return My(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new bx;var r=Cy();return w.createElement(Rw,Kr({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return w.createElement("style",Kr({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function Dw(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Dw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Tw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Dw(e))&&(n&&(n+=" "),n+=t);return n}var Ow={exports:{}},Lw={},qw="function"==typeof Symbol&&Symbol.for,Nw=qw?Symbol.for("react.element"):60103,jw=qw?Symbol.for("react.portal"):60106,_w=qw?Symbol.for("react.fragment"):60107,zw=qw?Symbol.for("react.strict_mode"):60108,Fw=qw?Symbol.for("react.profiler"):60114,$w=qw?Symbol.for("react.provider"):60109,Hw=qw?Symbol.for("react.context"):60110,Bw=qw?Symbol.for("react.async_mode"):60111,Ww=qw?Symbol.for("react.concurrent_mode"):60111,Vw=qw?Symbol.for("react.forward_ref"):60112,Uw=qw?Symbol.for("react.suspense"):60113,Gw=qw?Symbol.for("react.suspense_list"):60120,Yw=qw?Symbol.for("react.memo"):60115,Kw=qw?Symbol.for("react.lazy"):60116,Xw=qw?Symbol.for("react.block"):60121,Jw=qw?Symbol.for("react.fundamental"):60117,Zw=qw?Symbol.for("react.responder"):60118,Qw=qw?Symbol.for("react.scope"):60119;function eC(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Nw:switch(e=e.type){case Bw:case Ww:case _w:case Fw:case zw:case Uw:return e;default:switch(e=e&&e.$$typeof){case Hw:case Vw:case Kw:case Yw:case $w:return e;default:return t}}case jw:return t}}}function tC(e){return eC(e)===Ww}Lw.AsyncMode=Bw,Lw.ConcurrentMode=Ww,Lw.ContextConsumer=Hw,Lw.ContextProvider=$w,Lw.Element=Nw,Lw.ForwardRef=Vw,Lw.Fragment=_w,Lw.Lazy=Kw,Lw.Memo=Yw,Lw.Portal=jw,Lw.Profiler=Fw,Lw.StrictMode=zw,Lw.Suspense=Uw,Lw.isAsyncMode=function(e){return tC(e)||eC(e)===Bw},Lw.isConcurrentMode=tC,Lw.isContextConsumer=function(e){return eC(e)===Hw},Lw.isContextProvider=function(e){return eC(e)===$w},Lw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Nw},Lw.isForwardRef=function(e){return eC(e)===Vw},Lw.isFragment=function(e){return eC(e)===_w},Lw.isLazy=function(e){return eC(e)===Kw},Lw.isMemo=function(e){return eC(e)===Yw},Lw.isPortal=function(e){return eC(e)===jw},Lw.isProfiler=function(e){return eC(e)===Fw},Lw.isStrictMode=function(e){return eC(e)===zw},Lw.isSuspense=function(e){return eC(e)===Uw},Lw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===_w||e===Ww||e===Fw||e===zw||e===Uw||e===Gw||"object"==typeof e&&null!==e&&(e.$$typeof===Kw||e.$$typeof===Yw||e.$$typeof===$w||e.$$typeof===Hw||e.$$typeof===Vw||e.$$typeof===Jw||e.$$typeof===Zw||e.$$typeof===Qw||e.$$typeof===Xw)},Lw.typeOf=eC,Ow.exports=Lw;var rC=Ow.exports,nC={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oC={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},iC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},aC={};function sC(e){return rC.isMemo(e)?iC:aC[e.$$typeof]||nC}aC[rC.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},aC[rC.Memo]=iC;var lC=Object.defineProperty,uC=Object.getOwnPropertyNames,cC=Object.getOwnPropertySymbols,dC=Object.getOwnPropertyDescriptor,pC=Object.getPrototypeOf,fC=Object.prototype;var hC=function e(t,r,n){if("string"!=typeof r){if(fC){var o=pC(r);o&&o!==fC&&e(t,o,n)}var i=uC(r);cC&&(i=i.concat(cC(r)));for(var a=sC(t),s=sC(r),l=0;l<i.length;++l){var u=i[l];if(!(oC[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=dC(r,u);try{lC(t,u,c)}catch(e){}}}}return t},mC=er(hC);function gC(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=w.forwardRef(function(r,n){var o=r.innerRef,i=pw(r,["innerRef"]),a=vw()||e;return w.createElement(t,Kr({theme:a,ref:o||n},i))});return mC(r,t),r}}var bC,vC=gC(),yC=Object.freeze({__proto__:null,ServerStyleSheets:kw,StylesContext:Ew,StylesProvider:Rw,ThemeProvider:function(e){var t=e.children,r=e.theme,n=vw(),o=w.useMemo(function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):Kr({},e,t)}(n,r);return null!=e&&(e[Sy]=null!==n),e},[r,n]);return w.createElement(bw.Provider,{value:o},t)},createGenerateClassName:Cy,createStyles:function(e){return e},getThemeProps:Ey,jssPreset:dw,makeStyles:Iw,mergeClasses:fw,sheetsManager:ww,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=pw(n,["name"]),a=o,s=Iw("function"==typeof t?function(e){return{root:function(r){return t(Kr({theme:e},r))}}}:{root:t},Kr({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=w.forwardRef(function(t,n){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,p=pw(t,["children","className","clone","component"]),f=Tw(s(t).root,u),h=p;if(r&&(o=h,i=r,a={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(a[e]=o[e])}),h=a),c)return w.cloneElement(l,Kr({className:Tw(l.props.className,f)},h));if("function"==typeof l)return l(Kr({className:f},h));var m=d||e;return w.createElement(m,Kr({ref:n,className:f},h),l)});return mC(l,e),l}},useTheme:vw,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=pw(t,["defaultTheme","withTheme","name"]),l=a,u=Iw(e,Kr({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),c=w.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=pw(e,["classes","innerRef"]),c=u(Kr({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=vw()||n,a&&(d=Ey({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),w.createElement(r,Kr({ref:s||t,classes:c},d))});return mC(c,r),c}},withTheme:vC,withThemeCreator:gC}),xC=tr(yC);
98
98
  /** @license Material-UI v4.11.5
99
99
  *
100
100
  * This source code is licensed under the MIT license found in the
101
101
  * LICENSE file in the root directory of this source tree.
102
- */var hC,mC,gC={},vC={};function bC(){if(hC)return vC;hC=1;var e=Ql;Object.defineProperty(vC,"__esModule",{value:!0}),vC.default=void 0;var t=(0,e(cy()).default)();return vC.default=t,vC}var yC,xC,SC={},wC={};function CC(){if(xC)return SC;xC=1;var e=Ql;Object.defineProperty(SC,"__esModule",{value:!0}),SC.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,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Vu()),r=Sg,n=function(){if(yC)return wC;yC=1;var e=Ql;Object.defineProperty(wC,"__esModule",{value:!0}),wC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},wC.getUnit=r,wC.toUnitless=n,wC.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},wC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},wC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},wC.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach(function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e($g());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return wC}();return SC}var EC,RC={};var AC,PC={};var MC,IC={};var kC,DC={};!function(e){var t=Ql,r=km;Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.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=Dm;Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=r(cy()),a=t(function(){if(dy)return py;dy=1;var e=Ql;Object.defineProperty(py,"__esModule",{value:!0}),py.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=Sg,r=e(cy());return py}()),s=t(function(){if(cC)return fy;cC=1,Object.defineProperty(fy,"__esModule",{value:!0}),fy.default=function(t){return(0,e.createStyles)(t)};var e=fC;return fy}()),l=t(function(){if(mC)return gC;mC=1;var e=Ql;Object.defineProperty(gC,"__esModule",{value:!0}),gC.default=void 0;var t=e(Vu()),r=fC,n=e(bC()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return gC.default=o,gC}()),u=t(CC()),c=t(function(){if(EC)return RC;EC=1;var e=Ql;Object.defineProperty(RC,"__esModule",{value:!0}),RC.default=void 0;var t=e(Vu()),r=fC,n=e(bC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return RC.default=o,RC}()),d=ay();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(function(){if(AC)return PC;AC=1;var e=Ql;Object.defineProperty(PC,"__esModule",{value:!0}),PC.default=function(){return(0,t.useTheme)()||r.default};var t=fC;e(w);var r=e(bC());return PC}()),f=t(function(){if(MC)return IC;MC=1;var e=Ql;Object.defineProperty(IC,"__esModule",{value:!0}),IC.default=void 0;var t=e(Vu()),r=fC,n=e(bC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return IC.default=o,IC}()),h=t(function(){if(kC)return DC;kC=1;var e=Ql;Object.defineProperty(DC,"__esModule",{value:!0}),DC.default=void 0;var t=fC,r=e(bC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return DC.default=n,DC}()),m=fC}(Am),Am.alpha(Bt.GREYSCALE_0,.05),Am.alpha(Bt.GREEN_PALE,.5),Am.alpha(Bt.BLUE_PALE,.5),Am.alpha(Bt.GREEN_PALE,.5),Am.alpha(Bt.BLUE_PALE,.5),Am.alpha(Bt.GREEN_PALE,.5),Am.alpha(Bt.BLUE_PALE,.5),Am.alpha(Bt.GREEN_PALE,.5),Am.alpha(Bt.BLUE_PALE,.5),Am.alpha(Bt.GREEN_PALE,.5),Am.alpha(Bt.BLUE_PALE,.5);const TC=(e="light")=>({components:Cm(),palette:Em(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Vt,fontWeightLight:Kt,fontWeightRegular:Xt,fontWeightMedium:Jt,fontWeightBold:Zt,htmlFontSize:Vt,fontFamily:Qt.FONT_FAMILY,button:{fontWeight:Jt,fontSize:Vt,textTransform:"none"},body1:{fontSize:Ut,lineHeight:"24px"},body2:{fontSize:Vt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Gt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ut,fontWeight:Jt,lineHeight:"16px"},h6:{fontSize:Vt,fontWeight:Jt,lineHeight:"16px"},caption:{color:Bt.TEXT_SECONDARY},subtitle1:{fontSize:Vt,color:Bt.TEXT_SECONDARY},subtitle2:{fontSize:Wt,color:Bt.TEXT_SECONDARY}},shape:{borderRadius:Yt}}),OC=TC().palette,LC={TEXT:OC.text.primary,DISABLED:OC.text.disabled,HOVER:OC.action.hover,WHITE:Rm.GREYSCALE_100,BORDER_LIGHT:Rm.GREYSCALE_90,BORDER_MEDIUM:Rm.GREYSCALE_85,BORDER_HEAVY:Rm.GREYSCALE_50,DARK_MODE_TEXT:Rm.GREYSCALE_95,DARK_MODE_BORDER:Rm.GREYSCALE_95,DARK_MODE_DISABLED:Rm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Rm.GREYSCALE_95,SELECTED:OC.primary.main,LINK:OC.info.main,ERROR:OC.error.main},qC=(e,t=LC.TEXT,r=LC.WHITE)=>{const n=se(e??""),o=se(t),i=se(r);return n.isInvalid()?t:function(e,t,r){const n=le(e,t),o=le(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},NC=e=>{const t=e.getStyle("","","dataColors.selected")||LC.SELECTED,r=function(e,t){const r=se(ue),n=se(e),o=se(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=le(r,n),a=le(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?ue:"#000000"}(t,LC.TEXT);return{background:t,color:r}},_C=(e,t)=>{const r=se(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},jC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},zC=e=>{const t=se(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},FC=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},$C=e=>{e.stopPropagation(),e.preventDefault()},HC=e=>!!e&&0===se(e).a,BC="#grid",WC=(e,t,r,n=LC.WHITE)=>e&&!HC(e)?e:HC(t)?r&&!HC(r)?r:n:t,VC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},UC=(e,t,r,n,o)=>{const i=VC(".qv-object .qv-inner-object",r),a=VC(".qv-panel-sheet",r),s=VC(BC,r)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return zC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=se(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=HC(d),f=!HC(h=p?s:d)&&qC(h,LC.TEXT,LC.DARK_MODE_TEXT)===re(LC.DARK_MODE_TEXT);var h;return{color:d,headerColor:WC(l,d,s),isDark:f}},GC=(e,t,n,o)=>{const l=s(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=i([]);return a(()=>{let r;return e&&(r=new MutationObserver(e=>{n(e)}),r.observe(e,t)),()=>{r?.disconnect()}},[e,t]),r})(t.closest(BC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return r(()=>({...l,background:UC(e,l,t,n,o)}),[l.name(),t,n,o,e,u])};const YC=3,KC=/\n/g;function XC(e,t,r){let n=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}const JC=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o)=>{const{maxNbrLinesOfText:i=YC,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const s=o.measureText.bind(o),l=kt(e=>{if(void 0===e)return 0;if(a){const t=e.split(KC).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(KC," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=kt(({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split(KC):[e];let o=0;for(const e of n){let r=e;do{o+=1,r=XC(r,t,u)}while(null!==r&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}};function ZC({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=YC,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:u}=M(()=>JC({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[r,n,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var QC,eE=W;QC=eE.createRoot,eE.hydrateRoot;const tE="Source Sans Pro, sans-serif",rE=(e,t,n)=>{const[,i,a]=function(e,t){const n=r(()=>({isLoading:!0}),t),[i,a]=o(async()=>{try{return await e()}finally{n.isLoading=!1}},t);return[i,n.isLoading,a]}(async()=>{const t=Ee(n.flags),r=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,r,o,i,tE].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,n]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function nE(e,t){const[r,n]=I(t);r.some((e,r)=>e!==t[r])&&(n(t),e())}var oE={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const iE=({translator:e})=>(M(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(oE).forEach(t=>{e.add(oE[t])})}}(e)},[e]),e),aE="12px",sE="nebula-table-utils-head-menu-button",lE="nebula-table-utils-head-menu-wrapper",uE="nebula-table-utils-head-menu",cE="nebula-table-utils-head-menu-list-id",dE="sn-copy-cell";let pE=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const fE="nebula-table-utils-column-adjuster";let hE=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),mE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const gE={darker:.15,brighter:.3,opacity:.03},vE={darker:.3,brighter:.5,opacity:.05};let bE=function(e){return e.Cyclic="C",e}({});const yE=document.createElement("textarea");function xE(e){yE.value=e,document.body.appendChild(yE),yE.select(),yE.setSelectionRange(0,yE.value.length),document.execCommand("copy"),document.body.removeChild(yE)}yE.style.position="absolute",yE.style.left="-9999px",yE.setAttribute("readonly","");const SE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{xE(t)}):xE(t))};function wE(e){return"init"in e}function CE(e){return!!e.write}function EE(e){return"v"in e||"e"in e}function RE(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function AE(e){return"function"==typeof(null==e?void 0:e.then)}function PE(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function ME(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])o.add(t);for(const e of t.p)o.add(e);return o}const IE=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach(e=>e(r)),null==(o=t.get(r))||o.forEach(e=>e())};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function kE(e){return e.i||(e.i=IE()),e.r||(e.r=IE()),e.c||(e.c=IE()),e.m||(e.m=IE()),e.u||(e.u=IE()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const DE=(e,t,...r)=>t.read(...r),TE=(e,t,...r)=>t.write(...r),OE=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},LE=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},qE=(e,r)=>{var n;const o=ZE(e),i=o[0],a=o[6],s=o[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Atom is undefined or null");let l=i.get(r);return l||(l={d:new Map,p:new Set,n:0},i.set(r,l),null==(n=a.i)||n.call(a,r),null==s||s(e,r)),l},NE=e=>{const t=ZE(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach(e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)}),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},_E=e=>{const r=ZE(e),n=r[1],o=r[2],i=r[3],a=r[11],s=r[14],l=r[17],u=[],c=new WeakSet,d=new WeakSet,p=Array.from(i);for(;p.length;){const r=p[p.length-1],i=a(e,r);if(d.has(r))p.pop();else if(c.has(r)){if(o.get(r)===i.n)u.push([r,i]);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(r))throw new Error("[Bug] invalidated atom exists");d.add(r),p.pop()}else{c.add(r);for(const e of ME(r,i,n))c.has(e)||p.push(e)}}for(let t=u.length-1;t>=0;--t){const[r,n]=u[t];let a=!1;for(const e of n.d.keys())if(e!==r&&i.has(e)){a=!0;break}a&&(o.set(r,n.n),s(e,r),l(e,r)),o.delete(r)}},jE=new WeakSet,zE=(e,r)=>{var n,o;const i=ZE(e),a=i[1],s=i[2],l=i[3],u=i[6],c=i[7],d=i[11],p=i[12],f=i[13],h=i[14],m=i[16],g=i[17],v=i[20],b=i[26],y=i[28],x=d(e,r),S=y[0];if(EE(x)){if(a.has(r)&&s.get(r)!==x.n||x.m===S)return x.m=S,x;let t=!1;for(const[r,n]of x.d)if(h(e,r).n!==n){t=!0;break}if(!t)return x.m=S,x}let w=!0;const C=new Set(x.d.keys()),E=new Map,R=()=>{for(const e of C)E.has(e)||x.d.delete(e)},A=()=>{if(a.has(r)){const t=!l.size;g(e,r),t&&(f(e),p(e))}},P=t=>{var n;if(t===r){const r=d(e,t);if(!EE(r)){if(!wE(t))throw new Error("no atom init");v(e,t,t.init)}return RE(r)}const o=h(e,t);try{return RE(o)}finally{E.set(t,o.n),x.d.set(t,o.n),AE(x.v)&&PE(r,x.v,o),a.has(r)&&(null==(n=a.get(t))||n.t.add(r)),w||A()}};let M,I;const k={get signal(){return M||(M=new AbortController),M.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||CE(r)||console.warn("setSelf function cannot be used with read-only atom"),!I&&CE(r)&&(I=(...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,r,...n)}finally{f(e),p(e)}}),I}},D=x.n,T=s.get(r)===D;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&jE.delete(e);const o=c(e,r,P,k);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&jE.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),v(e,r,o),AE(o)){b(e,o,()=>null==M?void 0:M.abort());const t=()=>{R(),A()};o.then(t,t)}else R();return null==(n=u.r)||n.call(u,r),x.m=S,x}catch(e){return delete x.v,x.e=e,++x.n,x.m=S,x}finally{w=!1,x.n!==D&&T&&(s.set(r,x.n),l.add(r),null==(o=u.c)||o.call(u,r))}},FE=(e,t)=>{const r=ZE(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of ME(t,r,n)){const t=i(e,s);o.get(s)!==t.n&&(o.set(s,t.n),a.push(s))}}},$E=(e,r,...n)=>{const o=ZE(e),i=o[3],a=o[6],s=o[8],l=o[11],u=o[12],c=o[13],d=o[14],p=o[15],f=o[16],h=o[17],m=o[20],g=o[28];let v=!0;const b=t=>RE(d(e,t)),y=(n,...o)=>{var s;const d=l(e,n);try{if(n===r){if(!wE(n))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&jE.add(e);const r=d.n,l=o[0];return m(e,n,l),h(e,n),void(r!==d.n&&(++g[0],i.add(n),p(e,n),null==(s=a.c)||s.call(a,n)))}return f(e,n,...o)}finally{v||(c(e),u(e))}};try{return s(e,r,b,y,...n)}finally{v=!1}},HE=(e,t)=>{var r;const n=ZE(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},BE=(e,t)=>{var r;const n=ZE(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(t,m),CE(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,t)}return m},WE=(e,t)=>{var r,n;const o=ZE(e),i=o[1],a=o[5],s=o[6],l=o[11],u=o[19],c=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},VE=(e,t,r)=>{const n=ZE(e),o=n[11],i=n[27],a=o(e,t),s="v"in a,l=a.v;if(AE(r))for(const n of a.d.keys())PE(t,r,o(e,n));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,AE(l)&&i(e,l))},UE=(e,t)=>RE((0,ZE(e)[14])(e,t)),GE=(e,t,...r)=>{const n=ZE(e),o=n[3],i=n[12],a=n[13],s=n[16],l=o.size;try{return s(e,t,...r)}finally{o.size!==l&&(a(e),i(e))}},YE=(e,t,r)=>{const n=ZE(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},KE=(e,t,r)=>{const n=ZE(e)[25];let o=n.get(t);if(!o){o=new Set,n.set(t,o);const e=()=>n.delete(t);t.then(e,e)}o.add(r)},XE=(e,t)=>{const r=ZE(e)[25].get(t);null==r||r.forEach(e=>e())},JE=new WeakMap,ZE=e=>{const r=JE.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Store must be created by buildStore to read its building blocks");return r};function QE(e){const t=ZE(e),r=t[24];return r?r(t):t}let eR,tR=0;function rR(e,r){const n="atom"+ ++tR,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?o.read=e:(o.init=e,o.read=nR,o.write=oR),r&&(o.write=r),o}function nR(e){return e(this)}function oR(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function iR(){return function(...e){const t={get:e=>(0,ZE(t)[21])(t,e),set:(e,...r)=>(0,ZE(t)[22])(t,e,...r),sub:(e,r)=>(0,ZE(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},DE,TE,OE,LE,qE,NE,_E,zE,FE,$E,HE,BE,WE,VE,UE,GE,YE,void 0,new WeakMap,KE,XE,[0]].map((t,r)=>e[r]||t);return JE.set(t,Object.freeze(r)),t}()}const aR=D(void 0);function sR(e){return N(aR)||(eR||(eR=iR(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=eR),globalThis.__JOTAI_DEFAULT_STORE__!==eR&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),eR)}function lR({children:e,store:t}){const r=k(null);return t?C(aR.Provider,{value:t},e):(null===r.current&&(r.current=iR()),C(aR.Provider,{value:r.current},e))}const uR=e=>"function"==typeof(null==e?void 0:e.then),cR=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},dR=w.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(cR(e),e)}),pR=new WeakMap,fR=(e,t,r)=>{const n=QE(e)[26];let o=pR.get(t);return o||(o=new Promise((i,a)=>{let s=t;const l=e=>t=>{s===e&&i(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=r();uR(t)?(pR.set(t,o),s=t,t.then(l(t),u(t)),n(e,t,c)):i(t)}catch(e){a(e)}};t.then(l(t),u(t)),n(e,t,c)}),pR.set(t,o)),o};function hR(e,t){const{delay:r,unstable_promiseStatus:n=!w.use}={},o=sR(),[[i,a,s],l]=T(t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]},void 0,()=>[o.get(e),o,e]);let u=i;if(a===o&&s===e||(l(),u=o.get(e)),O(()=>{const t=o.sub(e,()=>{if(n)try{const t=o.get(e);uR(t)&&cR(fR(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof r)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(l,r);l()});return l(),t},[o,e,r,n]),L(u),uR(u)){const t=fR(o,u,()=>o.get(e));return n&&cR(t),dR(t)}return u}function mR(e,r){const n=sR();return q((...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function gR(e,t){return[hR(e),mR(e)]}const vR=rR(void 0),bR=rR({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>Promise.resolve()}),yR=rR({}),xR=rR({}),SR=rR(e=>{const t=e(xR);return e=>t.flags.isEnabled(e)}),wR=rR(!1),CR=rR({qHyperCube:{qDimensionInfo:[],qSize:{qcx:0,qcy:0}}}),ER=rR(e=>e(CR).qHyperCube.qSize.qcy),RR=rR(e=>!!e(CR).snapshotData),AR=rR(e=>e(CR).qHyperCube.qDimensionInfo.length),PR=rR(e=>e(CR).qStateName),MR=rR(e=>e(CR).snapshotData),IR=rR(e=>!1!==e(CR).usePagination),kR=rR(e=>!e(SR)("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||!1!==e(CR).accessibleHeader),DR=rR(),TR=rR(!1),OR=rR(e=>e(DR),(e,t,r)=>{t(DR,r),t(TR,r.isModal())}),LR=rR(),qR=rR(e=>{const t=e(LR),r=e(RR);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}},(e,t,r)=>{t(LR,r)}),NR=rR(e=>!!e(qR).active),_R=rR(e=>!!e(qR).passive),jR=rR(e=>!!e(qR).select),zR=rR(e=>!!e(qR).scroll),FR=rR(e=>{const t=e(NR),r=e(TR);return t&&!r}),$R=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),HR=rR(),BR=rR(e=>e(HR)?.direction),WR=rR(e=>e(HR)?.footerContainer),VR=rR(e=>e(HR)?.viewState),UR=rR(e=>e(HR)?.freeResize),GR=rR(e=>{const t=e(CR),r=e(VR),n=e(IR);return void 0!==r?.usePagination?r.usePagination:n||$R(t,r)}),YR=rR({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),KR=rR(e=>e(YR),(e,t,r)=>{e(GR)&&t(YR,r)}),XR=rR(),JR=rR(e=>{const t=e(XR);if(t&&"getEffectiveProperties"in t)return t}),ZR={width:0,height:0,top:0,left:0},QR=rR(ZR),eA=rR(ZR),tA=rR(e=>e(QR),(e,t,r)=>{const n=e(CR),o=e(UR),i=e(QR),a=n.snapshotData?.content&&!o;(i.width!==r.width||i.height!==r.height||i.top!==r.top||i.left!==r.left||a)&&(t(eA,r),t(QR,a?{...r,...n.snapshotData?.content?.size}:r))}),rA=rR({}),nA=new WeakMap,oA=rR(e=>{const t=e(rA),r=nA.get(t);if(r)return r;const n=QC(t);return nA.set(t,n),n}),iA=rR({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),aA=rR({get:e=>e,add:()=>{},language:()=>"en"});var sA={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>De});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=b(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=b(d,f),v=b(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var R=t().bind(null,!0),A={},P=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function I(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=I(e[r||t])?i:e[t],e=e[r||t]}}),e}function T(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){T(e[n],t[n])||(r=!1)}),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||k(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(A.generate(a,i,s)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&I(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!I(t[0])&&I(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){I(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},A.apply=function(e,t){t.forEach(function(t){var r,n,o=D(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]}),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=D(e,t.from);P(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])})},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,L=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var q="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===q)return r[n]}function _(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var j={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,j)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(_(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(_(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function H(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var b=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(v,b,y);v=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function U(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(r(e,be,i(e,ve)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Pe.isValid(e)&&(r(e,ve,i(e,be)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),r=i(e,xe);return void 0!==t||void 0!==r}};const Me=Pe;function Ie(e){return Ie="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},Ie(e)}var ke={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:ke,apply:Oe,applyModifiers:Le,cleanUpMeasure:qe,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:_e,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:r,layout:n})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=Fe(e);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:je};var Te={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Te[r.id]=Te[r.id]||{isFirstTime:!0};var u=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Ie(n))return Le({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ge({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then(function(e){var n=t()(!0,{},e);He(n);var o=Qe(n);return Ye({model:r}).then(function(t){return Ke({libraryIds:o,model:r}).then(function(o){return h&&function(e){var t=e.properties;ze(t).forEach(function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:n}),Le({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ie(e.base)})}(p)?r.getEffectiveProperties().then(function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then(function(){var e=t()(!0,{},n);return ze(n).forEach(function(e){return qe(e)}),Je({oldProperties:e,newProperties:n,model:r})})}({model:r,properties:e})}):Promise.resolve(l)}function Le(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then(function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach(function(e){return qe(e)}),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){r.forEach(function(r){Ge({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Me.isValid(r)||Me.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(s++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:ke[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof ke[n.type].updateModifier&&ke[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:ke[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||je(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&je(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}})}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):qe(r)})})})}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)})})}function qe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&!ke[e.type]})}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})})}function _e(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(ke[n.type]&&!n.disabled)return n}}function je(e){var t=_e(e);return!t||ke[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach(function(e){return function(e){var r=_e(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)})}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ie(t)&&(t.disabled||!ke[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ie(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):L(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=Fe(t);if(Ge({modifiers:n,properties:e})){var i=Ve(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach(function(r){t[r]=i(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach(function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose()}),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Te[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>He});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach(function(e){t.properties[e]=r[e]})},b=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const I=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},k=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},D=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},q=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},_=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},j=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),n.dimensions.added(e,r)})}},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return M(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),n.measures.added(e,r)})}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach(function(t){i.setValue(e,t,r[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,v({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),b({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=j({exportFormat:t,initialProperties:n,hypercubePath:u}),v=i.getValue(n,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,A=l.defaultMeasure,P=void 0===A?O():A;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:b}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:b,defaultMeasure:P}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),_({exportFormat:t,newHyperCubeDef:b}),k("qMaxStackedCells",v,b),k("qNoOfLeftDims",v,b),D("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",v,b,"S"),D("qReductionMode",v,b,"N"),D("qSortbyYValue",v,b),D("qIndentMode",v,b),D("qShowTotalsAbove",v,b),I(g,t,n),m.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return B({measures:b.qMeasures,modifierTypes:M}),p&&W(m.qProperty,"storedFilters"),"S"===b.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(G(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}),t.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},ve={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(n)&&t[o].type[n]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Me="measures",Ie="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:Me,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Me,quarantineName:Pe})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",Le="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",je="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:je,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:je,itemPath:ze})}},He={hypercube:V,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:$e}})(),n.default})()}(sA);var lA=er(sA.exports);const uA="qHyperCubeDef.qMeasures",cA="measures",dA="qHyperCubeDef.qDimensions",pA="dimensions",fA="qDef.representation",hA="tableRepresentation",mA="qDef.conditionalColoring",gA="conditionalColoring",vA="qMiniChartDef",bA="miniChartDef",yA=({propertyTree:e,hyperCubePath:t})=>{const r=lA.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map(r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t));return o})(o,i,n);return It(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),lA.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),lA.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),lA.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{lA.quarantineArrayProp({properties:e,arrayPath:dA,itemPath:fA,arrayName:pA,quarantineName:hA}),lA.quarantineArrayProp({properties:e,arrayPath:uA,itemPath:fA,arrayName:cA,quarantineName:hA}),lA.quarantineArrayProp({properties:e,arrayPath:uA,itemPath:mA,arrayName:cA,quarantineName:gA}),lA.quarantineArrayProp({properties:e,arrayPath:uA,itemPath:vA,arrayName:cA,quarantineName:bA})})(r.properties),r};const xA=/^q[A-Z]/,SA=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],wA=e=>"object"==typeof e&&null!==e,CA=(e,t)=>(Object.entries(e).forEach(([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!xA.test(e)&&!SA.some(e=>e.test(t)))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map((e,t)=>wA(e)?CA(e,`${o}.${t}`):e):wA(n)&&(e[r]=CA(n,o))}),e),EA=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:mE.Pixels,pixels:e}:{type:mE.FitToContent}:i.qDef.columnWidth=e}return i},RA=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{if(i){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}CA(e.properties)}const a=lA.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(lA.conditionalShow.unquarantine(a.qProperty),i)It(a,"qProperty.totals.show",!1),It(a,"qProperty.usePagination",!0),It(a,"qProperty.accessibleHeader",!0);else{lA.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{lA.unquarantineArrayProp({properties:e,arrayPath:dA,itemPath:fA,arrayName:pA,quarantineName:hA}),lA.unquarantineArrayProp({properties:e,arrayPath:uA,itemPath:fA,arrayName:cA,quarantineName:hA}),lA.unquarantineArrayProp({properties:e,arrayPath:uA,itemPath:mA,arrayName:cA,quarantineName:gA}),lA.unquarantineArrayProp({properties:e,arrayPath:uA,itemPath:vA,arrayName:cA,quarantineName:bA})})(a.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=a.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>EA(e,t,n)),measures:a.filter(e=>e>=o).map(e=>EA(t,e,n,o))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(It(a,"qProperty.qHyperCubeDef.qDimensions",o),It(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var AA={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}},PA=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}(PA||{}),MA=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(MA||{}),IA=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(IA||{}),kA=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(kA||{});const DA=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,TA=e=>{if(!Array.isArray(e))return"";let t="{<";const r=[];if(e.forEach(e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,n="}",o="";switch(e.type){case IA.SEARCH:o=(e=>{let t="",r="";const n=e.options?.mode;if(!n)return"";switch(n){case PA.BEGINNING_OF_WORD:t="*^",r="*";break;case PA.ENDS_WITH:t="*";break;case PA.STARTS_WITH:r="*";break;case PA.MATCHES_EXACTLY:break;case PA.CONTAINS:default:t="*",r="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${r}"`:""})(e);break;case IA.CONDITION:o=(e=>{const{options:t}=e,r=t?.mode===MA.GENERAL,n=t?.modifier?.type===kA.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!n&&(!t.firstValue?.aggregator||!t.firstValue?.field)||n&&!t.firstValue?.fixedValue||r&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";r&&n?(i=`${t.conditionField?.aggregator}(${DA(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!r&&n?(i="",a=`${t.firstValue?.fixedValue}`,s=""):r||n?(i=`${t.conditionField?.aggregator}(${DA(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${DA(t.firstValue?.field)})`):(i=`${DA(e.field)}`,a=`${t.firstValue?.aggregator}(total ${DA(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let u="";if(o.length>1){if(!n&&(!t.secondValue?.aggregator||!t.secondValue?.field)||n&&!t.secondValue?.fixedValue)return"";let e,a;r&&n?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!r&&n?(e=`${t.secondValue?.fixedValue}`,a=""):r||n?(e=`${t.secondValue?.aggregator}(${DA(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${DA(t.secondValue?.field)})`,a=` and ${i}`),u=`${a}${o[1]}${e}`}return`"${l}${u}"`})(e);break;case IA.CLEAR_SELECTION:o=`[${e.field}]=`,t="",n="";break;case IA.VALUES:default:o=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==o&&r.push(`${t}${o}${n}`)}),0===r.length)return;return t+=`${r.join(",")}>}`,t},OA=[];for(let e=0;e<256;++e)OA.push((e+256).toString(16).slice(1));let LA;const qA=new Uint8Array(16);var NA={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _A(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!LA){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");LA=crypto.getRandomValues.bind(crypto)}return LA(qA)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(OA[e[t+0]]+OA[e[t+1]]+OA[e[t+2]]+OA[e[t+3]]+"-"+OA[e[t+4]]+OA[e[t+5]]+"-"+OA[e[t+6]]+OA[e[t+7]]+"-"+OA[e[t+8]]+OA[e[t+9]]+"-"+OA[e[t+10]]+OA[e[t+11]]+OA[e[t+12]]+OA[e[t+13]]+OA[e[t+14]]+OA[e[t+15]]).toLowerCase()}(n)}const jA=()=>crypto?.randomUUID?.()??function(e){return NA.randomUUID&&!e?NA.randomUUID():_A(e)}();class zA extends u{#e;constructor(e,t){super(e),this.#e=t}#t(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.keys(t).length;this.hcProperties.qLayoutExclude.allColumnOrder={...t,...Object.fromEntries(e.map((e,t)=>[e,r+t]))}}#r(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude.allColumnOrder=Object.fromEntries(r.map(([e],t)=>[e,t]))}#n(e,t){const r=this.hcProperties.qLayoutExclude.allColumnOrder??{},n={};for(const[o,i]of Object.entries(r))n[o===e?t:o]=i;this.hcProperties.qLayoutExclude.allColumnOrder=n}async addDimension(e,t=!1){const r=await this.addDimensions([e],t);return 0===r.length?void 0:r[0]}async addDimensions(e,t=!1){const r=await super.addDimensions(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeDimension(e,t=!1){const r=await this.removeDimensions([e],t);return 0===r.length?void 0:r[0]}async removeDimensions(e,t=!1){const r=await super.removeDimensions(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceDimension(e,t){const r=this.getDimensions()[e].qDef.cId,n=await super.replaceDimension(e,t),o=n.qDef.cId;return this.#n(r,o),n}async addMeasure(e,t=!1){const r=await this.addMeasures([e],t);return 0===r.length?void 0:r[0]}async addMeasures(e,t=!1){const r=await super.addMeasures(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeMeasure(e,t=!1){const r=await this.removeMeasures([e],t);return 0===r.length?void 0:r[0]}async removeMeasures(e,t=!1){const r=await super.removeMeasures(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceMeasure(e,t){const r=this.getMeasures()[e].qDef.cId,n=await super.replaceMeasure(e,t),o=n.qDef.cId;return this.#n(r,o),n}async#o(e){const t=this.getMeasure(e);if(t){const r=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#i(e){const t=this.getMeasure(e);if(t){const r=this.getMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#a(e){const t=this.getDimension(e);if(t){const r=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#s(e){const t=this.getDimension(e);if(t){const r=this.getDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!1),await super.addDimension(t,!0,this.getDimensions().length)}}#l(e){const{qDimensions:t,qMeasures:r}=this.hcProperties,n=new Map([...t,...r].map((e,t)=>[e.qDef.cId,t]));this.hcProperties.qColumnOrder=e.reduce((e,t)=>{const r=n.get(t);return void 0!==r?[...e,r]:e},[])}async toggleAlternatives(e,t){await Promise.all(e.map(e=>"dimension"===e.type?e.isAlternative?this.#a(e.id):this.#s(e.id):e.isAlternative?this.#o(e.id):this.#i(e.id))),this.#l(t)}setAllColumnOrderForColumnIds(e){const t=e.reduce((e,t,r)=>(e[t]=r,e),{});this.hcProperties.qLayoutExclude.allColumnOrder=t}updateColumnOrders(e){this.setAllColumnOrderForColumnIds(e),this.#l(e)}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,r=Array.isArray(t)&&t.includes("$numeric"),n=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:n?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:jA(),qTags:Array.isArray(t)?t:[],isNumeric:r};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=TA(o),i}addFilters(e){const t=[];for(const r of e)t.push(this.addFilterField(r));return t}#u(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=TA(t),t}removeFilters(e){if(0===e.length)return[];let t=[];const r=[...e].sort((e,t)=>t-e);t=this.getFilters().filter((t,r)=>e.includes(r));for(const e of r)this.#u(e);return t}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#e.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const FA=(e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;return e.splice(r,1),r};function $A(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function HA(e){return e>0?0:1}function BA(e){return e.translator.get("Visualizations.Descriptions.Column")}function WA(e){return{measures:{min:HA,max:1e3,description:()=>BA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;$A(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties,i=(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n;FA(o,i)}},dimensions:{min:HA,max:1e3,description:()=>BA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return $A(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;FA(o,n)}}}}let VA=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}({}),UA=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const GA=e=>{switch(e?.type){case"url":return VA.Link;case"image":return VA.Image;case"indicator":return VA.Indicator;case"miniChart":return VA.MiniChart;default:return VA.Text}},YA=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),KA=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>GA(e.qDef.representation)===VA.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},XA=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:YA({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>GA(e.qDef.representation)===VA.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>GA(e.qDef.representation)===VA.Link&&e.qDef.representation?.urlPosition===UA.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>GA(e.qDef.representation)===VA.Link&&e.qDef.representation?.urlPosition===UA.Attribute},...KA(r)}},JA=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[VA.Image],i=!n?.("qMiniChartDef")&&t[VA.MiniChart],a=!n?.("tableIndicators")&&t[VA.Indicator],s=o&&t[VA.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>GA(e.qDef.representation)===VA.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 ZA,QA={};ZA=QA,(()=>{var e={370:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{default:()=>Me});var o=r(370),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function b(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(c,f),v=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function w(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:f,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:b,getAboveComp:function(e,t,r,n){return v(e,t)+r+b(n)},getFunctionPrefix:w,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return w(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=C({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=l.OPTIONS.find(function(t){return t.value===e.decomposition});return t?l.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(l.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var P=i().bind(null,!0),M={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function D(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}}),e}function L(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){L(e[n],t[n])||(r=!1)}),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}M.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?P({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(M.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(L(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(M.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){D(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},M.apply=function(e,t){t.forEach(function(t){var r,n,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]}),P(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(e,t.from);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])})},M.clone=function(e){return P({},e)},M.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},M.updateObject=function(e,t){Object.keys(e).length?M.apply(e,M.generate(e,t)):P(e,t)};const q=M;var N="accumulation";function _(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function j(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=_(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=_(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=_(t,e);return i&&!i.disabled}}}};var $="movingAverage";function H(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function B(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=E.getNumDimensions({properties:o,layout:i}));var c=s(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(E.needDimension({modifier:n,properties:o,layout:i})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=H(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function G(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function Y(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const X={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(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:l.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,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=G(t,e);return i&&!i.disabled}}}};var J="difference";function Z(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===J)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(J))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===J)return r[n]}(t,e);return i&&!i.disabled}}}};var te="normalization";function re(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a,s){var l=ae(t),u=se(t,r,n),c=""===l&&""===u?"":l||u,d=le(o,i),p=ue(o,i,a),f=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension,r.ignoreNegative)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="library id deleted",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId",ge="qDef.qLabel",ve="qDef.qLabelExpression",be="qDef.base.qLabel",ye="qDef.base.qLabelExpression",xe="qDef.qAggrFunc",Se="qDef.base.qAggrFunc",we="qDef.base";const Ce={getExpression:function(e){var t=s(e,fe);return void 0!==t?t:s(e,pe)},getExpressionRef:function(e){return void 0!==s(e,fe)?fe:pe},getLibraryIdRef:function(e){return s(e,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},getLabelRef:function(e){return s(e,we)?be:ge},getLabelExpressionRef:function(e){return s(e,we)?ye:ve}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,me,s(e,he)),a(e,be,s(e,ge)),a(e,ye,s(e,ve)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,he,s(e,me)),a(e,ge,s(e,be)),a(e,ve,s(e,ye)),s(e,xe)&&s(e,Se)&&a(e,xe,s(e,Se)),delete e.qDef.base)},isValid:function(e){var t=s(e,fe),r=s(e,me);return void 0!==t||void 0!==r}};const Re=Ee;function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}var Pe={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:X};const Me={modifiers:Pe,apply:ke,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&Ie[e.id]&&Ie[e.id].masterItemSubscriber&&(Ie[e.id].masterItemSubscriber&&Ie[e.id].masterItemSubscriber.unsubscribe(),delete Ie[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Pe[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return Pe[e]&&Pe[e].isApplicable({properties:r,layout:n})})},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=_e(e);We({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:qe};var Ie={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,l=!1;Ie[t.id]=Ie[t.id]||{isFirstTime:!0};var u=Ie[t.id].isFirstTime;if(Ie[t.id].isFirstTime=!1,r&&"object"===Ae(r))return De({model:t,properties:r});var c=t?t.layout:void 0,d=s(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(c,"qHyperCube.qMeasureInfo"),f=Ie[t.id].lastReloadTime;if(Ie[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Be({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return We({modifiers:_e(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then(function(e){var r=i()(!0,{},e);ze(r);var n=Xe(r);return Ve({model:t}).then(function(o){return Ue({libraryIds:n,model:t}).then(function(n){return h&&function(e){var t=e.properties;Ne(t).forEach(function(e){return function(e){var t=e.measure;if(Be({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(r++,"object"!==Ae(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&$e(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:r}),De({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(l)})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ae(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then(function(){var e=i()(!0,{},r);return Ne(r).forEach(function(e){return Te(e)}),Ye({oldProperties:e,newProperties:r,model:t})})}({model:t,properties:e})}):Promise.resolve(l)}function De(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,l=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),ze(n);var p=Xe(n);return Je({model:t,libraryIds:p,masterItem:u}).then(function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Ne(r)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:r}))return t.forEach(function(e){return Te(e)}),Promise.resolve();var l=o?void 0:Xe(r);return Ve({model:n,dimensionAndFieldList:a}).then(function(e){return Ue({libraryIds:l,model:n,libraryItemsProps:o}).then(function(n){t.forEach(function(t){var o=t.qDef.modifiers;n&&We({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(a++,"object"!==Ae(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Pe[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Pe[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Pe[r.type].updateModifier&&Pe[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Pe[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Fe(t)):Te(t)})})})}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Ye({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function Te(e){!function(e){var t=_e(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&!Pe[e.type]})}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return We({modifiers:_e(e),properties:r,layout:n})})}function Le(e){var t=_e(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Pe[n.type]&&!n.disabled)return n}}function qe(e){var t=Le(e);return!t||Pe[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function _e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function je(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function ze(e){Ne(e).forEach(function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&je(t)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)})}function Fe(e){var t=_e(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ae(t)&&(t.disabled||!Pe[t.type]&&je(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function $e(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Be(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&We({modifiers:_e(t),properties:r,layout:n})}function We(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ae(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ve(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ue(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ge(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),Ge)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&s(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):function(e,t,r){if(!e)return Promise.resolve();var n=q.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(n,!0)):Promise.resolve()}(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ke(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&Pe[e.type]&&Pe[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=_e(t);if(We({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ke({modifiers:n,properties:e})}}),s(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Ie[t.id].masterItemSubscriber=Ie[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach(function(r){t[r]=s(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach(function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,function(){return e=t.id,r(de),delete n[e],void c();var e}),enabled:!1,properties:l(t.layout)}}).catch(function(){})}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()}),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Ie[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in ZA.default=n.default,n)-1===["default"].indexOf(Ze)&&(ZA[Ze]=n[Ze]);Object.defineProperty(ZA,"__esModule",{value:!0})})();var eP=er(QA);const tP={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},rP={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}},nP=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)=>(!eP.hasActiveModifiers({measures:[e],properties:t.properties})||eP.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")}),oP={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:mE.Auto,translation:"Common.Auto"},{value:mE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:mE.Pixels,translation:"Object.Table.Column.Pixels"},{value:mE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:mE.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===mE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===mE.Percentage}},iP=e=>({...tP,...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}]}},...rP,...oP}),aP={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},sP=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:nP(e)}},lP=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:aP},presentation:{type:"items",translation:"properties.presentation",items:{...iP(e),...XA(e)}}}}}),uP=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:sP(e)},presentation:{type:"items",translation:"properties.presentation",items:{...iP(e),...JA(e,{[VA.Image]:!0,[VA.Indicator]:!0,[VA.MiniChart]:!0})}}}}}),cP=e=>({...lP(e),...uP(e)}),dP=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...cP(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}}}),pP={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}},fP=({flags:e})=>{const t={ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1};return e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")?{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},t,{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]}:t},hP=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")}),mP=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),gP=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},vP=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>gP(e,!0))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Ee(n).filter(e=>!a.includes(e)).map(e=>gP(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),bP=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],yP=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>gP(e,!1))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...bP.filter(e=>!i.includes(e)).map(e=>gP(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),xP=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:vP({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:yP({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:mP(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:mP(`${e}.background`,"properties.background",(t,r)=>{const n=r?LC.WHITE:LC.TRANSPARENT;return o(t,e,"backgroundColor")??n},a)}}}}),SP=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:mP(`${e}.fontColor`,void 0,t=>n(t,e,"color")??t.color)}},background:mP(`${e}.background`,"properties.background",t=>n(t,e,"backgroundColor")??r??"transparent")}}}}),wP=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},CP=e=>e.grid?.zebraStripes?.show,EP={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)}},RP=e=>e?.content?.hoverEffect,AP={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:RP,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:RP,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},PP=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,MP=({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:xP({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:wP,disableNoneCallback:PP}),dimensionValueSection:xP({section:"dimensionValues",translator:t,flags:e,getThemeValue:wP}),measureValueSection:xP({section:"measureValues",translator:t,flags:e,getThemeValue:wP}),totalRowSection:xP({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:wP,disableNoneCallback:PP}),nullValues:SP({section:"nullValues",fallbackBackground:LC.NULL_VALUE_BACKGROUND,getThemeValue:wP}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...EP},border:mP("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??LC.BORDER_MEDIUM),divider:mP("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??LC.BORDER_HEAVY)}}}},hoverEffectSection:AP,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:CP,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:CP,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:CP,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:CP,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),IP=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[MP(e),hP(e),fP(e),{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},{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]},...pP}}),kP={uses:"sorting"},DP={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},TP=e=>({type:"items",component:"accordion",items:{data:dP(e),sorting:kP,addOns:DP,settings:IP(e)}});function OP(e){return{definition:TP(e),exploration:AA,data:WA(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return RA({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>yA({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:t=>new zA(t,e.translator),usePropertyHandler:"sn-table-data"}}}const LP=e=>{const t=e.get(oA);return a(()=>()=>{t.unmount()},[t]),t};var qP={exports:{}};
102
+ */var SC,wC,CC={},EC={};function RC(){if(SC)return EC;SC=1;var e=au;Object.defineProperty(EC,"__esModule",{value:!0}),EC.default=void 0;var t=(0,e(by()).default)();return EC.default=t,EC}var AC,MC,PC={},IC={};function kC(){if(MC)return PC;MC=1;var e=au;Object.defineProperty(PC,"__esModule",{value:!0}),PC.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,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Zu()),r=Pg,n=function(){if(AC)return IC;AC=1;var e=au;Object.defineProperty(IC,"__esModule",{value:!0}),IC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},IC.getUnit=r,IC.toUnitless=n,IC.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},IC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},IC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},IC.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach(function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(Yg());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return IC}();return PC}var DC,TC={};var OC,LC={};var qC,NC={};var jC,_C={};!function(e){var t=au,r=jm;Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.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=_m;Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=r(by()),a=t(function(){if(vy)return yy;vy=1;var e=au;Object.defineProperty(yy,"__esModule",{value:!0}),yy.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=Pg,r=e(by());return yy}()),s=t(function(){if(bC)return xy;bC=1,Object.defineProperty(xy,"__esModule",{value:!0}),xy.default=function(t){return(0,e.createStyles)(t)};var e=xC;return xy}()),l=t(function(){if(wC)return CC;wC=1;var e=au;Object.defineProperty(CC,"__esModule",{value:!0}),CC.default=void 0;var t=e(Zu()),r=xC,n=e(RC()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return CC.default=o,CC}()),u=t(kC()),c=t(function(){if(DC)return TC;DC=1;var e=au;Object.defineProperty(TC,"__esModule",{value:!0}),TC.default=void 0;var t=e(Zu()),r=xC,n=e(RC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return TC.default=o,TC}()),d=fy();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(function(){if(OC)return LC;OC=1;var e=au;Object.defineProperty(LC,"__esModule",{value:!0}),LC.default=function(){return(0,t.useTheme)()||r.default};var t=xC;e(w);var r=e(RC());return LC}()),f=t(function(){if(qC)return NC;qC=1;var e=au;Object.defineProperty(NC,"__esModule",{value:!0}),NC.default=void 0;var t=e(Zu()),r=xC,n=e(RC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return NC.default=o,NC}()),h=t(function(){if(jC)return _C;jC=1;var e=au;Object.defineProperty(_C,"__esModule",{value:!0}),_C.default=void 0;var t=xC,r=e(RC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return _C.default=n,_C}()),m=xC}(Om),Om.alpha(Bt.GREYSCALE_0,.05),Om.alpha(Bt.GREEN_PALE,.5),Om.alpha(Bt.BLUE_PALE,.5),Om.alpha(Bt.GREEN_PALE,.5),Om.alpha(Bt.BLUE_PALE,.5),Om.alpha(Bt.GREEN_PALE,.5),Om.alpha(Bt.BLUE_PALE,.5),Om.alpha(Bt.GREEN_PALE,.5),Om.alpha(Bt.BLUE_PALE,.5),Om.alpha(Bt.GREEN_PALE,.5),Om.alpha(Bt.BLUE_PALE,.5);const zC=(e="light")=>({components:km(),palette:Dm(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Vt,fontWeightLight:Kt,fontWeightRegular:Xt,fontWeightMedium:Jt,fontWeightBold:Zt,htmlFontSize:Vt,fontFamily:Qt.FONT_FAMILY,button:{fontWeight:Jt,fontSize:Vt,textTransform:"none"},body1:{fontSize:Ut,lineHeight:"24px"},body2:{fontSize:Vt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Gt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ut,fontWeight:Jt,lineHeight:"16px"},h6:{fontSize:Vt,fontWeight:Jt,lineHeight:"16px"},caption:{color:Bt.TEXT_SECONDARY},subtitle1:{fontSize:Vt,color:Bt.TEXT_SECONDARY},subtitle2:{fontSize:Wt,color:Bt.TEXT_SECONDARY}},shape:{borderRadius:Yt}}),FC=zC().palette,$C={TEXT:FC.text.primary,DISABLED:FC.text.disabled,HOVER:FC.action.hover,WHITE:Tm.GREYSCALE_100,BORDER_LIGHT:Tm.GREYSCALE_90,BORDER_MEDIUM:Tm.GREYSCALE_85,BORDER_HEAVY:Tm.GREYSCALE_50,DARK_MODE_TEXT:Tm.GREYSCALE_95,DARK_MODE_BORDER:Tm.GREYSCALE_95,DARK_MODE_DISABLED:Tm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Tm.GREYSCALE_95,SELECTED:FC.primary.main,LINK:FC.info.main,ERROR:FC.error.main},HC=(e,t=$C.TEXT,r=$C.WHITE)=>{const n=se(e??""),o=se(t),i=se(r);return n.isInvalid()?t:function(e,t,r){const n=le(e,t),o=le(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},BC=e=>{const t=e.getStyle("","","dataColors.selected")||$C.SELECTED,r=function(e,t){const r=se(ue),n=se(e),o=se(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=le(r,n),a=le(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?ue:"#000000"}(t,$C.TEXT);return{background:t,color:r}},WC=(e,t)=>{const r=se(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},VC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},UC=e=>{const t=se(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},GC=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},YC=e=>{e.stopPropagation(),e.preventDefault()},KC=e=>!!e&&0===se(e).a,XC="#grid",JC=(e,t,r,n=$C.WHITE)=>e&&!KC(e)?e:KC(t)?r&&!KC(r)?r:n:t,ZC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},QC=(e,t,r,n,o)=>{const i=ZC(".qv-object .qv-inner-object",r),a=ZC(".qv-panel-sheet",r),s=ZC(XC,r)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return UC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=se(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=KC(d),f=!KC(h=p?s:d)&&HC(h,$C.TEXT,$C.DARK_MODE_TEXT)===re($C.DARK_MODE_TEXT);var h;return{color:d,headerColor:JC(l,d,s),isDark:f}},eE=(e,t,n,o)=>{const l=s(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=i([]);return a(()=>{let r;return e&&(r=new MutationObserver(e=>{n(e)}),r.observe(e,t)),()=>{r?.disconnect()}},[e,t]),r})(t.closest(XC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return r(()=>({...l,background:QC(e,l,t,n,o)}),[l.name(),t,n,o,e,u])};const tE=3,rE=/\n/g;function nE(e,t,r){let n=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}const oE=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o)=>{const{maxNbrLinesOfText:i=tE,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const s=o.measureText.bind(o),l=kt(e=>{if(void 0===e)return 0;if(a){const t=e.split(rE).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(rE," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=kt(({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split(rE):[e];let o=0;for(const e of n){let r=e;do{o+=1,r=nE(r,t,u)}while(null!==r&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}};function iE({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=tE,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:u}=P(()=>oE({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[r,n,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var aE,sE=W;aE=sE.createRoot,sE.hydrateRoot;const lE="Source Sans Pro, sans-serif",uE=(e,t,n)=>{const[,i,a]=function(e,t){const n=r(()=>({isLoading:!0}),t),[i,a]=o(async()=>{try{return await e()}finally{n.isLoading=!1}},t);return[i,n.isLoading,a]}(async()=>{const t=Ee(n.flags),r=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,r,o,i,lE].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,n]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function cE(e,t){const[r,n]=I(t);r.some((e,r)=>e!==t[r])&&(n(t),e())}var dE={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const pE=({translator:e})=>(P(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(dE).forEach(t=>{e.add(dE[t])})}}(e)},[e]),e),fE="12px",hE="nebula-table-utils-head-menu-button",mE="nebula-table-utils-head-menu-wrapper",gE="nebula-table-utils-head-menu",bE="nebula-table-utils-head-menu-list-id",vE="sn-copy-cell";let yE=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const xE="nebula-table-utils-column-adjuster";let SE=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),wE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const CE={darker:.15,brighter:.3,opacity:.03},EE={darker:.3,brighter:.5,opacity:.05};let RE=function(e){return e.Cyclic="C",e}({});const AE=document.createElement("textarea");function ME(e){AE.value=e,document.body.appendChild(AE),AE.select(),AE.setSelectionRange(0,AE.value.length),document.execCommand("copy"),document.body.removeChild(AE)}AE.style.position="absolute",AE.style.left="-9999px",AE.setAttribute("readonly","");const PE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{ME(t)}):ME(t))};function IE(e){return"init"in e}function kE(e){return!!e.write}function DE(e){return"v"in e||"e"in e}function TE(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function OE(e){return"function"==typeof(null==e?void 0:e.then)}function LE(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function qE(e,t,r){const n=r.get(e),o=null==n?void 0:n.t,i=t.p;if(!(null==o?void 0:o.size))return i;if(!i.size)return o;const a=new Set(o);for(const e of i)a.add(e);return a}const NE=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach(e=>e(r)),null==(o=t.get(r))||o.forEach(e=>e())};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function jE(e){return e.i||(e.i=NE()),e.r||(e.r=NE()),e.c||(e.c=NE()),e.m||(e.m=NE()),e.u||(e.u=NE()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const _E=(e,t,...r)=>t.read(...r),zE=(e,t,...r)=>t.write(...r),FE=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},$E=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},HE=(e,r)=>{var n;const o=iR(e),i=o[0],a=o[6],s=o[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Atom is undefined or null");let l=i.get(r);return l||(l={d:new Map,p:new Set,n:0},i.set(r,l),null==(n=a.i)||n.call(a,r),null==s||s(e,r)),l},BE=e=>{var t;const r=iR(e),n=r[1],o=r[3],i=r[4],a=r[5],s=r[6],l=r[13];if(!(s.f||o.size||i.size||a.size))return;const u=[],c=e=>{try{e()}catch(e){u.push(e)}};do{s.f&&c(s.f);const r=new Set;for(const e of o){const o=null==(t=n.get(e))?void 0:t.l;if(o)for(const e of o)r.add(e)}o.clear();for(const e of a)r.add(e);a.clear();for(const e of i)r.add(e);i.clear();for(const e of r)c(e);o.size&&l(e)}while(o.size||a.size||i.size);if(u.length)throw new AggregateError(u)},WE=e=>{const r=iR(e),n=r[1],o=r[2],i=r[3],a=r[11],s=r[14],l=r[17];if(!i.size)return;const u=[],c=[],d=new WeakSet,p=new WeakSet,f=[],h=[];for(const t of i)f.push(t),h.push(a(e,t));for(;f.length;){const r=f.length-1,i=f[r],s=h[r];if(p.has(i))f.pop(),h.pop();else if(d.has(i)){if(o.get(i)===s.n)u.push(i),c.push(s);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(i))throw new Error("[Bug] invalidated atom exists");p.add(i),f.pop(),h.pop()}else{d.add(i);for(const t of qE(i,s,n))d.has(t)||(f.push(t),h.push(a(e,t)))}}for(let t=u.length-1;t>=0;--t){const r=u[t],n=c[t];let a=!1;for(const e of n.d.keys())if(e!==r&&i.has(e)){a=!0;break}a&&(o.set(r,n.n),s(e,r),l(e,r)),o.delete(r)}},VE=new WeakSet,UE=(e,r)=>{var n,o;const i=iR(e),a=i[1],s=i[2],l=i[3],u=i[6],c=i[7],d=i[11],p=i[12],f=i[13],h=i[14],m=i[16],g=i[17],b=i[20],v=i[26],y=i[28],x=d(e,r),S=y[0];if(DE(x)){if(a.has(r)&&s.get(r)!==x.n||x.m===S)return x.m=S,x;let t=!1;for(const[r,n]of x.d)if(h(e,r).n!==n){t=!0;break}if(!t)return x.m=S,x}let w=!0;const C=new Set(x.d.keys()),E=()=>{for(const e of C)x.d.delete(e)},R=()=>{if(a.has(r)){const t=!l.size;g(e,r),t&&(f(e),p(e))}},A=t=>{var n;if(t===r){const r=d(e,t);if(!DE(r)){if(!IE(t))throw new Error("no atom init");b(e,t,t.init)}return TE(r)}const o=h(e,t);try{return TE(o)}finally{C.delete(t),x.d.set(t,o.n),OE(x.v)&&LE(r,x.v,o),a.has(r)&&(null==(n=a.get(t))||n.t.add(r)),w||R()}};let M,P;const I={get signal(){return M||(M=new AbortController),M.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||kE(r)||console.warn("setSelf function cannot be used with read-only atom"),!P&&kE(r)&&(P=(...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,r,...n)}finally{f(e),p(e)}}),P}},k=x.n,D=s.get(r)===k;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&VE.delete(e);const o=c(e,r,A,I);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&VE.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),b(e,r,o),OE(o)){v(e,o,()=>null==M?void 0:M.abort());const t=()=>{E(),R()};o.then(t,t)}else E();return null==(n=u.r)||n.call(u,r),x.m=S,x}catch(e){return delete x.v,x.e=e,++x.n,x.m=S,x}finally{w=!1,x.n!==k&&D&&(s.set(r,x.n),l.add(r),null==(o=u.c)||o.call(u,r))}},GE=(e,t)=>{const r=iR(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of qE(t,r,n)){const t=i(e,s);o.get(s)!==t.n&&(o.set(s,t.n),a.push(s))}}},YE=(e,r,...n)=>{const o=iR(e),i=o[3],a=o[6],s=o[8],l=o[11],u=o[12],c=o[13],d=o[14],p=o[15],f=o[16],h=o[17],m=o[20],g=o[28];let b=!0;const v=t=>TE(d(e,t)),y=(n,...o)=>{var s;const d=l(e,n);try{if(n===r){if(!IE(n))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&VE.add(e);const r=d.n,l=o[0];return m(e,n,l),h(e,n),void(r!==d.n&&(++g[0],i.add(n),p(e,n),null==(s=a.c)||s.call(a,n)))}return f(e,n,...o)}finally{b||(c(e),u(e))}};try{return s(e,r,v,y,...n)}finally{b=!1}},KE=(e,t)=>{var r;const n=iR(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p&&d.d.size>0){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},XE=(e,t)=>{var r;const n=iR(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(t,m),kE(t)&&function(e){return!!e.onMount}(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,t)}return m},JE=(e,t)=>{var r,n;const o=iR(e),i=o[1],a=o[5],s=o[6],l=o[11],u=o[19],c=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},ZE=(e,t,r)=>{const n=iR(e),o=n[11],i=n[27],a=o(e,t),s="v"in a,l=a.v;if(OE(r))for(const n of a.d.keys())LE(t,r,o(e,n));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,OE(l)&&i(e,l))},QE=(e,t)=>TE((0,iR(e)[14])(e,t)),eR=(e,t,...r)=>{const n=iR(e),o=n[3],i=n[12],a=n[13],s=n[16],l=o.size;try{return s(e,t,...r)}finally{o.size!==l&&(a(e),i(e))}},tR=(e,t,r)=>{const n=iR(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},rR=(e,t,r)=>{const n=iR(e)[25];let o=n.get(t);if(!o){o=new Set,n.set(t,o);const e=()=>n.delete(t);t.then(e,e)}o.add(r)},nR=(e,t)=>{const r=iR(e)[25].get(t);null==r||r.forEach(e=>e())},oR=new WeakMap,iR=e=>{const r=oR.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Store must be created by buildStore to read its building blocks");return r};function aR(e){const t=iR(e),r=t[24];return r?r(t):t}let sR,lR=0;function uR(e,r){const n="atom"+ ++lR,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?o.read=e:(o.init=e,o.read=cR,o.write=dR),r&&(o.write=r),o}function cR(e){return e(this)}function dR(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function pR(){return function(...e){const t={get:e=>(0,iR(t)[21])(t,e),set:(e,...r)=>(0,iR(t)[22])(t,e,...r),sub:(e,r)=>(0,iR(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},_E,zE,FE,$E,HE,BE,WE,UE,GE,YE,KE,XE,JE,ZE,QE,eR,tR,void 0,new WeakMap,rR,nR,[0]].map((t,r)=>e[r]||t);return oR.set(t,Object.freeze(r)),t}()}const fR=D(void 0);function hR(e){return N(fR)||(sR||(sR=pR(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=sR),globalThis.__JOTAI_DEFAULT_STORE__!==sR&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),sR)}function mR({children:e,store:t}){const r=k(null);return t?C(fR.Provider,{value:t},e):(null===r.current&&(r.current=pR()),C(fR.Provider,{value:r.current},e))}const gR=e=>"function"==typeof(null==e?void 0:e.then),bR=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},vR=w.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(bR(e),e)}),yR=new WeakMap,xR=(e,t,r)=>{const n=aR(e)[26];let o=yR.get(t);return o||(o=new Promise((i,a)=>{let s=t;const l=e=>t=>{s===e&&i(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=r();gR(t)?(yR.set(t,o),s=t,t.then(l(t),u(t)),n(e,t,c)):i(t)}catch(e){a(e)}};t.then(l(t),u(t)),n(e,t,c)}),yR.set(t,o)),o};function SR(e,t){const{delay:r,unstable_promiseStatus:n=!w.use}={},o=hR(),[[i,a,s],l]=T(t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]},void 0,()=>[o.get(e),o,e]);let u=i;if(a===o&&s===e||(l(),u=o.get(e)),O(()=>{const t=o.sub(e,()=>{if(n)try{const t=o.get(e);gR(t)&&bR(xR(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof r)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(l,r);l()});return l(),t},[o,e,r,n]),L(u),gR(u)){const t=xR(o,u,()=>o.get(e));return n&&bR(t),vR(t)}return u}function wR(e,r){const n=hR();return q((...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function CR(e,t){return[SR(e),wR(e)]}const ER=uR(void 0),RR=uR({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>Promise.resolve()}),AR=uR({}),MR=uR({}),PR=uR(e=>{const t=e(MR);return e=>t.flags.isEnabled(e)}),IR=uR(!1),kR=uR({qHyperCube:{qDimensionInfo:[],qSize:{qcx:0,qcy:0}}}),DR=uR(e=>e(kR).qHyperCube.qSize.qcy),TR=uR(e=>!!e(kR).snapshotData),OR=uR(e=>e(kR).qHyperCube.qDimensionInfo.length),LR=uR(e=>e(kR).qStateName),qR=uR(e=>e(kR).snapshotData),NR=uR(e=>!1!==e(kR).usePagination),jR=uR(e=>!1!==e(kR).accessibleHeader),_R=uR(),zR=uR(!1),FR=uR(e=>e(_R),(e,t,r)=>{t(_R,r),t(zR,r.isModal())}),$R=uR(),HR=uR(e=>{const t=e($R),r=e(TR);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}},(e,t,r)=>{t($R,r)}),BR=uR(e=>!!e(HR).active),WR=uR(e=>!!e(HR).passive),VR=uR(e=>!!e(HR).select),UR=uR(e=>!!e(HR).scroll),GR=uR(e=>{const t=e(BR),r=e(zR);return t&&!r}),YR=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),KR=uR(),XR=uR(e=>e(KR)?.direction),JR=uR(e=>e(KR)?.footerContainer),ZR=uR(e=>e(KR)?.viewState),QR=uR(e=>e(KR)?.freeResize),eA=uR(e=>{const t=e(kR),r=e(ZR),n=e(NR);return void 0!==r?.usePagination?r.usePagination:n||YR(t,r)}),tA=uR({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),rA=uR(e=>e(tA),(e,t,r)=>{e(eA)&&t(tA,r)}),nA=uR(),oA=uR(e=>{const t=e(nA);if(t&&"getEffectiveProperties"in t)return t}),iA={width:0,height:0,top:0,left:0},aA=uR(iA),sA=uR(iA),lA=uR(e=>e(aA),(e,t,r)=>{const n=e(kR),o=e(QR),i=e(aA),a=n.snapshotData?.content&&!o;(i.width!==r.width||i.height!==r.height||i.top!==r.top||i.left!==r.left||a)&&(t(sA,r),t(aA,a?{...r,...n.snapshotData?.content?.size}:r))}),uA=uR({}),cA=new WeakMap,dA=uR(e=>{const t=e(uA),r=cA.get(t);if(r)return r;const n=aE(t);return cA.set(t,n),n}),pA=uR({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),fA=uR({get:e=>e,add:()=>{},language:()=>"en"});var hA={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>De});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var R=t().bind(null,!0),A={},M=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function I(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=I(e[r||t])?i:e[t],e=e[r||t]}}),e}function T(e,t){var r=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){T(e[n],t[n])||(r=!1)}),r);if(M(e)&&M(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||k(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):P(i)&&P(a)?n=n.concat(A.generate(a,i,s)):M(i)&&M(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&I(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!I(t[0])&&I(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){I(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},A.apply=function(e,t){t.forEach(function(t){var r,n,o=D(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(M(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(M(a)&&M(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(P(a)&&P(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]}),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=D(e,t.from);M(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(M(o)?o.splice(+i,1):delete o[i])})},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,L=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var q="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===q)return r[n]}function j(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function H(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var v=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(b,v,y);b=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function U(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Me={initBase:function(e,t){(t||Me.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Me.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Pe=Me;function Ie(e){return Ie="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},Ie(e)}var ke={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:ke,apply:Oe,applyModifiers:Le,cleanUpMeasure:qe,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:r,layout:n})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=Fe(e);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:_e};var Te={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Te[r.id]=Te[r.id]||{isFirstTime:!0};var u=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Ie(n))return Le({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ge({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then(function(e){var n=t()(!0,{},e);He(n);var o=Qe(n);return Ye({model:r}).then(function(t){return Ke({libraryIds:o,model:r}).then(function(o){return h&&function(e){var t=e.properties;ze(t).forEach(function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:n}),Le({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ie(e.base)})}(p)?r.getEffectiveProperties().then(function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then(function(){var e=t()(!0,{},n);return ze(n).forEach(function(e){return qe(e)}),Je({oldProperties:e,newProperties:n,model:r})})}({model:r,properties:e})}):Promise.resolve(l)}function Le(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then(function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach(function(e){return qe(e)}),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){r.forEach(function(r){Ge({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Pe.isValid(r)||Pe.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(s++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:ke[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof ke[n.type].updateModifier&&ke[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:ke[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}})}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):qe(r)})})})}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)})})}function qe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&!ke[e.type]})}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})})}function je(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(ke[n.type]&&!n.disabled)return n}}function _e(e){var t=je(e);return!t||ke[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach(function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)})}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ie(t)&&(t.disabled||!ke[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ie(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):L(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=Fe(t);if(Ge({modifiers:n,properties:e})){var i=Ve(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach(function(r){t[r]=i(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach(function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose()}),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Te[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>He});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach(function(e){t.properties[e]=r[e]})},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const I=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},k=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},D=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},q=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},_=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return M(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),n.dimensions.added(e,r)})}},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),n.measures.added(e,r)})}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach(function(t){i.setValue(e,t,r[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=_({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,A=l.defaultMeasure,M=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:M}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),j({exportFormat:t,newHyperCubeDef:v}),k("qMaxStackedCells",b,v),k("qNoOfLeftDims",b,v),D("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",b,v,"S"),D("qReductionMode",b,v,"N"),D("qSortbyYValue",b,v),D("qIndentMode",b,v),D("qShowTotalsAbove",b,v),I(g,t,n),m.qProperty=g;var P=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:P}),p&&W(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(G(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}),t.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Me="conditionalColoring",Pe="measures",Ie="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Me,arrayName:Pe,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Pe,quarantineName:Me})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",Le="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},He={hypercube:V,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:$e}})(),n.default})()}(hA);var mA=er(hA.exports);const gA="qHyperCubeDef.qMeasures",bA="measures",vA="qHyperCubeDef.qDimensions",yA="dimensions",xA="qDef.representation",SA="tableRepresentation",wA="qDef.conditionalColoring",CA="conditionalColoring",EA="qMiniChartDef",RA="miniChartDef",AA=({propertyTree:e,hyperCubePath:t})=>{const r=mA.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map(r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t));return o})(o,i,n);return It(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),mA.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),mA.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),mA.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{mA.quarantineArrayProp({properties:e,arrayPath:vA,itemPath:xA,arrayName:yA,quarantineName:SA}),mA.quarantineArrayProp({properties:e,arrayPath:gA,itemPath:xA,arrayName:bA,quarantineName:SA}),mA.quarantineArrayProp({properties:e,arrayPath:gA,itemPath:wA,arrayName:bA,quarantineName:CA}),mA.quarantineArrayProp({properties:e,arrayPath:gA,itemPath:EA,arrayName:bA,quarantineName:RA})})(r.properties),r};const MA=/^q[A-Z]/,PA=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],IA=e=>"object"==typeof e&&null!==e,kA=(e,t)=>(Object.entries(e).forEach(([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!MA.test(e)&&!PA.some(e=>e.test(t)))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map((e,t)=>IA(e)?kA(e,`${o}.${t}`):e):IA(n)&&(e[r]=kA(n,o))}),e),DA=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:wE.Pixels,pixels:e}:{type:wE.FitToContent}:i.qDef.columnWidth=e}return i},TA=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{if(i){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}kA(e.properties)}const a=mA.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(mA.conditionalShow.unquarantine(a.qProperty),i)It(a,"qProperty.totals.show",!1),It(a,"qProperty.usePagination",!0),It(a,"qProperty.accessibleHeader",!0);else{mA.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{mA.unquarantineArrayProp({properties:e,arrayPath:vA,itemPath:xA,arrayName:yA,quarantineName:SA}),mA.unquarantineArrayProp({properties:e,arrayPath:gA,itemPath:xA,arrayName:bA,quarantineName:SA}),mA.unquarantineArrayProp({properties:e,arrayPath:gA,itemPath:wA,arrayName:bA,quarantineName:CA}),mA.unquarantineArrayProp({properties:e,arrayPath:gA,itemPath:EA,arrayName:bA,quarantineName:RA})})(a.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=a.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>DA(e,t,n)),measures:a.filter(e=>e>=o).map(e=>DA(t,e,n,o))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(It(a,"qProperty.qHyperCubeDef.qDimensions",o),It(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var OA={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}},LA=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}(LA||{}),qA=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(qA||{}),NA=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(NA||{}),jA=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(jA||{});const _A=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,zA=e=>{if(!Array.isArray(e))return"";let t="{<";const r=[];if(e.forEach(e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,n="}",o="";switch(e.type){case NA.SEARCH:o=(e=>{let t="",r="";const n=e.options?.mode;if(!n)return"";switch(n){case LA.BEGINNING_OF_WORD:t="*^",r="*";break;case LA.ENDS_WITH:t="*";break;case LA.STARTS_WITH:r="*";break;case LA.MATCHES_EXACTLY:break;case LA.CONTAINS:default:t="*",r="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${r}"`:""})(e);break;case NA.CONDITION:o=(e=>{const{options:t}=e,r=t?.mode===qA.GENERAL,n=t?.modifier?.type===jA.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!n&&(!t.firstValue?.aggregator||!t.firstValue?.field)||n&&!t.firstValue?.fixedValue||r&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";r&&n?(i=`${t.conditionField?.aggregator}(${_A(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!r&&n?(i="",a=`${t.firstValue?.fixedValue}`,s=""):r||n?(i=`${t.conditionField?.aggregator}(${_A(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${_A(t.firstValue?.field)})`):(i=`${_A(e.field)}`,a=`${t.firstValue?.aggregator}(total ${_A(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let u="";if(o.length>1){if(!n&&(!t.secondValue?.aggregator||!t.secondValue?.field)||n&&!t.secondValue?.fixedValue)return"";let e,a;r&&n?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!r&&n?(e=`${t.secondValue?.fixedValue}`,a=""):r||n?(e=`${t.secondValue?.aggregator}(${_A(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${_A(t.secondValue?.field)})`,a=` and ${i}`),u=`${a}${o[1]}${e}`}return`"${l}${u}"`})(e);break;case NA.CLEAR_SELECTION:o=`[${e.field}]=`,t="",n="";break;case NA.VALUES:default:o=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==o&&r.push(`${t}${o}${n}`)}),0===r.length)return;return t+=`${r.join(",")}>}`,t},FA=[];for(let e=0;e<256;++e)FA.push((e+256).toString(16).slice(1));let $A;const HA=new Uint8Array(16);var BA={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function WA(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!$A){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$A=crypto.getRandomValues.bind(crypto)}return $A(HA)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(FA[e[t+0]]+FA[e[t+1]]+FA[e[t+2]]+FA[e[t+3]]+"-"+FA[e[t+4]]+FA[e[t+5]]+"-"+FA[e[t+6]]+FA[e[t+7]]+"-"+FA[e[t+8]]+FA[e[t+9]]+"-"+FA[e[t+10]]+FA[e[t+11]]+FA[e[t+12]]+FA[e[t+13]]+FA[e[t+14]]+FA[e[t+15]]).toLowerCase()}(n)}const VA=()=>crypto?.randomUUID?.()??function(e){return BA.randomUUID&&!e?BA.randomUUID():WA(e)}();class UA extends u{#e;constructor(e,t){super(e),this.#e=t}#t(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.keys(t).length;this.hcProperties.qLayoutExclude.allColumnOrder={...t,...Object.fromEntries(e.map((e,t)=>[e,r+t]))}}#r(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude.allColumnOrder=Object.fromEntries(r.map(([e],t)=>[e,t]))}#n(e,t){const r=this.hcProperties.qLayoutExclude.allColumnOrder??{},n={};for(const[o,i]of Object.entries(r))n[o===e?t:o]=i;this.hcProperties.qLayoutExclude.allColumnOrder=n}async addDimension(e,t=!1){const r=await this.addDimensions([e],t);return 0===r.length?void 0:r[0]}async addDimensions(e,t=!1){const r=await super.addDimensions(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeDimension(e,t=!1){const r=await this.removeDimensions([e],t);return 0===r.length?void 0:r[0]}async removeDimensions(e,t=!1){const r=await super.removeDimensions(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceDimension(e,t){const r=this.getDimensions()[e].qDef.cId,n=await super.replaceDimension(e,t),o=n.qDef.cId;return this.#n(r,o),n}async addMeasure(e,t=!1){const r=await this.addMeasures([e],t);return 0===r.length?void 0:r[0]}async addMeasures(e,t=!1){const r=await super.addMeasures(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeMeasure(e,t=!1){const r=await this.removeMeasures([e],t);return 0===r.length?void 0:r[0]}async removeMeasures(e,t=!1){const r=await super.removeMeasures(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceMeasure(e,t){const r=this.getMeasures()[e].qDef.cId,n=await super.replaceMeasure(e,t),o=n.qDef.cId;return this.#n(r,o),n}async#o(e){const t=this.getMeasure(e);if(t){const r=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#i(e){const t=this.getMeasure(e);if(t){const r=this.getMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#a(e){const t=this.getDimension(e);if(t){const r=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#s(e){const t=this.getDimension(e);if(t){const r=this.getDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!1),await super.addDimension(t,!0,this.getDimensions().length)}}#l(e){const{qDimensions:t,qMeasures:r}=this.hcProperties,n=new Map([...t,...r].map((e,t)=>[e.qDef.cId,t]));this.hcProperties.qColumnOrder=e.reduce((e,t)=>{const r=n.get(t);return void 0!==r?[...e,r]:e},[])}async toggleAlternatives(e,t){await Promise.all(e.map(e=>"dimension"===e.type?e.isAlternative?this.#a(e.id):this.#s(e.id):e.isAlternative?this.#o(e.id):this.#i(e.id))),this.#l(t)}setAllColumnOrderForColumnIds(e){const t=e.reduce((e,t,r)=>(e[t]=r,e),{});this.hcProperties.qLayoutExclude.allColumnOrder=t}updateColumnOrders(e){this.setAllColumnOrderForColumnIds(e),this.#l(e)}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,r=Array.isArray(t)&&t.includes("$numeric"),n=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:n?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:VA(),qTags:Array.isArray(t)?t:[],isNumeric:r};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=zA(o),i}addFilters(e){const t=[];for(const r of e)t.push(this.addFilterField(r));return t}#u(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=zA(t),t}removeFilters(e){if(0===e.length)return[];let t=[];const r=[...e].sort((e,t)=>t-e);t=this.getFilters().filter((t,r)=>e.includes(r));for(const e of r)this.#u(e);return t}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#e.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const GA=(e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;return e.splice(r,1),r};function YA(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function KA(e){return e>0?0:1}function XA(e){return e.translator.get("Visualizations.Descriptions.Column")}function JA(e){return{measures:{min:KA,max:1e3,description:()=>XA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;YA(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties,i=(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n;GA(o,i)}},dimensions:{min:KA,max:1e3,description:()=>XA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return YA(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;GA(o,n)}}}}let ZA=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}({}),QA=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const eM=e=>{switch(e?.type){case"url":return ZA.Link;case"image":return ZA.Image;case"indicator":return ZA.Indicator;case"miniChart":return ZA.MiniChart;default:return ZA.Text}},tM=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),rM=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>eM(e.qDef.representation)===ZA.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},nM=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:tM({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>eM(e.qDef.representation)===ZA.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>eM(e.qDef.representation)===ZA.Link&&e.qDef.representation?.urlPosition===QA.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>eM(e.qDef.representation)===ZA.Link&&e.qDef.representation?.urlPosition===QA.Attribute},...rM(r)}},oM=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[ZA.Image],i=!n?.("qMiniChartDef")&&t[ZA.MiniChart],a=!n?.("tableIndicators")&&t[ZA.Indicator],s=o&&t[ZA.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>eM(e.qDef.representation)===ZA.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 iM,aM={};iM=aM,(()=>{var e={370:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{default:()=>Pe});var o=r(370),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(c,f),b=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function w(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:f,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:w,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return w(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=C({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=l.OPTIONS.find(function(t){return t.value===e.decomposition});return t?l.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(l.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var M=i().bind(null,!0),P={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function D(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}}),e}function L(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){L(e[n],t[n])||(r=!1)}),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}P.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?M({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(P.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(L(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(P.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){D(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},P.apply=function(e,t){t.forEach(function(t){var r,n,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]}),M(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(e,t.from);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])})},P.clone=function(e){return M({},e)},P.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):M(e,t)};const q=P;var N="accumulation";function j(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function _(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(_(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(_(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=j(t,e);return i&&!i.disabled}}}};var $="movingAverage";function H(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function B(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=E.getNumDimensions({properties:o,layout:i}));var c=s(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:i})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=H(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function G(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function Y(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const X={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(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:l.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,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=G(t,e);return i&&!i.disabled}}}};var J="difference";function Z(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===J)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(J))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===J)return r[n]}(t,e);return i&&!i.disabled}}}};var te="normalization";function re(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a,s){var l=ae(t),u=se(t,r,n),c=""===l&&""===u?"":l||u,d=le(o,i),p=ue(o,i,a),f=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension,r.ignoreNegative)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="library id deleted",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId",ge="qDef.qLabel",be="qDef.qLabelExpression",ve="qDef.base.qLabel",ye="qDef.base.qLabelExpression",xe="qDef.qAggrFunc",Se="qDef.base.qAggrFunc",we="qDef.base";const Ce={getExpression:function(e){var t=s(e,fe);return void 0!==t?t:s(e,pe)},getExpressionRef:function(e){return void 0!==s(e,fe)?fe:pe},getLibraryIdRef:function(e){return s(e,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},getLabelRef:function(e){return s(e,we)?ve:ge},getLabelExpressionRef:function(e){return s(e,we)?ye:be}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,me,s(e,he)),a(e,ve,s(e,ge)),a(e,ye,s(e,be)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,he,s(e,me)),a(e,ge,s(e,ve)),a(e,be,s(e,ye)),s(e,xe)&&s(e,Se)&&a(e,xe,s(e,Se)),delete e.qDef.base)},isValid:function(e){var t=s(e,fe),r=s(e,me);return void 0!==t||void 0!==r}};const Re=Ee;function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}var Me={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:X};const Pe={modifiers:Me,apply:ke,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&Ie[e.id]&&Ie[e.id].masterItemSubscriber&&(Ie[e.id].masterItemSubscriber&&Ie[e.id].masterItemSubscriber.unsubscribe(),delete Ie[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Me[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return Me[e]&&Me[e].isApplicable({properties:r,layout:n})})},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=je(e);We({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:qe};var Ie={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,l=!1;Ie[t.id]=Ie[t.id]||{isFirstTime:!0};var u=Ie[t.id].isFirstTime;if(Ie[t.id].isFirstTime=!1,r&&"object"===Ae(r))return De({model:t,properties:r});var c=t?t.layout:void 0,d=s(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(c,"qHyperCube.qMeasureInfo"),f=Ie[t.id].lastReloadTime;if(Ie[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Be({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return We({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then(function(e){var r=i()(!0,{},e);ze(r);var n=Xe(r);return Ve({model:t}).then(function(o){return Ue({libraryIds:n,model:t}).then(function(n){return h&&function(e){var t=e.properties;Ne(t).forEach(function(e){return function(e){var t=e.measure;if(Be({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(r++,"object"!==Ae(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&$e(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:r}),De({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(l)})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ae(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then(function(){var e=i()(!0,{},r);return Ne(r).forEach(function(e){return Te(e)}),Ye({oldProperties:e,newProperties:r,model:t})})}({model:t,properties:e})}):Promise.resolve(l)}function De(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,l=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),ze(n);var p=Xe(n);return Je({model:t,libraryIds:p,masterItem:u}).then(function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Ne(r)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:r}))return t.forEach(function(e){return Te(e)}),Promise.resolve();var l=o?void 0:Xe(r);return Ve({model:n,dimensionAndFieldList:a}).then(function(e){return Ue({libraryIds:l,model:n,libraryItemsProps:o}).then(function(n){t.forEach(function(t){var o=t.qDef.modifiers;n&&We({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(a++,"object"!==Ae(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Me[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Me[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Me[r.type].updateModifier&&Me[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Me[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Fe(t)):Te(t)})})})}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Ye({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function Te(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&!Me[e.type]})}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return We({modifiers:je(e),properties:r,layout:n})})}function Le(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Me[n.type]&&!n.disabled)return n}}function qe(e){var t=Le(e);return!t||Me[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function _e(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function ze(e){Ne(e).forEach(function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&_e(t)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)})}function Fe(e){var t=je(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ae(t)&&(t.disabled||!Me[t.type]&&_e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function $e(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Be(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&We({modifiers:je(t),properties:r,layout:n})}function We(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ae(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ve(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ue(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ge(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),Ge)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&s(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):function(e,t,r){if(!e)return Promise.resolve();var n=q.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(n,!0)):Promise.resolve()}(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ke(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&Me[e.type]&&Me[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=je(t);if(We({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ke({modifiers:n,properties:e})}}),s(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Ie[t.id].masterItemSubscriber=Ie[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach(function(r){t[r]=s(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach(function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,function(){return e=t.id,r(de),delete n[e],void c();var e}),enabled:!1,properties:l(t.layout)}}).catch(function(){})}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()}),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Ie[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in iM.default=n.default,n)-1===["default"].indexOf(Ze)&&(iM[Ze]=n[Ze]);Object.defineProperty(iM,"__esModule",{value:!0})})();var sM=er(aM);const lM={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},uM={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}},cM=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)=>(!sM.hasActiveModifiers({measures:[e],properties:t.properties})||sM.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")}),dM={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:wE.Auto,translation:"Common.Auto"},{value:wE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:wE.Pixels,translation:"Object.Table.Column.Pixels"},{value:wE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:wE.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===wE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===wE.Percentage}},pM=e=>({...lM,...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}]}},...uM,...dM}),fM={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},hM=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:cM(e)}},mM=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:fM},presentation:{type:"items",translation:"properties.presentation",items:{...pM(e),...nM(e)}}}}}),gM=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:hM(e)},presentation:{type:"items",translation:"properties.presentation",items:{...pM(e),...oM(e,{[ZA.Image]:!0,[ZA.Indicator]:!0,[ZA.MiniChart]:!0})}}}}}),bM=e=>({...mM(e),...gM(e)}),vM=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...bM(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}}}),yM={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}},xM=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")}),SM=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),wM=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},CM=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>wM(e,!0))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Ee(n).filter(e=>!a.includes(e)).map(e=>wM(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),EM=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],RM=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>wM(e,!1))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...EM.filter(e=>!i.includes(e)).map(e=>wM(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),AM=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:CM({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:RM({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:SM(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:SM(`${e}.background`,"properties.background",(t,r)=>{const n=r?$C.WHITE:$C.TRANSPARENT;return o(t,e,"backgroundColor")??n},a)}}}}),MM=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:SM(`${e}.fontColor`,void 0,t=>n(t,e,"color")??t.color)}},background:SM(`${e}.background`,"properties.background",t=>n(t,e,"backgroundColor")??r??"transparent")}}}}),PM=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},IM=e=>e.grid?.zebraStripes?.show,kM={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)}},DM=e=>e?.content?.hoverEffect,TM={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:DM,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:DM,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},OM=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,LM=({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:AM({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:PM,disableNoneCallback:OM}),dimensionValueSection:AM({section:"dimensionValues",translator:t,flags:e,getThemeValue:PM}),measureValueSection:AM({section:"measureValues",translator:t,flags:e,getThemeValue:PM}),totalRowSection:AM({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:PM,disableNoneCallback:OM}),nullValues:MM({section:"nullValues",fallbackBackground:$C.NULL_VALUE_BACKGROUND,getThemeValue:PM}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...kM},border:SM("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??$C.BORDER_MEDIUM),divider:SM("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??$C.BORDER_HEAVY)}}}},hoverEffectSection:TM,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:IM,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:IM,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:IM,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:IM,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),qM=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[LM(e),xM(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},{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]},...yM}}),NM={uses:"sorting"},jM={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},_M=e=>({type:"items",component:"accordion",items:{data:vM(e),sorting:NM,addOns:jM,settings:qM(e)}});function zM(e){return{definition:_M(e),exploration:OA,data:JA(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return TA({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>AA({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:t=>new UA(t,e.translator),usePropertyHandler:"sn-table-data"}}}const FM=e=>{const t=e.get(dA);return a(()=>()=>{t.unmount()},[t]),t};var $M={exports:{}};
103
103
  /*!
104
104
  * CSSJanus. https://www.mediawiki.org/wiki/CSSJanus
105
105
  *
@@ -118,4 +118,4 @@ function Zi(e,t){let r;return r=t?$i(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
- */!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",u="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",c="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+c+")",p=o+"(?:\\s*"+i+"|"+("-?"+("(?:[_a-z]|"+r+"|"+c+")")+d+"*")+")?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|"+("(?:calc\\((?:"+("(?:(?:\\(|\\)|\\t| )|"+("(?:-?"+o+"(?:\\s*"+i+")?)")+"|(?:\\+|\\-|\\*|\\/)){3,}")+")\\))")+")",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+c+")*?",v="(?![a-zA-Z])",b="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+u+b+"[^;}]+;?)","gi"),P=new RegExp("("+u+"[^\\}]*?})","gi"),M=new RegExp("("+a+")ltr","gi"),I=new RegExp("("+a+")rtl","gi"),k=new RegExp(l+"(left)"+v+y+b,"gi"),D=new RegExp(l+"(right)"+v+y+b,"gi"),T=new RegExp(l+"(left)"+x,"gi"),O=new RegExp(l+"(right)"+x,"gi"),L=/(:dir\( *)ltr( *\))/g,q=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),_=new RegExp(l+"(rtl)"+x,"gi"),j=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"),W=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),V=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"),Y=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),K=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter(function(e){return e}),o=r.slice(6,10).filter(function(e){return e}),i=r[10]||"";return t+(o.length?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(A,"`NOFLIP_SINGLE`"),a=new n(P,"`NOFLIP_CLASS`"),s=new n(R,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(L,"$1`TMPLTR`$2").replace(q,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(_,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(O,"$1left").replace(w,"right")),r=r.replace(M,"$1"+e).replace(I,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(D,"$1left").replace(w,"right").replace(j,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(W,Q).replace(V,te).replace(U,ne).replace(G,ne).replace(Y,te).replace(K,re).replace(X,re).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(qP,qP.exports);var NP=er(qP.exports);function _P(e,t,r){switch(e.type){case sn:case an:case nn:return e.return=e.return||e.value;case on:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===nn&&(e.children=e.value)})}var n=Kn(Array.prototype.concat(e.children),_P);return bn(n)?e.return=e.value+"{"+n+"}":""}function jP(e,t,r,n){if(e.type===ln||"@supports"===e.type||e.type===on&&(!e.parent||"@media"===e.parent.type||e.parent.type===on)){var o=NP.transform(_P(e));e.children=o?Bn(o)[0].children:[],e.return=""}}function zP(e,t){let r=null;const n=new Map,o=new Set;function i(o){let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!r?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}Object.defineProperty(jP,"name",{value:"stylisRTLPlugin"});const FP=zP(({options:e,...t})=>rR(JC(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);function $P(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function HP(e){const t=rR(()=>[]),r=rR(function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)});return r.effect=e,r.INTERNAL_onInit=e=>{const n=new Set;let o,i=0,a=!1,s=!1,l=!1;function u(){if(i)return;n.clear();let t=!0;const c=o=>{if(l)return e.get(o);if(o===r){const t=h(e,o);if(!EE(t)){if(!wE(o))throw new Error("no atom init");S(e,o,o.init)}return RE(t)}const i=v(e,o);try{return RE(i)}finally{C.d.set(o,i.n),d.get(o)?.t.add(r),t?n.add(o):d.has(o)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...o)=>{const a=h(e,n);try{if(++i,n===r){if(!wE(n))throw new Error("atom not writable");const t=a.n,r=o[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),b(e,n)))}return y(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if($P())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{o?.();const e=r.effect(c,w);if("function"!=typeof e)return;o=()=>{if(!i)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,o=void 0}}}finally{t=!1,n.forEach(t=>{C.d.set(t,h(e,t).n)}),x(e,r),g(e)}}const c=QE(e),d=c[1],p=c[3],f=kE(c[6]),h=c[11],m=c[12],g=c[13],v=c[14],b=c[15],y=c[16],x=c[17],S=c[20],w=function(e,t){let r=BP.get(e);r||(r=new Set,BP.set(e,r),t.f.add(function(){for(const e of r)r.delete(e),e()}));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,function(){p.delete(r)}),f.m.add(r,function(){w.add(u),o&&w.delete(o)}),f.u.add(r,function(){w.delete(u),o&&w.add(o)}),f.c.add(r,function(){a?s=!0:w.add(u)})},$P()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const BP=new WeakMap;class WP{#c={on:new Map,once:new Map};#d=10;#p(e){this.listenerCount(e)>this.#d&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#f(e,t,r){const n=this.#c[e].get(t)??new Set;n.add(r),this.#c[e].set(t,n),this.#p(t)}setMaxListeners(e){this.#d=e}on(e,t){this.#f("on",e,t)}once(e,t){this.#f("once",e,t)}off(e,t){this.#c.on.get(e)?.delete(t),this.#c.once.get(e)?.delete(t)}emit(e,...t){this.#c.on.get(e)?.forEach(e=>{e(...t)}),this.#c.once.get(e)?.forEach(e=>{e(...t)}),this.#c.once.delete(e)}listenerCount(e){return(this.#c.on.get(e)?.size??0)+(this.#c.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#c.on.clear(),this.#c.once.clear()):(this.#c.on.delete(e),this.#c.once.delete(e))}}const VP=rR(()=>new WP);let UP=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),GP=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}({}),YP=function(e){return e.A="ascending",e.D="descending",e}({}),KP=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const XP=[0,0],JP=e=>"number"==typeof e&&!Number.isNaN(+e),ZP=e=>JP(e.qNum),QP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),eM=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),tM=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},rM=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return se(e.localPaletteColors[t].color??"").blend(se(s.color??""),s.t)},nM=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort((e,t)=>e.value-t.value),e.limits=r.map(e=>({...e,value:eM(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:tM(n,t,r)}))),n},oM=(e,t,r,n)=>{const o=nM(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=rM(e,a,t);break}n=i}return r})(o,t);return a},iM=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!JP(e));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!JP(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},aM=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=iM(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!JP(t))return 0;let a=r&&JP(r)?Math.min(r,t):0;const s=n.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},sM=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=aM(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return tM(o,r.limitPaletteColorIndex,n);const a=eM(r.limitRange,t);return oM(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},lM=(TC().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)"),uM=4/3,cM="12px",dM="600",pM="Source Sans Pro, sans-serif",fM={height:"auto",fontSize:cM,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"}},hM={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:dM},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},mM=(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,gM=(e,t)=>e.representation.type===VA.Image&&"fitHeight"===e.representation.imageSize?mM(t,e.representation):e.align,vM=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",bM=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},yM=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,xM=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",SM=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",wM=24,CM=wc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),EM=wc(pp,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?vM(e,n):void 0})),RM=wc(pp,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${lE}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${lE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),AM=wc(pp,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),PM=wc(pp,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),MM=wc(wd,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n})),IM=rR(),kM=rR(0),DM=rR(0),TM=4/3,OM=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function LM(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const qM=(e,t)=>e?{borderBottomColor:LC.DARK_MODE_BORDER,borderRightColor:LC.DARK_MODE_BORDER,borderLeftColor:LC.DARK_MODE_BORDER,borderTopColor:LC.DARK_MODE_BORDER}:{borderLeftColor:LC.BORDER_MEDIUM,borderRightColor:LC.BORDER_MEDIUM,borderTopColor:LC.BORDER_HEAVY,borderBottomColor:t?LC.BORDER_HEAVY:LC.BORDER_LIGHT},NM=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*TM+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},_M=e=>e.components?.find(e=>"theme"===e.key),jM=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:OM(r?.fontColor)?LM(LC.TEXT,t,r?.fontColor):i||LC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...qM(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function zM(e,t,r){const n=_M(e)?.header,o=jM("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=se(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=_C(o.background??LC.WHITE,gE),o.activeBackground=_C(o.background??LC.WHITE,vE),o}const FM=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in hM)(e)&&Object.assign(t,hM[e])),t};function $M(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&zC(i);a&&(n[r[t]]=a),o=i?FM(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=qC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}var HM={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:WM(e),value:WM(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}},BM=HM;function WM(e){try{return decodeURIComponent(e)}catch{return e}}function VM(e){if(!(this instanceof VM))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>BM.fromSearchString(t.search)}})}function UM(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")}VM.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},VM.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=UM(t.key),t.value?r+=`=${UM(t.value)}`:r+=t.useEqualSign?"=":"";return r};var GM=VM;var YM,KM=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}},XM=class{decode(e){let t="";const r=new KM(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},JM=e=>e>=0&&e<=1114111,ZM=e=>e.match(/[\s]/),QM=class extends XM{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!ZM(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return JM(a)?String.fromCharCode(a):"�"}},eI=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},tI=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return eI.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return eI.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||eI.newInstanceIfNeeded(e,t,this._value)}},rI=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 tI);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},nI=(()=>{const e=[],t=[],r=new rI;let n,o,i;for(n in e["&quot"]="34",e["&amp"]="38",e["&lt"]="60",e["&gt"]="62",e["&nbsp"]="160",e["&iexcl"]="161",e["&cent"]="162",e["&pound"]="163",e["&curren"]="164",e["&yen"]="165",e["&brvbar"]="166",e["&sect"]="167",e["&uml"]="168",e["&copy"]="169",e["&ordf"]="170",e["&laquo"]="171",e["&not"]="172",e["&shy"]="173",e["&reg"]="174",e["&macr"]="175",e["&deg"]="176",e["&plusmn"]="177",e["&sup2"]="178",e["&sup3"]="179",e["&acute"]="180",e["&micro"]="181",e["&para"]="182",e["&middot"]="183",e["&cedil"]="184",e["&sup1"]="185",e["&ordm"]="186",e["&raquo"]="187",e["&frac14"]="188",e["&frac12"]="189",e["&frac34"]="190",e["&iquest"]="191",e["&Agrave"]="192",e["&Aacute"]="193",e["&Acirc"]="194",e["&Atilde"]="195",e["&Auml"]="196",e["&Aring"]="197",e["&AElig"]="198",e["&Ccedil"]="199",e["&Egrave"]="200",e["&Eacute"]="201",e["&Ecirc"]="202",e["&Euml"]="203",e["&Igrave"]="204",e["&Iacute"]="205",e["&Icirc"]="206",e["&Iuml"]="207",e["&ETH"]="208",e["&Ntilde"]="209",e["&Ograve"]="210",e["&Oacute"]="211",e["&Ocirc"]="212",e["&Otilde"]="213",e["&Ouml"]="214",e["&times"]="215",e["&Oslash"]="216",e["&Ugrave"]="217",e["&Uacute"]="218",e["&Ucirc"]="219",e["&Uuml"]="220",e["&Yacute"]="221",e["&THORN"]="222",e["&szlig"]="223",e["&agrave"]="224",e["&aacute"]="225",e["&acirc"]="226",e["&atilde"]="227",e["&auml"]="228",e["&aring"]="229",e["&aelig"]="230",e["&ccedil"]="231",e["&egrave"]="232",e["&eacute"]="233",e["&ecirc"]="234",e["&euml"]="235",e["&igrave"]="236",e["&iacute"]="237",e["&icirc"]="238",e["&iuml"]="239",e["&eth"]="240",e["&ntilde"]="241",e["&ograve"]="242",e["&oacute"]="243",e["&ocirc"]="244",e["&otilde"]="245",e["&ouml"]="246",e["&divide"]="247",e["&oslash"]="248",e["&ugrave"]="249",e["&uacute"]="250",e["&ucirc"]="251",e["&uuml"]="252",e["&yacute"]="253",e["&thorn"]="254",e["&yuml"]="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["&notin"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})(),oI=class extends XM{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,nI.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=nI.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&JM(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&JM(n)?String.fromCharCode(n):null}},iI=class extends XM{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),JM(i))?String.fromCharCode(i):(e.reset(),null)}},aI=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,sI=5e6,lI=5e5,uI=(e,t)=>{const{maxByteSizeSvg:r=lI,maxByteSizeImage:n=sI}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=aI.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n};"undefined"!=typeof document&&(YM=document.createElement("div"));var cI=Array.prototype.indexOf,dI=[",",".","_"," "],pI=[",",".","-","_"," "],fI={width:["%"],height:["%"]},hI={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},mI={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":hI.image,"background-color":hI.color,"border-color":hI.color,"border-image":hI.image,color:hI.color,icon:hI.image,"list-style-image":hI.image,"outline-color":hI.color},gI={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function vI(e,t,r){let n;if(t){if(cI)return cI.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function bI(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return YM.appendChild(r),t=YM.innerHTML,YM.removeChild(r),t}function yI(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=SI(e).toLowerCase(),t=SI(t),i=0;i<gI.attr_name.length;i++)if(e.match(gI.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<gI.attr_val.length;i++)if(t.toLowerCase().match(gI.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=fI[e],n||(n=pI),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&vI(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function xI(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=SI(e).toLowerCase(),t=SI(t),vI(e,gI.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<gI.css_val.length;n++)if(t.toLowerCase().indexOf(gI.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=mI[e],o||(o=hI.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&vI(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function SI(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new oI,new iI,new QM];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}var wI=[];for(let e=0;e<255;e++)wI[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var CI={html:e=>bI(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=xI(t,r[t],!0),i+=xI(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=yI(e,t[e],!0),o+=yI(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function EI(e,t){throw new Error(t)}var RI={canonicalize:SI,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?CI.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&EI(this,"Invalid parameter type"),CI.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&EI(this,"Invalid parameter type"),CI.attr(e)):void EI(this,"Invalid parameter type")},encodeForAttr:yI,encodeForAttr2:function(e){return yI("nonsens",e,!0)},encodeForCSS:xI,encodeForHref:function(e){SI(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new GM(e),r=GM.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+GM.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=dI),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),vI(o,t)>=0||null==wI[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:bI,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=SI(t).toLowerCase():EI(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:uI,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const AI=(e,t)=>t.qAttrExps?.qValues?.[e],PI=(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"}}},MI=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!RI.isSafeDataURL(t))?{type:VA.Text,url:void 0,text:e,labelStructure:o}:{type:VA.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:PI(n,a),labelStructure:o,imageBox:i},II=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:VA.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:VA.MiniChart,text:n,miniChart:a}},kI=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===UA.Attribute?void 0:r?.urlLabel},DI=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:VA.Link,url:RI.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:VA.Text,url:void 0,text:t,labelStructure:e}}},TI=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=GA(t),d=s(e);return c===VA.Image&&u[VA.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=AI(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),MI({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return MI({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=AI(r.imageLabel??-1,e)?.qText??n;return MI({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:VA.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===VA.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===UA.Attribute){const i=kI(r.url??-1,e,t);return DI({labelStructure:n,text:o||i||"",url:i})}if(i===UA.Dimension){const i=kI(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),DI({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:VA.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===VA.Indicator&&u[VA.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:VA.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===VA.MiniChart&&u[VA.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?II(e,t,i,d):{type:VA.Text,url:void 0,text:d,labelStructure:a}};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))}},r){var n;let o,i;const a={getItem:(t,n)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==r?void 0:r.reviver)}catch(e){return n}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let s;try{s=null==(n=e())?void 0:n.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)})))}();const OI=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),LI=new WeakMap,qI=()=>{};function NI(e,r=qI){return((e,t,r)=>{const n=OI(()=>new WeakMap,LI,t);return OI(e,n,r)})(()=>{const n=new WeakMap,o=new WeakMap,i=rR(0),a=rR([]);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=rR(t=>{let l;t(i);try{l=t(s)}catch(e){}const u=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then(e=>{o.set(u,e);const[r]=t(a);r()},e=>{n.set(u,e);const[r]=t(a);r()}),n.has(u))throw n.get(u);return o.has(u)?{p:u,v:o.get(u)}:l&&"v"in l?{p:u,f:r(l.v),v:l.v}:{p:u,f:r()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),rR(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,r,...n)=>r(e,...n))},e,r)}const _I=rR(e=>{const t=e(VR),r=e(MR);return e(IR),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}}),jI=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),zI=({cId:e})=>e??jA(),FI=1e4;function $I(e,t){return[...t].reverse().find(t=>t*e<=FI)||Math.floor(FI/e)}function HI(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function BI(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function WI(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return JP(r?.qNum)}function VI(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const UI=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",GI=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=se(r??""),i=se(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?_C(s,gE):void 0,u=s?_C(s,vE):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:qC(s),headerMenuHoverBackground:l,headerMenuActiveBackground:u}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:u}};const YI=(e,t,r,n=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const r=e<n,o=(r?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,r,n,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:u,visibleDimInfoIdx:c,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===bE.Cyclic,g=l===s[0];let v,b,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==c){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:v}=e)}else({qMiniChart:b}=h);const{qFallbackTitle:A,textAlign:P,qAttrExprInfo:M,qSortIndicator:I,qReverseSort:k,qApprMaxGlyphCount:D,columnWidth:T,qLibraryId:O,headerColor:L}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:O,pageColIdx:u,qApprMaxGlyphCount:D,qReverseSort:k,columnWidth:T??{type:mE.Auto},selectionColIdx:S,isActivelySorted:g,id:zI(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:M.map(e=>e.id),qAttrExprInfoIndex:jI(h),sortDirection:I&&"N"!==I?I:"A",totalInfo:BI(e,f,u,d??-1),...!f&&{isTotalNumeric:WI(e,d??-1)},...VI(P,v,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:b,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?GI(L,r):void 0}}(e,o,t,r,n))},KI=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",XI=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,JI={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},ZI=rR(e=>{const t=e(QI),r=e(CR),n=e(_I),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>FI?{...t,rowsPerPage:$I(l,t.rowsPerPageOptions),page:0}:t}),QI=rR(JI),ek=rR(e=>{const t=e(CR),r=e(VR),n=e(_I);return $R(t,r)?{page:n.page||JI.page,rowsPerPage:n.rowsPerPage||JI.rowsPerPage,rowsPerPageOptions:JI.rowsPerPageOptions}:e(ZI)},(e,t,r)=>{t(QI,e=>({...e,...r}))}),tk=!0,rk=rR(async e=>{const t=e(CR),r=e(VR),n=e(BR),{page:o,rowsPerPage:i}=e(ek),a=e(_I),s=e(XR),l=e(xR),u=e(RR),c=e(SR),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,v=HI(t,r),b=YI(t,tk,n,c),y=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});u||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const x=y.at(0)?.qMatrix.map((e,r)=>{const o=[];return b.forEach((i,a)=>{const s=e[a],u=KI(i.isDim,s,t),c=!i.isDim&&s.qIsNull,d=c?QP(u):ZP(s);o[a]={id:jA(),...s,align:UI(d,i.bodyTextAlign,n,tk),rowIdx:r+h,colIdx:i.colIdx,pageRowIdx:r,pageColIdx:a,selectionColIdx:i.selectionColIdx,isSelectable:i.isDim&&!i.isLocked,isLastRow:r===m-1,isNumeric:d,isNull:(!c||!d)&&XI(s,i.isDim),representation:TI({cell:s,representationProperties:i.representation,attrExprInfoIndex:i.qAttrExprInfoIndex,env:l,conditionalColoring:i.conditionalColoring,miniChartOnMeasure:i.qMiniChart,getText:()=>c?u:s.qText,direction:n,enabledFeatures:{[VA.Image]:!0,[VA.Indicator]:!0,[VA.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:v,columns:b,rows:x}}),nk=NI(rk,e=>e),ok=25e4,ik=rR(e=>{const t=e(CR),r=e(VR),n=e(qR),o=e(BR),i=e(SR),a=YI(t,false,o,i),s=HI(t,r),l=t.qHyperCube.qSize.qcy,u=Math.min(ok,l),c=l>ok&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/u),paginationNeeded:c}}),ak={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},sk=rR(),lk=rR(e=>{const t=e(GR),r=e(sk);return r||(t?e(nk)??ak:e(ik))}),uk=rR(e=>e(lk).totalsPosition),ck=rR(e=>e(lk).columns),dk=rR(e=>e(ck).length),pk=rR(e=>e(lk).rows),fk=rR(e=>e(lk).totalRowCount),hk=rR(e=>e(lk).totalColumnCount),mk=rR(e=>e(lk).paginationNeeded),gk=rR(e=>{const t=e(rA),r=e(iA),n=e(CR),o=e(uk),i=e(pk),a=o.atTop,s=function(e,t,r,n){const o=_M(e)?.content,i=jM("content",t,o);i.background=t.background.color;const a=NM(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=OM(l)||!!c,p=OM(s)||!!u,f=d||p;let h;h=OM(s)?LM(LC.HOVER,t,s):u||(d?"":LC.HOVER);const m=f?LM(qC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=zM(n,r,!a),u=function(e,t,r){const n=_M(e)?.content,o=jM("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=zM(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:u}}),vk=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},bk=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=vk(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},yk=(e,t,r,n=LC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=bk(e,t,r);return WC(i,o,a,n)??n},xk=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return cM}},Sk=e=>e?.some(e=>"italic"===e)?"italic":"normal",wk=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?dM:"normal",Ck=e=>!1===e?1:3,Ek=e=>parseInt(e??fM.fontSize,10)*uM,Rk=e=>e?.some(e=>"underline"===e)?"underline":"none",Ak=rR(e=>{const t=e(VR),r=e(GR),n=e(iA),o=e(CR),i=e(gk),{header:a,dimensionValues:s,measureValues:l,totalValues:u,nullValues:c,grid:d,content:p}=_M(o)??{},f=r?LC.WHITE:LC.TRANSPARENT,h=yk(n,a,"object.straightTableV2.dimension.label.name.backgroundColor",f),m=t?.maxLineCount??p?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),g={header:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??pM,fontSize:xk(a?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:Sk(a?.fontStyle),fontWeight:wk(a?.fontStyle,dM),textDecoration:Rk(a?.fontStyle),color:vk(n,a?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??LC.TEXT,background:h},headerMenuHoverBackground:_C(h,gE),headerMenuActiveBackground:_C(h,vE),dimension:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??pM,fontSize:xk(s?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:Sk(s?.fontStyle),fontWeight:wk(s?.fontStyle,"normal"),textDecoration:Rk(s?.fontStyle),color:vk(n,s?.fontColor)??vk(n,p?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??LC.TEXT,background:bk(n,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??LC.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??pM,fontSize:xk(l?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:Sk(l?.fontStyle),fontWeight:wk(l?.fontStyle,"normal"),textDecoration:Rk(l?.fontStyle),color:vk(n,l?.fontColor)??vk(n,p?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??LC.TEXT,background:bk(n,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??LC.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??pM,fontSize:xk(u?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:Sk(u?.fontStyle),fontWeight:wk(u?.fontStyle,dM),textDecoration:Rk(u?.fontStyle),color:vk(n,u?.fontColor)??vk(n,p?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??LC.TEXT,background:yk(n,u,"object.straightTableV2.total.label.value.backgroundColor",f)},nullValues:{fontStyle:Sk(c?.fontStyle),fontWeight:wk(c?.fontStyle,"normal"),textDecoration:Rk(c?.fontStyle),color:vk(n,c?.fontColor)??vk(n,p?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??LC.TEXT,background:vk(n,c?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??LC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:m??Ck(o.multiline?.wrapTextInCells),headerLineClamp:Ck(o.multiline?.wrapTextInHeaders),border:vk(n,d?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?LC.DARK_MODE_BORDER:LC.BORDER_MEDIUM),divider:vk(n,d?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??LC.BORDER_HEAVY,hoverColors:{color:vk(n,p?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:vk(n,p?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!d?.zebraStripes?.show,odd:{color:vk(n,d?.zebraStripes?.color?.odd),background:vk(n,d?.zebraStripes?.background?.odd)},even:{color:vk(n,d?.zebraStripes?.color?.even),background:vk(n,d?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===vk(n,c?.background),overrideNullValueColor:void 0===vk(n,c?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:NC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:m},{headerMinRowHeight:v,totalRowLineHeight:b,totalRowMinHeight:y,contentLineHeight:x,contentMinRowHeight:S}=(e=>{const t=Math.max(Ek(e.header.fontSize)+8,32),r=Ek(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(Ek(e.dimension.values.fontSize),Ek(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(g);return g.headerMinRowHeight=v,g.totalRowLineHeight=b,g.totalRowMinHeight=y,g.contentLineHeight=x,g.contentMinRowHeight=S,g}),Pk=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(hE.PixelsMax,Math.max(hE.PixelsMin,f)),i-=n[a]};switch(s){case mE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?hE.PixelsDefault:+e)(l),h();break;case mE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?hE.PercentageDefault:+e)(u)/100*t,h();break;case mE.FitToContent:e.representation?.type===VA.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case mE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{n[t]=Math.max(hE.AutoMinTable,e)})}return n},Mk=rR(e=>{const t=e(Ak),r=e(lk).totalsPosition,n=e(kR),{measureText:o}=e(FP({...t.header,fontWeight:dM})),{measureText:i}=e(FP({...t.totalRow,fontWeight:dM})),{estimateWidth:a}=e(FP(t.dimension.values)),{estimateWidth:s}=e(FP(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,u,c,d,p)=>{let f=0;if(n){const t=4;let r=25;r+=t+24,u&&(r+=20+t),c&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=wM),t+=wM,t+=wM,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),Ik=rR(null),kk=rR(e=>{const t=e(lk),r=e(tA).width,n=e(DM),o=e(Mk);return Pk(t.columns,r-n,o)}),Dk=rR(e=>e(Ik)??e(kk),(e,t,r)=>{t(Ik,r)}),Tk=HP(e=>{const t=e(VP);!1===e(IM)&&t.emit("done-adjusting-column-width")}),Ok=HP((e,t)=>{e(CR),t(Ik,null)}),Lk=({children:e})=>(hR(Ok),hR(Tk),e);function qk(e){const t=TC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),zu({...t,direction:e})}const Nk={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},_k={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},jk=wc("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...Nk},"&::-moz-range-track":{...Nk},"&::-ms-track":{...Nk},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",..._k},"&::-moz-range-thumb":{..._k},"&::-ms-thumb":{..._k},"&: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"}})),zk=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=iE({translator:c.translator}),f=k({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",v={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},b=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};nE(()=>{m&&b()},[e]);const y=e=>{const t=Math.max(e,hE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:mE.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=>{$C(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=>{$C(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===pE.Left||e.key===pE.Right){$C(e);const t=5,r=e.key===pE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===pE.Space||e.key===pE.Enter?($C(e),s(e),l?.(!1),x()):e.key===pE.Esc&&($C(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return dr.jsx(jk,{style:v,hoverColor:o,isLastColumn:r,className:fE,"data-testid":fE,onMouseDown:e=>{$C(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:mE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&($C(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),b(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":hE.PixelsMin,"aria-valuemax":hE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},Fk=_((e,t)=>dr.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:dr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),$k=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},Hk=wc(pp,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"})),Bk=wc(Fk,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Wk=wc(Yf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Vk=wc(Wp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),Uk=wc(Qf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),Gk=wc(Qf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"})),Yk=wc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),Kk=wc("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),Xk=wc(Md)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),Jk=wc(Sf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),Zk=_((e,t)=>dr.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:dr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),Qk=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?Qk(t):t:e.parentElement?.children?.[0]},eD=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?eD(t):t},tD=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===pE.Down||t===pE.Up){const r=e=>t===pE.Down?Qk(e):eD(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},rD=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(r)}}:{}}))})));let nD={};const oD=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=I(!1),f=w.useRef(null),h=q(e=>{e.stopPropagation(),p(!1)},[p]);return dr.jsxs(dr.Fragment,{children:[dr.jsxs(Gk,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),nD={}),a?.length&&(p(!0),nD[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:tD,children:[l?dr.jsx(Yk,{direction:u,isPagination:c}):null,dr.jsxs(Kk,{children:[dr.jsx(Jk,{direction:u,isPagination:c,children:dr.jsx(o,{})}),dr.jsx(Xk,{variant:"body2",children:n})]}),a?.length?dr.jsx(Zk,{}):null]},t),a?.length?dr.jsx(lD,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:rD(a,nD),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},iD=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&dr.jsx(Uk,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>dr.jsx(oD,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),aD=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[iD({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?dr.jsx(Vk,{"data-testid":"group-divider",variant:"middle"}):void 0]),sD={appear:0,enter:0,exit:0},lD=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?dr.jsx(Wk,{className:uE,open:t,anchorEl:e,onClose:r,transitionDuration:sD,MenuListProps:{id:cE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:aD({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,uD=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>q(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}},[e,t,r,n?.qStateName,o,i]),cD=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),dD=(e,t)=>e.some(e=>t[e]>0),pD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},fD=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=I(null),[a,s]=I(pD);return nE(()=>{e||(s(pD),i(null))},[e]),O(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=cD(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:dD(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:dD(["qSelected"],e),canSelectPossible:dD(["qOption"],e),canSelectAlternative:dD(["qAlternative"],e),canSelectExcluded:dD(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},hD=_((e,t)=>dr.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:dr.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"})})),mD=_((e,t)=>dr.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:dr.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"})})),gD=_((e,t)=>dr.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:dr.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"})})),vD=_((e,t)=>dr.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:dr.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"})})),bD=_((e,t)=>dr.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:dr.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"})})),yD=_((e,t)=>dr.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:dr.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"})})),xD=_((e,t)=>dr.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:dr.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"})})),SD=_((e,t)=>dr.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:dr.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"})})),wD=_((e,t)=>dr.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:dr.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"})})),CD=_((e,t)=>dr.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:dr.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"})})),ED=_((e,t)=>dr.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:dr.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"})})),RD=_((e,t)=>dr.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:dr.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"})})),AD=_((e,t)=>dr.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:dr.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"})})),PD=_((e,t)=>dr.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:dr.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 MD=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const ID="/qListObjectDef",kD=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[MD.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:hD,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:vD,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:SD,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:bD,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[MD.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:wD,enabled:!0}]}]),!e.isLocked&&r[MD.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:PD,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(ID))},icon:CD,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(ID))},icon:AD,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(ID))},icon:ED,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(ID))},icon:RD,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(ID))},icon:mD,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:xD,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:yD,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[MD.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:gD,enabled:!0}]}]),f},DD=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:v=aE})=>{const b=k(null),y=iE({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=fD({open:e,headerData:n,app:C,qStateName:c?.qStateName}),A=$k({model:f,headerData:n}),P=uD({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),M=q(e=>{e.stopPropagation(),t(!1)},[t]),I=q(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?dr.jsxs(Hk,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:lE,onClick:!1===g?I:void 0,ref:b,isAccessibleHeader:g,children:[s?dr.jsx(Bk,{height:v,className:sE,"data-testid":sE,isInteractionsActive:i.active??!1,children:dr.jsx(Fk,{})}):null,dr.jsx(lD,{open:e,anchorEl:!1===g?b.current:r.current,onClose:M,menuGroups:kD({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:P,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},TD=e=>e.isDark?{background:e.color,borderColor:LC.DARK_MODE_BORDER,color:LC.DARK_MODE_TEXT,disabledColor:LC.DARK_MODE_DISABLED,iconColor:LC.DARK_MODE_TEXT}:{background:e.color,borderColor:LC.BORDER_MEDIUM,color:LC.TEXT,disabledColor:LC.DISABLED},OD=wc(pp,{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}`})),LD=wc(Oh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),qD=wc(wp,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)})),ND=wc(Md)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),_D=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=M(()=>TD(n.background),[n]);if(!r.active)return null;const a=o?dr.jsx(OD,{footerStyle:i,children:e}):null;return t?W.createPortal(e,t):a},jD=D({}),zD=()=>N(jD),FD=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const v=(e=>!e.enabled||e.active)(c)?0:-1,b=M(()=>TD(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=iE({translator:d}),S=M(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:v,width:y,visibilityThreshold:g}),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,b,v,y,g]);return dr.jsx(jD.Provider,{value:S,children:e})};let $D=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),HD=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 BD=_((e,t)=>dr.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:dr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),WD=_((e,t)=>dr.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:dr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),VD=_((e,t)=>dr.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:dr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),UD={FirstPage:WD,PreviousPage:BD,NextPage:Zk,LastPage:VD,FirstPageRTL:VD,PreviousPageRTL:Zk,NextPageRTL:BD,LastPageRTL:WD},GD=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=zD(),u=r.concat("rtl"===n?"RTL":""),c=UD[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},YD=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=zD(),o=0===e.page,{IconComponent:i,styledProps:a}=GD({type:$D.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||HD.FirstPage)?null:dr.jsx(qD,{...a,disabled:!r.active,children:dr.jsx(i,{height:aE})})},KD=(e,t,r=!1)=>{r&&e.key===pE.Tab&&!e.shiftKey&&($C(e),FC(e.target,t,!1))},XD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=zD(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=GD({type:$D.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{KD(e,t,n)}:void 0;return o<=(a?.lastPage||HD.LastPage)?null:dr.jsx(qD,{...u,onKeyDown:c,disabled:!i.active,children:dr.jsx(l,{height:aE})})},JD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=zD(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=GD({type:$D.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>HD.FirstPage&&o>HD.LastPage)&&t.enabled?e=>{KD(e,t,n)}:void 0;return dr.jsx(qD,{...l,onKeyDown:u,disabled:!i.active,children:dr.jsx(s,{height:aE})})},ZD=()=>{const{pageInfo:e,interactions:t}=zD(),r=0===e.page,{IconComponent:n,styledProps:o}=GD({type:$D.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return dr.jsx(qD,{...o,disabled:!t.active,children:dr.jsx(n,{height:aE})})},QD=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=zD(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||HD.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return dr.jsx(ND,{variant:"caption",dir:"ltr",children:s})},eT=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=zD(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return dr.jsxs(dr.Fragment,{children:[dr.jsxs(ND,{variant:"caption",id:p,children:[c,":"]}),dr.jsx(LD,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},tT=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=zD();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||HD.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=dr.jsx(dr.Fragment,{children:e.rowsPerPageOptions.map(e=>dr.jsx("option",{value:e,children:e},e))});return dr.jsx(eT,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},rT=1e3,nT="…",oT=({totalPages:e,page:t})=>{const r=Math.min(e,rT),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-rT):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return dr.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(dr.jsx("option",{value:nT,disabled:!0,children:nT},"startMoreOptions")),o<e-1&&a.push(dr.jsx("option",{value:nT,disabled:!0,children:nT},"endMoreOptions")),dr.jsx(dr.Fragment,{children:a})},iT=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=zD(),{page:i}=e;if(t<=(o?.selectPage||HD.SelectPage))return null;const a=dr.jsx(oT,{totalPages:r,page:i});return dr.jsx(eT,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var aT=j(e=>dr.jsxs(FD,{...e,children:[dr.jsx(tT,{}),dr.jsx(iT,{}),dr.jsx(QD,{}),dr.jsx(YD,{}),dr.jsx(ZD,{}),dr.jsx(JD,{}),dr.jsx(XD,{})]}));const sT=e=>dr.jsx(_D,{...e,children:dr.jsx(aT,{...e})}),lT=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},uT=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},cT=e=>e.ctrlKey||e.metaKey,dT=e=>e.shiftKey&&cT(e),pT=e=>[pE.Left,pE.Right,pE.Up,pE.Down].includes(e),fT=e=>e.shiftKey&&pT(e.key),hT=e=>(e=>pT(e)||[pE.Home,pE.End,pE.PageUp,pE.PageDown].includes(e))(e.key)&&!dT(e),mT=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),lT(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},gT=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&fT(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&fT(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===pE.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return lT(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},vT=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},bT=(e,t)=>{switch(t.type){case GP.Select:return mT(e,t.payload);case GP.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case GP.SelectMouseUp:return((e,t)=>vT(e.isSelectMultiValues||e.firstCell!==t.cell?e:mT(e,t)))(e,t.payload);case GP.SelectMultiAdd:return gT(e,t.payload);case GP.SelectMultiEnd:return vT(e);case GP.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case GP.Clear:return e.rows.size?{...e,rows:new Map}:e;case GP.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},yT=rR(e=>{const t=e(OR);return function(e,t){return rR(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(lk).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},bT)}),xT=rR(e=>e(e(yT)),(e,t,r)=>{t(e(yT),r)}),ST=zP(e=>rR(t=>{const{colIdx:r,rows:n,api:o}=t(xT);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?UP.Disabled:n.has(e.qElemNumber)?UP.Selected:UP.Possible:UP.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),wT=rR(e=>{const t=e(Dk),r=e(tA).width,n=e(DM);return t.length>0&&t.reduce((e,t)=>e+t)+n<r});var CT=Symbol.for("preact-signals");function ET(){if(IT>1)IT--;else{var e,t=!1;for(!function(){var e=OT;for(OT=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==MT;){var r=MT;for(MT=void 0,kT++;void 0!==r;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&jT(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(kT=0,IT--,t)throw e}}function RT(e){if(IT>0)return e();TT=++DT,IT++;try{return e()}finally{ET()}}var AT=void 0;function PT(e){var t=AT;AT=void 0;try{return e()}finally{AT=t}}var MT=void 0,IT=0,kT=0,DT=0,TT=0,OT=void 0,LT=0;function qT(e){if(void 0!==AT){var t=e.n;if(void 0===t||t.t!==AT)return t={i:0,S:e,p:AT.s,n:void 0,t:AT,e:void 0,x:void 0,r:t},void 0!==AT.s&&(AT.s.n=t),AT.s=t,e.n=t,32&AT.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=AT.s,t.n=void 0,AT.s.n=t,AT.s=t),t}}function NT(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 _T(e,t){return new NT(e,t)}function jT(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 zT(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function FT(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function $T(e,t){NT.call(this,void 0),this.x=e,this.s=void 0,this.g=LT-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 HT(e,t){return new $T(e,t)}function BT(e){var t=e.m;if(e.m=void 0,"function"==typeof t){IT++;var r=AT;AT=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,WT(e),t}finally{AT=r,ET()}}}function WT(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,BT(e)}function VT(e){if(AT!==this)throw new Error("Out-of-order effect");FT(this),AT=e,this.f&=-2,8&this.f&&WT(this),ET()}function UT(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 GT(e,t){var r=new UT(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}NT.prototype.brand=CT,NT.prototype.h=function(){return!0},NT.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:PT(function(){var e;null==(e=t.W)||e.call(t)}))},NT.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&PT(function(){var e;null==(e=t.Z)||e.call(t)}))}},NT.prototype.subscribe=function(e){var t=this;return GT(function(){var r=t.value,n=AT;AT=void 0;try{e(r)}finally{AT=n}},{name:"sub"})},NT.prototype.valueOf=function(){return this.value},NT.prototype.toString=function(){return this.value+""},NT.prototype.toJSON=function(){return this.value},NT.prototype.peek=function(){var e=AT;AT=void 0;try{return this.value}finally{AT=e}},Object.defineProperty(NT.prototype,"value",{get:function(){var e=qT(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(kT>100)throw new Error("Cycle detected");!function(e){0!==IT&&0===kT&&e.l!==TT&&(e.l=TT,OT={S:e,v:e.v,i:e.i,o:OT})}(this),this.v=e,this.i++,LT++,IT++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{ET()}}}}),$T.prototype=new NT,$T.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===LT)return!0;if(this.g=LT,this.f|=1,this.i>0&&!jT(this))return this.f&=-2,!0;var e=AT;try{zT(this),AT=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 AT=e,FT(this),this.f&=-2,!0},$T.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)}NT.prototype.S.call(this,e)},$T.prototype.U=function(e){if(void 0!==this.t&&(NT.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)}},$T.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($T.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=qT(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),UT.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()}},UT.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,BT(this),zT(this),IT++;var e=AT;return AT=this,VT.bind(this,e)},UT.prototype.N=function(){2&this.f||(this.f|=2,this.u=MT,MT=this)},UT.prototype.d=function(){this.f|=8,1&this.f||WT(this)},UT.prototype.dispose=function(){this.d()};var YT,KT,XT,JT,ZT,QT,eO,tO,rO,nO,oO,iO,aO,sO,lO,uO,cO,dO,pO,fO,hO=Object.create,mO=Object.defineProperty,gO=Object.defineProperties,vO=Object.getOwnPropertyDescriptor,bO=Object.getOwnPropertyDescriptors,yO=Object.getOwnPropertySymbols,xO=Object.prototype.hasOwnProperty,SO=Object.prototype.propertyIsEnumerable,wO=e=>{throw TypeError(e)},CO=(e,t,r)=>t in e?mO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,EO=(e,t)=>mO(e,"name",{value:t,configurable:!0}),RO=["class","method","getter","setter","accessor","field","value","get","set"],AO=e=>void 0!==e&&"function"!=typeof e?wO("Function expected"):e,PO=(e,t,r,n,o)=>({kind:RO[e],name:t,metadata:n,addInitializer:e=>r._?wO("Already initialized"):o.push(AO(e||null))}),MO=(e,t)=>{return CO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},IO=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},kO=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=RO[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&vO(d<4?o:{get[r](){return OO(this,i)},set[r](e){return qO(this,i,e)}},r));d?f&&d<4&&EO(i,(d>2?"set ":d>1?"get ":"")+r):EO(o,r);for(var y=n.length-1;y>=0;y--)u=PO(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>TO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?OO:NO)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>qO(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?AO(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?wO("Object expected"):(AO(a=s.get)&&(b.get=a),AO(a=s.set)&&(b.set=a),AO(a=s.init)&&g.unshift(a));return d||MO(e,o),b&&mO(o,r,b),f?4^d?i:b:o},DO=(e,t,r)=>t.has(e)||wO("Cannot "+r),TO=(e,t)=>Object(t)!==t?wO('Cannot use the "in" operator on this value'):e.has(t),OO=(e,t,r)=>(DO(e,t,"read from private field"),r?r.call(e):t.get(e)),LO=(e,t,r)=>t.has(e)?wO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),qO=(e,t,r,n)=>(DO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),NO=(e,t,r)=>(DO(e,t,"access private method"),r);function _O(e,t){if(t){let r;return HT(()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)})}return HT(e)}function jO(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,r)=>!jO(e,t[r]))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some(r=>!jO(e[r],t[r]));return!o}return!1}function zO({get:e},t){return{init:e=>_T(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function FO(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=_O(e.bind(this)),r.set(this,t)),t.value}}function $O(e=!0){return function(t,r){r.addInitializer(function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>gO(e,bO(t)))(((e,t)=>{for(var r in t||(t={}))xO.call(t,r)&&CO(e,r,t[r]);if(yO)for(var r of yO(t))SO.call(t,r)&&CO(e,r,t[r]);return e})({},n),{enumerable:e}))})}}function HO(...e){const t=e.map(e=>GT(e));return()=>t.forEach(e=>e())}QT=[zO],ZT=[zO],JT=[zO],XT=[$O()],KT=[$O()],YT=[$O()];var BO,WO=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,IO(eO,5,this),LO(this,iO),LO(this,tO,IO(eO,8,this)),IO(eO,11,this),LO(this,aO,IO(eO,12,this)),IO(eO,15,this),LO(this,cO,IO(eO,16,this)),IO(eO,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return OO(this,iO,pO)}get initial(){return OO(this,iO,nO)}get previous(){return OO(this,iO,lO)}set current(e){const t=PT(()=>OO(this,iO,pO));e&&t&&this.equals(t,e)||RT(()=>{OO(this,iO,nO)||qO(this,iO,e,oO),qO(this,iO,t,uO),qO(this,iO,e,fO)})}reset(e=this.defaultValue){RT(()=>{qO(this,iO,void 0,uO),qO(this,iO,e,oO),qO(this,iO,e,fO)})}};function VO(e){return PT(()=>{const t={};for(const r in e)t[r]=e[r];return t})}eO=[,,,hO(null)],tO=new WeakMap,iO=new WeakSet,aO=new WeakMap,cO=new WeakMap,rO=kO(eO,20,"#initial",QT,iO,tO),nO=rO.get,oO=rO.set,sO=kO(eO,20,"#previous",ZT,iO,aO),lO=sO.get,uO=sO.set,dO=kO(eO,20,"#current",JT,iO,cO),pO=dO.get,fO=dO.set,kO(eO,2,"current",XT,WO),kO(eO,2,"initial",KT,WO),kO(eO,2,"previous",YT,WO),MO(eO,WO);BO=new WeakMap;var UO,GO,YO,KO,XO,JO=Object.create,ZO=Object.defineProperty,QO=Object.getOwnPropertyDescriptor,eL=Object.getOwnPropertySymbols,tL=Object.prototype.hasOwnProperty,rL=Object.prototype.propertyIsEnumerable,nL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),oL=e=>{throw TypeError(e)},iL=Math.pow,aL=(e,t,r)=>t in e?ZO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sL=["class","method","getter","setter","accessor","field","value","get","set"],lL=e=>void 0!==e&&"function"!=typeof e?oL("Function expected"):e,uL=(e,t,r,n,o)=>({kind:sL[e],name:t,metadata:n,addInitializer:e=>r._?oL("Already initialized"):o.push(lL(e||null))}),cL=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=sL[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,QO(o,r)),h=n.length-1;h>=0;h--)(l=uL(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,lL(a)&&(f[d]=a);return f&&ZO(o,r,f),o},dL=(e,t,r)=>t.has(e)||oL("Cannot "+r),pL=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},fL=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))tL.call(t,r)&&aL(e,r,t[r]);if(eL)for(var r of eL(t))rL.call(t,r)&&aL(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new pL((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return pL.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var hL,mL=class extends(YO=WO,GO=[FO],UO=[FO],YO){constructor(e){var t,r,n;super(pL.from(e),(e,t)=>pL.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(XO,5,this),t=this,n=0,(r=KO).has(t)?oL("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return pL.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=pL.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(dL(a=this,s=KO,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);RT(()=>{((e,t,r)=>{dL(e,t,"write to private field"),t.set(e,r)})(this,KO,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(pL.from(e)),this.velocity={x:0,y:0}}};function gL({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(iL(n,2)+iL(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}XO=(e=>{var t;return[,,,JO(null!=(t=null==e?void 0:e[nL("metadata")])?t:null)]})(YO),KO=new WeakMap,cL(XO,2,"delta",GO,mL),cL(XO,2,"direction",UO,mL),hL=XO,aL(mL,nL("metadata"),hL[3]);var vL,bL,yL,xL,SL=(e=>(e.Horizontal="x",e.Vertical="y",e))(SL||{}),wL=Object.values(SL),CL=Object.create,EL=Object.defineProperty,RL=Object.defineProperties,AL=Object.getOwnPropertyDescriptor,PL=Object.getOwnPropertyDescriptors,ML=Object.getOwnPropertySymbols,IL=Object.prototype.hasOwnProperty,kL=Object.prototype.propertyIsEnumerable,DL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),TL=e=>{throw TypeError(e)},OL=(e,t,r)=>t in e?EL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,LL=(e,t)=>{for(var r in t||(t={}))IL.call(t,r)&&OL(e,r,t[r]);if(ML)for(var r of ML(t))kL.call(t,r)&&OL(e,r,t[r]);return e},qL=(e,t)=>RL(e,PL(t)),NL=(e,t)=>EL(e,"name",{value:t,configurable:!0}),_L=(e,t)=>{var r={};for(var n in e)IL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&ML)for(var n of ML(e))t.indexOf(n)<0&&kL.call(e,n)&&(r[n]=e[n]);return r},jL=e=>{var t;return[,,,CL(null!=(t=null==e?void 0:e[DL("metadata")])?t:null)]},zL=["class","method","getter","setter","accessor","field","value","get","set"],FL=e=>void 0!==e&&"function"!=typeof e?TL("Function expected"):e,$L=(e,t,r,n,o)=>({kind:zL[e],name:t,metadata:n,addInitializer:e=>r._?TL("Already initialized"):o.push(FL(e||null))}),HL=(e,t)=>OL(t,DL("metadata"),e[3]),BL=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},WL=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=zL[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&AL(d<4?o:{get[r](){return GL(this,i)},set[r](e){return KL(this,i,e)}},r));d?f&&d<4&&NL(i,(d>2?"set ":d>1?"get ":"")+r):NL(o,r);for(var y=n.length-1;y>=0;y--)u=$L(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>UL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?GL:XL)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>KL(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?FL(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?TL("Object expected"):(FL(a=s.get)&&(b.get=a),FL(a=s.set)&&(b.set=a),FL(a=s.init)&&g.unshift(a));return d||HL(e,o),b&&EL(o,r,b),f?4^d?i:b:o},VL=(e,t,r)=>t.has(e)||TL("Cannot "+r),UL=(e,t)=>Object(t)!==t?TL('Cannot use the "in" operator on this value'):e.has(t),GL=(e,t,r)=>(VL(e,t,"read from private field"),r?r.call(e):t.get(e)),YL=(e,t,r)=>t.has(e)?TL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),KL=(e,t,r,n)=>(VL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),XL=(e,t,r)=>(VL(e,t,"access private method"),r);function JL(e,t){return{plugin:e,options:t}}function ZL(e){return t=>JL(e,t)}function QL(e){return"function"==typeof e?{plugin:e,options:void 0}:e}vL=[zO];var eq=class{constructor(e,t){this.manager=e,this.options=t,YL(this,yL,BL(bL,8,this,!1)),BL(bL,11,this),YL(this,xL,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return PT(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=GT(e.bind(this));return GL(this,xL).add(t),t}destroy(){GL(this,xL).forEach(e=>e())}static configure(e){return JL(this,e)}};bL=jL(null),yL=new WeakMap,xL=new WeakMap,WL(bL,4,"disabled",vL,eq,yL),HL(bL,eq);var tq,rq=class extends eq{},nq=class{constructor(e){this.manager=e,this.instances=new Map,YL(this,tq,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(QL).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),r=t.map(({plugin:e})=>e);for(const e of GL(this,tq))if(!r.includes(e)){if(e.prototype instanceof rq)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);KL(this,tq,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function oq(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}tq=new WeakMap;var iq,aq,sq=[],lq=class extends eq{constructor(e){super(e),YL(this,iq),YL(this,aq),this.computeCollisions=this.computeCollisions.bind(this),KL(this,aq,_T(sq)),this.destroy=HO(()=>{const e=this.computeCollisions(),t=PT(()=>this.manager.dragOperation.position.current);if(e!==sq){const e=GL(this,iq);if(KL(this,iq,t),e&&t.x==e.x&&t.y==e.y)return}else KL(this,iq,void 0);GL(this,aq).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){PT(()=>{e?GL(this,aq).value=this.computeCollisions():KL(this,iq,void 0)})}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return sq;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=PT(()=>e({droppable:i,dragOperation:n}));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?sq:(s.sort(oq),s)}get collisions(){return GL(this,aq).value}};iq=new WeakMap,aq=new WeakMap;var uq=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},cq=class extends uq{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function dq(e,t=!0){let r=!1;return qL(LL({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var pq,fq,hq,mq,gq,vq,bq,yq,xq,Sq=class extends rq{constructor(e){super(e);let t=[];this.destroy=HO(()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())},()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=dq({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;PT(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{r.enable()}))})})}},wq=(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))(wq||{}),Cq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(Cq||{});bq=[zO],vq=[FO],gq=[FO],mq=[FO],hq=[FO],fq=[FO],pq=[FO];var Eq=class{constructor(){BL(yq,5,this),YL(this,xq,BL(yq,8,this,"idle")),BL(yq,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}};yq=jL(null),xq=new WeakMap,WL(yq,4,"value",bq,Eq,xq),WL(yq,2,"current",vq,Eq),WL(yq,2,"idle",gq,Eq),WL(yq,2,"initializing",mq,Eq),WL(yq,2,"initialized",hq,Eq),WL(yq,2,"dragging",fq,Eq),WL(yq,2,"dropped",pq,Eq),HL(yq,Eq);var Rq,Aq,Pq,Mq,Iq,kq,Dq,Tq,Oq,Lq=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 PT(()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=dq({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then(()=>n.defaultPrevented)})}start(e){return PT(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;RT(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)});const i=dq({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))}),r)})}move(e){return PT(()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=dq({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l})})}stop(e={}){return PT(()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{n.status.set("dropped");const e=PT(()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)}),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=GT(()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())})}else this.manager.renderer.rendering.then(t)})};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,r)=>{e.resume=t,e.abort=r}),e}}),i?i.then(a).catch(()=>n.reset()):a()})}};Mq=[zO],Pq=[zO],Aq=[zO],Rq=[zO];var qq=class{constructor(e,t){YL(this,kq,BL(Iq,8,this)),BL(Iq,11,this),YL(this,Dq,BL(Iq,12,this)),BL(Iq,15,this),YL(this,Tq,BL(Iq,16,this)),BL(Iq,19,this),YL(this,Oq,BL(Iq,20,this)),BL(Iq,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}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)}};Iq=jL(null),kq=new WeakMap,Dq=new WeakMap,Tq=new WeakMap,Oq=new WeakMap,WL(Iq,4,"manager",Mq,qq,kq),WL(Iq,4,"id",Pq,qq,Dq),WL(Iq,4,"data",Aq,qq,Tq),WL(Iq,4,"disabled",Rq,qq,Oq),HL(Iq,qq);var Nq,_q,jq,zq,Fq,$q,Hq,Bq,Wq,Vq,Uq,Gq,Yq,Kq,Xq,Jq,Zq,Qq,eN,tN,rN,nN,oN,iN,aN=class{constructor(){this.map=_T(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=HO(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},sN=class extends(Hq=qq,$q=[zO],Fq=[zO],zq=[zO],jq=[FO],_q=[FO],Nq=[FO],Hq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=_L(r,["modifiers","type","sensors"]);super(a,t),BL(Bq,5,this),YL(this,Wq,BL(Bq,8,this)),BL(Bq,11,this),YL(this,Vq,BL(Bq,12,this)),BL(Bq,15,this),YL(this,Uq,BL(Bq,16,this,this.isDragSource?"dragging":"idle")),BL(Bq,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}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}};Bq=jL(Hq),Wq=new WeakMap,Vq=new WeakMap,Uq=new WeakMap,WL(Bq,4,"type",$q,sN,Wq),WL(Bq,4,"modifiers",Fq,sN,Vq),WL(Bq,4,"status",zq,sN,Uq),WL(Bq,2,"isDropping",jq,sN),WL(Bq,2,"isDragging",_q,sN),WL(Bq,2,"isDragSource",Nq,sN),HL(Bq,sN);var lN=class extends(Qq=qq,Zq=[zO],Jq=[zO],Xq=[zO],Kq=[zO],Yq=[zO],Gq=[FO],Qq){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(_L(r,["accept","collisionDetector","collisionPriority","type"]),t),BL(eN,5,this),YL(this,tN,BL(eN,8,this)),BL(eN,11,this),YL(this,rN,BL(eN,12,this)),BL(eN,15,this),YL(this,nN,BL(eN,16,this)),BL(eN,19,this),YL(this,oN,BL(eN,20,this)),BL(eN,23,this),YL(this,iN,BL(eN,24,this)),BL(eN,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};eN=jL(Qq),tN=new WeakMap,rN=new WeakMap,nN=new WeakMap,oN=new WeakMap,iN=new WeakMap,WL(eN,4,"accept",Zq,lN,tN),WL(eN,4,"type",Jq,lN,rN),WL(eN,4,"collisionDetector",Xq,lN,nN),WL(eN,4,"collisionPriority",Kq,lN,oN),WL(eN,4,"shape",Yq,lN,iN),WL(eN,2,"isDropTarget",Gq,lN),HL(eN,lN);var uN,cN=class extends eq{constructor(e,t){super(e,t),this.manager=e,this.options=t}},dN=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)}},pN=class{constructor(e){this.options=e,YL(this,uN)}set controller(e){KL(this,uN,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=GL(this,uN))||t.activate(e)}};uN=new WeakMap;var fN,hN,mN,gN,vN,bN,yN,xN,SN,wN,CN,EN,RN,AN,PN,MN,IN,kN,DN,TN=class extends eq{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},ON=class{constructor(e){this.draggables=new aN,this.droppables=new aN,this.plugins=new nq(e),this.sensors=new nq(e),this.modifiers=new nq(e)}register(e,t){if(e instanceof sN)return this.draggables.register(e.id,e);if(e instanceof lN)return this.droppables.register(e.id,e);if(e.prototype instanceof TN)return this.modifiers.register(e,t);if(e.prototype instanceof cN)return this.sensors.register(e,t);if(e.prototype instanceof eq)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof qq)return e instanceof sN?this.draggables.unregister(e.id,e):e instanceof lN?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof TN)return this.modifiers.unregister(e);if(e.prototype instanceof cN)return this.sensors.unregister(e);if(e.prototype instanceof eq)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()}};SN=[FO],xN=[zO],yN=[zO],bN=[zO],vN=[zO],gN=[zO],mN=[FO],hN=[FO],fN=[FO];var LN=class{constructor(e){BL(RN,5,this),YL(this,wN),YL(this,CN),YL(this,EN,new WO(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new Eq,YL(this,AN,BL(RN,8,this,!1)),BL(RN,11,this),YL(this,PN,BL(RN,12,this,null)),BL(RN,15,this),YL(this,MN,BL(RN,16,this,null)),BL(RN,19,this),YL(this,IN,BL(RN,20,this,null)),BL(RN,23,this),YL(this,kN,BL(RN,24,this,[])),BL(RN,27,this),this.position=new mL({x:0,y:0}),YL(this,DN,{x:0,y:0}),KL(this,wN,e)}get shape(){const{current:e,initial:t,previous:r}=GL(this,EN);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?GL(this,EN).current=e:GL(this,EN).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=GL(this,wN).registry.draggables.get(t);return r&&KL(this,CN,r),null!=(e=null!=r?r:GL(this,CN))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=GL(this,wN).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(qL(LL({},this.snapshot()),{transform:r}));return KL(this,DN,r),r}snapshot(){return PT(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:GL(this,DN),shape:this.shape?VO(this.shape):null,position:VO(this.position),status:VO(this.status),canceled:this.canceled}))}reset(){RT(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,GL(this,EN).reset(),this.position.reset({x:0,y:0}),KL(this,DN,{x:0,y:0}),this.modifiers=[]})}};RN=jL(null),wN=new WeakMap,CN=new WeakMap,EN=new WeakMap,AN=new WeakMap,PN=new WeakMap,MN=new WeakMap,IN=new WeakMap,kN=new WeakMap,DN=new WeakMap,WL(RN,2,"shape",SN,LN),WL(RN,4,"canceled",xN,LN,AN),WL(RN,4,"activatorEvent",yN,LN,PN),WL(RN,4,"sourceIdentifier",bN,LN,MN),WL(RN,4,"targetIdentifier",vN,LN,IN),WL(RN,4,"modifiers",gN,LN,kN),WL(RN,2,"source",mN,LN),WL(RN,2,"target",hN,LN),WL(RN,2,"transform",fN,LN),HL(RN,LN);var qN={get rendering(){return Promise.resolve()}};function NN(e,t){return"function"==typeof e?e(t):null!=e?e:t}var _N=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=NN(r.plugins,[]),o=NN(r.sensors,[]),i=NN(r.modifiers,[]),a=null!=(t=r.renderer)?t:qN,s=new cq(this),l=new ON(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new Lq(this),this.dragOperation=new LN(this),this.collisionObserver=new lq(this),this.plugins=[Sq,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=HO(()=>{var e,t,r;const n=PT(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of n)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:r}=QL(e);return new t(this,r)}))?r:o});this.destroy=()=>{c(),u()}}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}},jN=e=>{throw TypeError(e)},zN=(e,t,r)=>t.has(e)||jN("Cannot "+r),FN=(e,t,r)=>(zN(e,t,"read from private field"),t.get(e)),$N=(e,t,r)=>t.has(e)?jN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),HN=(e,t,r,n)=>(zN(e,t,"write to private field"),t.set(e,r),r),BN=(e,t,r)=>(zN(e,t,"access private method"),r);function WN(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function VN(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(WN(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function UN(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function GN(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function YN(e){return"nodeType"in e}function KN(e){var t,r,n;return e?GN(e)?e:YN(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function XN(e){const{Document:t}=KN(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function JN(e){return!(!e||GN(e))&&(e instanceof KN(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function ZN(e){return e instanceof KN(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function QN(e){return e?GN(e)?e.document:YN(e)?XN(e)?e:JN(e)||ZN(e)?e.ownerDocument:document:document:document}function e_(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function t_(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!e_(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.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:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,v=r*g,b=r*m;return l={top:Math.max(l.top,f-v),right:Math.min(l.right,h+m+b),bottom:Math.min(l.bottom,f+g+v),left:Math.max(l.left,h-b),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 r_(e){return{x:e.clientX,y:e.clientY}}var n_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function o_(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...o_(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...o_(o.document,t))}}catch(e){}return r}function i_(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function a_(){var e,t;const r=i_()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function s_(e){return!(!e||!YN(e))&&e instanceof KN(e).ShadowRoot}function l_(e){if(e&&YN(e)){let t=e.getRootNode();if(s_(t))return t;if(t instanceof Document)return t}return QN(e)}function u_(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function c_(e){return"value"in e}function d_(e){return"CANVAS"===e.tagName}function p_(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return p_(e,{x:t-o,y:r-i})}}return n}var f_=new WeakMap;var h_=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function m_(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function g_(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}(()=>{e.apply(a,i),o=r()},t-(r()-o))):(e.apply(a,i),o=r())}}var v_,b_=n_?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},y_=class extends b_{constructor(e){super(t=>{FN(this,v_)?e(t,this):HN(this,v_,!0)}),$N(this,v_,!1)}};v_=new WeakMap;var x_,S_,w_,C_,E_,R_,A_,P_,M_,I_,k_,D_=Array.from({length:100},(e,t)=>t/100),T_=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,$N(this,M_),this.disconnect=()=>{var e,t,r;HN(this,A_,!0),null==(e=FN(this,w_))||e.disconnect(),null==(t=FN(this,C_))||t.disconnect(),FN(this,E_).disconnect(),null==(r=FN(this,R_))||r.remove()},$N(this,x_,!0),$N(this,S_),$N(this,w_),$N(this,C_),$N(this,E_),$N(this,R_),$N(this,A_,!1),$N(this,P_,g_(()=>{var e,t,r;const{element:n}=this;if(null==(e=FN(this,C_))||e.disconnect(),FN(this,A_)||!FN(this,x_)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=t_(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,HN(this,C_,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:fL.intersectionRatio(r,t_(n)))&&FN(this,P_).call(this)},{threshold:D_,rootMargin:m,root:o})),FN(this,C_).observe(n),BN(this,M_,I_).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),HN(this,x_,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=t_(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(HN(this,R_,document.createElement("div")),FN(this,R_).style.background="rgba(0,0,0,0.15)",FN(this,R_).style.position="fixed",FN(this,R_).style.pointerEvents="none",o.body.appendChild(FN(this,R_))),HN(this,E_,new IntersectionObserver(t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=FN(this,x_);HN(this,x_,a),(s||l)&&(u&&!a?(null==(r=FN(this,C_))||r.disconnect(),this.callback(null),null==(n=FN(this,w_))||n.disconnect(),HN(this,w_,void 0),FN(this,R_)&&(FN(this,R_).style.visibility="hidden")):FN(this,P_).call(this),a&&!FN(this,w_)&&(HN(this,w_,new y_(FN(this,P_))),FN(this,w_).observe(e)))},{threshold:D_,root:o})),FN(this,x_)&&!r.skipInitial&&this.callback(this.boundingClientRect),FN(this,E_).observe(e)}};x_=new WeakMap,S_=new WeakMap,w_=new WeakMap,C_=new WeakMap,E_=new WeakMap,R_=new WeakMap,A_=new WeakMap,P_=new WeakMap,M_=new WeakSet,I_=function(){FN(this,A_)||(BN(this,M_,k_).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,FN(this,S_))||(this.callback(this.boundingClientRect),HN(this,S_,this.boundingClientRect)))},k_=function(){if(FN(this,R_)){const{top:e,left:t,width:r,height:n}=t_(this.element);FN(this,R_).style.overflow="hidden",FN(this,R_).style.visibility="visible",FN(this,R_).style.top=`${Math.floor(e)}px`,FN(this,R_).style.left=`${Math.floor(t)}px`,FN(this,R_).style.width=`${Math.floor(r)}px`,FN(this,R_).style.height=`${Math.floor(n)}px`}};var O_,L_,q_,N_,__=new WeakMap,j_=new WeakMap;function z_(e,t){let r=__.get(e);if(!r){const t=new T_(e,t=>{const r=__.get(e);r&&r.callbacks.forEach(e=>e(t))},{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),__.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(__.delete(e),r.disconnect())}}var F_=class{constructor(e,t,r){this.callback=t,$N(this,O_),$N(this,L_,!1),$N(this,q_),$N(this,N_,g_(e=>{if(!FN(this,L_)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of FN(this,q_))if(e.target.contains(t)){this.callback(FN(this,O_).boundingClientRect);break}},75));const n=function(e){const t=new Set;let r=m_(e);for(;r;)t.add(r),r=m_(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=z_(n,t);r.add(e)}return()=>r.forEach(e=>e())}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!j_.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),j_.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=j_.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),j_.delete(n))}):()=>{}}(e,FN(this,N_));HN(this,q_,n),HN(this,O_,new T_(e,t,r)),this.disconnect=()=>{FN(this,L_)||(HN(this,L_,!0),o(),i(),FN(this,O_).disconnect())}}};function $_(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function H_(e){try{$_(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function B_(e){return!(!n_||!e)&&e===QN(e).scrollingElement}function W_(e){var t,r;const n=KN(e),o=B_(e)?function(e){var t,r,n,o;const{documentElement:i}=QN(e),a=KN(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):UN(e),i=n.visualViewport,a=B_(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function V_(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=W_(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}O_=new WeakMap,L_=new WeakMap,q_=new WeakMap,N_=new WeakMap;var U_=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))}},G_=new U_(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),Y_=new U_(e=>setTimeout(e,50)),K_=new Map,X_=K_.clear.bind(K_);function J_(e,t=!1){if(!t)return Z_(e);let r=K_.get(e);return r||(r=Z_(e),K_.set(e,r),Y_.schedule(X_),r)}function Z_(e){return KN(e).getComputedStyle(e)}var Q_={excludeElement:!0,escapeShadowDOM:!0};function ej(e,t=Q_){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(XN(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&s_(a))return t(a.host);if(!JN(a))return ZN(a)?t(a.parentElement):i;if(i.has(a))return i;const s=J_(a,!0);if(n&&a===e||function(e,t=J_(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&r.test(n)})}(a,s)&&i.add(a),function(e,t=J_(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 tj(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=m_(e);for(;n;){if(n===t)return r;const e=UN(n),{x:o,y:i}=rj(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=m_(n)}return r}function rj(e,t=UN(e)){const r=Math.round(t.width),n=Math.round(t.height);if(JN(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=J_(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function nj(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function oj(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=nj(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,v=null!=(r=null==f?void 0:f.y)?r:1,b=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:b+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:v*C}}var ij=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(ij||{}),aj={x:.2,y:.2},sj={x:10,y:10};function lj(e,t,r,n=25,o=aj,i=sj){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=W_(e),f=tj(e),h=oj(J_(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new fL(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),b={x:0,y:0},y={x:0,y:0},x=v.height*o.y,S=v.width*o.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x?(b.y=g?1:-1,y.y=n*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x&&(b.y=g?-1:1,y.y=n*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y?(b.x=m?-1:1,y.x=n*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y&&(b.x=m?1:-1,y.x=n*Math.abs((v.left+S-a)/S)),{direction:b,speed:y}}function uj(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!JN(e))return e.scrollIntoView();var n=function(e){const[t]=ej(e,{limit:1});return null!=t?t:null}(e);if(!JN(n))return;const o=J_(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function cj({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function dj(e,t=J_(e).translate,r=!0){if(r){const t=VN(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=nj(e);if(t)return t}}}if(t){const e=nj(t);if(e)return e}return{x:0,y:0,z:0}}var pj=new U_(e=>setTimeout(e,0)),fj=new Map,hj=fj.clear.bind(fj);function mj(e,t){const r=function(e){const t=e.ownerDocument;let r=fj.get(t);if(r)return r;r=t.getAnimations(),fj.set(t,r),pj.schedule(hj);const n=r.filter(t=>WN(t.effect)&&t.effect.target===e);return fj.set(e,n),r}(e).filter(e=>{var r,n;if(WN(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some(e=>{for(const r of t.properties)if(e[r])return!0})}}).map(e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0});if(r.length>0)return()=>r.forEach(e=>null==e?void 0:e())}var gj=class extends fL{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=tj(e),ignoreTransforms:s,getBoundingClientRect:l=UN}=t,u=mj(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||i_())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=J_(e),v=oj(g),b={x:null!=(r=null==v?void 0:v.scaleX)?r:1,y:null!=(n=null==v?void 0:v.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=WN(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=oj({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),v&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,v,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,b.x=y.scaleX,b.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=b,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function vj(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 bj=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(vj(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(vj(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(vj(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function yj(e){return!!e&&(e instanceof KN(e).Element||YN(e)&&e.nodeType===Node.ELEMENT_NODE)}function xj(e){if(!e)return!1;const{KeyboardEvent:t}=KN(e.target);return e instanceof t}var Sj={};function wj(e){const t=null==Sj[e]?0:Sj[e]+1;return Sj[e]=t,`${e}-${t}`}var Cj=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/pL.distance(t.shape.center,r),type:Cq.PointerIntersection,priority:wq.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=pL.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:Cq.ShapeIntersection,priority:wq.Normal}}return null})(e)},Ej=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?fL.from(n.current.boundingRectangle).corners:void 0,a=fL.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+pL.distance(pL.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)},0),s=a/4;return{id:r.id,value:1/s,type:Cq.Collision,priority:wq.Normal}},Rj=Object.create,Aj=Object.defineProperty,Pj=Object.defineProperties,Mj=Object.getOwnPropertyDescriptor,Ij=Object.getOwnPropertyDescriptors,kj=Object.getOwnPropertySymbols,Dj=Object.prototype.hasOwnProperty,Tj=Object.prototype.propertyIsEnumerable,Oj=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Lj=e=>{throw TypeError(e)},qj=(e,t,r)=>t in e?Aj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nj=(e,t)=>{for(var r in t||(t={}))Dj.call(t,r)&&qj(e,r,t[r]);if(kj)for(var r of kj(t))Tj.call(t,r)&&qj(e,r,t[r]);return e},_j=(e,t)=>Pj(e,Ij(t)),jj=(e,t)=>Aj(e,"name",{value:t,configurable:!0}),zj=(e,t)=>{var r={};for(var n in e)Dj.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&kj)for(var n of kj(e))t.indexOf(n)<0&&Tj.call(e,n)&&(r[n]=e[n]);return r},Fj=e=>{var t;return[,,,Rj(null!=(t=null==e?void 0:e[Oj("metadata")])?t:null)]},$j=["class","method","getter","setter","accessor","field","value","get","set"],Hj=e=>void 0!==e&&"function"!=typeof e?Lj("Function expected"):e,Bj=(e,t,r,n,o)=>({kind:$j[e],name:t,metadata:n,addInitializer:e=>r._?Lj("Already initialized"):o.push(Hj(e||null))}),Wj=(e,t)=>qj(t,Oj("metadata"),e[3]),Vj=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},Uj=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=$j[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&Mj(d<4?o:{get[r](){return Kj(this,i)},set[r](e){return Jj(this,i,e)}},r));d?f&&d<4&&jj(i,(d>2?"set ":d>1?"get ":"")+r):jj(o,r);for(var y=n.length-1;y>=0;y--)u=Bj(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>Yj(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?Kj:Zj)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>Jj(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?Hj(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?Lj("Object expected"):(Hj(a=s.get)&&(b.get=a),Hj(a=s.set)&&(b.set=a),Hj(a=s.init)&&g.unshift(a));return d||Wj(e,o),b&&Aj(o,r,b),f?4^d?i:b:o},Gj=(e,t,r)=>t.has(e)||Lj("Cannot "+r),Yj=(e,t)=>Object(t)!==t?Lj('Cannot use the "in" operator on this value'):e.has(t),Kj=(e,t,r)=>(Gj(e,t,"read from private field"),r?r.call(e):t.get(e)),Xj=(e,t,r)=>t.has(e)?Lj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Jj=(e,t,r,n)=>(Gj(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Zj=(e,t,r)=>(Gj(e,t,"access private method"),r),Qj="button",ez="draggable",tz="dnd-kit-description",rz="dnd-kit-announcement",nz={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."},oz={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function iz(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var az=["dragover","dragmove"],sz=class extends eq{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=tz,announcement:o=rz}={},announcements:i=oz,screenReaderInstructions:a=nz,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:wj(n),u=r?`${o}-${r}`:wj(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>G_.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),v=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,az.includes(e)?g():(m(),g.cancel()))})),b=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(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}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(b),iz(r)&&!i_()||r.hasAttribute("tabindex")||y.add(()=>r.setAttribute("tabindex","0")),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add(()=>r.setAttribute("role",Qj)),r.hasAttribute("aria-roledescription")||y.add(()=>r.setAttribute("aria-roledescription",ez)),r.hasAttribute("aria-describedby")||y.add(()=>r.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add(()=>r.setAttribute(e,n))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add(()=>r.setAttribute("aria-disabled",e))}}y.size>0&&G_.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach(e=>e())}}};var lz,uz,cz,dz,pz,fz,hz,mz,gz,vz,bz,yz,xz,Sz=new Map,wz=class extends(pz=rq,dz=[zO],cz=[FO],uz=[FO],lz=[FO],pz){constructor(e){super(e),Vj(hz,5,this),Xj(this,gz),Xj(this,fz,new Set),Xj(this,mz,Vj(hz,8,this,new Set)),Vj(hz,11,this),this.registerEffect(Zj(this,gz,vz))}register(e){return Kj(this,fz).add(e),()=>{Kj(this,fz).delete(e)}}addRoot(e){return PT(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{PT(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return l_(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return l_(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}};hz=Fj(pz),fz=new WeakMap,mz=new WeakMap,gz=new WeakSet,vz=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of Kj(this,fz))t.push(Zj(this,gz,bz).call(this,r,e));return()=>{for(const e of t)e()}},bz=function(e,t){let r=Sz.get(e);r||(r=new Map,Sz.set(e,r));let n=r.get(t);if(!n){const o=XN(e)?Zj(this,gz,yz).call(this,e,r,t):Zj(this,gz,xz).call(this,e,r,t);if(!o)return()=>{};n=o,r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},yz=function(e,t,r){const n=e.createElement("style");n.textContent=r,e.head.prepend(n);const o=new MutationObserver(t=>{for(const r of t)for(const t of Array.from(r.removedNodes))if(t===n)return void e.head.prepend(n)});return o.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{o.disconnect(),n.remove(),t.delete(r),0===t.size&&Sz.delete(e)}}},xz=function(e,t,r){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const n=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=n?n:{};if(!o)return null;const i=new o;return i.replaceSync(r),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var n;if(s_(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(r),0===t.size&&Sz.delete(e)}}},Uj(hz,4,"additionalRoots",dz,wz,mz),Uj(hz,2,"sourceRoot",cz,wz),Uj(hz,2,"targetRoot",uz,wz),Uj(hz,2,"roots",lz,wz),Wj(hz,wz);var Cz="data-dnd-",Ez=`${Cz}dropping`,Rz="--dnd-",Az=`${Cz}dragging`,Pz=`${Cz}placeholder`,Mz=[Az,Pz,"popover","aria-pressed","aria-grabbing"],Iz=["view-transition-name"],kz=`\n :is(:root,:host) [${Az}] {\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(${Rz}top, 0px) !important;\n left: var(${Rz}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Rz}width, auto);\n max-width: var(${Rz}width, auto);\n height: var(${Rz}height, auto);\n max-height: var(${Rz}height, auto);\n transition: var(${Rz}transition) !important;\n }\n\n :is(:root,:host) [${Pz}] {\n transition: none;\n }\n\n :is(:root,:host) [${Pz}='hidden'] {\n visibility: hidden;\n }\n\n [${Az}] * {\n pointer-events: none !important;\n }\n\n [${Az}]:not([${Ez}]) {\n translate: var(${Rz}translate) !important;\n }\n\n [${Az}][style*='${Rz}scale'] {\n scale: var(${Rz}scale) !important;\n transform-origin: var(${Rz}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${Az}][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 [${Az}]::backdrop, [${Cz}overlay]:not([${Az}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function Dz(e,t="hidden"){return PT(()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${Cz}${wj("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach((e,t)=>{const r=n[t];if(c_(e)&&c_(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),d_(e)&&d_(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}}),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),f_.set(a,i),r.push(()=>{f_.delete(a),n.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(Pz,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function Tz(e,t){return e===t||m_(e)===m_(t)}function Oz(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&yj(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>H_(t))}function Lz(e){return"TR"===e.tagName}var qz,Nz,_z,jz,zz,Fz,$z,Hz=250,Bz="ease";var Wz=class extends(Nz=eq,qz=[zO],Nz){constructor(e,t){super(e,t),Xj(this,zz),Xj(this,jz,Vj(_z,8,this)),Vj(_z,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(wz),n=null==r?void 0:r.register(kz);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(Zj(this,zz,Fz).bind(this,r)),this.registerEffect(Zj(this,zz,$z))}};_z=Fj(Nz),jz=new WeakMap,zz=new WeakSet,Fz=function(e){const{overlay:t}=this;if(!t||!e)return;const r=l_(t);return r?e.addRoot(r):void 0},$z=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=tj(f),m=tj(c),g=!Tz(c,f),v=new gj(c,{frameTransform:g?m:null,ignoreTransforms:!g}),b=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=v;g&&(x/=b,S/=y);const E=new bj(f),{transition:R,translate:A,boxSizing:P,paddingBlockStart:M,paddingBlockEnd:I,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=J_(c),N="clone"===d,_="content-box"===P,j=_?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=_?parseInt(M)+parseInt(I)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:Dz(l,N?"clone":"hidden"),$=PT(()=>xj(o.dragOperation.activatorEvent));if("none"!==A){const e=nj(A);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=PT(()=>s.current);p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:H}=p,B=w*h.scaleY+h.y,W=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:W,y:B},1!==b||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=H;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-W,U=p.coordinates.y-B,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*H.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*H.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(Az,"true");const Z=PT(()=>a.transform),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,re=a_();if(E.set({width:x-j,height:S-z,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${b} ${y}`:"","transform-origin":`${100*H.x}% ${100*H.y}%`},Rz),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;$_(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),H_(f),f.addEventListener("beforetoggle",Oz));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:H,width:x,height:S,top:w,left:C,widthOffset:j,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver(()=>{var e,t;const r=new gj(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=a_();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},Rz),null==(t=se.getElementMutationObserver())||t.takeRecords(),Lz(se.element)&&Lz(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map(e=>e.style.width));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new gj(se.feedbackElement)}));var se;const le=new gj(f);PT(()=>a.shape=le);const ue=KN(f),ce=e=>{this.manager.actions.stop({event:e})},de=u_(ue);$&&ue.addEventListener("resize",ce),"idle"===PT(()=>l.status)&&requestAnimationFrame(()=>l.status="dragging"),F&&(ae.observe(F),ne=function(e,t,r){const n=new MutationObserver(n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||Mz.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(vj(e)&&vj(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(Iz.includes(e)||e.startsWith(Rz))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)});return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),oe=function(e,t,r){const n=new MutationObserver(n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void H_(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void H_(r)}});return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!$||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;JN(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),$_(f)&&(f.removeEventListener("beforetoggle",Oz),f.removeAttribute("popover")),f.removeAttribute(Az),E.reset(),ie&&Lz(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},me=null==i?void 0:i.dropAnimation,ge=this,ve=HO(()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=PT(()=>a.modifiers),l=PT(()=>{var e;return null==(e=a.shape)?void 0:e.current}),u=$&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},Rz),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=pL.delta(o,i);a.shape=fL.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new gj(f);n.current.translate=o}},function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then(()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({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=Hz,easing:s=Bz}=null!=i?i:{};H_(e.feedbackElement);const[,l]=null!=(t=VN(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:Tz(e.feedbackElement,u)?null:void 0},d=new gj(e.feedbackElement,c),p=null!=(n=nj(J_(e.feedbackElement).translate))?n:e.translate,f=new gj(u,c),h=fL.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,v=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},b=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},Rz),e.feedbackElement.setAttribute(Ez,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),cj({element:e.feedbackElement,keyframes:_j(Nj(Nj({},v),b),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:u_(KN(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(Ez),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({element:c,feedbackElement:f,placeholder:F,translate:t,moved:r,transition:R,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})})}});return()=>{he(),ve()}},Uj(_z,4,"overlay",qz,Wz,jz),Wj(_z,Wz),Wz.configure=ZL(Wz);var Vz,Uz,Gz,Yz,Kz,Xz,Jz,Zz=Wz,Qz=!0;Gz=[zO],Yz=ij.Forward,Vz=[zO],Uz=ij.Reverse;var eF=class{constructor(){Xj(this,Xz,Vj(Kz,8,this,Qz)),Vj(Kz,11,this),Xj(this,Jz,Vj(Kz,12,this,Qz)),Vj(Kz,15,this)}isLocked(e){return e!==ij.Idle&&(null==e?this[ij.Forward]===Qz&&this[ij.Reverse]===Qz:this[e]===Qz)}unlock(e){e!==ij.Idle&&(this[e]=false)}};Kz=Fj(null),Xz=new WeakMap,Jz=new WeakMap,Uj(Kz,4,Yz,Gz,eF,Xz),Uj(Kz,4,Uz,Vz,eF,Jz),Wj(Kz,eF);var tF,rF,nF,oF,iF,aF,sF=[ij.Forward,ij.Reverse],lF=class{constructor(){this.x=new eF,this.y=new eF}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},uF=class extends eq{constructor(e){super(e);const t=_T(new lF);let r=null;this.signal=t,GT(()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new lF);const{delta:o}=e.dragOperation.position;if(r){const e={x:cF(o.x,r.x),y:cF(o.y,r.y)},n=t.peek();RT(()=>{for(const t of wL)for(const r of sF)e[t]===r&&n[t].unlock(r);t.value=n})}r=o})}get current(){return this.signal.peek()}};function cF(e,t){return Math.sign(e-t)}var dF=class extends(rF=rq,tF=[zO],rF){constructor(e){super(e),Xj(this,oF,Vj(nF,8,this,!1)),Vj(nF,11,this),Xj(this,iF),Xj(this,aF,()=>{if(!Kj(this,iF))return;const{element:e,by:t}=Kj(this,iF);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return Jj(this,iF,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:pF(n.x),y:pF(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=V_(e,n);if(r.x||r.y){const{speed:r,direction:s}=lj(e,o,i);if(a)for(const e of wL)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=Kj(this,iF))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return Jj(this,iF,{element:e,by:{x:a,y:l}}),G_.schedule(Kj(this,aF)),!0}}}}}return Jj(this,iF,void 0),!1};let t=null,r=null;const n=_O(()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=p_(l_(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t}),o=_O(()=>{const t=n.value,{documentElement:o}=QN(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=ej(n,{excludeElement:!1});return r=e,e}}if(t){const e=ej(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null},jO);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new uF(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&xj(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function pF(e){return e>0?ij.Forward:e<0?ij.Reverse:ij.Idle}nF=Fj(rF),oF=new WeakMap,iF=new WeakMap,aF=new WeakMap,Uj(nF,4,"autoScrolling",tF,dF,oF),Wj(nF,dF);var fF,hF=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()}),mF=class extends eq{constructor(e,t){super(e);const r=e.registry.plugins.get(dF);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=GT(()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval(()=>hF.schedule(r.scroll),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}})}},gF={capture:!0,passive:!0},vF=class extends rq{constructor(e){super(e),Xj(this,fF),this.handleScroll=()=>{null==Kj(this,fF)&&Jj(this,fF,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),Jj(this,fF,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=GT(()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,gF),()=>{o.removeEventListener("scroll",this.handleScroll,gF)}}})}};fF=new WeakMap;function bF(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var yF,xF=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),SF=class extends cN{constructor(e,t){super(e),this.manager=e,this.options=t,Xj(this,yF,[]),this.listeners=new h_,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!yj(e.target))return;if(t.disabled)return;const{keyboardCodes:n=xF.keyboardCodes,preventActivation:o=xF.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=GT(()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{xj(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}});return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),uj(n);const{center:o}=new gj(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=QN(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];Kj(this,yF).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=xF.keyboardCodes}=null!=r?r:{};if(EF(e,[...n.end,...n.cancel])){e.preventDefault();const t=EF(e,n.cancel);return void this.handleEnd(e,t)}EF(e,n.up)?this.handleMove("up",e):EF(e,n.down)&&this.handleMove("down",e),EF(e,n.left)?this.handleMove("left",e):EF(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:xF.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(mF);!1===(null==e?void 0:e.disabled)&&(e.disable(),Kj(this,yF).push(()=>{e.enable()}))}cleanup(){Kj(this,yF).forEach(e=>e()),Jj(this,yF,[])}destroy(){this.cleanup(),this.listeners.clear()}};yF=new WeakMap,SF.configure=ZL(SF),SF.defaults=xF;var wF,CF=SF;function EF(e,t){return t.includes(e.code)}var RF,AF;wF=new WeakMap;RF=new WeakMap,AF=new WeakMap;var PF=class{};PF.Delay=class extends pN{constructor(){super(...arguments),Xj(this,RF),Xj(this,AF)}onEvent(e){switch(e.type){case"pointerdown":Jj(this,AF,r_(e)),Jj(this,RF,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!Kj(this,AF))return;const{x:t,y:r}=r_(e);gL({x:t-Kj(this,AF).x,y:r-Kj(this,AF).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){Kj(this,RF)&&(clearTimeout(Kj(this,RF)),Jj(this,AF,void 0),Jj(this,RF,void 0))}},PF.Distance=class extends pN{constructor(){super(...arguments),Xj(this,wF)}onEvent(e){switch(e.type){case"pointerdown":Jj(this,wF,r_(e));break;case"pointermove":if(!Kj(this,wF))return;const{x:t,y:r}=r_(e),n={x:t-Kj(this,wF).x,y:r-Kj(this,wF).y},{tolerance:o}=this.options;if(o&&gL(n,o))return void this.abort();gL(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){Jj(this,wF,void 0)}};var MF,IF=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!yj(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new PF.Delay({value:250,tolerance:5})]:function(e){if(!yj(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new PF.Delay({value:200,tolerance:0})]:[new PF.Delay({value:200,tolerance:10}),new PF.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!yj(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),kF=class extends cN{constructor(e,t){super(e),this.manager=e,this.options=t,Xj(this,MF,new Set),this.listeners=new h_,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=IF.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=GT(()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=KN(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(qF(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()});return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!yj(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=IF.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=JN(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=tj(t.element),{x:s,y:l}=r_(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new dN(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=o_(),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:TF,options:{capture:!0}}]);Kj(this,MF).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=r_(e),n=tj(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,G_.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=QN(t.target).body;o.setPointerCapture(t.pointerId);const i=yj(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:TF,options:{passive:!1}},{type:"click",listener:TF},{type:"contextmenu",listener:TF},{type:"keydown",listener:this.handleKeyDown}]);Kj(this,MF).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},Kj(this,MF).forEach(e=>e()),Kj(this,MF).clear()}destroy(){this.cleanup(),this.listeners.clear()}};MF=new WeakMap,kF.configure=ZL(kF),kF.defaults=IF;var DF=kF;function TF(e){e.preventDefault()}function OF(){}var LF=new WeakSet;function qF(e){e&&!LF.has(e)&&(e.addEventListener("touchmove",OF,{capture:!1,passive:!1}),LF.add(e))}var NF,_F,jF,zF,FF,$F,HF,BF,WF,VF,UF,GF,YF,KF,XF,JF,ZF,QF,e$={modifiers:[],plugins:[sz,mF,class extends eq{constructor(e,t){super(e,t),this.manager=e;const r=_O(()=>{var e;return QN(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=GT(()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},Zz,class extends eq{constructor(e,t){super(e,t),this.manager=e,this.destroy=GT(()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),bF(),document.addEventListener("selectionchange",bF,{capture:!0}),()=>{document.removeEventListener("selectionchange",bF,{capture:!0}),e.remove()}}})}}],sensors:[DF,CF]},t$=class extends _N{constructor(e={}){const t=NN(e.plugins,e$.plugins),r=NN(e.sensors,e$.sensors),n=NN(e.modifiers,e$.modifiers);super(_j(Nj({},e),{plugins:[vF,dF,wz,...t],sensors:r,modifiers:n}))}},r$=class extends(zF=sN,jF=[zO],_F=[zO],NF=[zO],zF){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=zj(r,["element","effects","handle","feedback"]);super(Nj({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(QL))?t:[...r.sensors]).map(e=>{const t=e instanceof cN?e:r.registry.register(e.plugin),n=e instanceof cN?void 0:e.options;return t.bind(this,n)});return function(){n.forEach(e=>e())}}]},s),t),Xj(this,$F,Vj(FF,8,this)),Vj(FF,11,this),Xj(this,HF,Vj(FF,12,this)),Vj(FF,15,this),Xj(this,BF,Vj(FF,16,this)),Vj(FF,19,this),this.element=n,this.handle=i,this.feedback=a}};FF=Fj(zF),$F=new WeakMap,HF=new WeakMap,BF=new WeakMap,Uj(FF,4,"handle",jF,r$,$F),Uj(FF,4,"element",_F,r$,HF),Uj(FF,4,"feedback",NF,r$,BF),Wj(FF,r$);var n$=class extends(UF=lN,VF=[zO],WF=[zO],UF){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=zj(r,["element","effects"]);const{collisionDetector:a=Cj}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new gj(r),o=PT(()=>this.shape);return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=_T(!1);super(_j(Nj({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new F_(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),Xj(this,ZF),Xj(this,YF,Vj(GF,8,this)),Vj(GF,11,this),Xj(this,QF,Vj(GF,12,this)),Vj(GF,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){Jj(this,ZF,e,JF)}get element(){var e;return null!=(e=this.proxy)?e:Kj(this,ZF,XF)}};function o$(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}GF=Fj(UF),YF=new WeakMap,ZF=new WeakSet,QF=new WeakMap,KF=Uj(GF,20,"#element",VF,ZF,YF),XF=KF.get,JF=KF.set,Uj(GF,4,"proxy",WF,n$,QF),Wj(GF,n$);var i$="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?z:O;function a$(){const e=I(0)[1];return q(()=>{e(e=>e+1)},[e])}function s$(e,t=[],r=!1){const n=k(e);return n.current=e,function(e,t=!1){const r=k(e.peek()),n=k(!1),o=a$();return i$(()=>GT(()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?U(o):o()}}),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(M(()=>_O(()=>n.current()),t),r)}function l$(e,t){const r=k(new Map),n=a$();return i$(()=>{if(e)return GT(()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=PT(()=>n[1]),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?U(n):n())});r.current.clear()},[e]),M(()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e,[e])}function u$(e,t){e()}function c$(e){const t=k(e);return i$(()=>{t.current=e},[e]),t}function d$(e,t,r=O,n=Object.is){const o=k(e);r(()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))},[t,e])}function p$(e,t){const r=k(o$(e));i$(()=>{const n=o$(e);n!==r.current&&(r.current=n,t(n))})}var f$=Object.getOwnPropertySymbols,h$=Object.prototype.hasOwnProperty,m$=Object.prototype.propertyIsEnumerable,g$=new t$,v$=D(g$),b$=j(_(({children:e},t)=>{const[r,n]=I(0),o=k(null),i=k(null),a=M(()=>({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(),n(e=>e+1)})}}),[]);return i$(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,r]),H(t,()=>a),null})),y$=[void 0,jO];function x$(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)h$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&f$)for(var n of f$(e))t.indexOf(n)<0&&m$.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=k(null),{plugins:d,modifiers:p,sensors:f}=u,h=NN(d,e$.plugins),m=NN(f,e$.sensors),g=NN(p,e$.modifiers),v=c$(o),b=c$(i),y=c$(s),x=c$(a),S=c$(l),w=c$(n),C=function(e){const t=k(null);t.current||(t.current=e());return F(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=u.manager)?e:new t$(u)});return O(()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",e=>{const r=v.current;r&&t(()=>r(e,C))}),r.addEventListener("dragstart",e=>{var t;return null==(t=b.current)?void 0:t.call(b,e,C)}),r.addEventListener("dragover",e=>{const r=y.current;r&&t(()=>r(e,C))}),r.addEventListener("dragmove",e=>{const r=x.current;r&&t(()=>r(e,C))}),r.addEventListener("dragend",e=>{const r=S.current;r&&t(()=>r(e,C))}),r.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>n.forEach(e=>e())},[C]),d$(h,()=>C&&(C.plugins=h),...y$),d$(m,()=>C&&(C.sensors=m),...y$),d$(g,()=>C&&(C.modifiers=g),...y$),dr.jsxs(v$.Provider,{value:C,children:[dr.jsx(b$,{ref:c,children:r}),r]})}function S$(){return N(v$)}function w$({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=k(null),l=S$(),u=null!=(a=s$(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,c="function"==typeof i?i(u):i;O(()=>{if(!s.current||!l||c)return;const e=l.plugins.find(e=>e instanceof Zz);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,c]),O(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof Zz);return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0},[l,r]);const d=M(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?C$:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})},[l]);return dr.jsx(v$.Provider,{value:d,children:C(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return dr.jsx(E$,{source:u,children:e});return e}())})}function C$(){return()=>{}}function E$({children:e,source:t}){return e(l$(t))}var R$,A$,P$,M$,I$,k$=Object.create,D$=Object.defineProperty,T$=Object.getOwnPropertyDescriptor,O$=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),L$=e=>{throw TypeError(e)},q$=["class","method","getter","setter","accessor","field","value","get","set"],N$=e=>void 0!==e&&"function"!=typeof e?L$("Function expected"):e,_$=(e,t,r,n,o)=>({kind:q$[e],name:t,metadata:n,addInitializer:e=>r._?L$("Already initialized"):o.push(N$(e||null))}),j$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=q$[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,T$(o,r)),h=n.length-1;h>=0;h--)(l=_$(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,N$(a)&&(f[d]=a);return f&&D$(o,r,f),o},z$=(e,t,r)=>t.has(e)||L$("Cannot "+r),F$=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},$$=class extends(P$=WO,A$=[FO],R$=[FO],P$){constructor(e){var t,r,n;super(F$.from(e),(e,t)=>F$.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(I$,5,this),t=this,n=0,(r=M$).has(t)?L$("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return F$.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=F$.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(z$(a=this,s=M$,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);RT(()=>{((e,t,r)=>{z$(e,t,"write to private field"),t.set(e,r)})(this,M$,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(F$.from(e)),this.velocity={x:0,y:0}}};I$=(e=>{var t;return[,,,k$(null!=(t=null==e?void 0:e[O$("metadata")])?t:null)]})(P$),M$=new WeakMap,j$(I$,2,"delta",A$,$$),j$(I$,2,"direction",R$,$$),((e,t)=>{((e,t,r)=>{t in e?D$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,O$("metadata"),e[3])})(I$,$$);var H$=(e=>(e.Horizontal="x",e.Vertical="y",e))(H$||{});function B$(e){const t=S$();O(()=>{if(!t)return;const r=Object.entries(e).reduce((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e},[]);return()=>r.forEach(e=>null==e?void 0:e())},[t,e])}Object.values(H$);const W$=()=>{const[e,t]=I(!1);return B$({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?dr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},V$=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),U$=rR(e=>{const t=e(AR),r=e(JR);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,u=o?i:i-t,c=await r.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/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"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),r.applyPatches(p,!0)}}),G$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),Y$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),K$=e=>e.atTop?2:1,X$=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],J$=e=>e?.setAttribute("tabIndex","0"),Z$=e=>e?.setAttribute("tabIndex","-1"),Q$=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(Z$)},eH=e=>{e?.focus(),J$(e)},tH=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${fE}`);eH(t)},0)},rH=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{Q$(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case pE.Down:u<s&&u++;break;case pE.Up:u>a&&u--;break;case pE.Right:if(i)break;[u,c]="rtl"===n?G$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):Y$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case pE.Left:if(i)break;[u,c]="rtl"===n?Y$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):G$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case pE.Home:(cT(e)||i)&&(u=a),i||(c=0);break;case pE.End:(cT(e)||i)&&(u=s),i||(c=l);break;case pE.PageDown:u=Math.min(s,u+10);break;case pE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=X$(t,a);return eH(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},nH=(e,t,r,n)=>{Q$(t),r(e),n.enabled&&!n.active?n.focus?.():eH(X$(t,e))},oH=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${uE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${KP.First}`),r=e.querySelector(`.${KP.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},iH=_((e,t)=>dr.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:dr.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"})})),aH=wc(Jh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...fM,...e,cursor:t.active?"pointer":"default",background:n,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}})),sH=wc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:cM,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),lH=parseInt(cM,10)/2,uH=wc("div")({position:"absolute",bottom:-lH,left:`calc(50% - ${lH}px)`}),cH=wc(fm)({position:"sticky",top:0,zIndex:1}),dH={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},pH=wc(pp)({height:"100%"}),fH=wc("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...dH,whiteSpace:"nowrap",display:r?"block":void 0}:{...dH,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),hH=wc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),mH="cell-text",gH=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const a=hR(Ak);return o?dr.jsx(fH,{"data-testid":mH,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):dr.jsx(fH,{"data-testid":mH,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},vH=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=hR(PR),l=hR(U$),u=hR(BR),c=hR(qR),d=hR(yR),p=hR(aA),f=hR(vR),h=hR(Dk)[t.pageColIdx],m=hR(XR),g=k(null),v=k(null),b=(({column:e,columnWidth:t})=>{const r=hR(Ak),{measureText:n}=ZC({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:dM});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,u=t-25,c=s?20:0,d=l?20:0;let p=n(e.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?dr.jsx(hD,{height:cM,"data-testid":"head-cell-sort-ascending-icon"}):dr.jsx(vD,{height:cM,"data-testid":"head-cell-sort-descending-icon"}),a=r?dr.jsx(sH,{align:t,dir:o,children:i}):void 0,s=n?dr.jsx(AM,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:dr.jsx(iH,{height:cM,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,b,u);return dr.jsxs(RM,{shouldShowMenuIcon:b.shouldShowMenuIcon,shouldShowLockIcon:b.shouldShowLockIcon,alignment:bM(t,i,u),children:[S,dr.jsxs(EM,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,dr.jsx(gH,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?dr.jsxs(dr.Fragment,{children:[dr.jsx(DD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[MD.Sorting]:!0,[MD.Searching]:!0,[MD.Selections]:!0,[MD.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:v},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:tH},shouldShowMenuIcon:b.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),dr.jsx(CM,{ref:v,direction:u,isPagination:i}),dr.jsx(CM,{ref:g,direction:u})]}):null]})},bH=_((e,t)=>dr.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:dr.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"})})),yH=(e,t)=>e.isCyclic&&t,xH=({column:e})=>{const t=hR(Ak),r=hR(BR),n=hR(XR),o=w.useRef(null),[i,a]=w.useState(!1),s=$k({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return dr.jsxs(dr.Fragment,{children:[dr.jsx(MM,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:dr.jsx(bH,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),dr.jsx(lD,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:bD,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},SH=e=>e.isLocked,wH=({column:e})=>{const t=hR(vR),r=hR(PR),n=hR(Ak);return dr.jsx(MM,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=cD(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:dr.jsx(iH,{height:16,"data-testid":"head-cell-lock-icon"})})},CH=({column:e,menuIconRef:t,open:r,setOpen:n})=>{const o=hR(Ak);return dr.jsx(MM,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:r,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),n(e=>!e)},ref:t,children:dr.jsx(Fk,{height:16})})},EH=({anchorRef:e,column:t,isPagination:r,listboxRef:n,open:o,setOpen:i})=>{const a=hR(vR),s=hR(BR),l=hR(yR),u=hR(qR),c=hR(XR),d=hR(PR),p=hR(aA),f=hR(U$);return dr.jsx(DD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[MD.Sorting]:!0,[MD.Searching]:!0,[MD.Selections]:!0,[MD.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:u,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),f?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:n},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:tH},shouldShowMenuIcon:!1,model:c,direction:s,isPagination:r})},RH=rR();RH.onMount=e=>{const t=new Map,r=new ResizeObserver(e=>{for(const r of e){const e=t.get(r.target);e&&e.current(r)}});return e({callbacks:t,observer:r}),()=>{t.clear(),r.disconnect()}};const AH=({ref:e,callback:t})=>{const r=hR(RH),n=k(t);n.current=t,z(()=>{const t=e.current;return void 0===r?()=>{}:(t&&(r.callbacks.set(t,n),r.observer.observe(t)),()=>{t&&(r.callbacks.delete(t),r.observer.unobserve(t))})},[e,n,r])},PH=wc(pp)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),MH=({children:e})=>{const t=w.useRef(null),[r,n]=I(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=M(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=q(e=>{const t=new Set,r=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)}),n(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return AH({ref:t,callback:i}),dr.jsx(PH,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},IH=({children:e})=>e,kH=(e,t)=>!e.isLocked&&e.isDim&&t,DH=({column:e,open:t,setOpen:r})=>{const n=hR(Ak),o=hR(PR),i=hR(BR),a=hR(yR);hR(vR);const s=w.useRef(null),l=q(()=>{r(!1)},[r]),u=uD({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return dr.jsx(MM,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:dr.jsx(wD,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},TH=_((e,t)=>dr.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:dr.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"})})),OH=_((e,t)=>dr.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:dr.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"})})),LH=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?dr.jsx(OH,{height:cM,"data-testid":"head-cell-sort-ascending-icon"}):dr.jsx(TH,{height:cM,"data-testid":"head-cell-sort-descending-icon"});return r?dr.jsx(uH,{children:n}):void 0},qH=0,NH=1,_H=2,jH=3,zH=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=hR(Ak),u=hR(BR),{measureText:c}=ZC(l.header),[d,p]=I(!1),f=k(null),h=k(null),m=k(null),g="number"==typeof a&&a>hE.PixelsMin+18;return dr.jsxs(dr.Fragment,{children:[dr.jsxs(MH,{children:[dr.jsx(IH,{prio:_H,minWidth:wM,children:SH(t)?dr.jsx(wH,{column:t}):null},"Lock"),dr.jsx(IH,{prio:NH,minWidth:wM,children:yH(t,s)?dr.jsx(xH,{column:t}):null},"Cyclic"),dr.jsx(IH,{ignore:!0,children:dr.jsx(LH,{column:t})},"Sort"),dr.jsx(IH,{minWidth:c(t.label)+8,children:dr.jsx(PM,{justifyContent:t.headTextAlign,children:dr.jsx(gH,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),dr.jsx(IH,{prio:g?void 0:qH,minWidth:wM,children:d||kH(t,s)?dr.jsx(DH,{open:d,setOpen:p,column:t}):null},"Search"),dr.jsx(IH,{prio:jH,minWidth:wM,children:s?dr.jsx(CH,{menuIconRef:m,column:t,open:r,setOpen:n}):null},"Menu")]}),s?dr.jsxs(dr.Fragment,{children:[dr.jsx(CM,{ref:h,direction:u,isPagination:o}),dr.jsx(CM,{ref:f,direction:u}),dr.jsx(EH,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:r,setOpen:n})]}):null]})},FH=wc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:r})=>({...t,background:e,color:r})),$H=()=>{},HH=({column:e,isPagination:t})=>{const r=hR(Ak),n=hR(BR),o=hR(wT),i=hR(uk),a=!1,s=hR(kR)?vH:zH;return dr.jsx(FH,{className:"sn-table-cell",applicableStyle:{...r.header,...V$(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:xM(n,a,o),borderLeftWidth:SM(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??r.header.background,color:e.headerColor?.color??r.header.color,children:dr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:$H})})},BH=({isPagination:e})=>{const t=hR(ck),[r,n]=I();B$({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?dr.jsx(w$,{children:dr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:dr.jsx(HH,{column:o,isPagination:e})})}):null},WH=[DF.configure({activationConstraints:[new PF.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],VH=e$.plugins.filter(e=>e!==sz),UH=({children:e})=>{const t=hR(JR),r=hR(ck);return dr.jsx(x$,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e)return;const o=t.findIndex(e=>e.id===r),i=t.findIndex(e=>e.id===n),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map(e=>e.colIdx).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:WH,plugins:VH,children:e})};function GH(e,t){const r=k(!1);O(()=>{r.current?e():r.current=!0},t)}const YH=rR(XP),KH=zP(e=>rR(t=>{const[r,n]=t(YH);return 0===r&&n===e})),XH=()=>{const e=hR(bR);O(()=>{e.notifyIsDoneRendering()})};var JH={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 ZH=rR(e=>{const t=e(aA),r=e(rA);let n;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(JH).forEach(t=>{e.add(JH[t])})}(t),({keys:e,politeness:o="polite"})=>{const i=e.map(e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)}).join(" "),a=r.querySelector(`.${KP.First}`),s=r.querySelector(`.${KP.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;n===KP.First?(l=s,n=KP.Second):(l=a,n=KP.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}}),QH=(e,t)=>{const r=hR(ZH),n=hR(rA),o=hR(hk),i=hR(fk),a=hR(pk),s=hR(uk),[l,u]=gR(YH),c=hR(TR),d=hR(KR);GH(()=>{const t=((e,t,r=!1)=>{const n=[K$(t),e[1]];return r?n:XP})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(Q$(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=X$(t,e);r.current?(eH(s),r.current=!1):J$(s),n&&(a({keys:[s?.textContent??""]}),uT(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:r})},[a.length,i,o,t])},eB=e=>{const t=hR(BR),r=hR(_I);O(()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}},[e,t,r])},tB=e=>{$C(e),cT(e)&&SE(e.currentTarget)},rB=e=>{hT(e.evt)&&($C(e.evt),rH(e))},nB=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!hT(t))return;$C(t);const i=((e,t)=>[e.pageRowIdx+K$(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?K$(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=rH({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:GP.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):uT(o,a,i)})({...e,nextCell:s})},oB=e=>{const{evt:t}=e;dT(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{$C(e);const a=Math.ceil(t/r)-1;e.key===pE.Right&&n<a?(o(),i(n+1)):e.key===pE.Left&&n>0&&(o(),i(n-1))})(e):t.key===pE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&($C(e),t.blur?.(!0))})(e):pT(t.key)&&$C(t)},iB=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(UP.Disabled))return void $C(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case pE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{$C(e),t.isSelectable&&r&&n({type:GP.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case pE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{$C(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case pE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&($C(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case pE.C:tB(t);break;case pE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&($C(e),FC(e.currentTarget,t,e.shiftKey))})(n);break;default:nB(n)}},aB=e=>{const t=hR(IM),r=mR(kM),n=mR(DM),o=hR(VP),i=k();AH({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),O(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},sB=wc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),lB=wc(tm,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),uB=wc(zh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),cB=()=>dr.jsxs(dr.Fragment,{children:[dr.jsx(sB,{className:KP.First,"data-testid":KP.First,"aria-live":"polite","aria-atomic":"true"}),dr.jsx(sB,{className:KP.Second,"data-testid":KP.Second,"aria-live":"polite","aria-atomic":"true"})]}),dB=e=>{const t=k(new Map),r=k(null);O(()=>{r.current=e(t.current),t.current.forEach((e,t)=>{r.current?.observe(t)});const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}},[e,r,t]);const n=q((e,n)=>{t.current.set(e,n),r.current?.observe(e)},[t,r]),o=q(e=>{t.current.delete(e),r.current?.unobserve(e)},[r,t]);return M(()=>({addTask:n,removeTask:o}),[n,o])},pB=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),fB=()=>dB(pB),hB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=hR(OR),n=hR(KR),o=mR(xT);O(()=>{const i=()=>{o({type:GP.Reset})},a=()=>{o({type:GP.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}},[r,n,o,e,t])},mB=e=>{e.stopPropagation()},gB=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:mB,color:LC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),vB=({href:e,text:t,interactions:r,color:n})=>dr.jsx(df,{...gB({href:e,text:t,interactions:r,color:n}),children:t}),bB=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),yB=window.cancelIdleCallback??(e=>{clearTimeout(e)}),xB="qDimensionInfo/0",SB="qMeasureInfo/0",wB="x",CB="y",EB=e=>({key:"bars",type:"box",data:{extract:{field:xB,props:{start:0,end:{field:SB}}}},settings:{major:{scale:wB},minor:{scale:CB},box:{maxWidthPx:8,fill:{fn:e}}}}),RB=e=>({key:"p",type:"point",data:{extract:{field:xB,props:{y:{field:SB}}}},settings:{x:{scale:wB},y:{scale:CB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),AB=({qNum:e})=>void 0===e?0:Math.sign(e),PB=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=jC(e,t?.negative,r),a=jC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:xB,props:{start:0,end:{field:SB,value:AB}}}},settings:{major:{scale:wB},minor:{scale:CB},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},MB=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=jC(e,t?.main,o),l=jC(e,t?.max,s),u=jC(e,t?.min,s),c=jC(e,t?.first,s),d=jC(e,t?.last,s);return e=>{const t=CB in e.datum?CB:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[EB(a)];case"dots":return[RB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:xB,props:{v:{field:SB}}}},settings:{coordinates:{major:{scale:wB},minor:{scale:CB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(jC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,RB(a)]:[t]}case"posNeg":return[PB(e,n)];default:return[]}},IB=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"}),kB=(e,t,r,n)=>({y:{data:{field:SB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:xB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),DB=Y();DB.use(G),DB.renderer.prio(["canvas"]);const TB={resolve:()=>{},promise:{}},OB=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=k(e.isDownloadedAsPDForImage?jt():TB);return{addChartPromiseToQueue:q(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:q(()=>{if(null===t.current||null!==e.current)return;u();r.current=bB(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return DB.chart({element:e,data:{type:"q",key:"qHyperCube",data:IB(s)},settings:{scales:kB(a,l,u,i),components:MB(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:q(()=>{null!==r.current&&yB(r.current),r.current=null,l()},[r,l])}},LB=e=>{const t=k(null),r=k(!1);return q(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(yB(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=bB(()=>{e.current?.update()},{timeout:2e3})):r.current=!1:r.current=!0},[e])},qB=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),u=k(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=OB({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=q(e=>{e.isIntersecting?n():r()},[n,r]);O(()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}},[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{O(()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null}),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=LB(t);O(()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}},[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},NB=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=qB({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return dr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},_B=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},jB=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},zB=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=hR(BR),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=dr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:jB(s),objectPosition:_B(l),overflow:"hidden"}});return n?dr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?mM(o,e):void 0},children:c}):c},FB=_((e,t)=>dr.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:dr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),$B=_((e,t)=>dr.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:dr.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"})})),HB=_((e,t)=>dr.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:[dr.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"}),dr.jsx("use",{fillRule:"evenodd"})]})),BB=_((e,t)=>dr.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:dr.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"})})),WB=_((e,t)=>dr.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:dr.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"})})),VB=_((e,t)=>dr.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:dr.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"})})),UB=_((e,t)=>dr.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:dr.jsx("path",{d:"M2 7.5h12v1H2z"})})),GB=_((e,t)=>dr.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:dr.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"})})),YB=_((e,t)=>dr.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:dr.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"})})),KB=_((e,t)=>dr.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:dr.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"})})),XB=_((e,t)=>dr.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:dr.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"})})),JB={m:_((e,t)=>dr.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:dr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":KB,R:OH,S:TH,T:_((e,t)=>dr.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:dr.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),U:_((e,t)=>dr.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:dr.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:YB,Q:VB,"è":_((e,t)=>dr.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:dr.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"})})),"¢":BB,"©":HB,"23F4":WB,2013:XB,"&":GB,add:FB,"minus-2":UB,dot:$B},ZB=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&JB[t];return o&&dr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:dr.jsx(o,{style:{height:e}})})},QB=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=hR(Ak),o=hR(BR),i=hR(iA),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=sM(e,t,o,i),d=(e=>parseInt(e||cM,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?dr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&ZB({size:d,iconKey:f,color:p}),dr.jsx(gH,{isNumeric:!0,children:a}),"right"===h&&ZB({size:d,iconKey:f,color:p})]}):ZB({size:d,iconKey:f,color:p})},eW=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,tW=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=hR(Ak),u=hR(bR),c=hR(CR),d=hR(iA),p=hR(BR),f=hR(qR),h=hR(TR);if(t.representation.type===VA.Image&&!t.representation.url?.trim())return null;if(t.representation.type===VA.Image)return dr.jsx(zB,{representation:t.representation,textStyle:r,maxImageHeight:eW(l,o),wrapInContainer:!n});let m=t.representation.text;t.representation.type!==VA.Link||h||(m=dr.jsx(vB,{href:t.representation.url,text:t.representation.text,interactions:f,color:r.cellForegroundColor}));const g="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==VA.Indicator||Number.isNaN(g)?t.representation.type===VA.MiniChart&&t.representation.miniChart&&!t.isNull?dr.jsx(NB,{height:eW(l,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:d,isSnapshot:!!c.snapshotData,direction:p,downloadService:u}):dr.jsx(gH,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):dr.jsx(QB,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},rW=()=>dr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:dr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),nW=wc("div")({"& path":{stroke:"none !important"}}),oW=({children:e,cellSelectionState:t})=>t===UP.Selected?dr.jsxs(hH,{children:[e,dr.jsx(nW,{children:dr.jsx(rW,{})})]}):e,iW=e=>{const t=function(){const e=S$(),t=s$(()=>null==e?void 0:e.dragOperation.source,[e]),r=s$(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},aW=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:GP.SelectMultiEnd})};r({type:GP.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:GP.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:GP.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),sW=e=>{const t=hR(mk),r=hR(uk),n=hR(ZH),o=hR(rA),i=hR(BR),a=mR(YH),s=mR(xT),l=hR(KR),u=hR(jR),c=hR(OR),d=d=>{iB({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===pE.Shift&&t({type:GP.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;nH([s,a],t,r,n)})(e,o,a,l,r)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=aW(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},lW=e=>{O(()=>()=>{ST.remove(e)},[e])},uW=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},cW=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},dW=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return cW(t,e,n?"even":"odd")}return e},pW=(e,t)=>{const r=hR(Ak),n=hR(ST(e));lW(e);let o=t.isDim?r.dimension.values:r.measure.values;o=dW(o,r,e),o=uW(o,r,e);const i=$M(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===UP.Selected?{...e,...r}:t===UP.Disabled?{...e,background:`${lM}, ${e.background}`}:e}(M(()=>e.isNull?o:$M(o,e.qAttrExps,t.qAttrExprInfoIDs),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},fW=wc(Uh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),hW=wc(fm,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),mW=wc(Jh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...fM,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),gW=wc(Jh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...fM,...e,fontWeight:dM,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),vW=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=hR(BR),a=hR(qR),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=sW(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=pW(e,t),m=iW(t.id);return dr.jsx(mW,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${dE}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:dr.jsx(oW,{cellSelectionState:h,children:dr.jsx(tW,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:yM(i,e.align)})})})},bW=rR(0),yW=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=hR(Ak),i=hR(_R),a=hR(bW),s=iW(e.id);return dr.jsx(gW,{totalsStyle:{...o.totalRow,...V$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${dE}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:dr.jsx(gH,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},xW=()=>{const e=hR(uk),t=hR(ck),r=hR(pk),n=hR(rA),o=hR(NR),i=hR(BR),a=mR(YH),s=hR(TR),l=hR(KR);return dr.jsx(fm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,u)=>{const c=[e.atTop?1:r.length+1,u];return dr.jsx(yW,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case pE.C:tB(r);break;case pE.Space:r.preventDefault();break;default:rB(e)}else $C(r)})({evt:e,rootElement:n,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{nH(c,n,a,l)}},t.id)})})};var SW=j(xW);const wW=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=hR(pk),n=hR(uk),o=hR(ck),i=hR(Ak),a=hR(CR),s=!!_M(a)?.content?.hoverEffect;hB({updateShouldRefocus:e,tableWrapperRef:t});const l=(e=>{const t=q(t=>new IntersectionObserver(e=>{e.forEach(e=>{const r=t.get(e.target);r?.(e)})},{root:e.current}),[e]);return dB(t)})(t),u=fB();return dr.jsxs(fW,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?dr.jsx(SW,{}):void 0,r.map((e,t)=>dr.jsx(hW,{hoverColors:i.grid.hoverColors,hover:s,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:i.contentMinRowHeight,children:o.map((t,r)=>{const{id:n}=t,o=e[r];return dr.jsx(vW,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:l,resizeObserverTaskScheduler:u},n)})},`row-${t}`)),n.atBottom?dr.jsx(SW,{}):void 0]})};var CW=j(wW);const EW=(e,t)=>!!e?.skipHeader||!!t.hideHeader,RW=rR(e=>{const t=e(CR),r=e(XR);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}}),AW=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=hR(RW),s=hR(BR),l=hR(NR),u=hR(aA),[c,d]=gR(Dk);if(!l)return null;return dr.jsx(zk,{columnWidth:c.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{Z$(e);const t=e.closest(".sn-table-cell");eH(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},PW=e=>e.target?.getAttribute("class")?.includes(fE),MW=({isInteractionEnabled:e,column:t})=>{const[r,n]=I(!1),o=hR(U$),i=hR(IM);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||PW(t)||i||n(!0)},toggleSortOrder:r=>{e&&!PW(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var IW=Object.defineProperty,kW=Object.defineProperties,DW=Object.getOwnPropertyDescriptors,TW=Object.getOwnPropertySymbols,OW=Object.prototype.hasOwnProperty,LW=Object.prototype.propertyIsEnumerable,qW=(e,t,r)=>t in e?IW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,NW=(e,t)=>{for(var r in t||(t={}))OW.call(t,r)&&qW(e,r,t[r]);if(TW)for(var r of TW(t))LW.call(t,r)&&qW(e,r,t[r]);return e},_W=(e,t)=>kW(e,DW(t)),jW=class extends TN{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return _W(NW({},e),{[t]:r})}};jW.configure=ZL(jW);var zW=jW;zW.configure({axis:"x",value:0}),zW.configure({axis:"y",value:0});var FW=class extends TN{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return _W(NW({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};FW.configure=ZL(FW);var $W=class extends TN{constructor(e,t){super(e,t),this.boundingRectangle=_T(null),this.destroy=GT(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=UN(r)},i=()=>{n||(n=setTimeout(()=>{o(),n=void 0},25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=NW({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new fL(l,u,s,a),r,n);return c}};$W.configure=ZL($W);var HW=$W,BW=Object.create,WW=Object.defineProperty,VW=Object.defineProperties,UW=Object.getOwnPropertyDescriptor,GW=Object.getOwnPropertyDescriptors,YW=Object.getOwnPropertySymbols,KW=Object.prototype.hasOwnProperty,XW=Object.prototype.propertyIsEnumerable,JW=e=>{throw TypeError(e)},ZW=(e,t,r)=>t in e?WW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QW=(e,t)=>{for(var r in t||(t={}))KW.call(t,r)&&ZW(e,r,t[r]);if(YW)for(var r of YW(t))XW.call(t,r)&&ZW(e,r,t[r]);return e},eV=(e,t)=>VW(e,GW(t)),tV=["class","method","getter","setter","accessor","field","value","get","set"],rV=e=>void 0!==e&&"function"!=typeof e?JW("Function expected"):e,nV=(e,t,r,n,o)=>({kind:tV[e],name:t,metadata:n,addInitializer:e=>r._?JW("Already initialized"):o.push(rV(e||null))}),oV=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},iV=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=tV[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,UW({get[r](){return sV(this,i)},set[r](e){return uV(this,i,e)}},r)),v=n.length-1;v>=0;v--)(u=nV(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[v])({get:g.get,set:g.set},u),l._=1,void 0===s?rV(s)&&(g[f]=s):"object"!=typeof s||null===s?JW("Object expected"):(rV(a=s.get)&&(g.get=a),rV(a=s.set)&&(g.set=a),rV(a=s.init)&&h.unshift(a));return g&&WW(o,r,g),o},aV=(e,t,r)=>t.has(e)||JW("Cannot "+r),sV=(e,t,r)=>(aV(e,t,"read from private field"),t.get(e)),lV=(e,t,r)=>t.has(e)?JW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),uV=(e,t,r,n)=>(aV(e,t,"write to private field"),t.set(e,r),r);function cV(e){return e instanceof FV||e instanceof zV}var dV=Object.defineProperty,pV=Object.defineProperties,fV=Object.getOwnPropertyDescriptors,hV=Object.getOwnPropertySymbols,mV=Object.prototype.hasOwnProperty,gV=Object.prototype.propertyIsEnumerable,vV=(e,t,r)=>t in e?dV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bV=(e,t)=>{for(var r in t||(t={}))mV.call(t,r)&&vV(e,r,t[r]);if(hV)for(var r of hV(t))gV.call(t,r)&&vV(e,r,t[r]);return e},yV=(e,t)=>pV(e,fV(t));function xV(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function SV(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function wV(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex(e=>u(e,a.id)),o=e.findIndex(e=>u(e,s.id));if(-1===n||-1===o){if(SV(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>u(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>u(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&SV(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return yV(bV({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return yV(bV({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&SV(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return yV(bV({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return yV(bV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return yV(bV({},e),{[d]:r(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,b=e[d][f];return yV(bV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),b,...e[p].slice(h+v)]})}(e,t,xV)}var CV="__default__";function EV(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function RV(e,t){return e.index-t.index}function AV(e){return Array.from(e).sort(RV)}var PV,MV,IV,kV,DV,TV,OV,LV,qV=[class extends eq{constructor(e){super(e);const t=GT(()=>{const{dragOperation:t}=e;if(xj(t.activatorEvent)&&cV(t.source)&&t.status.initialized){const t=e.registry.plugins.get(dF);if(t)return t.disable(),()=>t.enable()}}),r=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!xj(e.nativeEvent))return;if(!cV(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];RT(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&cV(e)||!e.element)continue;let r=e.shape;const n=new gj(e.element,{getBoundingClientRect:e=>t_(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push(()=>e.shape=r)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,Ej);RT(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;n.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=r;if(!e||!cV(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||v!==s,c=u?l:null==t?void 0:t.element;if(!c)return;uj(c);const d=new gj(c);if(!d)return;const p=fL.delta(d,fL.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{r(),t()}}},class extends eq{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof FV){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(AV(r)));return t},r=[e.monitor.addEventListener("dragover",(e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!cV(o)||!cV(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask(()=>{e.defaultPrevented||r.renderer.rendering.then(()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=AV(l),g=s?m:AV(u),v=null!=(c=o.sortable.group)?c:CV,b=null!=(d=i.sortable.group)?d:CV,y={[v]:m,[b]:g},x=wV(y,e);if(y===x)return;const S=x[b].indexOf(o.sortable),w=x[b].indexOf(i.sortable);r.collisionObserver.disable(),EV(f,S,h,w),RT(()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[b].entries())t.group=i.sortable.group,t.index=e}),r.actions.setDropTarget(o.id).then(()=>r.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;cV(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=AV(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(EV(r,i.index,a,o.index),RT(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of r)e()}}}],NV={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},_V=new class{constructor(){LO(this,BO,new WeakMap)}get(e,t){var r;return e?null==(r=OO(this,BO).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return OO(this,BO).has(e)||OO(this,BO).set(e,new Map),null==(n=OO(this,BO).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=OO(this,BO).get(e))?void 0:t.clear():void 0}};MV=[zO],PV=[zO];var jV=class{constructor(e,t){lV(this,kV,oV(IV,8,this)),oV(IV,11,this),lV(this,DV),lV(this,TV),lV(this,OV,oV(IV,12,this)),oV(IV,15,this),lV(this,LV),this.register=()=>(RT(()=>{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=()=>{RT(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{RT(()=>{this.droppable.destroy(),this.draggable.destroy()})};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=NV,plugins:u=qV}=r,c=((e,t)=>{var r={};for(var n in e)KW.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&YW)for(var n of YW(e))t.indexOf(n)<0&&XW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new FV(c,t,this),this.draggable=new zV(eV(QW({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&_V.clear(this.manager),(null==n?void 0:n.dragging)&&_V.set(this.manager,this.id,PT(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:r}=this,n=sV(this,TV),o=sV(this,DV);e===n&&t===o||(uV(this,TV,e),uV(this,DV,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),uV(this,LV,c.element),this.manager=t,this.index=i,uV(this,TV,i),this.group=o,uV(this,DV,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=_V.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=_V.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){PT(()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then(()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=J_(n),l=dj(n,s,!1),u=dj(n,s);if(i||a){const r=u_(KN(n))?eV(QW({},t),{duration:0}):t;cj({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){RT(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){RT(()=>{const t=sV(this,LV),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),uV(this,LV,e)})}get element(){var e,t;const r=sV(this,LV);if(r)return null!=(t=null!=(e=f_.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){RT(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){RT(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){RT(()=>{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:Cj}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){RT(()=>{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)}};IV=[,,,BW(null)],kV=new WeakMap,DV=new WeakMap,TV=new WeakMap,OV=new WeakMap,LV=new WeakMap,iV(IV,4,"index",MV,jV,kV),iV(IV,4,"group",PV,jV,OV),((e,t)=>{return ZW(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(IV,jV);var zV=class extends r${constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},FV=class extends n${constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},$V=Object.defineProperty,HV=Object.defineProperties,BV=Object.getOwnPropertyDescriptors,WV=Object.getOwnPropertySymbols,VV=Object.prototype.hasOwnProperty,UV=Object.prototype.propertyIsEnumerable,GV=(e,t,r)=>t in e?$V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,YV=(e,t)=>{for(var r in t||(t={}))VV.call(t,r)&&GV(e,r,t[r]);if(WV)for(var r of WV(t))UV.call(t,r)&&GV(e,r,t[r]);return e};function KV(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=YV(YV({},NV),e.transition),v=function(e){var t;const r=null!=(t=S$())?t:void 0,[n]=I(()=>e(r));return n.manager!==r&&(n.manager=r),i$(n.register,[r,n]),n}(t=>new jV(((e,t)=>HV(e,BV(t)))(YV({},e),{transition:g,register:!1,handle:o$(s),element:o$(a),target:o$(h),feedback:d}),t)),b=l$(v,XV);return d$(o,()=>v.id=o),i$(()=>{RT(()=>{v.group=u,v.index=l})},[v,u,l]),d$(m,()=>v.type=m),d$(t,()=>v.accept=t,void 0,jO),d$(i,()=>i&&(v.data=i)),d$(l,()=>{var e;(null==(e=v.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&v.refreshShape()},u$),p$(s,e=>v.handle=e),p$(a,e=>v.element=e),p$(h,e=>v.target=e),d$(c,()=>v.disabled=!0===c),d$(f,()=>v.sensors=f),d$(r,()=>v.collisionDetector=r),d$(n,()=>v.collisionPriority=n),d$(d,()=>v.feedback=null!=d?d:"default"),d$(g,()=>v.transition=g,void 0,jO),d$(p,()=>v.modifiers=p,void 0,jO),d$(e.alignment,()=>v.alignment=e.alignment),{sortable:b,get isDragging(){return b.isDragging},get isDropping(){return b.isDropping},get isDragSource(){return b.isDragSource},get isDropTarget(){return b.isDropTarget},handleRef:q(e=>{v.handle=null!=e?e:void 0},[v]),ref:q(e=>{var t,r;(e||!(null==(t=v.element)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.element=null!=e?e:void 0)},[v]),sourceRef:q(e=>{var t,r;(e||!(null==(t=v.source)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.source=null!=e?e:void 0)},[v]),targetRef:q(e=>{var t,r;(e||!(null==(t=v.target)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.target=null!=e?e:void 0)},[v])}}function XV(e,t,r){return!("isDragSource"!==e||r||!t)}const JV=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/pL.distance(r.shape.center,s),type:Cq.Collision,priority:wq.Normal}:null},ZV=[HW.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],QV=(e,t)=>{const r=hR(BR),n=hR(SR),o=!hR(FR)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return KV({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:ZV,data:e,feedback:"clone",collisionDetector:JV({invert:"rtl"===r})})},eU=({column:e,columnIndex:t,columnsLength:r})=>{const n=hR(Ak),o=hR(rA),i=hR(BR),a=hR(qR),s=hR(ck),l=hR(uk),u=hR(Dk)[t],c=mR(YH),d=hR(KH(t)),p=hR(FR),f=hR(KR),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:v}=MW({isInteractionEnabled:p,column:e}),b=mR(IM),{ref:y,isDragging:x}=QV(e,t),S=iW(e.id),w=hR(kR),C=w?vH:zH,E=e.isActivelySorted?YP[e.sortDirection]:void 0,R=h?cE:void 0,A=h?"true":void 0,P=t===r-1,M=[0,e.pageColIdx],I={width:u,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return dr.jsxs(aH,{"data-dragging":x,ref:y,headerStyle:{...n.header,...V$(n,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground:e.headerColor?.background??n.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,color:e.headerColor?.color??n.header.color,interactions:a,style:I,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${dE}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case pE.C:tB(r);break;case pE.Enter:case pE.Space:n?.(r);break;default:rB(e)}else $C(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&nH(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:v,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[dr.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:u}),dr.jsx(AW,{column:e,isLastColumn:P,setIsAdjustingWidth:b})]},e.id)},tU=()=>{const e=hR(ck),t=hR(Ak),r=hR(CR),n=hR(VR),o=mR(bW),i=hR(Dk),a=k(null),s=EW(n,r);return O(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),dr.jsx(sm,{style:{visibility:s?"collapse":void 0},children:dr.jsx(cH,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,r)=>dr.jsx(eU,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var rU=j(tU);const nU=()=>{const e=hR(ZH),[t,r]=gR(ek),{page:n,rowsPerPage:o}=t,i=hR(WR),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=hR(lk),p=hR(Ak),f=hR(_I),h=hR(CR),m=hR(iA),g=hR(tA),v=hR(rA),b=hR(VR),y=hR(BR),x=hR(qR),S=hR(aA),w=hR(wT),C=mR(xT),E=hR(TR),R=hR(KR),A=k(!1),P=k(null),M=k(null),I=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,D=$R(h,b),T=D?f.scrollLeft??0:0,L=D?f.rowPartialHeight??0:0,N=q(()=>{A.current=v.getElementsByTagName("table")[0].contains(document.activeElement)},[v]),_=q(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),j=q(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return eB(P),((e,t)=>{const r=hR(KR);O(()=>{const n=e.current;if(!n)return;const o=e=>{oH(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])})(M,A),(()=>{const e=hR(rA),t=hR(KR),r=hR(YH);nE(()=>{const n=X$(e,r);t.active?eH(n):(n?.blur(),Q$(e))},[t.active,e])})(),QH(A,n),O(()=>{const e=P.current;e&&(e.scrollLeft=T,e.scrollTop=L)},[t,s,T,L]),GH(()=>{C({type:GP.UpdatePageRows,payload:{pageRows:c}})},[c]),XH(),aB(P),dr.jsxs(UH,{children:[dr.jsxs(pH,{ref:M,dir:y,onKeyDown:e=>{oB({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:_,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[dr.jsx(cB,{}),dr.jsxs(lB,{ref:P,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[dr.jsxs(uB,{stickyHeader:!0,"aria-label":I,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[dr.jsx(rU,{}),dr.jsx(CW,{updateShouldRefocus:N,tableWrapperRef:M})]}),dr.jsx(W$,{})]}),dr.jsx(sT,{footerContainer:i,pageInfo:t,paginationNeeded:u,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:_,handleChangeRowsPerPage:j,isSelectionMode:E,direction:y})]}),dr.jsx(BH,{isPagination:!0})]})};var oU=j(nU);const iU=rR(0),aU=rR(e=>{const t=e(ER);return Math.min(ok,t)}),sU=rR(e=>{const t=e(ER);return t===ok?0:Math.floor(t/ok)}),lU=rR(e=>{const t=e(iU),r=e(sU);return Math.min(t,r)}),uU=rR(e=>({page:e(lU),rowsPerPage:e(aU),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(sU);t(iU,Math.max(0,Math.min(r,n)))});var cU=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function dU(e,t){return e===t||!(!cU(e)||!cU(t))}function pU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!dU(e[r],t[r]))return!1;return!0}function fU(e,t){var r;void 0===t&&(t=pU);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var hU="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function mU(e){cancelAnimationFrame(e.id)}function gU(e,t){var r=hU();var n={id:requestAnimationFrame(function o(){hU()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var vU=-1;function bU(e){if(void 0===e&&(e=!1),-1===vU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),vU=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return vU}var yU=null;function xU(e){if(void 0===e&&(e=!1),null===yU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?yU="positive-descending":(t.scrollLeft=1,yU=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),yU}return yU}var SU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function wU(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,Hc(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Hc(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=fU(function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=fU(function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=fU(function(e,t,r){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(xU()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&mU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=gU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Tc(t,e),t.getDerivedStateFromProps=function(e,t){return CU(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}},this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=bU();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(xU()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&mU(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?SU:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],P=R[1],M=[];if(n>0&&g)for(var I=A;I<=P;I++)for(var k=w;k<=E;k++)M.push(C(t,{columnIndex:k,data:d,isScrolling:b?x:void 0,key:f({columnIndex:k,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return C(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:Kr({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},C(u||c||"div",{children:M,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);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 CU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},EU=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},RU=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},AU=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},PU=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?MU(e,t,r,i,0,n):IU(e,t,r,Math.max(0,i),n)},MU=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=AU(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},IU=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&AU(e,t,n,r).offset<o;)n+=a,a*=2;return MU(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},kU=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=AU(e,t,r,i),u="column"===e?RU(t,i):EU(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},DU=wU({getColumnOffset:function(e,t,r){return AU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return PU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=AU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=AU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:EU,getEstimatedTotalWidth:RU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return kU("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return kU("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return AU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return PU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=AU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=AU("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),TU=function(e,t){return e};function OU(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,Hc(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Hc(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=fU(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=fU(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=fU(function(e,t,r){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(xU()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&mU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=gU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Tc(t,e),t.getDerivedStateFromProps=function(e,t){return LU(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?bU():0:l.scrollHeight>l.clientHeight?bU():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(xU()){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&&mU(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?TU:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=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],A=[];if(u>0)for(var P=E;P<=R;P++)A.push(C(t,{data:c,key:p(P,c),index:P,isScrolling:v?y:void 0,style:this._getItemStyle(P)}));var M=n(this.props,this._instanceProps);return C(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:Kr({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:A,ref:a,style:{height:x?"100%":M,pointerEvents:y?"none":void 0,width:x?M:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(B),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var LU=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},qU=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},NU=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=qU(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},_U=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&qU(e,r,t).offset<n;)r+=i,i*=2;return NU(e,t,Math.min(r,o-1),Math.floor(r/2),n)},jU=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},zU=OU({getItemOffset:function(e,t,r){return qU(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:jU,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=qU(e,t,o),p=jU(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?NU(e,t,o,0,r):_U(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=qU(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=qU(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function FU(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var $U=["style"],HU=["style"];function BU(e,t){var r=e.style,n=Xr(e,$U),o=t.style,i=Xr(t,HU);return!FU(r,o)&&!FU(n,i)}const WU=rR(0),VU=rR(0),UU=rR(0),GU=rR(e=>e(WU)+e(VU)),YU=rR(e=>{const t=e(tA),r=e(mk),n=t.height-(r?41:0);return{width:t.width,height:n}}),KU=rR(e=>{const t=e(YU),r=e(kM),n=e(DM);return{width:t.width-n,height:t.height-r}}),XU=rR(e=>{const t=e(KU),r=e(GU),n=e(UU);return Math.min(t.height-r,n)}),JU=rR(e=>{const t=e(uU),r=e(ER);return Math.min(t.rowsPerPage,r-t.page*t.rowsPerPage)}),ZU=rR(-1),QU=zP(e=>rR(t=>t(ZU)===e)),eG=({style:e})=>dr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var tG=w.memo(eG,BU);const rG=()=>{},nG=e=>{e.preventDefault()};const oG=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=hR(QU(t)),d=mR(ZU),p=hR(Ak),f=hR(BR),h=hR(_R),m=hR(wT),g=o[t]?.[e],{handleMouseDown:v,handleMouseOver:b,handleMouseUp:y,cellSelectionState:x}=function(e){const t="object"==typeof e,r=hR(jR),n=mR(xT),o=hR(ST(e));if(lW(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=aW(nG,e,n,rG);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=k(null),i=r&&!r.isNumeric,a=q(r=>{const o=r.contentBoxSize.at(0)?.blockSize;o&&i&&n(o,e,t)},[t,n,e,i]);return AH({ref:o,callback:a}),o})(t,e,g,s),w=i[e]?.isDim?p.dimension.values:p.measure.values,C=iW(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=dW(o,i,e);a=uW(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?$M(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===UP.Selected?{...s,...i.selectedColors}:n===UP.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${lM}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,p),o={rowindex:t,columnindex:e};return dr.jsx("div",{className:`sn-table-cell ${x} ${dE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:p.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:xM(f,g.isLastColumn,m),borderLeftWidth:SM(f,g.isLastColumn,m),justifyContent:gM(g,f),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:v,onMouseUp:y,onMouseOver:b,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:h?g.representation.text:void 0,...o,children:dr.jsx(oW,{cellSelectionState:x,children:dr.jsx(tW,{forwardRef:p.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return dr.jsx(tG,{style:{...r,...w,borderColor:p.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var iG=j(oG,BU);const aG=NI(rR(async e=>{const t=e(CR),r=e(XR),n=e(uU).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(ok,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),sG=e=>{const t=k(e);return t.current=e,t},lG=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,uG=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},cG=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},dG=(e,t,r,n,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:v,qAttrExprInfoIndex:b,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=KI(h,e,a),C=!h&&e.qIsNull,E=C?QP(w):ZP(e);f[r]={id:jA(),...e,align:UI(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:v,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&XI(e,h),representation:TI({cell:e,representationProperties:y,attrExprInfoIndex:b,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[VA.Image]:!0,[VA.Indicator]:!0,[VA.MiniChart]:!0}})},l(f[r],d,r)}),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d})})},pG=({visibleRowCount:e,visibleColumnCount:t,gridState:r,setEstimatedCellHeight:n})=>{const o=hR(CR),i=hR(iA),a=hR(XR),s=hR(xR),l=hR(BR),u=hR(uU),c=hR(aG),d=hR(ck),p=hR(JU),f=k([]),h=q((e,t)=>{const r=Array.isArray(t)?t.slice(0,p):(e=>Array(e).fill(void 0))(p);return dG(e,u,r,d,o,s,n,l),f.current=r,r},[p,u,d,o,s,n,l]),[m,g]=I(()=>h(c??[]));nE(()=>{g(h(c??[]))},[c,l]);const v=((e,t)=>{const r=k(new Set),n=k(new Set),o=k(new Set),i=sG(e),a=sG(t),s=M(()=>({enqueue:e=>{const t=lG(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach(e=>{o.current.delete(lG(e))}),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}},75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}}),[i,a]);return s})(e=>a&&"getHyperCubeData"in a?a.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),b=q((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(cG(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};v.enqueue(e)}},[f,v]),y=q((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-u.page*u.rowsPerPage);if(uG(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};v.enqueue(t)}}},[f,v,u]);return O(()=>{const{qcx:n,qcy:i}=o.qHyperCube.qSize,a=r.current.overscanRowStartIndex,s=r.current.overscanColumnStartIndex,l=a+u.page*u.rowsPerPage,c=n-s,d=u.rowsPerPage-a,p=Math.min(100,c,n,t+5),f=Math.min(100,d,i,e+25);return y(s,l,p,f),()=>{v.clear()}},[o,e,t,u,v,y,r,i]),{rowsInPage:m,loadRows:y,loadColumns:b}},fG=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},hG=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,mG=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=hR(Ak),i=hR(Dk),{estimateLineCount:a}=ZC(o.dimension.values),s=Ek(o.dimension.values.fontSize),l=e||t||1===r;return q((e,t,o)=>{if(l||e.representation.type===VA.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)},[l,i,a,r,s,n])},gG=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=hR(_I);z(()=>{const i=e?n:((e,t)=>{const r=0===t?0:e/t;return Math.ceil(r)})(r.sumHeight,r.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},vG=({isSnapshot:e,gridRef:t})=>{const r=hR(Ak),n=hR(JU),[o,i]=I({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0}),a=r.contentLineHeight,s=r.contentMinRowHeight,l=!!r.contentStaticLineCount,u=Math.max(8e6/n,s)-9,c=u+9,d=Math.max(1,Math.min(r.grid.contentLineClamp,Math.round(u/a))),p=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:d,lineHeight:a,isStaticNbrOfLines:l});(({gridRef:e,setState:t})=>{const r=hR(CR),n=hR(uU),o=hR(Dk),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;nE(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),nE(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const f=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>q((o,i,a)=>{$(()=>{e(e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!hG(u.get(a),l))return e;const c={...e},d=e.rowHeights.get(i);u.set(a,l);const p=void 0===d||l>=d?l:fG(u);return c.rowHeights.set(i,p),c.sumHeight=e.sumHeight-(d??0)+p,n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c})})},[e,r,t,n]))({maxCellHeight:c,minRowHeight:s,setState:i,gridRef:t}),h=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>q((o,i,a)=>{e||t||1===r||n(o,i,a)},[e,t,r,n]))({isSnapshot:e,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),m=mG({isSnapshot:e,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),g=q(e=>l?p??s:o.rowHeights.get(e)??s,[l,s,o.rowHeights,p]);return gG({isStaticNbrOfLines:l,minRowHeight:s,state:o,staticRowHeight:p}),{setMeasuredCellHeight:h,setEstimatedCellHeight:m,getRowHeight:g,lineClamp:d}},bG=(e,t)=>{z(()=>()=>{t(0)},[e,t]);const r=q(e=>{const r=e.contentBoxSize.at(0)?.blockSize;void 0!==r&&t(r)},[t]);AH({ref:e,callback:r})};let yG=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const xG=({loadRows:e,loadColumns:t,gridState:r})=>{const n=hR(_I),o=hR(CR),i=hR(uU),a=hR(JU);return q(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=yG.None,i=yG.None;return o=n>t?yG.Down:n<t?yG.Up:yG.None,i=r>e?yG.Right:r<e?yG.Left:yG.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(r.current,s,u);if(r.current.overscanColumnStartIndex=s,r.current.overscanColumnStopIndex=l,r.current.overscanRowStartIndex=u,r.current.overscanRowStopIndex=c,u>a)return;const v=s,b=u+i.page*i.rowsPerPage,y=l-s+1,x=c-u+1;if(n.visibleLeft=d,n.visibleWidth=p-d+1,n.visibleTop=f+i.page*i.rowsPerPage,n.visibleHeight=h-f+1,n.page=i.page,n.rowsPerPage=i.rowsPerPage,m===yG.Down){const t=x+25;e(v,b,y,u+t>a?a-u:t)}else if(m===yG.Up){const t=x+25,r=i.page*i.rowsPerPage,n=Math.max(r,b-25);e(v,n,y,t)}if(g===yG.Right){const e=o.qHyperCube.qSize.qcx-v,r=y+5,n=Math.min(e,r);t(v,b,n,x)}else if(g===yG.Left){const e=Math.max(0,v-5),r=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,b,r,x)}},[r,a,i.page,i.rowsPerPage,n,e,o.qHyperCube.qSize.qcx,t])},SG=()=>{},wG={current:null};const CG=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},EG={overflow:"hidden",willChange:"auto"},RG=_((e,t)=>{const r=hR(ck),n=hR(KU),o=mR(UU),i=hR(XU),a=hR(Ak),s=hR(_I),l=hR(CR),u=hR(BR),c=hR(Dk),d=hR(JU),p=k(null),f=k(null),h=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),m=k(0),g=!!_M(l)?.content?.hoverEffect,{visibleRowCount:v,visibleColumnCount:b}=(e=>{const t=hR(Dk),r=hR(KU),n=hR(JU),o=Math.min(n,Math.ceil(r.height/e)),i=M(()=>t.reduce((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}),[r,t]).count;return{visibleRowCount:o,visibleColumnCount:i}})(a.contentMinRowHeight),{setMeasuredCellHeight:y,setEstimatedCellHeight:x,getRowHeight:S,lineClamp:w}=vG({isSnapshot:!!l.snapshotData,gridRef:p}),{rowsInPage:C,loadRows:E,loadColumns:R}=pG({visibleRowCount:v,visibleColumnCount:b,gridState:h,setEstimatedCellHeight:x}),A=xG({loadRows:E,loadColumns:R,gridState:h}),P=fB(),I=M(()=>({rowsInPage:C,columns:r,isHoverEnabled:g,lineClamp:w,setMeasuredCellHeight:y,resizeObserverTaskScheduler:P}),[C,r,g,w,y,P]);return z(()=>{1===m.current&&p.current?.scrollToItem({rowIndex:d-1,align:"start"})}),function(e){const t=mR(xT);O(()=>{t({type:GP.UpdatePageRows,payload:{pageRows:e}})},[t,e]),hB({updateShouldRefocus:SG,tableWrapperRef:wG})}(C),H(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(f.current?.clientHeight??i)-i,n=Math.round(r*e);m.current=e,1===m.current?(p.current?.scrollToItem({rowIndex:d-1,align:"start"}),p.current?.scrollTo({scrollLeft:t})):p.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[f,i,d]),bG(f,o),dr.jsx(DU,{"data-key":"body",ref:p,innerRef:f,style:EG,columnCount:r.length,columnWidth:e=>c[e],height:i,rowCount:d,rowHeight:S,estimatedRowHeight:s.estimatedRowHeight,width:n.width,itemData:I,onItemsRendered:A,itemKey:CG,className:"sn-table-body",direction:u,children:iG})});var AG=j(RG);const PG=({children:e})=>{const{width:t,height:r}=(()=>{const e=hR(KU),t=hR(Ak),r=hR(Dk),n=hR(GU),o=hR(UU)+n;let i=hR(JU)*t.contentMinRowHeight+n;return o<2*e.height&&(i=o),{width:r.reduce((e,t)=>e+t,0),height:i}})();return dr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r},children:e})},MG=(e,t)=>{const r=k(null),n=hR(Dk);z(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=q(r=>{const n=r.contentBoxSize.at(0)?.blockSize;n&&t(n+9,e)},[e,t]);return AH({ref:r,callback:o}),r},IG=wc("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:r,applicableStyle:n,color:o})=>({...n,background:r,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),kG=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,a=hR(Ak),s=hR(BR),l=hR(qR),u=hR(wT),c=mR(IM),d=hR(uk),p=hR(FR),f=hR(Dk)[e],h=n[e],{open:m,setOpen:g,handleOpenMenu:v,toggleSortOrder:b}=MW({isInteractionEnabled:p,column:h}),y=hR(kR),x=MG(e,i),S=n.length-1===e,w=y?vH:zH,{ref:C,isDragging:E}=QV(h,e),R=iW(h.id);return dr.jsxs(IG,{"data-dragging":E,ref:C,className:`sn-table-cell ${dE}`,title:l.passive?h.label:void 0,onClick:y?v:b,applicableStyle:{...a.header,...V$(a,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:xM(s,S,u),borderLeftWidth:SM(s,S,u),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:h.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===h.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:R},interactions:l,hoverBackground:h.headerColor?.headerMenuHoverBackground??a.headerMenuHoverBackground,background:y&&m?h.headerColor?.headerMenuActiveBackground??a.headerMenuActiveBackground:h.headerColor?.background??a.header.background,color:h.headerColor?.color??a.header.color,children:[dr.jsx(w,{forwardRef:x,column:h,isInteractionEnabled:p,open:m,setOpen:g,columnWidth:f}),dr.jsx(AW,{column:h,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:c})]})},DG=e=>{const[t,r]=I(new Map);nE(()=>{r(new Map)},[e.length]);const n=q((e,t)=>{r(r=>hG(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:M(()=>fG(t),[t]),setMeasuredCellHeight:n}},TG=(e,t)=>{H(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},OG=e=>{const t=hR(iA),r=hR(CR),n=hR(uU),o=hR(Dk);nE(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},LG={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},qG=_((e,t)=>{const{columResizeHandler:r}=e,n=hR(ck),o=hR(KU),i=mR(WU),a=w.useRef(null),s=k(null),l=hR(Ak),u=hR(CR),c=hR(VR),d=hR(BR),p=hR(Dk),{rowHeight:f,setMeasuredCellHeight:h}=DG(n),m=EW(c,u);return TG(t,a),OG(a),bG(s,i),dr.jsx(zU,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...LG,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l.headerMinRowHeight),width:o.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:r,setMeasuredCellHeight:h},direction:d,children:kG})});var NG=j(qG);const _G=_((e,t)=>{const{children:r,onScroll:n}=e,o=hR(BR),i=hR(zR),{width:a,height:s}=hR(YU);return dr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:n,dir:o,tabIndex:-1,children:r})}),jG=({children:e})=>{const t=hR(BR),r=hR(KU);return dr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:r.width,height:r.height},children:e})},zG=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,a=hR(Ak),s=hR(CR),l=hR(BR),u=hR(_R),c=hR(wT),d=MG(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=s.qHyperCube.qSize.qcx-1===e,g=iW(n[e].id);return dr.jsx("div",{className:`sn-table-cell ${dE}`,title:u?p:void 0,style:{...t,...a.totalRow,...V$(a,o,!1),background:a.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:xM(l,m,c),borderLeftWidth:SM(l,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:dr.jsx(gH,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},FG=_((e,t)=>{const{totals:r}=e,n=hR(ck),o=hR(KU),i=mR(VU),a=k(null),s=k(null),l=hR(Ak),u=hR(BR),c=hR(CR),d=hR(Dk),{rowHeight:p,setMeasuredCellHeight:f}=DG(n);return TG(t,a),OG(a),bG(s,i),dr.jsx(zU,{ref:a,outerRef:s,layout:"horizontal",style:LG,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l.totalRowMinHeight),width:o.width,itemData:{columns:n,totals:r,setMeasuredCellHeight:f},direction:u,children:zG})});var $G=j(FG);const HG=(e,t,r)=>{const n=hR(BR),o=hR(_I);return q(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,n),c=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=c,o.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)},[o,r,e,t,n])};var BG=j(()=>{const e=hR(uk),t=k(null),r=k(null),n=k(null),o=k(null),i=HG(r,n,o),a=q(()=>{t.current&&(t.current.scrollTop=0)},[t]);XH(),(e=>{const t=hR(dk),r=hR(uU),n=hR(iA),o=hR(JU);O(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),O(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[r,o,n,e])})(t),aB(t);const s=dr.jsx($G,{ref:n,totals:e},"totals");return dr.jsxs(UH,{children:[dr.jsx(_G,{ref:t,onScroll:i,children:dr.jsxs(PG,{children:[dr.jsxs(jG,{children:[dr.jsx(NG,{ref:r,columResizeHandler:a}),e.atTop?s:null,dr.jsx(AG,{ref:o}),e.atBottom?s:null]}),dr.jsx(W$,{})]})}),dr.jsx(BH,{isPagination:!1})]})});var WG=j(()=>{const e=hR(CR),t=hR(tA),r=hR(qR),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=hR(lk),s=hR(iA),l=hR(aA),u=hR(KR),[c,d]=gR(uU);return dr.jsxs(pH,{"data-testid":"sn-table",children:[dr.jsx(BG,{}),dr.jsx(sT,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:u,translator:l,theme:s,interactions:r,rect:t,layout:e})]})});const VG=e=>{const t=e.get(XR),r=e.get(GR),n=e.get(wR),o=e.get(BR);a(()=>{n&&t&&(r?function(e){const t=e.get(BR),r=e.get(oA),n=qk(t);r.render(dr.jsx(Ti,{stylisPlugins:"rtl"===t?[jP]:void 0,children:dr.jsx(Ec,{theme:n,children:dr.jsx(lR,{store:e,children:dr.jsx(Lk,{children:dr.jsx(oU,{})})})})}))}(e):function(e){const t=e.get(BR),r=e.get(oA),n=qk(t);r.render(dr.jsx(w.StrictMode,{children:dr.jsx(Ec,{theme:n,children:dr.jsx(lR,{store:e,children:dr.jsx(Lk,{children:dr.jsx(WG,{})})})})}))}(e))},[n,r,e,t,o])};function UG(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const GG=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},YG=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const KG=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||JI.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},XG=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=HI(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=UG(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:KG(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=GG(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,v=(YG(h,m,g)?d:d+1)+c;let b=p+c;const y=GG(p,o),x=y?.getBoundingClientRect();return y&&x&&(YG(x,m,g)||(b=p-1+c)),{visibleRowStartIndex:v,visibleRowEndIndex:b}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:KG(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},JG=({store:e})=>{const t=e.get(CR),r=e.get(XR),n=e.get(rA),o=e.get(eA),i=e.get(VR),a=e.get(GR);c(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get(_I),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:v}=XG(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:v,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),d(()=>({getViewState:()=>XG(t,e.get(_I),n,i,a)}),[t,e,n,a])},ZG={version:JSON.stringify("6.22.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 QG=e=>({properties:{initial:ZG},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>RA({...e}),exportProperties:yA,exploration:AA});const eY=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),tY=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});
121
+ */!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",u="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",c="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+c+")",p=o+"(?:\\s*"+i+"|"+("-?"+("(?:[_a-z]|"+r+"|"+c+")")+d+"*")+")?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|"+("(?:calc\\((?:"+("(?:(?:\\(|\\)|\\t| )|"+("(?:-?"+o+"(?:\\s*"+i+")?)")+"|(?:\\+|\\-|\\*|\\/)){3,}")+")\\))")+")",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+c+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+u+v+"[^;}]+;?)","gi"),M=new RegExp("("+u+"[^\\}]*?})","gi"),P=new RegExp("("+a+")ltr","gi"),I=new RegExp("("+a+")rtl","gi"),k=new RegExp(l+"(left)"+b+y+v,"gi"),D=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),O=new RegExp(l+"(right)"+x,"gi"),L=/(:dir\( *)ltr( *\))/g,q=/(: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"),W=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),V=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"),Y=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),K=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter(function(e){return e}),o=r.slice(6,10).filter(function(e){return e}),i=r[10]||"";return t+(o.length?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(A,"`NOFLIP_SINGLE`"),a=new n(M,"`NOFLIP_CLASS`"),s=new n(R,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(L,"$1`TMPLTR`$2").replace(q,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(O,"$1left").replace(w,"right")),r=r.replace(P,"$1"+e).replace(I,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(D,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(W,Q).replace(V,te).replace(U,ne).replace(G,ne).replace(Y,te).replace(K,re).replace(X,re).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}($M,$M.exports);var HM=er($M.exports);function BM(e,t,r){switch(e.type){case nn:case rn:case en:return e.return=e.return||e.value;case tn:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===en&&(e.children=e.value)})}var n=Yn(Array.prototype.concat(e.children),BM);return mn(n)?e.return=e.value+"{"+n+"}":""}function WM(e,t,r,n){if(e.type===on||"@supports"===e.type||e.type===tn&&(!e.parent||"@media"===e.parent.type||e.parent.type===tn)){var o=HM.transform(BM(e));e.children=o?Hn(o)[0].children:[],e.return=""}}function VM(e,t){let r=null;const n=new Map,o=new Set;function i(o){let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!r?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}Object.defineProperty(WM,"name",{value:"stylisRTLPlugin"});const UM=VM(({options:e,...t})=>uR(oE(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);function GM(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function YM(e){const t=uR(()=>[]),r=uR(function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)});return r.effect=e,r.INTERNAL_onInit=e=>{const n=new Set;let o,i=0,a=!1,s=!1,l=!1;function u(){if(i)return;n.clear();let t=!0;const c=o=>{if(l)return e.get(o);if(o===r){const t=h(e,o);if(!DE(t)){if(!IE(o))throw new Error("no atom init");S(e,o,o.init)}return TE(t)}const i=b(e,o);try{return TE(i)}finally{C.d.set(o,i.n),d.get(o)?.t.add(r),t?n.add(o):d.has(o)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...o)=>{const a=h(e,n);try{if(++i,n===r){if(!IE(n))throw new Error("atom not writable");const t=a.n,r=o[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),v(e,n)))}return y(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(GM())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{o?.();const e=r.effect(c,w);if("function"!=typeof e)return;o=()=>{if(!i)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,o=void 0}}}finally{t=!1,n.forEach(t=>{C.d.set(t,h(e,t).n)}),x(e,r),g(e)}}const c=aR(e),d=c[1],p=c[3],f=jE(c[6]),h=c[11],m=c[12],g=c[13],b=c[14],v=c[15],y=c[16],x=c[17],S=c[20],w=function(e,t){let r=KM.get(e);r||(r=new Set,KM.set(e,r),t.f.add(function(){for(const e of r)r.delete(e),e()}));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,function(){p.delete(r)}),f.m.add(r,function(){w.add(u),o&&w.delete(o)}),f.u.add(r,function(){w.delete(u),o&&w.add(o)}),f.c.add(r,function(){a?s=!0:w.add(u)})},GM()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const KM=new WeakMap;class XM{#c={on:new Map,once:new Map};#d=10;#p(e){this.listenerCount(e)>this.#d&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#f(e,t,r){const n=this.#c[e].get(t)??new Set;n.add(r),this.#c[e].set(t,n),this.#p(t)}setMaxListeners(e){this.#d=e}on(e,t){this.#f("on",e,t)}once(e,t){this.#f("once",e,t)}off(e,t){this.#c.on.get(e)?.delete(t),this.#c.once.get(e)?.delete(t)}emit(e,...t){this.#c.on.get(e)?.forEach(e=>{e(...t)}),this.#c.once.get(e)?.forEach(e=>{e(...t)}),this.#c.once.delete(e)}listenerCount(e){return(this.#c.on.get(e)?.size??0)+(this.#c.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#c.on.clear(),this.#c.once.clear()):(this.#c.on.delete(e),this.#c.once.delete(e))}}const JM=uR(()=>new XM);let ZM=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),QM=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}({}),eP=function(e){return e.A="ascending",e.D="descending",e}({}),tP=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const rP=[0,0],nP=e=>"number"==typeof e&&!Number.isNaN(+e),oP=e=>nP(e.qNum),iP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),aP=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),sP=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},lP=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return se(e.localPaletteColors[t].color??"").blend(se(s.color??""),s.t)},uP=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort((e,t)=>e.value-t.value),e.limits=r.map(e=>({...e,value:aP(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:sP(n,t,r)}))),n},cP=(e,t,r,n)=>{const o=uP(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=lP(e,a,t);break}n=i}return r})(o,t);return a},dP=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!nP(e));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!nP(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},pP=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=dP(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!nP(t))return 0;let a=r&&nP(r)?Math.min(r,t):0;const s=n.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},fP=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=pP(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return sP(o,r.limitPaletteColorIndex,n);const a=aP(r.limitRange,t);return cP(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},hP=(zC().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)"),mP=4/3,gP="12px",bP="600",vP="Source Sans Pro, sans-serif",yP={height:"auto",fontSize:gP,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"}},xP={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:bP},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},SP=(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,wP=(e,t)=>e.representation.type===ZA.Image&&"fitHeight"===e.representation.imageSize?SP(t,e.representation):e.align,CP=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",EP=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},RP=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,AP=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",MP=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",PP=24,IP=Ic("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),kP=Ic(yp,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?CP(e,n):void 0})),DP=Ic(yp,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${mE}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${mE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),TP=Ic(yp,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),OP=Ic(yp,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),LP=Ic(Id,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n})),qP=uR(),NP=uR(0),jP=uR(0),_P=4/3,zP=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function FP(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const $P=(e,t)=>e?{borderBottomColor:$C.DARK_MODE_BORDER,borderRightColor:$C.DARK_MODE_BORDER,borderLeftColor:$C.DARK_MODE_BORDER,borderTopColor:$C.DARK_MODE_BORDER}:{borderLeftColor:$C.BORDER_MEDIUM,borderRightColor:$C.BORDER_MEDIUM,borderTopColor:$C.BORDER_HEAVY,borderBottomColor:t?$C.BORDER_HEAVY:$C.BORDER_LIGHT},HP=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*_P+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},BP=e=>e.components?.find(e=>"theme"===e.key),WP=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:zP(r?.fontColor)?FP($C.TEXT,t,r?.fontColor):i||$C.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...$P(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function VP(e,t,r){const n=BP(e)?.header,o=WP("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=se(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=WC(o.background??$C.WHITE,CE),o.activeBackground=WC(o.background??$C.WHITE,EE),o}const UP=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in xP)(e)&&Object.assign(t,xP[e])),t};function GP(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&UC(i);a&&(n[r[t]]=a),o=i?UP(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=HC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}var YP={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:XP(e),value:XP(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}},KP=YP;function XP(e){try{return decodeURIComponent(e)}catch{return e}}function JP(e){if(!(this instanceof JP))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>KP.fromSearchString(t.search)}})}function ZP(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")}JP.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},JP.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=ZP(t.key),t.value?r+=`=${ZP(t.value)}`:r+=t.useEqualSign?"=":"";return r};var QP=JP;var eI,tI=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}},rI=class{decode(e){let t="";const r=new tI(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},nI=e=>e>=0&&e<=1114111,oI=e=>e.match(/[\s]/),iI=class extends rI{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!oI(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return nI(a)?String.fromCharCode(a):"�"}},aI=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},sI=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return aI.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return aI.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||aI.newInstanceIfNeeded(e,t,this._value)}},lI=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 sI);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},uI=(()=>{const e=[],t=[],r=new lI;let n,o,i;for(n in e["&quot"]="34",e["&amp"]="38",e["&lt"]="60",e["&gt"]="62",e["&nbsp"]="160",e["&iexcl"]="161",e["&cent"]="162",e["&pound"]="163",e["&curren"]="164",e["&yen"]="165",e["&brvbar"]="166",e["&sect"]="167",e["&uml"]="168",e["&copy"]="169",e["&ordf"]="170",e["&laquo"]="171",e["&not"]="172",e["&shy"]="173",e["&reg"]="174",e["&macr"]="175",e["&deg"]="176",e["&plusmn"]="177",e["&sup2"]="178",e["&sup3"]="179",e["&acute"]="180",e["&micro"]="181",e["&para"]="182",e["&middot"]="183",e["&cedil"]="184",e["&sup1"]="185",e["&ordm"]="186",e["&raquo"]="187",e["&frac14"]="188",e["&frac12"]="189",e["&frac34"]="190",e["&iquest"]="191",e["&Agrave"]="192",e["&Aacute"]="193",e["&Acirc"]="194",e["&Atilde"]="195",e["&Auml"]="196",e["&Aring"]="197",e["&AElig"]="198",e["&Ccedil"]="199",e["&Egrave"]="200",e["&Eacute"]="201",e["&Ecirc"]="202",e["&Euml"]="203",e["&Igrave"]="204",e["&Iacute"]="205",e["&Icirc"]="206",e["&Iuml"]="207",e["&ETH"]="208",e["&Ntilde"]="209",e["&Ograve"]="210",e["&Oacute"]="211",e["&Ocirc"]="212",e["&Otilde"]="213",e["&Ouml"]="214",e["&times"]="215",e["&Oslash"]="216",e["&Ugrave"]="217",e["&Uacute"]="218",e["&Ucirc"]="219",e["&Uuml"]="220",e["&Yacute"]="221",e["&THORN"]="222",e["&szlig"]="223",e["&agrave"]="224",e["&aacute"]="225",e["&acirc"]="226",e["&atilde"]="227",e["&auml"]="228",e["&aring"]="229",e["&aelig"]="230",e["&ccedil"]="231",e["&egrave"]="232",e["&eacute"]="233",e["&ecirc"]="234",e["&euml"]="235",e["&igrave"]="236",e["&iacute"]="237",e["&icirc"]="238",e["&iuml"]="239",e["&eth"]="240",e["&ntilde"]="241",e["&ograve"]="242",e["&oacute"]="243",e["&ocirc"]="244",e["&otilde"]="245",e["&ouml"]="246",e["&divide"]="247",e["&oslash"]="248",e["&ugrave"]="249",e["&uacute"]="250",e["&ucirc"]="251",e["&uuml"]="252",e["&yacute"]="253",e["&thorn"]="254",e["&yuml"]="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["&notin"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})(),cI=class extends rI{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,uI.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=uI.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&nI(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&nI(n)?String.fromCharCode(n):null}},dI=class extends rI{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),nI(i))?String.fromCharCode(i):(e.reset(),null)}},pI=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,fI=5e6,hI=5e5,mI=(e,t)=>{const{maxByteSizeSvg:r=hI,maxByteSizeImage:n=fI}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=pI.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n};"undefined"!=typeof document&&(eI=document.createElement("div"));var gI=Array.prototype.indexOf,bI=[",",".","_"," "],vI=[",",".","-","_"," "],yI={width:["%"],height:["%"]},xI={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},SI={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":xI.image,"background-color":xI.color,"border-color":xI.color,"border-image":xI.image,color:xI.color,icon:xI.image,"list-style-image":xI.image,"outline-color":xI.color},wI={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function CI(e,t,r){let n;if(t){if(gI)return gI.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function EI(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return eI.appendChild(r),t=eI.innerHTML,eI.removeChild(r),t}function RI(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=MI(e).toLowerCase(),t=MI(t),i=0;i<wI.attr_name.length;i++)if(e.match(wI.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<wI.attr_val.length;i++)if(t.toLowerCase().match(wI.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=yI[e],n||(n=vI),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&CI(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function AI(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=MI(e).toLowerCase(),t=MI(t),CI(e,wI.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<wI.css_val.length;n++)if(t.toLowerCase().indexOf(wI.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=SI[e],o||(o=xI.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&CI(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function MI(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new cI,new dI,new iI];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}var PI=[];for(let e=0;e<255;e++)PI[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var II={html:e=>EI(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=AI(t,r[t],!0),i+=AI(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=RI(e,t[e],!0),o+=RI(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function kI(e,t){throw new Error(t)}var DI={canonicalize:MI,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?II.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&kI(this,"Invalid parameter type"),II.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&kI(this,"Invalid parameter type"),II.attr(e)):void kI(this,"Invalid parameter type")},encodeForAttr:RI,encodeForAttr2:function(e){return RI("nonsens",e,!0)},encodeForCSS:AI,encodeForHref:function(e){MI(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new QP(e),r=QP.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+QP.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=bI),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),CI(o,t)>=0||null==PI[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:EI,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=MI(t).toLowerCase():kI(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:mI,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const TI=(e,t)=>t.qAttrExps?.qValues?.[e],OI=(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"}}},LI=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!DI.isSafeDataURL(t))?{type:ZA.Text,url:void 0,text:e,labelStructure:o}:{type:ZA.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:OI(n,a),labelStructure:o,imageBox:i},qI=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:ZA.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:ZA.MiniChart,text:n,miniChart:a}},NI=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===QA.Attribute?void 0:r?.urlLabel},jI=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:ZA.Link,url:DI.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:ZA.Text,url:void 0,text:t,labelStructure:e}}},_I=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=eM(t),d=s(e);return c===ZA.Image&&u[ZA.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=TI(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),LI({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return LI({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=TI(r.imageLabel??-1,e)?.qText??n;return LI({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:ZA.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===ZA.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===QA.Attribute){const i=NI(r.url??-1,e,t);return jI({labelStructure:n,text:o||i||"",url:i})}if(i===QA.Dimension){const i=NI(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),jI({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:ZA.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===ZA.Indicator&&u[ZA.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:ZA.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===ZA.MiniChart&&u[ZA.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?qI(e,t,i,d):{type:ZA.Text,url:void 0,text:d,labelStructure:a}};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))}},r){var n;let o,i;const a={getItem:(t,n)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==r?void 0:r.reviver)}catch(e){return n}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let s;try{s=null==(n=e())?void 0:n.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)})))}();const zI=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),FI=new WeakMap,$I=()=>{};function HI(e,r=$I){return((e,t,r)=>{const n=zI(()=>new WeakMap,FI,t);return zI(e,n,r)})(()=>{const n=new WeakMap,o=new WeakMap,i=uR(0),a=uR([]);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=uR(t=>{let l;t(i);try{l=t(s)}catch(e){}const u=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then(e=>{o.set(u,e);const[r]=t(a);r()},e=>{n.set(u,e);const[r]=t(a);r()}),n.has(u))throw n.get(u);return o.has(u)?{p:u,v:o.get(u)}:l&&"v"in l?{p:u,f:r(l.v),v:l.v}:{p:u,f:r()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),uR(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,r,...n)=>r(e,...n))},e,r)}const BI=uR(e=>{const t=e(ZR),r=e(qR);return e(NR),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}}),WI=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),VI=({cId:e})=>e??VA(),UI=1e4;function GI(e,t){return[...t].reverse().find(t=>t*e<=UI)||Math.floor(UI/e)}function YI(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function KI(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function XI(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return nP(r?.qNum)}function JI(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const ZI=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",QI=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=se(r??""),i=se(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?WC(s,CE):void 0,u=s?WC(s,EE):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:HC(s),headerMenuHoverBackground:l,headerMenuActiveBackground:u}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:u}};const ek=(e,t,r,n=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const r=e<n,o=(r?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,r,n,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:u,visibleDimInfoIdx:c,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===RE.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!==c){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:M,qAttrExprInfo:P,qSortIndicator:I,qReverseSort:k,qApprMaxGlyphCount:D,columnWidth:T,qLibraryId:O,headerColor:L}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:O,pageColIdx:u,qApprMaxGlyphCount:D,qReverseSort:k,columnWidth:T??{type:wE.Auto},selectionColIdx:S,isActivelySorted:g,id:VI(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:P.map(e=>e.id),qAttrExprInfoIndex:WI(h),sortDirection:I&&"N"!==I?I:"A",totalInfo:KI(e,f,u,d??-1),...!f&&{isTotalNumeric:XI(e,d??-1)},...JI(M,b,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?QI(L,r):void 0}}(e,o,t,r,n))},tk=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",rk=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,nk={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},ok=uR(e=>{const t=e(ik),r=e(kR),n=e(BI),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>UI?{...t,rowsPerPage:GI(l,t.rowsPerPageOptions),page:0}:t}),ik=uR(nk),ak=uR(e=>{const t=e(kR),r=e(ZR),n=e(BI);return YR(t,r)?{page:n.page||nk.page,rowsPerPage:n.rowsPerPage||nk.rowsPerPage,rowsPerPageOptions:nk.rowsPerPageOptions}:e(ok)},(e,t,r)=>{t(ik,e=>({...e,...r}))}),sk=!0,lk=uR(async e=>{const t=e(kR),r=e(ZR),n=e(XR),{page:o,rowsPerPage:i}=e(ak),a=e(BI),s=e(nA),l=e(MR),u=e(TR),c=e(PR),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=YI(t,r),v=ek(t,sk,n,c),y=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});u||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const x=y.at(0)?.qMatrix.map((e,r)=>{const o=[];return v.forEach((i,a)=>{const s=e[a],u=tk(i.isDim,s,t),c=!i.isDim&&s.qIsNull,d=c?iP(u):oP(s);o[a]={id:VA(),...s,align:ZI(d,i.bodyTextAlign,n,sk),rowIdx:r+h,colIdx:i.colIdx,pageRowIdx:r,pageColIdx:a,selectionColIdx:i.selectionColIdx,isSelectable:i.isDim&&!i.isLocked,isLastRow:r===m-1,isNumeric:d,isNull:(!c||!d)&&rk(s,i.isDim),representation:_I({cell:s,representationProperties:i.representation,attrExprInfoIndex:i.qAttrExprInfoIndex,env:l,conditionalColoring:i.conditionalColoring,miniChartOnMeasure:i.qMiniChart,getText:()=>c?u:s.qText,direction:n,enabledFeatures:{[ZA.Image]:!0,[ZA.Indicator]:!0,[ZA.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:x}}),uk=HI(lk,e=>e),ck=25e4,dk=uR(e=>{const t=e(kR),r=e(ZR),n=e(HR),o=e(XR),i=e(PR),a=ek(t,false,o,i),s=YI(t,r),l=t.qHyperCube.qSize.qcy,u=Math.min(ck,l),c=l>ck&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/u),paginationNeeded:c}}),pk={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},fk=uR(),hk=uR(e=>{const t=e(eA),r=e(fk);return r||(t?e(uk)??pk:e(dk))}),mk=uR(e=>e(hk).totalsPosition),gk=uR(e=>e(hk).columns),bk=uR(e=>e(gk).length),vk=uR(e=>e(hk).rows),yk=uR(e=>e(hk).totalRowCount),xk=uR(e=>e(hk).totalColumnCount),Sk=uR(e=>e(hk).paginationNeeded),wk=uR(e=>{const t=e(uA),r=e(pA),n=e(kR),o=e(mk),i=e(vk),a=o.atTop,s=function(e,t,r,n){const o=BP(e)?.content,i=WP("content",t,o);i.background=t.background.color;const a=HP(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=zP(l)||!!c,p=zP(s)||!!u,f=d||p;let h;h=zP(s)?FP($C.HOVER,t,s):u||(d?"":$C.HOVER);const m=f?FP(HC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=VP(n,r,!a),u=function(e,t,r){const n=BP(e)?.content,o=WP("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=VP(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:u}}),Ck=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},Ek=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=Ck(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},Rk=(e,t,r,n=$C.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=Ek(e,t,r);return JC(i,o,a,n)??n},Ak=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return gP}},Mk=e=>e?.some(e=>"italic"===e)?"italic":"normal",Pk=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?bP:"normal",Ik=e=>!1===e?1:3,kk=e=>parseInt(e??yP.fontSize,10)*mP,Dk=e=>e?.some(e=>"underline"===e)?"underline":"none",Tk=uR(e=>{const t=e(ZR),r=e(eA),n=e(pA),o=e(kR),i=e(wk),{header:a,dimensionValues:s,measureValues:l,totalValues:u,nullValues:c,grid:d,content:p}=BP(o)??{},f=r?$C.WHITE:$C.TRANSPARENT,h=Rk(n,a,"object.straightTableV2.dimension.label.name.backgroundColor",f),m=t?.maxLineCount??p?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),g={header:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??vP,fontSize:Ak(a?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:Mk(a?.fontStyle),fontWeight:Pk(a?.fontStyle,bP),textDecoration:Dk(a?.fontStyle),color:Ck(n,a?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??$C.TEXT,background:h},headerMenuHoverBackground:WC(h,CE),headerMenuActiveBackground:WC(h,EE),dimension:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??vP,fontSize:Ak(s?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:Mk(s?.fontStyle),fontWeight:Pk(s?.fontStyle,"normal"),textDecoration:Dk(s?.fontStyle),color:Ck(n,s?.fontColor)??Ck(n,p?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??$C.TEXT,background:Ek(n,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??$C.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??vP,fontSize:Ak(l?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:Mk(l?.fontStyle),fontWeight:Pk(l?.fontStyle,"normal"),textDecoration:Dk(l?.fontStyle),color:Ck(n,l?.fontColor)??Ck(n,p?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??$C.TEXT,background:Ek(n,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??$C.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??vP,fontSize:Ak(u?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:Mk(u?.fontStyle),fontWeight:Pk(u?.fontStyle,bP),textDecoration:Dk(u?.fontStyle),color:Ck(n,u?.fontColor)??Ck(n,p?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??$C.TEXT,background:Rk(n,u,"object.straightTableV2.total.label.value.backgroundColor",f)},nullValues:{fontStyle:Mk(c?.fontStyle),fontWeight:Pk(c?.fontStyle,"normal"),textDecoration:Dk(c?.fontStyle),color:Ck(n,c?.fontColor)??Ck(n,p?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??$C.TEXT,background:Ck(n,c?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??$C.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:m??Ik(o.multiline?.wrapTextInCells),headerLineClamp:Ik(o.multiline?.wrapTextInHeaders),border:Ck(n,d?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?$C.DARK_MODE_BORDER:$C.BORDER_MEDIUM),divider:Ck(n,d?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??$C.BORDER_HEAVY,hoverColors:{color:Ck(n,p?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:Ck(n,p?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!d?.zebraStripes?.show,odd:{color:Ck(n,d?.zebraStripes?.color?.odd),background:Ck(n,d?.zebraStripes?.background?.odd)},even:{color:Ck(n,d?.zebraStripes?.color?.even),background:Ck(n,d?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===Ck(n,c?.background),overrideNullValueColor:void 0===Ck(n,c?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:BC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:m},{headerMinRowHeight:b,totalRowLineHeight:v,totalRowMinHeight:y,contentLineHeight:x,contentMinRowHeight:S}=(e=>{const t=Math.max(kk(e.header.fontSize)+8,32),r=kk(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(kk(e.dimension.values.fontSize),kk(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(g);return g.headerMinRowHeight=b,g.totalRowLineHeight=v,g.totalRowMinHeight=y,g.contentLineHeight=x,g.contentMinRowHeight=S,g}),Ok=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(SE.PixelsMax,Math.max(SE.PixelsMin,f)),i-=n[a]};switch(s){case wE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?SE.PixelsDefault:+e)(l),h();break;case wE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?SE.PercentageDefault:+e)(u)/100*t,h();break;case wE.FitToContent:e.representation?.type===ZA.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case wE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{n[t]=Math.max(SE.AutoMinTable,e)})}return n},Lk=uR(e=>{const t=e(Tk),r=e(hk).totalsPosition,n=e(jR),{measureText:o}=e(UM({...t.header,fontWeight:bP})),{measureText:i}=e(UM({...t.totalRow,fontWeight:bP})),{estimateWidth:a}=e(UM(t.dimension.values)),{estimateWidth:s}=e(UM(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,u,c,d,p)=>{let f=0;if(n){const t=4;let r=25;r+=t+24,u&&(r+=20+t),c&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=PP),t+=PP,t+=PP,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),qk=uR(null),Nk=uR(e=>{const t=e(hk),r=e(lA).width,n=e(jP),o=e(Lk);return Ok(t.columns,r-n,o)}),jk=uR(e=>e(qk)??e(Nk),(e,t,r)=>{t(qk,r)}),_k=YM(e=>{const t=e(JM);!1===e(qP)&&t.emit("done-adjusting-column-width")}),zk=YM((e,t)=>{e(kR),t(qk,null)}),Fk=({children:e})=>(SR(zk),SR(_k),e);function $k(e){const t=zC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Uu({...t,direction:e})}const Hk={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},Bk={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Wk=Ic("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...Hk},"&::-moz-range-track":{...Hk},"&::-ms-track":{...Hk},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...Bk},"&::-moz-range-thumb":{...Bk},"&::-ms-thumb":{...Bk},"&: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"}})),Vk=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=pE({translator:c.translator}),f=k({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,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}};cE(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,SE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:wE.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=>{YC(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=>{YC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===yE.Left||e.key===yE.Right){YC(e);const t=5,r=e.key===yE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===yE.Space||e.key===yE.Enter?(YC(e),s(e),l?.(!1),x()):e.key===yE.Esc&&(YC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return dr.jsx(Wk,{style:b,hoverColor:o,isLastColumn:r,className:xE,"data-testid":xE,onMouseDown:e=>{YC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:wE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(YC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":SE.PixelsMin,"aria-valuemax":SE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},Uk=j((e,t)=>dr.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:dr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),Gk=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},Yk=Ic(yp,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"})),Kk=Ic(Uk,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Xk=Ic(th)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Jk=Ic(Jp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),Zk=Ic(ah)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),Qk=Ic(ah,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"})),eD=Ic("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),tD=Ic("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),rD=Ic(qd)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),nD=Ic(Pf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),oD=j((e,t)=>dr.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:dr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),iD=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?iD(t):t:e.parentElement?.children?.[0]},aD=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?aD(t):t},sD=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===yE.Down||t===yE.Up){const r=e=>t===yE.Down?iD(e):aD(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},lD=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(r)}}:{}}))})));let uD={};const cD=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=I(!1),f=w.useRef(null),h=q(e=>{e.stopPropagation(),p(!1)},[p]);return dr.jsxs(dr.Fragment,{children:[dr.jsxs(Qk,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),uD={}),a?.length&&(p(!0),uD[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:sD,children:[l?dr.jsx(eD,{direction:u,isPagination:c}):null,dr.jsxs(tD,{children:[dr.jsx(nD,{direction:u,isPagination:c,children:dr.jsx(o,{})}),dr.jsx(rD,{variant:"body2",children:n})]}),a?.length?dr.jsx(oD,{}):null]},t),a?.length?dr.jsx(hD,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:lD(a,uD),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},dD=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&dr.jsx(Zk,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>dr.jsx(cD,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),pD=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[dD({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?dr.jsx(Jk,{"data-testid":"group-divider",variant:"middle"}):void 0]),fD={appear:0,enter:0,exit:0},hD=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?dr.jsx(Xk,{className:gE,open:t,anchorEl:e,onClose:r,transitionDuration:fD,MenuListProps:{id:bE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:pD({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,mD=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>q(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}},[e,t,r,n?.qStateName,o,i]),gD=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),bD=(e,t)=>e.some(e=>t[e]>0),vD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},yD=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=I(null),[a,s]=I(vD);return cE(()=>{e||(s(vD),i(null))},[e]),O(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=gD(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:bD(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:bD(["qSelected"],e),canSelectPossible:bD(["qOption"],e),canSelectAlternative:bD(["qAlternative"],e),canSelectExcluded:bD(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},xD=j((e,t)=>dr.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:dr.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"})})),SD=j((e,t)=>dr.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:dr.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"})})),wD=j((e,t)=>dr.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:dr.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"})})),CD=j((e,t)=>dr.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:dr.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"})})),ED=j((e,t)=>dr.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:dr.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"})})),RD=j((e,t)=>dr.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:dr.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"})})),AD=j((e,t)=>dr.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:dr.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"})})),MD=j((e,t)=>dr.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:dr.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"})})),PD=j((e,t)=>dr.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:dr.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"})})),ID=j((e,t)=>dr.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:dr.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"})})),kD=j((e,t)=>dr.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:dr.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"})})),DD=j((e,t)=>dr.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:dr.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"})})),TD=j((e,t)=>dr.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:dr.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"})})),OD=j((e,t)=>dr.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:dr.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 LD=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const qD="/qListObjectDef",ND=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[LD.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:xD,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:CD,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:MD,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:ED,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[LD.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:PD,enabled:!0}]}]),!e.isLocked&&r[LD.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:OD,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(qD))},icon:ID,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(qD))},icon:TD,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(qD))},icon:kD,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(qD))},icon:DD,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(qD))},icon:SD,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:AD,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:RD,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[LD.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:wD,enabled:!0}]}]),f},jD=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=fE})=>{const v=k(null),y=pE({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=yD({open:e,headerData:n,app:C,qStateName:c?.qStateName}),A=Gk({model:f,headerData:n}),M=mD({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),P=q(e=>{e.stopPropagation(),t(!1)},[t]),I=q(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?dr.jsxs(Yk,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:mE,onClick:!1===g?I:void 0,ref:v,isAccessibleHeader:g,children:[s?dr.jsx(Kk,{height:b,className:hE,"data-testid":hE,isInteractionsActive:i.active??!1,children:dr.jsx(Uk,{})}):null,dr.jsx(hD,{open:e,anchorEl:!1===g?v.current:r.current,onClose:P,menuGroups:ND({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:M,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},_D=e=>e.isDark?{background:e.color,borderColor:$C.DARK_MODE_BORDER,color:$C.DARK_MODE_TEXT,disabledColor:$C.DARK_MODE_DISABLED,iconColor:$C.DARK_MODE_TEXT}:{background:e.color,borderColor:$C.BORDER_MEDIUM,color:$C.TEXT,disabledColor:$C.DISABLED},zD=Ic(yp,{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}`})),FD=Ic(Fh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),$D=Ic(Ip,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)})),HD=Ic(qd)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),BD=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=P(()=>_D(n.background),[n]);if(!r.active)return null;const a=o?dr.jsx(zD,{footerStyle:i,children:e}):null;return t?W.createPortal(e,t):a},WD=D({}),VD=()=>N(WD),UD=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=P(()=>_D(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=pE({translator:d}),S=P(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return dr.jsx(WD.Provider,{value:S,children:e})};let GD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),YD=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 KD=j((e,t)=>dr.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:dr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),XD=j((e,t)=>dr.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:dr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),JD=j((e,t)=>dr.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:dr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),ZD={FirstPage:XD,PreviousPage:KD,NextPage:oD,LastPage:JD,FirstPageRTL:JD,PreviousPageRTL:oD,NextPageRTL:KD,LastPageRTL:XD},QD=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=VD(),u=r.concat("rtl"===n?"RTL":""),c=ZD[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},eT=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=VD(),o=0===e.page,{IconComponent:i,styledProps:a}=QD({type:GD.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||YD.FirstPage)?null:dr.jsx($D,{...a,disabled:!r.active,children:dr.jsx(i,{height:fE})})},tT=(e,t,r=!1)=>{r&&e.key===yE.Tab&&!e.shiftKey&&(YC(e),GC(e.target,t,!1))},rT=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=VD(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=QD({type:GD.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{tT(e,t,n)}:void 0;return o<=(a?.lastPage||YD.LastPage)?null:dr.jsx($D,{...u,onKeyDown:c,disabled:!i.active,children:dr.jsx(l,{height:fE})})},nT=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=VD(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=QD({type:GD.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>YD.FirstPage&&o>YD.LastPage)&&t.enabled?e=>{tT(e,t,n)}:void 0;return dr.jsx($D,{...l,onKeyDown:u,disabled:!i.active,children:dr.jsx(s,{height:fE})})},oT=()=>{const{pageInfo:e,interactions:t}=VD(),r=0===e.page,{IconComponent:n,styledProps:o}=QD({type:GD.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return dr.jsx($D,{...o,disabled:!t.active,children:dr.jsx(n,{height:fE})})},iT=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=VD(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||YD.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return dr.jsx(HD,{variant:"caption",dir:"ltr",children:s})},aT=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=VD(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return dr.jsxs(dr.Fragment,{children:[dr.jsxs(HD,{variant:"caption",id:p,children:[c,":"]}),dr.jsx(FD,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},sT=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=VD();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||YD.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=dr.jsx(dr.Fragment,{children:e.rowsPerPageOptions.map(e=>dr.jsx("option",{value:e,children:e},e))});return dr.jsx(aT,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},lT=1e3,uT="…",cT=({totalPages:e,page:t})=>{const r=Math.min(e,lT),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-lT):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return dr.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(dr.jsx("option",{value:uT,disabled:!0,children:uT},"startMoreOptions")),o<e-1&&a.push(dr.jsx("option",{value:uT,disabled:!0,children:uT},"endMoreOptions")),dr.jsx(dr.Fragment,{children:a})},dT=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=VD(),{page:i}=e;if(t<=(o?.selectPage||YD.SelectPage))return null;const a=dr.jsx(cT,{totalPages:r,page:i});return dr.jsx(aT,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var pT=_(e=>dr.jsxs(UD,{...e,children:[dr.jsx(sT,{}),dr.jsx(dT,{}),dr.jsx(iT,{}),dr.jsx(eT,{}),dr.jsx(oT,{}),dr.jsx(nT,{}),dr.jsx(rT,{})]}));const fT=e=>dr.jsx(BD,{...e,children:dr.jsx(pT,{...e})}),hT=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},mT=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},gT=e=>e.ctrlKey||e.metaKey,bT=e=>e.shiftKey&&gT(e),vT=e=>[yE.Left,yE.Right,yE.Up,yE.Down].includes(e),yT=e=>e.shiftKey&&vT(e.key),xT=e=>(e=>vT(e)||[yE.Home,yE.End,yE.PageUp,yE.PageDown].includes(e))(e.key)&&!bT(e),ST=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),hT(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},wT=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&yT(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&yT(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===yE.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return hT(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},CT=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},ET=(e,t)=>{switch(t.type){case QM.Select:return ST(e,t.payload);case QM.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case QM.SelectMouseUp:return((e,t)=>CT(e.isSelectMultiValues||e.firstCell!==t.cell?e:ST(e,t)))(e,t.payload);case QM.SelectMultiAdd:return wT(e,t.payload);case QM.SelectMultiEnd:return CT(e);case QM.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case QM.Clear:return e.rows.size?{...e,rows:new Map}:e;case QM.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},RT=uR(e=>{const t=e(FR);return function(e,t){return uR(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(hk).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},ET)}),AT=uR(e=>e(e(RT)),(e,t,r)=>{t(e(RT),r)}),MT=VM(e=>uR(t=>{const{colIdx:r,rows:n,api:o}=t(AT);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?ZM.Disabled:n.has(e.qElemNumber)?ZM.Selected:ZM.Possible:ZM.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),PT=uR(e=>{const t=e(jk),r=e(lA).width,n=e(jP);return t.length>0&&t.reduce((e,t)=>e+t)+n<r});var IT=Symbol.for("preact-signals");function kT(){if(qT>1)qT--;else{var e,t=!1;for(!function(){var e=zT;for(zT=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==LT;){var r=LT;for(LT=void 0,NT++;void 0!==r;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&WT(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(NT=0,qT--,t)throw e}}function DT(e){if(qT>0)return e();_T=++jT,qT++;try{return e()}finally{kT()}}var TT=void 0;function OT(e){var t=TT;TT=void 0;try{return e()}finally{TT=t}}var LT=void 0,qT=0,NT=0,jT=0,_T=0,zT=void 0,FT=0;function $T(e){if(void 0!==TT){var t=e.n;if(void 0===t||t.t!==TT)return t={i:0,S:e,p:TT.s,n:void 0,t:TT,e:void 0,x:void 0,r:t},void 0!==TT.s&&(TT.s.n=t),TT.s=t,e.n=t,32&TT.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=TT.s,t.n=void 0,TT.s.n=t,TT.s=t),t}}function HT(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 BT(e,t){return new HT(e,t)}function WT(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 VT(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function UT(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function GT(e,t){HT.call(this,void 0),this.x=e,this.s=void 0,this.g=FT-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 YT(e,t){return new GT(e,t)}function KT(e){var t=e.m;if(e.m=void 0,"function"==typeof t){qT++;var r=TT;TT=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,XT(e),t}finally{TT=r,kT()}}}function XT(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,KT(e)}function JT(e){if(TT!==this)throw new Error("Out-of-order effect");UT(this),TT=e,this.f&=-2,8&this.f&&XT(this),kT()}function ZT(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 QT(e,t){var r=new ZT(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}HT.prototype.brand=IT,HT.prototype.h=function(){return!0},HT.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:OT(function(){var e;null==(e=t.W)||e.call(t)}))},HT.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&OT(function(){var e;null==(e=t.Z)||e.call(t)}))}},HT.prototype.subscribe=function(e){var t=this;return QT(function(){var r=t.value,n=TT;TT=void 0;try{e(r)}finally{TT=n}},{name:"sub"})},HT.prototype.valueOf=function(){return this.value},HT.prototype.toString=function(){return this.value+""},HT.prototype.toJSON=function(){return this.value},HT.prototype.peek=function(){var e=TT;TT=void 0;try{return this.value}finally{TT=e}},Object.defineProperty(HT.prototype,"value",{get:function(){var e=$T(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(NT>100)throw new Error("Cycle detected");!function(e){0!==qT&&0===NT&&e.l!==_T&&(e.l=_T,zT={S:e,v:e.v,i:e.i,o:zT})}(this),this.v=e,this.i++,FT++,qT++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{kT()}}}}),GT.prototype=new HT,GT.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===FT)return!0;if(this.g=FT,this.f|=1,this.i>0&&!WT(this))return this.f&=-2,!0;var e=TT;try{VT(this),TT=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 TT=e,UT(this),this.f&=-2,!0},GT.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)}HT.prototype.S.call(this,e)},GT.prototype.U=function(e){if(void 0!==this.t&&(HT.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)}},GT.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(GT.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=$T(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),ZT.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()}},ZT.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,KT(this),VT(this),qT++;var e=TT;return TT=this,JT.bind(this,e)},ZT.prototype.N=function(){2&this.f||(this.f|=2,this.u=LT,LT=this)},ZT.prototype.d=function(){this.f|=8,1&this.f||XT(this)},ZT.prototype.dispose=function(){this.d()};var eO,tO,rO,nO,oO,iO,aO,sO,lO,uO,cO,dO,pO,fO,hO,mO,gO,bO,vO,yO,xO=Object.create,SO=Object.defineProperty,wO=Object.defineProperties,CO=Object.getOwnPropertyDescriptor,EO=Object.getOwnPropertyDescriptors,RO=Object.getOwnPropertySymbols,AO=Object.prototype.hasOwnProperty,MO=Object.prototype.propertyIsEnumerable,PO=e=>{throw TypeError(e)},IO=(e,t,r)=>t in e?SO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kO=(e,t)=>SO(e,"name",{value:t,configurable:!0}),DO=["class","method","getter","setter","accessor","field","value","get","set"],TO=e=>void 0!==e&&"function"!=typeof e?PO("Function expected"):e,OO=(e,t,r,n,o)=>({kind:DO[e],name:t,metadata:n,addInitializer:e=>r._?PO("Already initialized"):o.push(TO(e||null))}),LO=(e,t)=>{return IO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},qO=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},NO=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=DO[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)&&CO(d<4?o:{get[r](){return zO(this,i)},set[r](e){return $O(this,i,e)}},r));d?f&&d<4&&kO(i,(d>2?"set ":d>1?"get ":"")+r):kO(o,r);for(var y=n.length-1;y>=0;y--)u=OO(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>_O(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?zO:HO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>$O(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?TO(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?PO("Object expected"):(TO(a=s.get)&&(v.get=a),TO(a=s.set)&&(v.set=a),TO(a=s.init)&&g.unshift(a));return d||LO(e,o),v&&SO(o,r,v),f?4^d?i:v:o},jO=(e,t,r)=>t.has(e)||PO("Cannot "+r),_O=(e,t)=>Object(t)!==t?PO('Cannot use the "in" operator on this value'):e.has(t),zO=(e,t,r)=>(jO(e,t,"read from private field"),r?r.call(e):t.get(e)),FO=(e,t,r)=>t.has(e)?PO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),$O=(e,t,r,n)=>(jO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),HO=(e,t,r)=>(jO(e,t,"access private method"),r);function BO(e,t){if(t){let r;return YT(()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)})}return YT(e)}function WO(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,r)=>!WO(e,t[r]))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some(r=>!WO(e[r],t[r]));return!o}return!1}function VO({get:e},t){return{init:e=>BT(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function UO(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=BO(e.bind(this)),r.set(this,t)),t.value}}function GO(e=!0){return function(t,r){r.addInitializer(function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>wO(e,EO(t)))(((e,t)=>{for(var r in t||(t={}))AO.call(t,r)&&IO(e,r,t[r]);if(RO)for(var r of RO(t))MO.call(t,r)&&IO(e,r,t[r]);return e})({},n),{enumerable:e}))})}}function YO(...e){const t=e.map(e=>QT(e));return()=>t.forEach(e=>e())}iO=[VO],oO=[VO],nO=[VO],rO=[GO()],tO=[GO()],eO=[GO()];var KO,XO=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,qO(aO,5,this),FO(this,dO),FO(this,sO,qO(aO,8,this)),qO(aO,11,this),FO(this,pO,qO(aO,12,this)),qO(aO,15,this),FO(this,gO,qO(aO,16,this)),qO(aO,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return zO(this,dO,vO)}get initial(){return zO(this,dO,uO)}get previous(){return zO(this,dO,hO)}set current(e){const t=OT(()=>zO(this,dO,vO));e&&t&&this.equals(t,e)||DT(()=>{zO(this,dO,uO)||$O(this,dO,e,cO),$O(this,dO,t,mO),$O(this,dO,e,yO)})}reset(e=this.defaultValue){DT(()=>{$O(this,dO,void 0,mO),$O(this,dO,e,cO),$O(this,dO,e,yO)})}};function JO(e){return OT(()=>{const t={};for(const r in e)t[r]=e[r];return t})}aO=[,,,xO(null)],sO=new WeakMap,dO=new WeakSet,pO=new WeakMap,gO=new WeakMap,lO=NO(aO,20,"#initial",iO,dO,sO),uO=lO.get,cO=lO.set,fO=NO(aO,20,"#previous",oO,dO,pO),hO=fO.get,mO=fO.set,bO=NO(aO,20,"#current",nO,dO,gO),vO=bO.get,yO=bO.set,NO(aO,2,"current",rO,XO),NO(aO,2,"initial",tO,XO),NO(aO,2,"previous",eO,XO),LO(aO,XO);KO=new WeakMap;var ZO,QO,eL,tL,rL,nL=Object.create,oL=Object.defineProperty,iL=Object.getOwnPropertyDescriptor,aL=Object.getOwnPropertySymbols,sL=Object.prototype.hasOwnProperty,lL=Object.prototype.propertyIsEnumerable,uL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),cL=e=>{throw TypeError(e)},dL=Math.pow,pL=(e,t,r)=>t in e?oL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fL=["class","method","getter","setter","accessor","field","value","get","set"],hL=e=>void 0!==e&&"function"!=typeof e?cL("Function expected"):e,mL=(e,t,r,n,o)=>({kind:fL[e],name:t,metadata:n,addInitializer:e=>r._?cL("Already initialized"):o.push(hL(e||null))}),gL=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=fL[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,iL(o,r)),h=n.length-1;h>=0;h--)(l=mL(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,hL(a)&&(f[d]=a);return f&&oL(o,r,f),o},bL=(e,t,r)=>t.has(e)||cL("Cannot "+r),vL=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},yL=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))sL.call(t,r)&&pL(e,r,t[r]);if(aL)for(var r of aL(t))lL.call(t,r)&&pL(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new vL((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return vL.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var xL,SL=class extends(eL=XO,QO=[UO],ZO=[UO],eL){constructor(e){var t,r,n;super(vL.from(e),(e,t)=>vL.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(rL,5,this),t=this,n=0,(r=tL).has(t)?cL("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return vL.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=vL.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(bL(a=this,s=tL,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);DT(()=>{((e,t,r)=>{bL(e,t,"write to private field"),t.set(e,r)})(this,tL,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(vL.from(e)),this.velocity={x:0,y:0}}};function wL({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(dL(n,2)+dL(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}rL=(e=>{var t;return[,,,nL(null!=(t=null==e?void 0:e[uL("metadata")])?t:null)]})(eL),tL=new WeakMap,gL(rL,2,"delta",QO,SL),gL(rL,2,"direction",ZO,SL),xL=rL,pL(SL,uL("metadata"),xL[3]);var CL,EL,RL,AL,ML=(e=>(e.Horizontal="x",e.Vertical="y",e))(ML||{}),PL=Object.values(ML),IL=Object.create,kL=Object.defineProperty,DL=Object.defineProperties,TL=Object.getOwnPropertyDescriptor,OL=Object.getOwnPropertyDescriptors,LL=Object.getOwnPropertySymbols,qL=Object.prototype.hasOwnProperty,NL=Object.prototype.propertyIsEnumerable,jL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),_L=e=>{throw TypeError(e)},zL=(e,t,r)=>t in e?kL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,FL=(e,t)=>{for(var r in t||(t={}))qL.call(t,r)&&zL(e,r,t[r]);if(LL)for(var r of LL(t))NL.call(t,r)&&zL(e,r,t[r]);return e},$L=(e,t)=>DL(e,OL(t)),HL=(e,t)=>kL(e,"name",{value:t,configurable:!0}),BL=(e,t)=>{var r={};for(var n in e)qL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&LL)for(var n of LL(e))t.indexOf(n)<0&&NL.call(e,n)&&(r[n]=e[n]);return r},WL=e=>{var t;return[,,,IL(null!=(t=null==e?void 0:e[jL("metadata")])?t:null)]},VL=["class","method","getter","setter","accessor","field","value","get","set"],UL=e=>void 0!==e&&"function"!=typeof e?_L("Function expected"):e,GL=(e,t,r,n,o)=>({kind:VL[e],name:t,metadata:n,addInitializer:e=>r._?_L("Already initialized"):o.push(UL(e||null))}),YL=(e,t)=>zL(t,jL("metadata"),e[3]),KL=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},XL=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=VL[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)&&TL(d<4?o:{get[r](){return QL(this,i)},set[r](e){return tq(this,i,e)}},r));d?f&&d<4&&HL(i,(d>2?"set ":d>1?"get ":"")+r):HL(o,r);for(var y=n.length-1;y>=0;y--)u=GL(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>ZL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?QL:rq)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>tq(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?UL(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?_L("Object expected"):(UL(a=s.get)&&(v.get=a),UL(a=s.set)&&(v.set=a),UL(a=s.init)&&g.unshift(a));return d||YL(e,o),v&&kL(o,r,v),f?4^d?i:v:o},JL=(e,t,r)=>t.has(e)||_L("Cannot "+r),ZL=(e,t)=>Object(t)!==t?_L('Cannot use the "in" operator on this value'):e.has(t),QL=(e,t,r)=>(JL(e,t,"read from private field"),r?r.call(e):t.get(e)),eq=(e,t,r)=>t.has(e)?_L("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),tq=(e,t,r,n)=>(JL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),rq=(e,t,r)=>(JL(e,t,"access private method"),r);function nq(e,t){return{plugin:e,options:t}}function oq(e){return t=>nq(e,t)}function iq(e){return"function"==typeof e?{plugin:e,options:void 0}:e}CL=[VO];var aq=class{constructor(e,t){this.manager=e,this.options=t,eq(this,RL,KL(EL,8,this,!1)),KL(EL,11,this),eq(this,AL,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return OT(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=QT(e.bind(this));return QL(this,AL).add(t),t}destroy(){QL(this,AL).forEach(e=>e())}static configure(e){return nq(this,e)}};EL=WL(null),RL=new WeakMap,AL=new WeakMap,XL(EL,4,"disabled",CL,aq,RL),YL(EL,aq);var sq,lq=class extends aq{},uq=class{constructor(e){this.manager=e,this.instances=new Map,eq(this,sq,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(iq).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),r=t.map(({plugin:e})=>e);for(const e of QL(this,sq))if(!r.includes(e)){if(e.prototype instanceof lq)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);tq(this,sq,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function cq(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}sq=new WeakMap;var dq,pq,fq=[],hq=class extends aq{constructor(e){super(e),eq(this,dq),eq(this,pq),this.computeCollisions=this.computeCollisions.bind(this),tq(this,pq,BT(fq)),this.destroy=YO(()=>{const e=this.computeCollisions(),t=OT(()=>this.manager.dragOperation.position.current);if(e!==fq){const e=QL(this,dq);if(tq(this,dq,t),e&&t.x==e.x&&t.y==e.y)return}else tq(this,dq,void 0);QL(this,pq).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){OT(()=>{e?QL(this,pq).value=this.computeCollisions():tq(this,dq,void 0)})}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return fq;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=OT(()=>e({droppable:i,dragOperation:n}));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?fq:(s.sort(cq),s)}get collisions(){return QL(this,pq).value}};dq=new WeakMap,pq=new WeakMap;var mq=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},gq=class extends mq{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function bq(e,t=!0){let r=!1;return $L(FL({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var vq,yq,xq,Sq,wq,Cq,Eq,Rq,Aq,Mq=class extends lq{constructor(e){super(e);let t=[];this.destroy=YO(()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())},()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=bq({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;OT(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{r.enable()}))})})}},Pq=(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))(Pq||{}),Iq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(Iq||{});Eq=[VO],Cq=[UO],wq=[UO],Sq=[UO],xq=[UO],yq=[UO],vq=[UO];var kq=class{constructor(){KL(Rq,5,this),eq(this,Aq,KL(Rq,8,this,"idle")),KL(Rq,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}};Rq=WL(null),Aq=new WeakMap,XL(Rq,4,"value",Eq,kq,Aq),XL(Rq,2,"current",Cq,kq),XL(Rq,2,"idle",wq,kq),XL(Rq,2,"initializing",Sq,kq),XL(Rq,2,"initialized",xq,kq),XL(Rq,2,"dragging",yq,kq),XL(Rq,2,"dropped",vq,kq),YL(Rq,kq);var Dq,Tq,Oq,Lq,qq,Nq,jq,_q,zq,Fq=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 OT(()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=bq({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then(()=>n.defaultPrevented)})}start(e){return OT(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;DT(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)});const i=bq({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))}),r)})}move(e){return OT(()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=bq({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l})})}stop(e={}){return OT(()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{n.status.set("dropped");const e=OT(()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)}),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=QT(()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())})}else this.manager.renderer.rendering.then(t)})};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,r)=>{e.resume=t,e.abort=r}),e}}),i?i.then(a).catch(()=>n.reset()):a()})}};Lq=[VO],Oq=[VO],Tq=[VO],Dq=[VO];var $q=class{constructor(e,t){eq(this,Nq,KL(qq,8,this)),KL(qq,11,this),eq(this,jq,KL(qq,12,this)),KL(qq,15,this),eq(this,_q,KL(qq,16,this)),KL(qq,19,this),eq(this,zq,KL(qq,20,this)),KL(qq,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}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)}};qq=WL(null),Nq=new WeakMap,jq=new WeakMap,_q=new WeakMap,zq=new WeakMap,XL(qq,4,"manager",Lq,$q,Nq),XL(qq,4,"id",Oq,$q,jq),XL(qq,4,"data",Tq,$q,_q),XL(qq,4,"disabled",Dq,$q,zq),YL(qq,$q);var Hq,Bq,Wq,Vq,Uq,Gq,Yq,Kq,Xq,Jq,Zq,Qq,eN,tN,rN,nN,oN,iN,aN,sN,lN,uN,cN,dN,pN=class{constructor(){this.map=BT(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=YO(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},fN=class extends(Yq=$q,Gq=[VO],Uq=[VO],Vq=[VO],Wq=[UO],Bq=[UO],Hq=[UO],Yq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=BL(r,["modifiers","type","sensors"]);super(a,t),KL(Kq,5,this),eq(this,Xq,KL(Kq,8,this)),KL(Kq,11,this),eq(this,Jq,KL(Kq,12,this)),KL(Kq,15,this),eq(this,Zq,KL(Kq,16,this,this.isDragSource?"dragging":"idle")),KL(Kq,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}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}};Kq=WL(Yq),Xq=new WeakMap,Jq=new WeakMap,Zq=new WeakMap,XL(Kq,4,"type",Gq,fN,Xq),XL(Kq,4,"modifiers",Uq,fN,Jq),XL(Kq,4,"status",Vq,fN,Zq),XL(Kq,2,"isDropping",Wq,fN),XL(Kq,2,"isDragging",Bq,fN),XL(Kq,2,"isDragSource",Hq,fN),YL(Kq,fN);var hN=class extends(iN=$q,oN=[VO],nN=[VO],rN=[VO],tN=[VO],eN=[VO],Qq=[UO],iN){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(BL(r,["accept","collisionDetector","collisionPriority","type"]),t),KL(aN,5,this),eq(this,sN,KL(aN,8,this)),KL(aN,11,this),eq(this,lN,KL(aN,12,this)),KL(aN,15,this),eq(this,uN,KL(aN,16,this)),KL(aN,19,this),eq(this,cN,KL(aN,20,this)),KL(aN,23,this),eq(this,dN,KL(aN,24,this)),KL(aN,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};aN=WL(iN),sN=new WeakMap,lN=new WeakMap,uN=new WeakMap,cN=new WeakMap,dN=new WeakMap,XL(aN,4,"accept",oN,hN,sN),XL(aN,4,"type",nN,hN,lN),XL(aN,4,"collisionDetector",rN,hN,uN),XL(aN,4,"collisionPriority",tN,hN,cN),XL(aN,4,"shape",eN,hN,dN),XL(aN,2,"isDropTarget",Qq,hN),YL(aN,hN);var mN,gN=class extends aq{constructor(e,t){super(e,t),this.manager=e,this.options=t}},bN=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)}},vN=class{constructor(e){this.options=e,eq(this,mN)}set controller(e){tq(this,mN,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=QL(this,mN))||t.activate(e)}};mN=new WeakMap;var yN,xN,SN,wN,CN,EN,RN,AN,MN,PN,IN,kN,DN,TN,ON,LN,qN,NN,jN,_N=class extends aq{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},zN=class{constructor(e){this.draggables=new pN,this.droppables=new pN,this.plugins=new uq(e),this.sensors=new uq(e),this.modifiers=new uq(e)}register(e,t){if(e instanceof fN)return this.draggables.register(e.id,e);if(e instanceof hN)return this.droppables.register(e.id,e);if(e.prototype instanceof _N)return this.modifiers.register(e,t);if(e.prototype instanceof gN)return this.sensors.register(e,t);if(e.prototype instanceof aq)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof $q)return e instanceof fN?this.draggables.unregister(e.id,e):e instanceof hN?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof _N)return this.modifiers.unregister(e);if(e.prototype instanceof gN)return this.sensors.unregister(e);if(e.prototype instanceof aq)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()}};MN=[UO],AN=[VO],RN=[VO],EN=[VO],CN=[VO],wN=[VO],SN=[UO],xN=[UO],yN=[UO];var FN=class{constructor(e){KL(DN,5,this),eq(this,PN),eq(this,IN),eq(this,kN,new XO(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new kq,eq(this,TN,KL(DN,8,this,!1)),KL(DN,11,this),eq(this,ON,KL(DN,12,this,null)),KL(DN,15,this),eq(this,LN,KL(DN,16,this,null)),KL(DN,19,this),eq(this,qN,KL(DN,20,this,null)),KL(DN,23,this),eq(this,NN,KL(DN,24,this,[])),KL(DN,27,this),this.position=new SL({x:0,y:0}),eq(this,jN,{x:0,y:0}),tq(this,PN,e)}get shape(){const{current:e,initial:t,previous:r}=QL(this,kN);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?QL(this,kN).current=e:QL(this,kN).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=QL(this,PN).registry.draggables.get(t);return r&&tq(this,IN,r),null!=(e=null!=r?r:QL(this,IN))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=QL(this,PN).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply($L(FL({},this.snapshot()),{transform:r}));return tq(this,jN,r),r}snapshot(){return OT(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:QL(this,jN),shape:this.shape?JO(this.shape):null,position:JO(this.position),status:JO(this.status),canceled:this.canceled}))}reset(){DT(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,QL(this,kN).reset(),this.position.reset({x:0,y:0}),tq(this,jN,{x:0,y:0}),this.modifiers=[]})}};DN=WL(null),PN=new WeakMap,IN=new WeakMap,kN=new WeakMap,TN=new WeakMap,ON=new WeakMap,LN=new WeakMap,qN=new WeakMap,NN=new WeakMap,jN=new WeakMap,XL(DN,2,"shape",MN,FN),XL(DN,4,"canceled",AN,FN,TN),XL(DN,4,"activatorEvent",RN,FN,ON),XL(DN,4,"sourceIdentifier",EN,FN,LN),XL(DN,4,"targetIdentifier",CN,FN,qN),XL(DN,4,"modifiers",wN,FN,NN),XL(DN,2,"source",SN,FN),XL(DN,2,"target",xN,FN),XL(DN,2,"transform",yN,FN),YL(DN,FN);var $N={get rendering(){return Promise.resolve()}};function HN(e,t){return"function"==typeof e?e(t):null!=e?e:t}var BN=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=HN(r.plugins,[]),o=HN(r.sensors,[]),i=HN(r.modifiers,[]),a=null!=(t=r.renderer)?t:$N,s=new gq(this),l=new zN(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new Fq(this),this.dragOperation=new FN(this),this.collisionObserver=new hq(this),this.plugins=[Mq,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=YO(()=>{var e,t,r;const n=OT(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of n)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:r}=iq(e);return new t(this,r)}))?r:o});this.destroy=()=>{c(),u()}}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}},WN=e=>{throw TypeError(e)},VN=(e,t,r)=>t.has(e)||WN("Cannot "+r),UN=(e,t,r)=>(VN(e,t,"read from private field"),t.get(e)),GN=(e,t,r)=>t.has(e)?WN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),YN=(e,t,r,n)=>(VN(e,t,"write to private field"),t.set(e,r),r),KN=(e,t,r)=>(VN(e,t,"access private method"),r);function XN(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function JN(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(XN(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function ZN(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function QN(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function ej(e){return"nodeType"in e}function tj(e){var t,r,n;return e?QN(e)?e:ej(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function rj(e){const{Document:t}=tj(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function nj(e){return!(!e||QN(e))&&(e instanceof tj(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function oj(e){return e instanceof tj(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function ij(e){return e?QN(e)?e.document:ej(e)?rj(e)?e:nj(e)||oj(e)?e.ownerDocument:document:document:document}function aj(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function sj(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!aj(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.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:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,b=r*g,v=r*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function lj(e){return{x:e.clientX,y:e.clientY}}var uj="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function cj(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...cj(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...cj(o.document,t))}}catch(e){}return r}function dj(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function pj(){var e,t;const r=dj()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function fj(e){return!(!e||!ej(e))&&e instanceof tj(e).ShadowRoot}function hj(e){if(e&&ej(e)){let t=e.getRootNode();if(fj(t))return t;if(t instanceof Document)return t}return ij(e)}function mj(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function gj(e){return"value"in e}function bj(e){return"CANVAS"===e.tagName}function vj(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return vj(e,{x:t-o,y:r-i})}}return n}var yj=new WeakMap;var xj=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function Sj(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function wj(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}(()=>{e.apply(a,i),o=r()},t-(r()-o))):(e.apply(a,i),o=r())}}var Cj,Ej=uj?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Rj=class extends Ej{constructor(e){super(t=>{UN(this,Cj)?e(t,this):YN(this,Cj,!0)}),GN(this,Cj,!1)}};Cj=new WeakMap;var Aj,Mj,Pj,Ij,kj,Dj,Tj,Oj,Lj,qj,Nj,jj=Array.from({length:100},(e,t)=>t/100),_j=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,GN(this,Lj),this.disconnect=()=>{var e,t,r;YN(this,Tj,!0),null==(e=UN(this,Pj))||e.disconnect(),null==(t=UN(this,Ij))||t.disconnect(),UN(this,kj).disconnect(),null==(r=UN(this,Dj))||r.remove()},GN(this,Aj,!0),GN(this,Mj),GN(this,Pj),GN(this,Ij),GN(this,kj),GN(this,Dj),GN(this,Tj,!1),GN(this,Oj,wj(()=>{var e,t,r;const{element:n}=this;if(null==(e=UN(this,Ij))||e.disconnect(),UN(this,Tj)||!UN(this,Aj)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=sj(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,YN(this,Ij,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:yL.intersectionRatio(r,sj(n)))&&UN(this,Oj).call(this)},{threshold:jj,rootMargin:m,root:o})),UN(this,Ij).observe(n),KN(this,Lj,qj).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),YN(this,Aj,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=sj(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(YN(this,Dj,document.createElement("div")),UN(this,Dj).style.background="rgba(0,0,0,0.15)",UN(this,Dj).style.position="fixed",UN(this,Dj).style.pointerEvents="none",o.body.appendChild(UN(this,Dj))),YN(this,kj,new IntersectionObserver(t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=UN(this,Aj);YN(this,Aj,a),(s||l)&&(u&&!a?(null==(r=UN(this,Ij))||r.disconnect(),this.callback(null),null==(n=UN(this,Pj))||n.disconnect(),YN(this,Pj,void 0),UN(this,Dj)&&(UN(this,Dj).style.visibility="hidden")):UN(this,Oj).call(this),a&&!UN(this,Pj)&&(YN(this,Pj,new Rj(UN(this,Oj))),UN(this,Pj).observe(e)))},{threshold:jj,root:o})),UN(this,Aj)&&!r.skipInitial&&this.callback(this.boundingClientRect),UN(this,kj).observe(e)}};Aj=new WeakMap,Mj=new WeakMap,Pj=new WeakMap,Ij=new WeakMap,kj=new WeakMap,Dj=new WeakMap,Tj=new WeakMap,Oj=new WeakMap,Lj=new WeakSet,qj=function(){UN(this,Tj)||(KN(this,Lj,Nj).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,UN(this,Mj))||(this.callback(this.boundingClientRect),YN(this,Mj,this.boundingClientRect)))},Nj=function(){if(UN(this,Dj)){const{top:e,left:t,width:r,height:n}=sj(this.element);UN(this,Dj).style.overflow="hidden",UN(this,Dj).style.visibility="visible",UN(this,Dj).style.top=`${Math.floor(e)}px`,UN(this,Dj).style.left=`${Math.floor(t)}px`,UN(this,Dj).style.width=`${Math.floor(r)}px`,UN(this,Dj).style.height=`${Math.floor(n)}px`}};var zj,Fj,$j,Hj,Bj=new WeakMap,Wj=new WeakMap;function Vj(e,t){let r=Bj.get(e);if(!r){const t=new _j(e,t=>{const r=Bj.get(e);r&&r.callbacks.forEach(e=>e(t))},{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),Bj.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(Bj.delete(e),r.disconnect())}}var Uj=class{constructor(e,t,r){this.callback=t,GN(this,zj),GN(this,Fj,!1),GN(this,$j),GN(this,Hj,wj(e=>{if(!UN(this,Fj)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of UN(this,$j))if(e.target.contains(t)){this.callback(UN(this,zj).boundingClientRect);break}},75));const n=function(e){const t=new Set;let r=Sj(e);for(;r;)t.add(r),r=Sj(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=Vj(n,t);r.add(e)}return()=>r.forEach(e=>e())}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!Wj.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),Wj.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=Wj.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),Wj.delete(n))}):()=>{}}(e,UN(this,Hj));YN(this,$j,n),YN(this,zj,new _j(e,t,r)),this.disconnect=()=>{UN(this,Fj)||(YN(this,Fj,!0),o(),i(),UN(this,zj).disconnect())}}};function Gj(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function Yj(e){try{Gj(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function Kj(e){return!(!uj||!e)&&e===ij(e).scrollingElement}function Xj(e){var t,r;const n=tj(e),o=Kj(e)?function(e){var t,r,n,o;const{documentElement:i}=ij(e),a=tj(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):ZN(e),i=n.visualViewport,a=Kj(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function Jj(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=Xj(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}zj=new WeakMap,Fj=new WeakMap,$j=new WeakMap,Hj=new WeakMap;var Zj=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))}},Qj=new Zj(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),e_=new Zj(e=>setTimeout(e,50)),t_=new Map,r_=t_.clear.bind(t_);function n_(e,t=!1){if(!t)return o_(e);let r=t_.get(e);return r||(r=o_(e),t_.set(e,r),e_.schedule(r_),r)}function o_(e){return tj(e).getComputedStyle(e)}var i_={excludeElement:!0,escapeShadowDOM:!0};function a_(e,t=i_){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(rj(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&fj(a))return t(a.host);if(!nj(a))return oj(a)?t(a.parentElement):i;if(i.has(a))return i;const s=n_(a,!0);if(n&&a===e||function(e,t=n_(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&r.test(n)})}(a,s)&&i.add(a),function(e,t=n_(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 s_(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=Sj(e);for(;n;){if(n===t)return r;const e=ZN(n),{x:o,y:i}=l_(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=Sj(n)}return r}function l_(e,t=ZN(e)){const r=Math.round(t.width),n=Math.round(t.height);if(nj(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=n_(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function u_(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function c_(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=u_(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var d_=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(d_||{}),p_={x:.2,y:.2},f_={x:10,y:10};function h_(e,t,r,n=25,o=p_,i=f_){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=Xj(e),f=s_(e),h=c_(n_(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new yL(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(!u||g&&!c)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function m_(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!nj(e))return e.scrollIntoView();var n=function(e){const[t]=a_(e,{limit:1});return null!=t?t:null}(e);if(!nj(n))return;const o=n_(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function g_({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function b_(e,t=n_(e).translate,r=!0){if(r){const t=JN(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=u_(e);if(t)return t}}}if(t){const e=u_(t);if(e)return e}return{x:0,y:0,z:0}}var v_=new Zj(e=>setTimeout(e,0)),y_=new Map,x_=y_.clear.bind(y_);function S_(e,t){const r=function(e){const t=e.ownerDocument;let r=y_.get(t);if(r)return r;r=t.getAnimations(),y_.set(t,r),v_.schedule(x_);const n=r.filter(t=>XN(t.effect)&&t.effect.target===e);return y_.set(e,n),r}(e).filter(e=>{var r,n;if(XN(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some(e=>{for(const r of t.properties)if(e[r])return!0})}}).map(e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0});if(r.length>0)return()=>r.forEach(e=>null==e?void 0:e())}var w_=class extends yL{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=s_(e),ignoreTransforms:s,getBoundingClientRect:l=ZN}=t,u=S_(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||dj())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=n_(e),b=c_(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=XN(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=c_({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,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 C_(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 E_=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(C_(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(C_(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(C_(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function R_(e){return!!e&&(e instanceof tj(e).Element||ej(e)&&e.nodeType===Node.ELEMENT_NODE)}function A_(e){if(!e)return!1;const{KeyboardEvent:t}=tj(e.target);return e instanceof t}var M_={};function P_(e){const t=null==M_[e]?0:M_[e]+1;return M_[e]=t,`${e}-${t}`}var I_=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/vL.distance(t.shape.center,r),type:Iq.PointerIntersection,priority:Pq.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=vL.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:Iq.ShapeIntersection,priority:Pq.Normal}}return null})(e)},k_=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?yL.from(n.current.boundingRectangle).corners:void 0,a=yL.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+vL.distance(vL.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)},0),s=a/4;return{id:r.id,value:1/s,type:Iq.Collision,priority:Pq.Normal}},D_=Object.create,T_=Object.defineProperty,O_=Object.defineProperties,L_=Object.getOwnPropertyDescriptor,q_=Object.getOwnPropertyDescriptors,N_=Object.getOwnPropertySymbols,j_=Object.prototype.hasOwnProperty,__=Object.prototype.propertyIsEnumerable,z_=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),F_=e=>{throw TypeError(e)},$_=(e,t,r)=>t in e?T_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H_=(e,t)=>{for(var r in t||(t={}))j_.call(t,r)&&$_(e,r,t[r]);if(N_)for(var r of N_(t))__.call(t,r)&&$_(e,r,t[r]);return e},B_=(e,t)=>O_(e,q_(t)),W_=(e,t)=>T_(e,"name",{value:t,configurable:!0}),V_=(e,t)=>{var r={};for(var n in e)j_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&N_)for(var n of N_(e))t.indexOf(n)<0&&__.call(e,n)&&(r[n]=e[n]);return r},U_=e=>{var t;return[,,,D_(null!=(t=null==e?void 0:e[z_("metadata")])?t:null)]},G_=["class","method","getter","setter","accessor","field","value","get","set"],Y_=e=>void 0!==e&&"function"!=typeof e?F_("Function expected"):e,K_=(e,t,r,n,o)=>({kind:G_[e],name:t,metadata:n,addInitializer:e=>r._?F_("Already initialized"):o.push(Y_(e||null))}),X_=(e,t)=>$_(t,z_("metadata"),e[3]),J_=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},Z_=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=G_[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)&&L_(d<4?o:{get[r](){return tz(this,i)},set[r](e){return nz(this,i,e)}},r));d?f&&d<4&&W_(i,(d>2?"set ":d>1?"get ":"")+r):W_(o,r);for(var y=n.length-1;y>=0;y--)u=K_(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>ez(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?tz:oz)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>nz(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?Y_(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?F_("Object expected"):(Y_(a=s.get)&&(v.get=a),Y_(a=s.set)&&(v.set=a),Y_(a=s.init)&&g.unshift(a));return d||X_(e,o),v&&T_(o,r,v),f?4^d?i:v:o},Q_=(e,t,r)=>t.has(e)||F_("Cannot "+r),ez=(e,t)=>Object(t)!==t?F_('Cannot use the "in" operator on this value'):e.has(t),tz=(e,t,r)=>(Q_(e,t,"read from private field"),r?r.call(e):t.get(e)),rz=(e,t,r)=>t.has(e)?F_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),nz=(e,t,r,n)=>(Q_(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),oz=(e,t,r)=>(Q_(e,t,"access private method"),r),iz="button",az="draggable",sz="dnd-kit-description",lz="dnd-kit-announcement",uz={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."},cz={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function dz(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var pz=["dragover","dragmove"],fz=class extends aq{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=sz,announcement:o=lz}={},announcements:i=cz,screenReaderInstructions:a=uz,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:P_(n),u=r?`${o}-${r}`:P_(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>Qj.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,pz.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(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}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(v),dz(r)&&!dj()||r.hasAttribute("tabindex")||y.add(()=>r.setAttribute("tabindex","0")),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add(()=>r.setAttribute("role",iz)),r.hasAttribute("aria-roledescription")||y.add(()=>r.setAttribute("aria-roledescription",az)),r.hasAttribute("aria-describedby")||y.add(()=>r.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add(()=>r.setAttribute(e,n))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add(()=>r.setAttribute("aria-disabled",e))}}y.size>0&&Qj.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var hz,mz,gz,bz,vz,yz,xz,Sz,wz,Cz,Ez,Rz,Az,Mz=new Map,Pz=class extends(vz=lq,bz=[VO],gz=[UO],mz=[UO],hz=[UO],vz){constructor(e){super(e),J_(xz,5,this),rz(this,wz),rz(this,yz,new Set),rz(this,Sz,J_(xz,8,this,new Set)),J_(xz,11,this),this.registerEffect(oz(this,wz,Cz))}register(e){return tz(this,yz).add(e),()=>{tz(this,yz).delete(e)}}addRoot(e){return OT(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{OT(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return hj(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return hj(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}};xz=U_(vz),yz=new WeakMap,Sz=new WeakMap,wz=new WeakSet,Cz=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of tz(this,yz))t.push(oz(this,wz,Ez).call(this,r,e));return()=>{for(const e of t)e()}},Ez=function(e,t){let r=Mz.get(e);r||(r=new Map,Mz.set(e,r));let n=r.get(t);if(!n){const o=rj(e)?oz(this,wz,Rz).call(this,e,r,t):oz(this,wz,Az).call(this,e,r,t);if(!o)return()=>{};n=o,r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},Rz=function(e,t,r){const n=e.createElement("style");n.textContent=r,e.head.prepend(n);const o=new MutationObserver(t=>{for(const r of t)for(const t of Array.from(r.removedNodes))if(t===n)return void e.head.prepend(n)});return o.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{o.disconnect(),n.remove(),t.delete(r),0===t.size&&Mz.delete(e)}}},Az=function(e,t,r){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const n=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=n?n:{};if(!o)return null;const i=new o;return i.replaceSync(r),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var n;if(fj(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(r),0===t.size&&Mz.delete(e)}}},Z_(xz,4,"additionalRoots",bz,Pz,Sz),Z_(xz,2,"sourceRoot",gz,Pz),Z_(xz,2,"targetRoot",mz,Pz),Z_(xz,2,"roots",hz,Pz),X_(xz,Pz);var Iz="data-dnd-",kz=`${Iz}dropping`,Dz="--dnd-",Tz=`${Iz}dragging`,Oz=`${Iz}placeholder`,Lz=[Tz,Oz,"popover","aria-pressed","aria-grabbing"],qz=["view-transition-name"],Nz=`\n :is(:root,:host) [${Tz}] {\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(${Dz}top, 0px) !important;\n left: var(${Dz}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Dz}width, auto);\n max-width: var(${Dz}width, auto);\n height: var(${Dz}height, auto);\n max-height: var(${Dz}height, auto);\n transition: var(${Dz}transition) !important;\n }\n\n :is(:root,:host) [${Oz}] {\n transition: none;\n }\n\n :is(:root,:host) [${Oz}='hidden'] {\n visibility: hidden;\n }\n\n [${Tz}] * {\n pointer-events: none !important;\n }\n\n [${Tz}]:not([${kz}]) {\n translate: var(${Dz}translate) !important;\n }\n\n [${Tz}][style*='${Dz}scale'] {\n scale: var(${Dz}scale) !important;\n transform-origin: var(${Dz}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${Tz}][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 [${Tz}]::backdrop, [${Iz}overlay]:not([${Tz}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function jz(e,t="hidden"){return OT(()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${Iz}${P_("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach((e,t)=>{const r=n[t];if(gj(e)&&gj(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),bj(e)&&bj(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}}),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),yj.set(a,i),r.push(()=>{yj.delete(a),n.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(Oz,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function _z(e,t){return e===t||Sj(e)===Sj(t)}function zz(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&R_(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>Yj(t))}function Fz(e){return"TR"===e.tagName}var $z,Hz,Bz,Wz,Vz,Uz,Gz,Yz=250,Kz="ease";var Xz=class extends(Hz=aq,$z=[VO],Hz){constructor(e,t){super(e,t),rz(this,Vz),rz(this,Wz,J_(Bz,8,this)),J_(Bz,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(Pz),n=null==r?void 0:r.register(Nz);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(oz(this,Vz,Uz).bind(this,r)),this.registerEffect(oz(this,Vz,Gz))}};Bz=U_(Hz),Wz=new WeakMap,Vz=new WeakSet,Uz=function(e){const{overlay:t}=this;if(!t||!e)return;const r=hj(t);return r?e.addRoot(r):void 0},Gz=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=s_(f),m=s_(c),g=!_z(c,f),b=new w_(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=b;g&&(x/=v,S/=y);const E=new E_(f),{transition:R,translate:A,boxSizing:M,paddingBlockStart:P,paddingBlockEnd:I,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=n_(c),N="clone"===d,j="content-box"===M,_=j?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=j?parseInt(P)+parseInt(I)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:jz(l,N?"clone":"hidden"),$=OT(()=>A_(o.dragOperation.activatorEvent));if("none"!==A){const e=u_(A);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=OT(()=>s.current);p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:H}=p,B=w*h.scaleY+h.y,W=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:W,y:B},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=H;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-W,U=p.coordinates.y-B,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*H.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*H.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(Tz,"true");const Z=OT(()=>a.transform),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,re=pj();if(E.set({width:x-_,height:S-z,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${v} ${y}`:"","transform-origin":`${100*H.x}% ${100*H.y}%`},Dz),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;Gj(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),Yj(f),f.addEventListener("beforetoggle",zz));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:H,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver(()=>{var e,t;const r=new w_(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=pj();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},Dz),null==(t=se.getElementMutationObserver())||t.takeRecords(),Fz(se.element)&&Fz(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map(e=>e.style.width));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new w_(se.feedbackElement)}));var se;const le=new w_(f);OT(()=>a.shape=le);const ue=tj(f),ce=e=>{this.manager.actions.stop({event:e})},de=mj(ue);$&&ue.addEventListener("resize",ce),"idle"===OT(()=>l.status)&&requestAnimationFrame(()=>l.status="dragging"),F&&(ae.observe(F),ne=function(e,t,r){const n=new MutationObserver(n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||Lz.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(C_(e)&&C_(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(qz.includes(e)||e.startsWith(Dz))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)});return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),oe=function(e,t,r){const n=new MutationObserver(n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void Yj(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void Yj(r)}});return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!$||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;nj(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),Gj(f)&&(f.removeEventListener("beforetoggle",zz),f.removeAttribute("popover")),f.removeAttribute(Tz),E.reset(),ie&&Fz(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},me=null==i?void 0:i.dropAnimation,ge=this,be=YO(()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=OT(()=>a.modifiers),l=OT(()=>{var e;return null==(e=a.shape)?void 0:e.current}),u=$&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},Dz),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=vL.delta(o,i);a.shape=yL.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new w_(f);n.current.translate=o}},function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then(()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({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=Yz,easing:s=Kz}=null!=i?i:{};Yj(e.feedbackElement);const[,l]=null!=(t=JN(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:_z(e.feedbackElement,u)?null:void 0},d=new w_(e.feedbackElement,c),p=null!=(n=u_(n_(e.feedbackElement).translate))?n:e.translate,f=new w_(u,c),h=yL.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},Dz),e.feedbackElement.setAttribute(kz,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),g_({element:e.feedbackElement,keyframes:B_(H_(H_({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:mj(tj(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(kz),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({element:c,feedbackElement:f,placeholder:F,translate:t,moved:r,transition:R,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})})}});return()=>{he(),be()}},Z_(Bz,4,"overlay",$z,Xz,Wz),X_(Bz,Xz),Xz.configure=oq(Xz);var Jz,Zz,Qz,eF,tF,rF,nF,oF=Xz,iF=!0;Qz=[VO],eF=d_.Forward,Jz=[VO],Zz=d_.Reverse;var aF=class{constructor(){rz(this,rF,J_(tF,8,this,iF)),J_(tF,11,this),rz(this,nF,J_(tF,12,this,iF)),J_(tF,15,this)}isLocked(e){return e!==d_.Idle&&(null==e?this[d_.Forward]===iF&&this[d_.Reverse]===iF:this[e]===iF)}unlock(e){e!==d_.Idle&&(this[e]=false)}};tF=U_(null),rF=new WeakMap,nF=new WeakMap,Z_(tF,4,eF,Qz,aF,rF),Z_(tF,4,Zz,Jz,aF,nF),X_(tF,aF);var sF,lF,uF,cF,dF,pF,fF=[d_.Forward,d_.Reverse],hF=class{constructor(){this.x=new aF,this.y=new aF}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},mF=class extends aq{constructor(e){super(e);const t=BT(new hF);let r=null;this.signal=t,QT(()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new hF);const{delta:o}=e.dragOperation.position;if(r){const e={x:gF(o.x,r.x),y:gF(o.y,r.y)},n=t.peek();DT(()=>{for(const t of PL)for(const r of fF)e[t]===r&&n[t].unlock(r);t.value=n})}r=o})}get current(){return this.signal.peek()}};function gF(e,t){return Math.sign(e-t)}var bF=class extends(lF=lq,sF=[VO],lF){constructor(e){super(e),rz(this,cF,J_(uF,8,this,!1)),J_(uF,11,this),rz(this,dF),rz(this,pF,()=>{if(!tz(this,dF))return;const{element:e,by:t}=tz(this,dF);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return nz(this,dF,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:vF(n.x),y:vF(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=Jj(e,n);if(r.x||r.y){const{speed:r,direction:s}=h_(e,o,i);if(a)for(const e of PL)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=tz(this,dF))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return nz(this,dF,{element:e,by:{x:a,y:l}}),Qj.schedule(tz(this,pF)),!0}}}}}return nz(this,dF,void 0),!1};let t=null,r=null;const n=BO(()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=vj(hj(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t}),o=BO(()=>{const t=n.value,{documentElement:o}=ij(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=a_(n,{excludeElement:!1});return r=e,e}}if(t){const e=a_(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null},WO);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new mF(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&A_(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function vF(e){return e>0?d_.Forward:e<0?d_.Reverse:d_.Idle}uF=U_(lF),cF=new WeakMap,dF=new WeakMap,pF=new WeakMap,Z_(uF,4,"autoScrolling",sF,bF,cF),X_(uF,bF);var yF,xF=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()}),SF=class extends aq{constructor(e,t){super(e);const r=e.registry.plugins.get(bF);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=QT(()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval(()=>xF.schedule(r.scroll),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}})}},wF={capture:!0,passive:!0},CF=class extends lq{constructor(e){super(e),rz(this,yF),this.handleScroll=()=>{null==tz(this,yF)&&nz(this,yF,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),nz(this,yF,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=QT(()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,wF),()=>{o.removeEventListener("scroll",this.handleScroll,wF)}}})}};yF=new WeakMap;function EF(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var RF,AF=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),MF=class extends gN{constructor(e,t){super(e),this.manager=e,this.options=t,rz(this,RF,[]),this.listeners=new xj,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!R_(e.target))return;if(t.disabled)return;const{keyboardCodes:n=AF.keyboardCodes,preventActivation:o=AF.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=QT(()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{A_(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}});return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),m_(n);const{center:o}=new w_(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=ij(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];tz(this,RF).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=AF.keyboardCodes}=null!=r?r:{};if(kF(e,[...n.end,...n.cancel])){e.preventDefault();const t=kF(e,n.cancel);return void this.handleEnd(e,t)}kF(e,n.up)?this.handleMove("up",e):kF(e,n.down)&&this.handleMove("down",e),kF(e,n.left)?this.handleMove("left",e):kF(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:AF.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(SF);!1===(null==e?void 0:e.disabled)&&(e.disable(),tz(this,RF).push(()=>{e.enable()}))}cleanup(){tz(this,RF).forEach(e=>e()),nz(this,RF,[])}destroy(){this.cleanup(),this.listeners.clear()}};RF=new WeakMap,MF.configure=oq(MF),MF.defaults=AF;var PF,IF=MF;function kF(e,t){return t.includes(e.code)}var DF,TF;PF=new WeakMap;DF=new WeakMap,TF=new WeakMap;var OF=class{};OF.Delay=class extends vN{constructor(){super(...arguments),rz(this,DF),rz(this,TF)}onEvent(e){switch(e.type){case"pointerdown":nz(this,TF,lj(e)),nz(this,DF,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!tz(this,TF))return;const{x:t,y:r}=lj(e);wL({x:t-tz(this,TF).x,y:r-tz(this,TF).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){tz(this,DF)&&(clearTimeout(tz(this,DF)),nz(this,TF,void 0),nz(this,DF,void 0))}},OF.Distance=class extends vN{constructor(){super(...arguments),rz(this,PF)}onEvent(e){switch(e.type){case"pointerdown":nz(this,PF,lj(e));break;case"pointermove":if(!tz(this,PF))return;const{x:t,y:r}=lj(e),n={x:t-tz(this,PF).x,y:r-tz(this,PF).y},{tolerance:o}=this.options;if(o&&wL(n,o))return void this.abort();wL(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){nz(this,PF,void 0)}};var LF,qF=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!R_(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new OF.Delay({value:250,tolerance:5})]:function(e){if(!R_(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new OF.Delay({value:200,tolerance:0})]:[new OF.Delay({value:200,tolerance:10}),new OF.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!R_(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),NF=class extends gN{constructor(e,t){super(e),this.manager=e,this.options=t,rz(this,LF,new Set),this.listeners=new xj,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=qF.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=QT(()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=tj(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&($F(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()});return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!R_(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=qF.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=nj(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=s_(t.element),{x:s,y:l}=lj(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new bN(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=cj(),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:_F,options:{capture:!0}}]);tz(this,LF).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=lj(e),n=s_(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,Qj.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=ij(t.target).body;o.setPointerCapture(t.pointerId);const i=R_(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:_F,options:{passive:!1}},{type:"click",listener:_F},{type:"contextmenu",listener:_F},{type:"keydown",listener:this.handleKeyDown}]);tz(this,LF).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},tz(this,LF).forEach(e=>e()),tz(this,LF).clear()}destroy(){this.cleanup(),this.listeners.clear()}};LF=new WeakMap,NF.configure=oq(NF),NF.defaults=qF;var jF=NF;function _F(e){e.preventDefault()}function zF(){}var FF=new WeakSet;function $F(e){e&&!FF.has(e)&&(e.addEventListener("touchmove",zF,{capture:!1,passive:!1}),FF.add(e))}var HF,BF,WF,VF,UF,GF,YF,KF,XF,JF,ZF,QF,e$,t$,r$,n$,o$,i$,a$={modifiers:[],plugins:[fz,SF,class extends aq{constructor(e,t){super(e,t),this.manager=e;const r=BO(()=>{var e;return ij(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=QT(()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},oF,class extends aq{constructor(e,t){super(e,t),this.manager=e,this.destroy=QT(()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),EF(),document.addEventListener("selectionchange",EF,{capture:!0}),()=>{document.removeEventListener("selectionchange",EF,{capture:!0}),e.remove()}}})}}],sensors:[jF,IF]},s$=class extends BN{constructor(e={}){const t=HN(e.plugins,a$.plugins),r=HN(e.sensors,a$.sensors),n=HN(e.modifiers,a$.modifiers);super(B_(H_({},e),{plugins:[CF,bF,Pz,...t],sensors:r,modifiers:n}))}},l$=class extends(VF=fN,WF=[VO],BF=[VO],HF=[VO],VF){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=V_(r,["element","effects","handle","feedback"]);super(H_({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(iq))?t:[...r.sensors]).map(e=>{const t=e instanceof gN?e:r.registry.register(e.plugin),n=e instanceof gN?void 0:e.options;return t.bind(this,n)});return function(){n.forEach(e=>e())}}]},s),t),rz(this,GF,J_(UF,8,this)),J_(UF,11,this),rz(this,YF,J_(UF,12,this)),J_(UF,15,this),rz(this,KF,J_(UF,16,this)),J_(UF,19,this),this.element=n,this.handle=i,this.feedback=a}};UF=U_(VF),GF=new WeakMap,YF=new WeakMap,KF=new WeakMap,Z_(UF,4,"handle",WF,l$,GF),Z_(UF,4,"element",BF,l$,YF),Z_(UF,4,"feedback",HF,l$,KF),X_(UF,l$);var u$=class extends(ZF=hN,JF=[VO],XF=[VO],ZF){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=V_(r,["element","effects"]);const{collisionDetector:a=I_}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new w_(r),o=OT(()=>this.shape);return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=BT(!1);super(B_(H_({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new Uj(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),rz(this,o$),rz(this,e$,J_(QF,8,this)),J_(QF,11,this),rz(this,i$,J_(QF,12,this)),J_(QF,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){nz(this,o$,e,n$)}get element(){var e;return null!=(e=this.proxy)?e:tz(this,o$,r$)}};function c$(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}QF=U_(ZF),e$=new WeakMap,o$=new WeakSet,i$=new WeakMap,t$=Z_(QF,20,"#element",JF,o$,e$),r$=t$.get,n$=t$.set,Z_(QF,4,"proxy",XF,u$,i$),X_(QF,u$);var d$="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?z:O;function p$(){const e=I(0)[1];return q(()=>{e(e=>e+1)},[e])}function f$(e,t=[],r=!1){const n=k(e);return n.current=e,function(e,t=!1){const r=k(e.peek()),n=k(!1),o=p$();return d$(()=>QT(()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?U(o):o()}}),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(P(()=>BO(()=>n.current()),t),r)}function h$(e,t){const r=k(new Map),n=p$();return d$(()=>{if(e)return QT(()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=OT(()=>n[1]),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?U(n):n())});r.current.clear()},[e]),P(()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e,[e])}function m$(e,t){e()}function g$(e){const t=k(e);return d$(()=>{t.current=e},[e]),t}function b$(e,t,r=O,n=Object.is){const o=k(e);r(()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))},[t,e])}function v$(e,t){const r=k(c$(e));d$(()=>{const n=c$(e);n!==r.current&&(r.current=n,t(n))})}var y$=Object.getOwnPropertySymbols,x$=Object.prototype.hasOwnProperty,S$=Object.prototype.propertyIsEnumerable,w$=new s$,C$=D(w$),E$=_(j(({children:e},t)=>{const[r,n]=I(0),o=k(null),i=k(null),a=P(()=>({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(),n(e=>e+1)})}}),[]);return d$(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,r]),H(t,()=>a),null})),R$=[void 0,WO];function A$(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)x$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&y$)for(var n of y$(e))t.indexOf(n)<0&&S$.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=k(null),{plugins:d,modifiers:p,sensors:f}=u,h=HN(d,a$.plugins),m=HN(f,a$.sensors),g=HN(p,a$.modifiers),b=g$(o),v=g$(i),y=g$(s),x=g$(a),S=g$(l),w=g$(n),C=function(e){const t=k(null);t.current||(t.current=e());return F(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=u.manager)?e:new s$(u)});return O(()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",e=>{const r=b.current;r&&t(()=>r(e,C))}),r.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),r.addEventListener("dragover",e=>{const r=y.current;r&&t(()=>r(e,C))}),r.addEventListener("dragmove",e=>{const r=x.current;r&&t(()=>r(e,C))}),r.addEventListener("dragend",e=>{const r=S.current;r&&t(()=>r(e,C))}),r.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>n.forEach(e=>e())},[C]),b$(h,()=>C&&(C.plugins=h),...R$),b$(m,()=>C&&(C.sensors=m),...R$),b$(g,()=>C&&(C.modifiers=g),...R$),dr.jsxs(C$.Provider,{value:C,children:[dr.jsx(E$,{ref:c,children:r}),r]})}function M$(){return N(C$)}function P$({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=k(null),l=M$(),u=null!=(a=f$(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,c="function"==typeof i?i(u):i;O(()=>{if(!s.current||!l||c)return;const e=l.plugins.find(e=>e instanceof oF);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,c]),O(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof oF);return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0},[l,r]);const d=P(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?I$:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})},[l]);return dr.jsx(C$.Provider,{value:d,children:C(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return dr.jsx(k$,{source:u,children:e});return e}())})}function I$(){return()=>{}}function k$({children:e,source:t}){return e(h$(t))}var D$,T$,O$,L$,q$,N$=Object.create,j$=Object.defineProperty,_$=Object.getOwnPropertyDescriptor,z$=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),F$=e=>{throw TypeError(e)},$$=["class","method","getter","setter","accessor","field","value","get","set"],H$=e=>void 0!==e&&"function"!=typeof e?F$("Function expected"):e,B$=(e,t,r,n,o)=>({kind:$$[e],name:t,metadata:n,addInitializer:e=>r._?F$("Already initialized"):o.push(H$(e||null))}),W$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=$$[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,_$(o,r)),h=n.length-1;h>=0;h--)(l=B$(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,H$(a)&&(f[d]=a);return f&&j$(o,r,f),o},V$=(e,t,r)=>t.has(e)||F$("Cannot "+r),U$=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},G$=class extends(O$=XO,T$=[UO],D$=[UO],O$){constructor(e){var t,r,n;super(U$.from(e),(e,t)=>U$.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(q$,5,this),t=this,n=0,(r=L$).has(t)?F$("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return U$.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=U$.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(V$(a=this,s=L$,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);DT(()=>{((e,t,r)=>{V$(e,t,"write to private field"),t.set(e,r)})(this,L$,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(U$.from(e)),this.velocity={x:0,y:0}}};q$=(e=>{var t;return[,,,N$(null!=(t=null==e?void 0:e[z$("metadata")])?t:null)]})(O$),L$=new WeakMap,W$(q$,2,"delta",T$,G$),W$(q$,2,"direction",D$,G$),((e,t)=>{((e,t,r)=>{t in e?j$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,z$("metadata"),e[3])})(q$,G$);var Y$=(e=>(e.Horizontal="x",e.Vertical="y",e))(Y$||{});function K$(e){const t=M$();O(()=>{if(!t)return;const r=Object.entries(e).reduce((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e},[]);return()=>r.forEach(e=>null==e?void 0:e())},[t,e])}Object.values(Y$);const X$=()=>{const[e,t]=I(!1);return K$({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?dr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},J$=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),Z$=uR(e=>{const t=e(OR),r=e(oA);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,u=o?i:i-t,c=await r.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/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"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),r.applyPatches(p,!0)}}),Q$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),eH=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),tH=e=>e.atTop?2:1,rH=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],nH=e=>e?.setAttribute("tabIndex","0"),oH=e=>e?.setAttribute("tabIndex","-1"),iH=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(oH)},aH=e=>{e?.focus(),nH(e)},sH=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${xE}`);aH(t)},0)},lH=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{iH(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case yE.Down:u<s&&u++;break;case yE.Up:u>a&&u--;break;case yE.Right:if(i)break;[u,c]="rtl"===n?Q$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):eH({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case yE.Left:if(i)break;[u,c]="rtl"===n?eH({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):Q$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case yE.Home:(gT(e)||i)&&(u=a),i||(c=0);break;case yE.End:(gT(e)||i)&&(u=s),i||(c=l);break;case yE.PageDown:u=Math.min(s,u+10);break;case yE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=rH(t,a);return aH(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},uH=(e,t,r,n)=>{iH(t),r(e),n.enabled&&!n.active?n.focus?.():aH(rH(t,e))},cH=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${gE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${tP.First}`),r=e.querySelector(`.${tP.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},dH=j((e,t)=>dr.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:dr.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"})})),pH=Ic(om,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...yP,...e,cursor:t.active?"pointer":"default",background:n,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}})),fH=Ic("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:gP,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),hH=parseInt(gP,10)/2,mH=Ic("div")({position:"absolute",bottom:-hH,left:`calc(50% - ${hH}px)`}),gH=Ic(xm)({position:"sticky",top:0,zIndex:1}),bH={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},vH=Ic(yp)({height:"100%"}),yH=Ic("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...bH,whiteSpace:"nowrap",display:r?"block":void 0}:{...bH,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),xH=Ic("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),SH="cell-text",wH=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const a=SR(Tk);return o?dr.jsx(yH,{"data-testid":SH,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):dr.jsx(yH,{"data-testid":SH,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},CH=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=SR(LR),l=SR(Z$),u=SR(XR),c=SR(HR),d=SR(AR),p=SR(fA),f=SR(ER),h=SR(jk)[t.pageColIdx],m=SR(nA),g=k(null),b=k(null),v=(({column:e,columnWidth:t})=>{const r=SR(Tk),{measureText:n}=iE({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:bP});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,u=t-25,c=s?20:0,d=l?20:0;let p=n(e.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?dr.jsx(xD,{height:gP,"data-testid":"head-cell-sort-ascending-icon"}):dr.jsx(CD,{height:gP,"data-testid":"head-cell-sort-descending-icon"}),a=r?dr.jsx(fH,{align:t,dir:o,children:i}):void 0,s=n?dr.jsx(TP,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:dr.jsx(dH,{height:gP,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,u);return dr.jsxs(DP,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:EP(t,i,u),children:[S,dr.jsxs(kP,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,dr.jsx(wH,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?dr.jsxs(dr.Fragment,{children:[dr.jsx(jD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[LD.Sorting]:!0,[LD.Searching]:!0,[LD.Selections]:!0,[LD.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:sH},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),dr.jsx(IP,{ref:b,direction:u,isPagination:i}),dr.jsx(IP,{ref:g,direction:u})]}):null]})},EH=j((e,t)=>dr.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:dr.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"})})),RH=(e,t)=>e.isCyclic&&t,AH=({column:e})=>{const t=SR(Tk),r=SR(XR),n=SR(nA),o=w.useRef(null),[i,a]=w.useState(!1),s=Gk({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return dr.jsxs(dr.Fragment,{children:[dr.jsx(LP,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:dr.jsx(EH,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),dr.jsx(hD,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:ED,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},MH=e=>e.isLocked,PH=({column:e})=>{const t=SR(ER),r=SR(LR),n=SR(Tk);return dr.jsx(LP,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=gD(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:dr.jsx(dH,{height:16,"data-testid":"head-cell-lock-icon"})})},IH=({column:e,menuIconRef:t,open:r,setOpen:n})=>{const o=SR(Tk);return dr.jsx(LP,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:r,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),n(e=>!e)},ref:t,children:dr.jsx(Uk,{height:16})})},kH=({anchorRef:e,column:t,isPagination:r,listboxRef:n,open:o,setOpen:i})=>{const a=SR(ER),s=SR(XR),l=SR(AR),u=SR(HR),c=SR(nA),d=SR(LR),p=SR(fA),f=SR(Z$);return dr.jsx(jD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[LD.Sorting]:!0,[LD.Searching]:!0,[LD.Selections]:!0,[LD.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:u,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),f?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:n},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:sH},shouldShowMenuIcon:!1,model:c,direction:s,isPagination:r})},DH=uR();DH.onMount=e=>{const t=new Map,r=new ResizeObserver(e=>{for(const r of e){const e=t.get(r.target);e&&e.current(r)}});return e({callbacks:t,observer:r}),()=>{t.clear(),r.disconnect()}};const TH=({ref:e,callback:t})=>{const r=SR(DH),n=k(t);n.current=t,z(()=>{const t=e.current;return void 0===r?()=>{}:(t&&(r.callbacks.set(t,n),r.observer.observe(t)),()=>{t&&(r.callbacks.delete(t),r.observer.unobserve(t))})},[e,n,r])},OH=Ic(yp)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),LH=({children:e})=>{const t=w.useRef(null),[r,n]=I(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=P(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=q(e=>{const t=new Set,r=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)}),n(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return TH({ref:t,callback:i}),dr.jsx(OH,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},qH=({children:e})=>e,NH=(e,t)=>!e.isLocked&&e.isDim&&t,jH=({column:e,open:t,setOpen:r})=>{const n=SR(Tk),o=SR(LR),i=SR(XR),a=SR(AR);SR(ER);const s=w.useRef(null),l=q(()=>{r(!1)},[r]),u=mD({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return dr.jsx(LP,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:dr.jsx(PD,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},_H=j((e,t)=>dr.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:dr.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"})})),zH=j((e,t)=>dr.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:dr.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"})})),FH=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?dr.jsx(zH,{height:gP,"data-testid":"head-cell-sort-ascending-icon"}):dr.jsx(_H,{height:gP,"data-testid":"head-cell-sort-descending-icon"});return r?dr.jsx(mH,{children:n}):void 0},$H=0,HH=1,BH=2,WH=3,VH=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=SR(Tk),u=SR(XR),{measureText:c}=iE(l.header),[d,p]=I(!1),f=k(null),h=k(null),m=k(null),g="number"==typeof a&&a>SE.PixelsMin+18;return dr.jsxs(dr.Fragment,{children:[dr.jsxs(LH,{children:[dr.jsx(qH,{prio:BH,minWidth:PP,children:MH(t)?dr.jsx(PH,{column:t}):null},"Lock"),dr.jsx(qH,{prio:HH,minWidth:PP,children:RH(t,s)?dr.jsx(AH,{column:t}):null},"Cyclic"),dr.jsx(qH,{ignore:!0,children:dr.jsx(FH,{column:t})},"Sort"),dr.jsx(qH,{minWidth:c(t.label)+8,children:dr.jsx(OP,{justifyContent:t.headTextAlign,children:dr.jsx(wH,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),dr.jsx(qH,{prio:g?void 0:$H,minWidth:PP,children:d||NH(t,s)?dr.jsx(jH,{open:d,setOpen:p,column:t}):null},"Search"),dr.jsx(qH,{prio:WH,minWidth:PP,children:s?dr.jsx(IH,{menuIconRef:m,column:t,open:r,setOpen:n}):null},"Menu")]}),s?dr.jsxs(dr.Fragment,{children:[dr.jsx(IP,{ref:h,direction:u,isPagination:o}),dr.jsx(IP,{ref:f,direction:u}),dr.jsx(kH,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:r,setOpen:n})]}):null]})},UH=Ic("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:r})=>({...t,background:e,color:r})),GH=()=>{},YH=({column:e,isPagination:t})=>{const r=SR(Tk),n=SR(XR),o=SR(PT),i=SR(mk),a=!1,s=SR(jR)?CH:VH;return dr.jsx(UH,{className:"sn-table-cell",applicableStyle:{...r.header,...J$(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:AP(n,a,o),borderLeftWidth:MP(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??r.header.background,color:e.headerColor?.color??r.header.color,children:dr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:GH})})},KH=({isPagination:e})=>{const t=SR(gk),[r,n]=I();K$({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?dr.jsx(P$,{children:dr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:dr.jsx(YH,{column:o,isPagination:e})})}):null},XH=[jF.configure({activationConstraints:[new OF.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],JH=a$.plugins.filter(e=>e!==fz),ZH=({children:e})=>{const t=SR(oA),r=SR(gk);return dr.jsx(A$,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e)return;const o=t.findIndex(e=>e.id===r),i=t.findIndex(e=>e.id===n),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map(e=>e.colIdx).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:XH,plugins:JH,children:e})};function QH(e,t){const r=k(!1);O(()=>{r.current?e():r.current=!0},t)}const eB=uR(rP),tB=VM(e=>uR(t=>{const[r,n]=t(eB);return 0===r&&n===e})),rB=()=>{const e=SR(RR);O(()=>{e.notifyIsDoneRendering()})};var nB={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 oB=uR(e=>{const t=e(fA),r=e(uA);let n;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(nB).forEach(t=>{e.add(nB[t])})}(t),({keys:e,politeness:o="polite"})=>{const i=e.map(e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)}).join(" "),a=r.querySelector(`.${tP.First}`),s=r.querySelector(`.${tP.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;n===tP.First?(l=s,n=tP.Second):(l=a,n=tP.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}}),iB=(e,t)=>{const r=SR(oB),n=SR(uA),o=SR(xk),i=SR(yk),a=SR(vk),s=SR(mk),[l,u]=CR(eB),c=SR(zR),d=SR(rA);QH(()=>{const t=((e,t,r=!1)=>{const n=[tH(t),e[1]];return r?n:rP})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(iH(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=rH(t,e);r.current?(aH(s),r.current=!1):nH(s),n&&(a({keys:[s?.textContent??""]}),mT(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:r})},[a.length,i,o,t])},aB=e=>{const t=SR(XR),r=SR(BI);O(()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}},[e,t,r])},sB=e=>{YC(e),gT(e)&&PE(e.currentTarget)},lB=e=>{xT(e.evt)&&(YC(e.evt),lH(e))},uB=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!xT(t))return;YC(t);const i=((e,t)=>[e.pageRowIdx+tH(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?tH(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=lH({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:QM.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):mT(o,a,i)})({...e,nextCell:s})},cB=e=>{const{evt:t}=e;bT(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{YC(e);const a=Math.ceil(t/r)-1;e.key===yE.Right&&n<a?(o(),i(n+1)):e.key===yE.Left&&n>0&&(o(),i(n-1))})(e):t.key===yE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(YC(e),t.blur?.(!0))})(e):vT(t.key)&&YC(t)},dB=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(ZM.Disabled))return void YC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case yE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{YC(e),t.isSelectable&&r&&n({type:QM.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case yE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{YC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case yE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(YC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case yE.C:sB(t);break;case yE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(YC(e),GC(e.currentTarget,t,e.shiftKey))})(n);break;default:uB(n)}},pB=e=>{const t=SR(qP),r=wR(NP),n=wR(jP),o=SR(JM),i=k();TH({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),O(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},fB=Ic("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),hB=Ic(lm,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),mB=Ic(Uh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),gB=()=>dr.jsxs(dr.Fragment,{children:[dr.jsx(fB,{className:tP.First,"data-testid":tP.First,"aria-live":"polite","aria-atomic":"true"}),dr.jsx(fB,{className:tP.Second,"data-testid":tP.Second,"aria-live":"polite","aria-atomic":"true"})]}),bB=e=>{const t=k(new Map),r=k(null);O(()=>{r.current=e(t.current),t.current.forEach((e,t)=>{r.current?.observe(t)});const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}},[e,r,t]);const n=q((e,n)=>{t.current.set(e,n),r.current?.observe(e)},[t,r]),o=q(e=>{t.current.delete(e),r.current?.unobserve(e)},[r,t]);return P(()=>({addTask:n,removeTask:o}),[n,o])},vB=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),yB=()=>bB(vB),xB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=SR(FR),n=SR(rA),o=wR(AT);O(()=>{const i=()=>{o({type:QM.Reset})},a=()=>{o({type:QM.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}},[r,n,o,e,t])},SB=e=>{e.stopPropagation()},wB=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:SB,color:$C.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),CB=({href:e,text:t,interactions:r,color:n})=>dr.jsx(vf,{...wB({href:e,text:t,interactions:r,color:n}),children:t}),EB=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),RB=window.cancelIdleCallback??(e=>{clearTimeout(e)}),AB="qDimensionInfo/0",MB="qMeasureInfo/0",PB="x",IB="y",kB=e=>({key:"bars",type:"box",data:{extract:{field:AB,props:{start:0,end:{field:MB}}}},settings:{major:{scale:PB},minor:{scale:IB},box:{maxWidthPx:8,fill:{fn:e}}}}),DB=e=>({key:"p",type:"point",data:{extract:{field:AB,props:{y:{field:MB}}}},settings:{x:{scale:PB},y:{scale:IB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),TB=({qNum:e})=>void 0===e?0:Math.sign(e),OB=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=VC(e,t?.negative,r),a=VC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:AB,props:{start:0,end:{field:MB,value:TB}}}},settings:{major:{scale:PB},minor:{scale:IB},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},LB=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=VC(e,t?.main,o),l=VC(e,t?.max,s),u=VC(e,t?.min,s),c=VC(e,t?.first,s),d=VC(e,t?.last,s);return e=>{const t=IB in e.datum?IB:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[kB(a)];case"dots":return[DB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:AB,props:{v:{field:MB}}}},settings:{coordinates:{major:{scale:PB},minor:{scale:IB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(VC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,DB(a)]:[t]}case"posNeg":return[OB(e,n)];default:return[]}},qB=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"}),NB=(e,t,r,n)=>({y:{data:{field:MB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:AB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),jB=Y();jB.use(G),jB.renderer.prio(["canvas"]);const _B={resolve:()=>{},promise:{}},zB=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=k(e.isDownloadedAsPDForImage?_t():_B);return{addChartPromiseToQueue:q(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:q(()=>{if(null===t.current||null!==e.current)return;u();r.current=EB(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return jB.chart({element:e,data:{type:"q",key:"qHyperCube",data:qB(s)},settings:{scales:NB(a,l,u,i),components:LB(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:q(()=>{null!==r.current&&RB(r.current),r.current=null,l()},[r,l])}},FB=e=>{const t=k(null),r=k(!1);return q(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(RB(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=EB(()=>{e.current?.update()},{timeout:2e3})):r.current=!1:r.current=!0},[e])},$B=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),u=k(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=zB({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=q(e=>{e.isIntersecting?n():r()},[n,r]);O(()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}},[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{O(()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null}),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=FB(t);O(()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}},[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},HB=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=$B({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return dr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},BB=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},WB=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},VB=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=SR(XR),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=dr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:WB(s),objectPosition:BB(l),overflow:"hidden"}});return n?dr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?SP(o,e):void 0},children:c}):c},UB=j((e,t)=>dr.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:dr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),GB=j((e,t)=>dr.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:dr.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"})})),YB=j((e,t)=>dr.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:[dr.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"}),dr.jsx("use",{fillRule:"evenodd"})]})),KB=j((e,t)=>dr.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:dr.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"})})),XB=j((e,t)=>dr.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:dr.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"})})),JB=j((e,t)=>dr.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:dr.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"})})),ZB=j((e,t)=>dr.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:dr.jsx("path",{d:"M2 7.5h12v1H2z"})})),QB=j((e,t)=>dr.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:dr.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"})})),eW=j((e,t)=>dr.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:dr.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"})})),tW=j((e,t)=>dr.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:dr.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"})})),rW=j((e,t)=>dr.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:dr.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"})})),nW={m:j((e,t)=>dr.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:dr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":tW,R:zH,S:_H,T:j((e,t)=>dr.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:dr.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:j((e,t)=>dr.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:dr.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:eW,Q:JB,"è":j((e,t)=>dr.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:dr.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"})})),"¢":KB,"©":YB,"23F4":XB,2013:rW,"&":QB,add:UB,"minus-2":ZB,dot:GB},oW=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&nW[t];return o&&dr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:dr.jsx(o,{style:{height:e}})})},iW=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=SR(Tk),o=SR(XR),i=SR(pA),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=fP(e,t,o,i),d=(e=>parseInt(e||gP,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?dr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&oW({size:d,iconKey:f,color:p}),dr.jsx(wH,{isNumeric:!0,children:a}),"right"===h&&oW({size:d,iconKey:f,color:p})]}):oW({size:d,iconKey:f,color:p})},aW=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,sW=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=SR(Tk),u=SR(RR),c=SR(kR),d=SR(pA),p=SR(XR),f=SR(HR),h=SR(zR);if(t.representation.type===ZA.Image&&!t.representation.url?.trim())return null;if(t.representation.type===ZA.Image)return dr.jsx(VB,{representation:t.representation,textStyle:r,maxImageHeight:aW(l,o),wrapInContainer:!n});let m=t.representation.text;t.representation.type!==ZA.Link||h||(m=dr.jsx(CB,{href:t.representation.url,text:t.representation.text,interactions:f,color:r.cellForegroundColor}));const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==ZA.Indicator||Number.isNaN(g)?t.representation.type===ZA.MiniChart&&t.representation.miniChart&&!t.isNull?dr.jsx(HB,{height:aW(l,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:d,isSnapshot:!!c.snapshotData,direction:p,downloadService:u}):dr.jsx(wH,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):dr.jsx(iW,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},lW=()=>dr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:dr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),uW=Ic("div")({"& path":{stroke:"none !important"}}),cW=({children:e,cellSelectionState:t})=>t===ZM.Selected?dr.jsxs(xH,{children:[e,dr.jsx(uW,{children:dr.jsx(lW,{})})]}):e,dW=e=>{const t=function(){const e=M$(),t=f$(()=>null==e?void 0:e.dragOperation.source,[e]),r=f$(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},pW=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:QM.SelectMultiEnd})};r({type:QM.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:QM.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:QM.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),fW=e=>{const t=SR(Sk),r=SR(mk),n=SR(oB),o=SR(uA),i=SR(XR),a=wR(eB),s=wR(AT),l=SR(rA),u=SR(VR),c=SR(FR),d=d=>{dB({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===yE.Shift&&t({type:QM.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;uH([s,a],t,r,n)})(e,o,a,l,r)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=pW(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},hW=e=>{O(()=>()=>{MT.remove(e)},[e])},mW=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},gW=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},bW=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return gW(t,e,n?"even":"odd")}return e},vW=(e,t)=>{const r=SR(Tk),n=SR(MT(e));hW(e);let o=t.isDim?r.dimension.values:r.measure.values;o=bW(o,r,e),o=mW(o,r,e);const i=GP(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===ZM.Selected?{...e,...r}:t===ZM.Disabled?{...e,background:`${hP}, ${e.background}`}:e}(P(()=>e.isNull?o:GP(o,e.qAttrExps,t.qAttrExprInfoIDs),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},yW=Ic(Qh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),xW=Ic(xm,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),SW=Ic(om,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...yP,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),wW=Ic(om,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...yP,...e,fontWeight:bP,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),CW=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=SR(XR),a=SR(HR),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=fW(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=vW(e,t),m=dW(t.id);return dr.jsx(SW,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${vE}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:dr.jsx(cW,{cellSelectionState:h,children:dr.jsx(sW,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:RP(i,e.align)})})})},EW=uR(0),RW=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=SR(Tk),i=SR(WR),a=SR(EW),s=dW(e.id);return dr.jsx(wW,{totalsStyle:{...o.totalRow,...J$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${vE}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:dr.jsx(wH,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},AW=()=>{const e=SR(mk),t=SR(gk),r=SR(vk),n=SR(uA),o=SR(BR),i=SR(XR),a=wR(eB),s=SR(zR),l=SR(rA);return dr.jsx(xm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,u)=>{const c=[e.atTop?1:r.length+1,u];return dr.jsx(RW,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case yE.C:sB(r);break;case yE.Space:r.preventDefault();break;default:lB(e)}else YC(r)})({evt:e,rootElement:n,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{uH(c,n,a,l)}},t.id)})})};var MW=_(AW);const PW=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=SR(vk),n=SR(mk),o=SR(gk),i=SR(Tk),a=SR(kR),s=!!BP(a)?.content?.hoverEffect;xB({updateShouldRefocus:e,tableWrapperRef:t});const l=(e=>{const t=q(t=>new IntersectionObserver(e=>{e.forEach(e=>{const r=t.get(e.target);r?.(e)})},{root:e.current}),[e]);return bB(t)})(t),u=yB();return dr.jsxs(yW,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?dr.jsx(MW,{}):void 0,r.map((e,t)=>dr.jsx(xW,{hoverColors:i.grid.hoverColors,hover:s,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:i.contentMinRowHeight,children:o.map((t,r)=>{const{id:n}=t,o=e[r];return dr.jsx(CW,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:l,resizeObserverTaskScheduler:u},n)})},`row-${t}`)),n.atBottom?dr.jsx(MW,{}):void 0]})};var IW=_(PW);const kW=(e,t)=>!!e?.skipHeader||!!t.hideHeader,DW=uR(e=>{const t=e(kR),r=e(nA);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}}),TW=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=SR(DW),s=SR(XR),l=SR(BR),u=SR(fA),[c,d]=CR(jk);if(!l)return null;return dr.jsx(Vk,{columnWidth:c.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{oH(e);const t=e.closest(".sn-table-cell");aH(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},OW=e=>e.target?.getAttribute("class")?.includes(xE),LW=({isInteractionEnabled:e,column:t})=>{const[r,n]=I(!1),o=SR(Z$),i=SR(qP);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||OW(t)||i||n(!0)},toggleSortOrder:r=>{e&&!OW(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var qW=Object.defineProperty,NW=Object.defineProperties,jW=Object.getOwnPropertyDescriptors,_W=Object.getOwnPropertySymbols,zW=Object.prototype.hasOwnProperty,FW=Object.prototype.propertyIsEnumerable,$W=(e,t,r)=>t in e?qW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,HW=(e,t)=>{for(var r in t||(t={}))zW.call(t,r)&&$W(e,r,t[r]);if(_W)for(var r of _W(t))FW.call(t,r)&&$W(e,r,t[r]);return e},BW=(e,t)=>NW(e,jW(t)),WW=class extends _N{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return BW(HW({},e),{[t]:r})}};WW.configure=oq(WW);var VW=WW;VW.configure({axis:"x",value:0}),VW.configure({axis:"y",value:0});var UW=class extends _N{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return BW(HW({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};UW.configure=oq(UW);var GW=class extends _N{constructor(e,t){super(e,t),this.boundingRectangle=BT(null),this.destroy=QT(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=ZN(r)},i=()=>{n||(n=setTimeout(()=>{o(),n=void 0},25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=HW({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new yL(l,u,s,a),r,n);return c}};GW.configure=oq(GW);var YW=GW,KW=Object.create,XW=Object.defineProperty,JW=Object.defineProperties,ZW=Object.getOwnPropertyDescriptor,QW=Object.getOwnPropertyDescriptors,eV=Object.getOwnPropertySymbols,tV=Object.prototype.hasOwnProperty,rV=Object.prototype.propertyIsEnumerable,nV=e=>{throw TypeError(e)},oV=(e,t,r)=>t in e?XW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iV=(e,t)=>{for(var r in t||(t={}))tV.call(t,r)&&oV(e,r,t[r]);if(eV)for(var r of eV(t))rV.call(t,r)&&oV(e,r,t[r]);return e},aV=(e,t)=>JW(e,QW(t)),sV=["class","method","getter","setter","accessor","field","value","get","set"],lV=e=>void 0!==e&&"function"!=typeof e?nV("Function expected"):e,uV=(e,t,r,n,o)=>({kind:sV[e],name:t,metadata:n,addInitializer:e=>r._?nV("Already initialized"):o.push(lV(e||null))}),cV=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},dV=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=sV[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,ZW({get[r](){return fV(this,i)},set[r](e){return mV(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=uV(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},u),l._=1,void 0===s?lV(s)&&(g[f]=s):"object"!=typeof s||null===s?nV("Object expected"):(lV(a=s.get)&&(g.get=a),lV(a=s.set)&&(g.set=a),lV(a=s.init)&&h.unshift(a));return g&&XW(o,r,g),o},pV=(e,t,r)=>t.has(e)||nV("Cannot "+r),fV=(e,t,r)=>(pV(e,t,"read from private field"),t.get(e)),hV=(e,t,r)=>t.has(e)?nV("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),mV=(e,t,r,n)=>(pV(e,t,"write to private field"),t.set(e,r),r);function gV(e){return e instanceof UV||e instanceof VV}var bV=Object.defineProperty,vV=Object.defineProperties,yV=Object.getOwnPropertyDescriptors,xV=Object.getOwnPropertySymbols,SV=Object.prototype.hasOwnProperty,wV=Object.prototype.propertyIsEnumerable,CV=(e,t,r)=>t in e?bV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,EV=(e,t)=>{for(var r in t||(t={}))SV.call(t,r)&&CV(e,r,t[r]);if(xV)for(var r of xV(t))wV.call(t,r)&&CV(e,r,t[r]);return e},RV=(e,t)=>vV(e,yV(t));function AV(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function MV(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function PV(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex(e=>u(e,a.id)),o=e.findIndex(e=>u(e,s.id));if(-1===n||-1===o){if(MV(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>u(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>u(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&MV(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return RV(EV({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return RV(EV({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&MV(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return RV(EV({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return RV(EV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return RV(EV({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return RV(EV({},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,AV)}var IV="__default__";function kV(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function DV(e,t){return e.index-t.index}function TV(e){return Array.from(e).sort(DV)}var OV,LV,qV,NV,jV,_V,zV,FV,$V=[class extends aq{constructor(e){super(e);const t=QT(()=>{const{dragOperation:t}=e;if(A_(t.activatorEvent)&&gV(t.source)&&t.status.initialized){const t=e.registry.plugins.get(bF);if(t)return t.disable(),()=>t.enable()}}),r=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!A_(e.nativeEvent))return;if(!gV(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];DT(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&gV(e)||!e.element)continue;let r=e.shape;const n=new w_(e.element,{getBoundingClientRect:e=>sj(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push(()=>e.shape=r)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,k_);DT(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=r;if(!e||!gV(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;m_(c);const d=new w_(c);if(!d)return;const p=yL.delta(d,yL.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{r(),t()}}},class extends aq{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof UV){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(TV(r)));return t},r=[e.monitor.addEventListener("dragover",(e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!gV(o)||!gV(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask(()=>{e.defaultPrevented||r.renderer.rendering.then(()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=TV(l),g=s?m:TV(u),b=null!=(c=o.sortable.group)?c:IV,v=null!=(d=i.sortable.group)?d:IV,y={[b]:m,[v]:g},x=PV(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),kV(f,S,h,w),DT(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),r.actions.setDropTarget(o.id).then(()=>r.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;gV(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=TV(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(kV(r,i.index,a,o.index),DT(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of r)e()}}}],HV={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},BV=new class{constructor(){FO(this,KO,new WeakMap)}get(e,t){var r;return e?null==(r=zO(this,KO).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return zO(this,KO).has(e)||zO(this,KO).set(e,new Map),null==(n=zO(this,KO).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=zO(this,KO).get(e))?void 0:t.clear():void 0}};LV=[VO],OV=[VO];var WV=class{constructor(e,t){hV(this,NV,cV(qV,8,this)),cV(qV,11,this),hV(this,jV),hV(this,_V),hV(this,zV,cV(qV,12,this)),cV(qV,15,this),hV(this,FV),this.register=()=>(DT(()=>{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=()=>{DT(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{DT(()=>{this.droppable.destroy(),this.draggable.destroy()})};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=HV,plugins:u=$V}=r,c=((e,t)=>{var r={};for(var n in e)tV.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&eV)for(var n of eV(e))t.indexOf(n)<0&&rV.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new UV(c,t,this),this.draggable=new VV(aV(iV({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&BV.clear(this.manager),(null==n?void 0:n.dragging)&&BV.set(this.manager,this.id,OT(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:r}=this,n=fV(this,_V),o=fV(this,jV);e===n&&t===o||(mV(this,_V,e),mV(this,jV,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),mV(this,FV,c.element),this.manager=t,this.index=i,mV(this,_V,i),this.group=o,mV(this,jV,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=BV.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=BV.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){OT(()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then(()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=n_(n),l=b_(n,s,!1),u=b_(n,s);if(i||a){const r=mj(tj(n))?aV(iV({},t),{duration:0}):t;g_({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){DT(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){DT(()=>{const t=fV(this,FV),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),mV(this,FV,e)})}get element(){var e,t;const r=fV(this,FV);if(r)return null!=(t=null!=(e=yj.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){DT(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){DT(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){DT(()=>{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:I_}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){DT(()=>{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)}};qV=[,,,KW(null)],NV=new WeakMap,jV=new WeakMap,_V=new WeakMap,zV=new WeakMap,FV=new WeakMap,dV(qV,4,"index",LV,WV,NV),dV(qV,4,"group",OV,WV,zV),((e,t)=>{return oV(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(qV,WV);var VV=class extends l${constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},UV=class extends u${constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},GV=Object.defineProperty,YV=Object.defineProperties,KV=Object.getOwnPropertyDescriptors,XV=Object.getOwnPropertySymbols,JV=Object.prototype.hasOwnProperty,ZV=Object.prototype.propertyIsEnumerable,QV=(e,t,r)=>t in e?GV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eU=(e,t)=>{for(var r in t||(t={}))JV.call(t,r)&&QV(e,r,t[r]);if(XV)for(var r of XV(t))ZV.call(t,r)&&QV(e,r,t[r]);return e};function tU(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=eU(eU({},HV),e.transition),b=function(e){var t;const r=null!=(t=M$())?t:void 0,[n]=I(()=>e(r));return n.manager!==r&&(n.manager=r),d$(n.register,[r,n]),n}(t=>new WV(((e,t)=>YV(e,KV(t)))(eU({},e),{transition:g,register:!1,handle:c$(s),element:c$(a),target:c$(h),feedback:d}),t)),v=h$(b,rU);return b$(o,()=>b.id=o),d$(()=>{DT(()=>{b.group=u,b.index=l})},[b,u,l]),b$(m,()=>b.type=m),b$(t,()=>b.accept=t,void 0,WO),b$(i,()=>i&&(b.data=i)),b$(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},m$),v$(s,e=>b.handle=e),v$(a,e=>b.element=e),v$(h,e=>b.target=e),b$(c,()=>b.disabled=!0===c),b$(f,()=>b.sensors=f),b$(r,()=>b.collisionDetector=r),b$(n,()=>b.collisionPriority=n),b$(d,()=>b.feedback=null!=d?d:"default"),b$(g,()=>b.transition=g,void 0,WO),b$(p,()=>b.modifiers=p,void 0,WO),b$(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:q(e=>{b.handle=null!=e?e:void 0},[b]),ref:q(e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:q(e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:q(e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function rU(e,t,r){return!("isDragSource"!==e||r||!t)}const nU=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/vL.distance(r.shape.center,s),type:Iq.Collision,priority:Pq.Normal}:null},oU=[YW.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],iU=(e,t)=>{const r=SR(XR),n=SR(PR),o=!SR(GR)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return tU({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:oU,data:e,feedback:"clone",collisionDetector:nU({invert:"rtl"===r})})},aU=({column:e,columnIndex:t,columnsLength:r})=>{const n=SR(Tk),o=SR(uA),i=SR(XR),a=SR(HR),s=SR(gk),l=SR(mk),u=SR(jk)[t],c=wR(eB),d=SR(tB(t)),p=SR(GR),f=SR(rA),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=LW({isInteractionEnabled:p,column:e}),v=wR(qP),{ref:y,isDragging:x}=iU(e,t),S=dW(e.id),w=SR(jR),C=w?CH:VH,E=e.isActivelySorted?eP[e.sortDirection]:void 0,R=h?bE:void 0,A=h?"true":void 0,M=t===r-1,P=[0,e.pageColIdx],I={width:u,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return dr.jsxs(pH,{"data-dragging":x,ref:y,headerStyle:{...n.header,...J$(n,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground:e.headerColor?.background??n.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,color:e.headerColor?.color??n.header.color,interactions:a,style:I,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${vE}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case yE.C:sB(r);break;case yE.Enter:case yE.Space:n?.(r);break;default:lB(e)}else YC(r)})({evt:e,rootElement:o,cellCoord:P,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&uH(r,t,n,o)})({evt:e,rootElement:o,cellCoord:P,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[dr.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:u}),dr.jsx(TW,{column:e,isLastColumn:M,setIsAdjustingWidth:v})]},e.id)},sU=()=>{const e=SR(gk),t=SR(Tk),r=SR(kR),n=SR(ZR),o=wR(EW),i=SR(jk),a=k(null),s=kW(n,r);return O(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),dr.jsx(hm,{style:{visibility:s?"collapse":void 0},children:dr.jsx(gH,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,r)=>dr.jsx(aU,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var lU=_(sU);const uU=()=>{const e=SR(oB),[t,r]=CR(ak),{page:n,rowsPerPage:o}=t,i=SR(JR),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=SR(hk),p=SR(Tk),f=SR(BI),h=SR(kR),m=SR(pA),g=SR(lA),b=SR(uA),v=SR(ZR),y=SR(XR),x=SR(HR),S=SR(fA),w=SR(PT),C=wR(AT),E=SR(zR),R=SR(rA),A=k(!1),M=k(null),P=k(null),I=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,D=YR(h,v),T=D?f.scrollLeft??0:0,L=D?f.rowPartialHeight??0:0,N=q(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=q(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),_=q(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return aB(M),((e,t)=>{const r=SR(rA);O(()=>{const n=e.current;if(!n)return;const o=e=>{cH(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])})(P,A),(()=>{const e=SR(uA),t=SR(rA),r=SR(eB);cE(()=>{const n=rH(e,r);t.active?aH(n):(n?.blur(),iH(e))},[t.active,e])})(),iB(A,n),O(()=>{const e=M.current;e&&(e.scrollLeft=T,e.scrollTop=L)},[t,s,T,L]),QH(()=>{C({type:QM.UpdatePageRows,payload:{pageRows:c}})},[c]),rB(),pB(M),dr.jsxs(ZH,{children:[dr.jsxs(vH,{ref:P,dir:y,onKeyDown:e=>{cB({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[dr.jsx(gB,{}),dr.jsxs(hB,{ref:M,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[dr.jsxs(mB,{stickyHeader:!0,"aria-label":I,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[dr.jsx(lU,{}),dr.jsx(IW,{updateShouldRefocus:N,tableWrapperRef:P})]}),dr.jsx(X$,{})]}),dr.jsx(fT,{footerContainer:i,pageInfo:t,paginationNeeded:u,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})]}),dr.jsx(KH,{isPagination:!0})]})};var cU=_(uU);const dU=uR(0),pU=uR(e=>{const t=e(DR);return Math.min(ck,t)}),fU=uR(e=>{const t=e(DR);return t===ck?0:Math.floor(t/ck)}),hU=uR(e=>{const t=e(dU),r=e(fU);return Math.min(t,r)}),mU=uR(e=>({page:e(hU),rowsPerPage:e(pU),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(fU);t(dU,Math.max(0,Math.min(r,n)))});var gU=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function bU(e,t){return e===t||!(!gU(e)||!gU(t))}function vU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!bU(e[r],t[r]))return!1;return!0}function yU(e,t){var r;void 0===t&&(t=vU);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var xU="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function SU(e){cancelAnimationFrame(e.id)}function wU(e,t){var r=xU();var n={id:requestAnimationFrame(function o(){xU()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var CU=-1;function EU(e){if(void 0===e&&(e=!1),-1===CU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),CU=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return CU}var RU=null;function AU(e){if(void 0===e&&(e=!1),null===RU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?RU="positive-descending":(t.scrollLeft=1,RU=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),RU}return RU}var MU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function PU(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,Kc(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Kc(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=yU(function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=yU(function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=yU(function(e,t,r){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(AU()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&SU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=wU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}zc(t,e),t.getDerivedStateFromProps=function(e,t){return IU(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}},this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=EU();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(AU()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&SU(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?MU: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(),A=R[0],M=R[1],P=[];if(n>0&&g)for(var I=A;I<=M;I++)for(var k=w;k<=E;k++)P.push(C(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return C(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:Kr({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(u||c||"div",{children:P,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);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 IU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},kU=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},DU=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},TU=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},OU=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?LU(e,t,r,i,0,n):qU(e,t,r,Math.max(0,i),n)},LU=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=TU(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},qU=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&TU(e,t,n,r).offset<o;)n+=a,a*=2;return LU(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},NU=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=TU(e,t,r,i),u="column"===e?DU(t,i):kU(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},jU=PU({getColumnOffset:function(e,t,r){return TU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return OU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=TU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=TU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:kU,getEstimatedTotalWidth:DU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return NU("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return NU("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return TU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return OU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=TU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=TU("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),_U=function(e,t){return e};function zU(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,Kc(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Kc(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=yU(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=yU(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=yU(function(e,t,r){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(AU()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&SU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=wU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}zc(t,e),t.getDerivedStateFromProps=function(e,t){return FU(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?EU():0:l.scrollHeight>l.clientHeight?EU():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(AU()){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&&SU(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?_U: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],A=[];if(u>0)for(var M=E;M<=R;M++)A.push(C(t,{data:c,key:p(M,c),index:M,isScrolling:b?y:void 0,style:this._getItemStyle(M)}));var P=n(this.props,this._instanceProps);return C(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:Kr({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:A,ref:a,style:{height:x?"100%":P,pointerEvents:y?"none":void 0,width:x?P:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(B),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var FU=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},$U=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},HU=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=$U(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},BU=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&$U(e,r,t).offset<n;)r+=i,i*=2;return HU(e,t,Math.min(r,o-1),Math.floor(r/2),n)},WU=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},VU=zU({getItemOffset:function(e,t,r){return $U(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:WU,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=$U(e,t,o),p=WU(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?HU(e,t,o,0,r):BU(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=$U(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=$U(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function UU(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var GU=["style"],YU=["style"];function KU(e,t){var r=e.style,n=Xr(e,GU),o=t.style,i=Xr(t,YU);return!UU(r,o)&&!UU(n,i)}const XU=uR(0),JU=uR(0),ZU=uR(0),QU=uR(e=>e(XU)+e(JU)),eG=uR(e=>{const t=e(lA),r=e(Sk),n=t.height-(r?41:0);return{width:t.width,height:n}}),tG=uR(e=>{const t=e(eG),r=e(NP),n=e(jP);return{width:t.width-n,height:t.height-r}}),rG=uR(e=>{const t=e(tG),r=e(QU),n=e(ZU);return Math.min(t.height-r,n)}),nG=uR(e=>{const t=e(mU),r=e(DR);return Math.min(t.rowsPerPage,r-t.page*t.rowsPerPage)}),oG=uR(-1),iG=VM(e=>uR(t=>t(oG)===e)),aG=({style:e})=>dr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var sG=w.memo(aG,KU);const lG=()=>{},uG=e=>{e.preventDefault()};const cG=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=SR(iG(t)),d=wR(oG),p=SR(Tk),f=SR(XR),h=SR(WR),m=SR(PT),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const t="object"==typeof e,r=SR(VR),n=wR(AT),o=SR(MT(e));if(hW(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=pW(uG,e,n,lG);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=k(null),i=r&&!r.isNumeric,a=q(r=>{const o=r.contentBoxSize.at(0)?.blockSize;o&&i&&n(o,e,t)},[t,n,e,i]);return TH({ref:o,callback:a}),o})(t,e,g,s),w=i[e]?.isDim?p.dimension.values:p.measure.values,C=dW(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=bW(o,i,e);a=mW(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?GP(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===ZM.Selected?{...s,...i.selectedColors}:n===ZM.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${hP}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,p),o={rowindex:t,columnindex:e};return dr.jsx("div",{className:`sn-table-cell ${x} ${vE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:p.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:AP(f,g.isLastColumn,m),borderLeftWidth:MP(f,g.isLastColumn,m),justifyContent:wP(g,f),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:h?g.representation.text:void 0,...o,children:dr.jsx(cW,{cellSelectionState:x,children:dr.jsx(sW,{forwardRef:p.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return dr.jsx(sG,{style:{...r,...w,borderColor:p.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var dG=_(cG,KU);const pG=HI(uR(async e=>{const t=e(kR),r=e(nA),n=e(mU).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(ck,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),fG=e=>{const t=k(e);return t.current=e,t},hG=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,mG=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},gG=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},bG=(e,t,r,n,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=tk(h,e,a),C=!h&&e.qIsNull,E=C?iP(w):oP(e);f[r]={id:VA(),...e,align:ZI(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&rk(e,h),representation:_I({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[ZA.Image]:!0,[ZA.Indicator]:!0,[ZA.MiniChart]:!0}})},l(f[r],d,r)}),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d})})},vG=({visibleRowCount:e,visibleColumnCount:t,gridState:r,setEstimatedCellHeight:n})=>{const o=SR(kR),i=SR(pA),a=SR(nA),s=SR(MR),l=SR(XR),u=SR(mU),c=SR(pG),d=SR(gk),p=SR(nG),f=k([]),h=q((e,t)=>{const r=Array.isArray(t)?t.slice(0,p):(e=>Array(e).fill(void 0))(p);return bG(e,u,r,d,o,s,n,l),f.current=r,r},[p,u,d,o,s,n,l]),[m,g]=I(()=>h(c??[]));cE(()=>{g(h(c??[]))},[c,l]);const b=((e,t)=>{const r=k(new Set),n=k(new Set),o=k(new Set),i=fG(e),a=fG(t),s=P(()=>({enqueue:e=>{const t=hG(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach(e=>{o.current.delete(hG(e))}),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}},75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}}),[i,a]);return s})(e=>a&&"getHyperCubeData"in a?a.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=q((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(gG(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}},[f,b]),y=q((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-u.page*u.rowsPerPage);if(mG(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};b.enqueue(t)}}},[f,b,u]);return O(()=>{const{qcx:n,qcy:i}=o.qHyperCube.qSize,a=r.current.overscanRowStartIndex,s=r.current.overscanColumnStartIndex,l=a+u.page*u.rowsPerPage,c=n-s,d=u.rowsPerPage-a,p=Math.min(100,c,n,t+5),f=Math.min(100,d,i,e+25);return y(s,l,p,f),()=>{b.clear()}},[o,e,t,u,b,y,r,i]),{rowsInPage:m,loadRows:y,loadColumns:v}},yG=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},xG=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,SG=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=SR(Tk),i=SR(jk),{estimateLineCount:a}=iE(o.dimension.values),s=kk(o.dimension.values.fontSize),l=e||t||1===r;return q((e,t,o)=>{if(l||e.representation.type===ZA.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)},[l,i,a,r,s,n])},wG=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=SR(BI);z(()=>{const i=e?n:((e,t)=>{const r=0===t?0:e/t;return Math.ceil(r)})(r.sumHeight,r.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},CG=({isSnapshot:e,gridRef:t})=>{const r=SR(Tk),n=SR(nG),[o,i]=I({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0}),a=r.contentLineHeight,s=r.contentMinRowHeight,l=!!r.contentStaticLineCount,u=Math.max(8e6/n,s)-9,c=u+9,d=Math.max(1,Math.min(r.grid.contentLineClamp,Math.round(u/a))),p=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:d,lineHeight:a,isStaticNbrOfLines:l});(({gridRef:e,setState:t})=>{const r=SR(kR),n=SR(mU),o=SR(jk),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;cE(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),cE(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const f=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>q((o,i,a)=>{$(()=>{e(e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!xG(u.get(a),l))return e;const c={...e},d=e.rowHeights.get(i);u.set(a,l);const p=void 0===d||l>=d?l:yG(u);return c.rowHeights.set(i,p),c.sumHeight=e.sumHeight-(d??0)+p,n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c})})},[e,r,t,n]))({maxCellHeight:c,minRowHeight:s,setState:i,gridRef:t}),h=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>q((o,i,a)=>{e||t||1===r||n(o,i,a)},[e,t,r,n]))({isSnapshot:e,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),m=SG({isSnapshot:e,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),g=q(e=>l?p??s:o.rowHeights.get(e)??s,[l,s,o.rowHeights,p]);return wG({isStaticNbrOfLines:l,minRowHeight:s,state:o,staticRowHeight:p}),{setMeasuredCellHeight:h,setEstimatedCellHeight:m,getRowHeight:g,lineClamp:d}},EG=(e,t)=>{z(()=>()=>{t(0)},[e,t]);const r=q(e=>{const r=e.contentBoxSize.at(0)?.blockSize;void 0!==r&&t(r)},[t]);TH({ref:e,callback:r})};let RG=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const AG=({loadRows:e,loadColumns:t,gridState:r})=>{const n=SR(BI),o=SR(kR),i=SR(mU),a=SR(nG);return q(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=RG.None,i=RG.None;return o=n>t?RG.Down:n<t?RG.Up:RG.None,i=r>e?RG.Right:r<e?RG.Left:RG.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(r.current,s,u);if(r.current.overscanColumnStartIndex=s,r.current.overscanColumnStopIndex=l,r.current.overscanRowStartIndex=u,r.current.overscanRowStopIndex=c,u>a)return;const b=s,v=u+i.page*i.rowsPerPage,y=l-s+1,x=c-u+1;if(n.visibleLeft=d,n.visibleWidth=p-d+1,n.visibleTop=f+i.page*i.rowsPerPage,n.visibleHeight=h-f+1,n.page=i.page,n.rowsPerPage=i.rowsPerPage,m===RG.Down){const t=x+25;e(b,v,y,u+t>a?a-u:t)}else if(m===RG.Up){const t=x+25,r=i.page*i.rowsPerPage,n=Math.max(r,v-25);e(b,n,y,t)}if(g===RG.Right){const e=o.qHyperCube.qSize.qcx-b,r=y+5,n=Math.min(e,r);t(b,v,n,x)}else if(g===RG.Left){const e=Math.max(0,b-5),r=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,r,x)}},[r,a,i.page,i.rowsPerPage,n,e,o.qHyperCube.qSize.qcx,t])},MG=()=>{},PG={current:null};const IG=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},kG={overflow:"hidden",willChange:"auto"},DG=j((e,t)=>{const r=SR(gk),n=SR(tG),o=wR(ZU),i=SR(rG),a=SR(Tk),s=SR(BI),l=SR(kR),u=SR(XR),c=SR(jk),d=SR(nG),p=k(null),f=k(null),h=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),m=k(0),g=!!BP(l)?.content?.hoverEffect,{visibleRowCount:b,visibleColumnCount:v}=(e=>{const t=SR(jk),r=SR(tG),n=SR(nG),o=Math.min(n,Math.ceil(r.height/e)),i=P(()=>t.reduce((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}),[r,t]).count;return{visibleRowCount:o,visibleColumnCount:i}})(a.contentMinRowHeight),{setMeasuredCellHeight:y,setEstimatedCellHeight:x,getRowHeight:S,lineClamp:w}=CG({isSnapshot:!!l.snapshotData,gridRef:p}),{rowsInPage:C,loadRows:E,loadColumns:R}=vG({visibleRowCount:b,visibleColumnCount:v,gridState:h,setEstimatedCellHeight:x}),A=AG({loadRows:E,loadColumns:R,gridState:h}),M=yB(),I=P(()=>({rowsInPage:C,columns:r,isHoverEnabled:g,lineClamp:w,setMeasuredCellHeight:y,resizeObserverTaskScheduler:M}),[C,r,g,w,y,M]);return z(()=>{1===m.current&&p.current?.scrollToItem({rowIndex:d-1,align:"start"})}),function(e){const t=wR(AT);O(()=>{t({type:QM.UpdatePageRows,payload:{pageRows:e}})},[t,e]),xB({updateShouldRefocus:MG,tableWrapperRef:PG})}(C),H(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(f.current?.clientHeight??i)-i,n=Math.round(r*e);m.current=e,1===m.current?(p.current?.scrollToItem({rowIndex:d-1,align:"start"}),p.current?.scrollTo({scrollLeft:t})):p.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[f,i,d]),EG(f,o),dr.jsx(jU,{"data-key":"body",ref:p,innerRef:f,style:kG,columnCount:r.length,columnWidth:e=>c[e],height:i,rowCount:d,rowHeight:S,estimatedRowHeight:s.estimatedRowHeight,width:n.width,itemData:I,onItemsRendered:A,itemKey:IG,className:"sn-table-body",direction:u,children:dG})});var TG=_(DG);const OG=({children:e})=>{const{width:t,height:r}=(()=>{const e=SR(tG),t=SR(Tk),r=SR(jk),n=SR(QU),o=SR(ZU)+n;let i=SR(nG)*t.contentMinRowHeight+n;return o<2*e.height&&(i=o),{width:r.reduce((e,t)=>e+t,0),height:i}})();return dr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r},children:e})},LG=(e,t)=>{const r=k(null),n=SR(jk);z(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=q(r=>{const n=r.contentBoxSize.at(0)?.blockSize;n&&t(n+9,e)},[e,t]);return TH({ref:r,callback:o}),r},qG=Ic("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:r,applicableStyle:n,color:o})=>({...n,background:r,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),NG=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,a=SR(Tk),s=SR(XR),l=SR(HR),u=SR(PT),c=wR(qP),d=SR(mk),p=SR(GR),f=SR(jk)[e],h=n[e],{open:m,setOpen:g,handleOpenMenu:b,toggleSortOrder:v}=LW({isInteractionEnabled:p,column:h}),y=SR(jR),x=LG(e,i),S=n.length-1===e,w=y?CH:VH,{ref:C,isDragging:E}=iU(h,e),R=dW(h.id);return dr.jsxs(qG,{"data-dragging":E,ref:C,className:`sn-table-cell ${vE}`,title:l.passive?h.label:void 0,onClick:y?b:v,applicableStyle:{...a.header,...J$(a,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:AP(s,S,u),borderLeftWidth:MP(s,S,u),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:h.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===h.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:R},interactions:l,hoverBackground:h.headerColor?.headerMenuHoverBackground??a.headerMenuHoverBackground,background:y&&m?h.headerColor?.headerMenuActiveBackground??a.headerMenuActiveBackground:h.headerColor?.background??a.header.background,color:h.headerColor?.color??a.header.color,children:[dr.jsx(w,{forwardRef:x,column:h,isInteractionEnabled:p,open:m,setOpen:g,columnWidth:f}),dr.jsx(TW,{column:h,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:c})]})},jG=e=>{const[t,r]=I(new Map);cE(()=>{r(new Map)},[e.length]);const n=q((e,t)=>{r(r=>xG(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:P(()=>yG(t),[t]),setMeasuredCellHeight:n}},_G=(e,t)=>{H(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},zG=e=>{const t=SR(pA),r=SR(kR),n=SR(mU),o=SR(jk);cE(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},FG={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},$G=j((e,t)=>{const{columResizeHandler:r}=e,n=SR(gk),o=SR(tG),i=wR(XU),a=w.useRef(null),s=k(null),l=SR(Tk),u=SR(kR),c=SR(ZR),d=SR(XR),p=SR(jk),{rowHeight:f,setMeasuredCellHeight:h}=jG(n),m=kW(c,u);return _G(t,a),zG(a),EG(s,i),dr.jsx(VU,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...FG,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l.headerMinRowHeight),width:o.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:r,setMeasuredCellHeight:h},direction:d,children:NG})});var HG=_($G);const BG=j((e,t)=>{const{children:r,onScroll:n}=e,o=SR(XR),i=SR(UR),{width:a,height:s}=SR(eG);return dr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:n,dir:o,tabIndex:-1,children:r})}),WG=({children:e})=>{const t=SR(XR),r=SR(tG);return dr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:r.width,height:r.height},children:e})},VG=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,a=SR(Tk),s=SR(kR),l=SR(XR),u=SR(WR),c=SR(PT),d=LG(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=s.qHyperCube.qSize.qcx-1===e,g=dW(n[e].id);return dr.jsx("div",{className:`sn-table-cell ${vE}`,title:u?p:void 0,style:{...t,...a.totalRow,...J$(a,o,!1),background:a.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:AP(l,m,c),borderLeftWidth:MP(l,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:dr.jsx(wH,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},UG=j((e,t)=>{const{totals:r}=e,n=SR(gk),o=SR(tG),i=wR(JU),a=k(null),s=k(null),l=SR(Tk),u=SR(XR),c=SR(kR),d=SR(jk),{rowHeight:p,setMeasuredCellHeight:f}=jG(n);return _G(t,a),zG(a),EG(s,i),dr.jsx(VU,{ref:a,outerRef:s,layout:"horizontal",style:FG,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l.totalRowMinHeight),width:o.width,itemData:{columns:n,totals:r,setMeasuredCellHeight:f},direction:u,children:VG})});var GG=_(UG);const YG=(e,t,r)=>{const n=SR(XR),o=SR(BI);return q(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,n),c=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=c,o.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)},[o,r,e,t,n])};var KG=_(()=>{const e=SR(mk),t=k(null),r=k(null),n=k(null),o=k(null),i=YG(r,n,o),a=q(()=>{t.current&&(t.current.scrollTop=0)},[t]);rB(),(e=>{const t=SR(bk),r=SR(mU),n=SR(pA),o=SR(nG);O(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),O(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[r,o,n,e])})(t),pB(t);const s=dr.jsx(GG,{ref:n,totals:e},"totals");return dr.jsxs(ZH,{children:[dr.jsx(BG,{ref:t,onScroll:i,children:dr.jsxs(OG,{children:[dr.jsxs(WG,{children:[dr.jsx(HG,{ref:r,columResizeHandler:a}),e.atTop?s:null,dr.jsx(TG,{ref:o}),e.atBottom?s:null]}),dr.jsx(X$,{})]})}),dr.jsx(KH,{isPagination:!1})]})});var XG=_(()=>{const e=SR(kR),t=SR(lA),r=SR(HR),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=SR(hk),s=SR(pA),l=SR(fA),u=SR(rA),[c,d]=CR(mU);return dr.jsxs(vH,{"data-testid":"sn-table",children:[dr.jsx(KG,{}),dr.jsx(fT,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:u,translator:l,theme:s,interactions:r,rect:t,layout:e})]})});const JG=e=>{const t=e.get(nA),r=e.get(eA),n=e.get(IR),o=e.get(XR);a(()=>{n&&t&&(r?function(e){const t=e.get(XR),r=e.get(dA),n=$k(t);r.render(dr.jsx(Ni,{stylisPlugins:"rtl"===t?[WM]:void 0,children:dr.jsx(Dc,{theme:n,children:dr.jsx(mR,{store:e,children:dr.jsx(Fk,{children:dr.jsx(cU,{})})})})}))}(e):function(e){const t=e.get(XR),r=e.get(dA),n=$k(t);r.render(dr.jsx(w.StrictMode,{children:dr.jsx(Dc,{theme:n,children:dr.jsx(mR,{store:e,children:dr.jsx(Fk,{children:dr.jsx(XG,{})})})})}))}(e))},[n,r,e,t,o])};function ZG(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const QG=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},eY=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const tY=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||nk.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},rY=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=YI(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=ZG(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:tY(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=QG(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(eY(h,m,g)?d:d+1)+c;let v=p+c;const y=QG(p,o),x=y?.getBoundingClientRect();return y&&x&&(eY(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:tY(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},nY=({store:e})=>{const t=e.get(kR),r=e.get(nA),n=e.get(uA),o=e.get(sA),i=e.get(ZR),a=e.get(eA);c(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get(BI),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=rY(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:u,scrollLeft:c,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:()=>rY(t,e.get(BI),n,i,a)}),[t,e,n,a])},oY={version:JSON.stringify("6.23.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 iY=e=>({properties:{initial:oY},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>TA({...e}),exportProperties:AA,exploration:OA});const aY=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),sY=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});