@nebula.js/sn-table 4.8.1 → 4.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js CHANGED
@@ -1,12 +1,24 @@
1
1
  /*
2
- * @nebula.js/sn-table v4.8.1
2
+ * @nebula.js/sn-table v4.8.2
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import{useMemo as e,useOptions as t,usePromise as r,useState as n,useEffect as o,useTheme as i,useInteractionState as a,onContextMenu as l,onTakeSnapshot as s,useImperativeHandle as u,useElement as c,useStaleLayout as d,useApp as p,useModel as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as v,useEmbed as b}from"@nebula.js/stardust";import*as y from"react";import x,{useContext as S,useState as w,useMemo as C,useEffect as E,createElement as R,isValidElement as I,cloneElement as D,Children as A,useReducer as P,createContext as M,useRef as q,useCallback as T,forwardRef as k,memo as L,useLayoutEffect as O,PureComponent as N,startTransition as _,useImperativeHandle as z}from"react";import*as j from"react-dom";import F from"react-dom";import H from"picasso-plugin-q";import B from"picasso.js";function $(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 V(e){if("object"==typeof e&&$(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}const W={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}};function U(...e){const t={type:"qcm-color",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&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if($(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 l;if(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(l[1],10),n=parseInt(l[2],10),o=parseInt(l[3],10);else if(l=/^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(l[1],10),n=parseInt(l[2],10),o=parseInt(l[3],10),i=parseFloat(l[4]);else if(l=/^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(l[1],10)/255,r=parseInt(l[2],10),n=parseInt(l[3],10),o=parseInt(l[4],10);else if(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(l[1],16),n=parseInt(l[2],16),o=parseInt(l[3],16),i=1;else if(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(l[1]+l[1],16),n=parseInt(l[2]+l[2],16),o=parseInt(l[3]+l[3],16),i=1;else if(l=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[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 s=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=s*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[s,c,0];break;case 1:d=[c,s,0];break;case 2:d=[0,s,c];break;case 3:d=[0,c,s];break;case 4:d=[c,0,s];break;case 5:d=[s,0,c];break;default:d=[0,0,0]}const p=a-.5*s;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(l=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);i=parseFloat(l[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 s=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=s*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[s,c,0];break;case 1:d=[c,s,0];break;case 2:d=[0,s,c];break;case 3:d=[0,c,s];break;case 4:d=[c,0,s];break;case 5:d=[s,0,c];break;default:d=[0,0,0]}const p=a-.5*s;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(l=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[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 s=a*t;let u=e/60;const c=s*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[s,c,0];break;case 1:d=[c,s,0];break;case 2:d=[0,s,c];break;case 3:d=[0,c,s];break;case 4:d=[c,0,s];break;case 5:d=[s,0,c];break;default:d=[0,0,0]}const p=a-s;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 W}(e)){const t=W[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 G(e){let t,r,n;if($(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?V(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}function Y(e){let t,r,n=0;const o="string"==typeof e?U(e):e,i=o.r/255,a=o.g/255,l=o.b/255,{a:s}=o,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:s}}function K(e){let t,r,n=0;const o="string"==typeof e?U(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(r=s-u,t=0===r?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function X(e){if($(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?V(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function J(e,t){return $(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:J(U(e))}function Z(e){return $(e)?1===e.a?X(e):J(e):Z(U(e))}const Q=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function ee(e){return.2126*Q(e.r)+.7152*Q(e.g)+.0722*Q(e.b)}function te(...e){const t=U(...e);return t.invalid||ee(t)<.4}function re(...e){const t=U(...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=Y(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=U(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:()=>te(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=X(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=J(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=Z(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=G(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?U(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return`hsl(${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}=Y(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}=K(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=K(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)=>re(o(18*e)),getDarkenedColor:(e=1)=>re(o(18*-e))}}function ne(e,t){if(!e||!t)return;const r=ee(e),n=ee(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}var oe,ie,ae=["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"],le=["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 se(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?le:ae}var ue=function(){if(ie)return oe;ie=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return oe=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},oe}();function ce(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function de(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}(ue);var fe=1/.7,me="\\s*([+-]?\\d+)\\s*",he="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ve=/^#([0-9a-f]{3,8})$/,be=new RegExp(`^rgb\\(${me},${me},${me}\\)$`),ye=new RegExp(`^rgb\\(${ge},${ge},${ge}\\)$`),xe=new RegExp(`^rgba\\(${me},${me},${me},${he}\\)$`),Se=new RegExp(`^rgba\\(${ge},${ge},${ge},${he}\\)$`),we=new RegExp(`^hsl\\(${he},${ge},${ge}\\)$`),Ce=new RegExp(`^hsla\\(${he},${ge},${ge},${he}\\)$`),Ee={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 Re(){return this.rgb().formatHex()}function Ie(){return this.rgb().formatRgb()}function De(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ve.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ae(t):3===r?new Te(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Pe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Pe(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=be.exec(e))?new Te(t[1],t[2],t[3],1):(t=ye.exec(e))?new Te(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xe.exec(e))?Pe(t[1],t[2],t[3],t[4]):(t=Se.exec(e))?Pe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=we.exec(e))?ze(t[1],t[2]/100,t[3]/100,1):(t=Ce.exec(e))?ze(t[1],t[2]/100,t[3]/100,t[4]):Ee.hasOwnProperty(e)?Ae(Ee[e]):"transparent"===e?new Te(NaN,NaN,NaN,0):null}function Ae(e){return new Te(e>>16&255,e>>8&255,255&e,1)}function Pe(e,t,r,n){return n<=0&&(e=t=r=NaN),new Te(e,t,r,n)}function Me(e){return e instanceof pe||(e=De(e)),e?new Te((e=e.rgb()).r,e.g,e.b,e.opacity):new Te}function qe(e,t,r,n){return 1===arguments.length?Me(e):new Te(e,t,r,null==n?1:n)}function Te(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function ke(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}`}function Le(){const e=Oe(this.opacity);return`${1===e?"rgb(":"rgba("}${Ne(this.r)}, ${Ne(this.g)}, ${Ne(this.b)}${1===e?")":`, ${e})`}`}function Oe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ne(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _e(e){return((e=Ne(e))<16?"0":"")+e.toString(16)}function ze(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Fe(e,t,r,n)}function je(e){if(e instanceof Fe)return new Fe(e.h,e.s,e.l,e.opacity);if(e instanceof pe||(e=De(e)),!e)return new Fe;if(e instanceof Fe)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Fe(a,l,s,e.opacity)}function Fe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function He(e){return(e=(e||0)%360)<0?e+360:e}function Be(e){return Math.max(0,Math.min(1,e||0))}function $e(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}ce(pe,De,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Re,formatHex:Re,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return je(this).formatHsl()},formatRgb:Ie,toString:Ie}),ce(Te,qe,de(pe,{brighter(e){return e=null==e?fe:Math.pow(fe,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Te(Ne(this.r),Ne(this.g),Ne(this.b),Oe(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:ke,formatHex:ke,formatHex8:function(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}${_e(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Le,toString:Le})),ce(Fe,(function(e,t,r,n){return 1===arguments.length?je(e):new Fe(e,t,r,null==n?1:n)}),de(pe,{brighter(e){return e=null==e?fe:Math.pow(fe,e),new Fe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Fe(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 Te($e(e>=240?e-240:e+120,o,n),$e(e,o,n),$e(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Fe(He(this.h),Be(this.s),Be(this.l),Oe(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=Oe(this.opacity);return`${1===e?"hsl(":"hsla("}${He(this.h)}, ${100*Be(this.s)}%, ${100*Be(this.l)}%${1===e?")":`, ${e})`}`}}));const Ve=Math.PI/180,We=180/Math.PI,Ue=4/29,Ge=6/29,Ye=3*Ge*Ge;function Ke(e){if(e instanceof Xe)return new Xe(e.l,e.a,e.b,e.opacity);if(e instanceof tt)return rt(e);e instanceof Te||(e=Me(e));var t,r,n=et(e.r),o=et(e.g),i=et(e.b),a=Je((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Je((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Je((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Xe(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Xe(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Je(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ye+Ue}function Ze(e){return e>Ge?e*e*e:Ye*(e-Ue)}function Qe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function et(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function tt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function rt(e){if(isNaN(e.h))return new Xe(e.l,0,0,e.opacity);var t=e.h*Ve;return new Xe(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ce(Xe,(function(e,t,r,n){return 1===arguments.length?Ke(e):new Xe(e,t,r,null==n?1:n)}),de(pe,{brighter(e){return new Xe(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Xe(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 Te(Qe(3.1338561*(t=.96422*Ze(t))-1.6168667*(e=1*Ze(e))-.4906146*(r=.82521*Ze(r))),Qe(-.9787684*t+1.9161415*e+.033454*r),Qe(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),ce(tt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof tt)return new tt(e.h,e.c,e.l,e.opacity);if(e instanceof Xe||(e=Ke(e)),0===e.a&&0===e.b)return new tt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*We;return new tt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new tt(e,t,r,null==n?1:n)}),de(pe,{brighter(e){return new tt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new tt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return rt(this).rgb()}}));var nt=e=>()=>e;function ot(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):nt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?ot: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):nt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=qe(e)).r,(t=qe(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ot(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 it="center",at="bottom";[{key:"NoDataExist",alignment:it,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:it,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:it,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:it},{key:"DataRangeIncludingZero",alignment:at},{key:"LimitedData",alignment:at},{key:"NegativeOrZeroValues",alignment:at}].reduce((function(e,t){return e[t.key]=t,e}),{});var lt,st=["__proto__","constructor"];function ut(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!st.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function dt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function pt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=mt)):void 0===t&&(t=ft);for(var r,n,o,i,a,l=new vt(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new vt(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(gt)}function ft(e){return e.children}function mt(e){return Array.isArray(e)?e[1]:null}function ht(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function gt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function vt(e){this.data=e,this.depth=this.height=0,this.parent=null}vt.prototype=pt.prototype={constructor:vt,count:function(){return this.eachAfter(dt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return pt(this).eachBefore(ht)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},lt=function(e){
7
+ import{useMemo as e,useOptions as t,usePromise as r,useState as n,useEffect as o,useTheme as i,useInteractionState as a,onContextMenu as s,onTakeSnapshot as l,useImperativeHandle as u,useElement as c,useStaleLayout as d,useApp as p,useModel as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useContext as S,useState as E,useMemo as C,useEffect as w,createElement as R,isValidElement as A,cloneElement as D,Children as L,useReducer as I,createContext as q,useRef as P,useCallback as M,forwardRef as _,memo as k,useLayoutEffect as T,PureComponent as O,startTransition as N,useImperativeHandle as F}from"react";import*as j from"react-dom";import z from"react-dom";import H from"picasso-plugin-q";import B from"picasso.js";function $(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 V(e){if("object"==typeof e&&$(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}const G={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}};function W(...e){const t={type:"qcm-color",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&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if($(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 G}(e)){const t=G[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 U(e){let t,r,n=0;const o="string"==typeof e?W(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 Y(e){let t,r,n=0;const o="string"==typeof e?W(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 K(e){if($(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?V(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function X(e,t){return $(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:X(W(e))}function J(e){return $(e)?1===e.a?K(e):X(e):J(W(e))}const Z=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Q(e){return.2126*Z(e.r)+.7152*Z(e.g)+.0722*Z(e.b)}function ee(...e){const t=W(...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=U(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=W(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=W(...e);return t.invalid||Q(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=K(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=X(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=J(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if($(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?V(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${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?W(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}=U(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}=Y(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=Y(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)=>ee(o(18*e)),getDarkenedColor:(e=1)=>ee(o(18*-e))}}function te(e,t){if(!e||!t)return;const r=Q(e),n=Q(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}var re,ne,oe=["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"],ie=["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 ae(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ie:oe}var se=function(){if(ne)return re;ne=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 re=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(m&&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(m,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},re}();function le(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ue(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ce(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(se);var de=1/.7,pe="\\s*([+-]?\\d+)\\s*",fe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",he=/^#([0-9a-f]{3,8})$/,ge=new RegExp(`^rgb\\(${pe},${pe},${pe}\\)$`),be=new RegExp(`^rgb\\(${me},${me},${me}\\)$`),ve=new RegExp(`^rgba\\(${pe},${pe},${pe},${fe}\\)$`),ye=new RegExp(`^rgba\\(${me},${me},${me},${fe}\\)$`),xe=new RegExp(`^hsl\\(${fe},${me},${me}\\)$`),Se=new RegExp(`^hsla\\(${fe},${me},${me},${fe}\\)$`),Ee={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 Ce(){return this.rgb().formatHex()}function we(){return this.rgb().formatRgb()}function Re(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=he.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ae(t):3===r?new qe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?De(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?De(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=ge.exec(e))?new qe(t[1],t[2],t[3],1):(t=be.exec(e))?new qe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ve.exec(e))?De(t[1],t[2],t[3],t[4]):(t=ye.exec(e))?De(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xe.exec(e))?Oe(t[1],t[2]/100,t[3]/100,1):(t=Se.exec(e))?Oe(t[1],t[2]/100,t[3]/100,t[4]):Ee.hasOwnProperty(e)?Ae(Ee[e]):"transparent"===e?new qe(NaN,NaN,NaN,0):null}function Ae(e){return new qe(e>>16&255,e>>8&255,255&e,1)}function De(e,t,r,n){return n<=0&&(e=t=r=NaN),new qe(e,t,r,n)}function Le(e){return e instanceof ce||(e=Re(e)),e?new qe((e=e.rgb()).r,e.g,e.b,e.opacity):new qe}function Ie(e,t,r,n){return 1===arguments.length?Le(e):new qe(e,t,r,null==n?1:n)}function qe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Pe(){return`#${Te(this.r)}${Te(this.g)}${Te(this.b)}`}function Me(){const e=_e(this.opacity);return`${1===e?"rgb(":"rgba("}${ke(this.r)}, ${ke(this.g)}, ${ke(this.b)}${1===e?")":`, ${e})`}`}function _e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ke(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Te(e){return((e=ke(e))<16?"0":"")+e.toString(16)}function Oe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Fe(e,t,r,n)}function Ne(e){if(e instanceof Fe)return new Fe(e.h,e.s,e.l,e.opacity);if(e instanceof ce||(e=Re(e)),!e)return new Fe;if(e instanceof Fe)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 Fe(a,s,l,e.opacity)}function Fe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function je(e){return(e=(e||0)%360)<0?e+360:e}function ze(e){return Math.max(0,Math.min(1,e||0))}function He(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}le(ce,Re,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ce,formatHex:Ce,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ne(this).formatHsl()},formatRgb:we,toString:we}),le(qe,Ie,ue(ce,{brighter(e){return e=null==e?de:Math.pow(de,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qe(ke(this.r),ke(this.g),ke(this.b),_e(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pe,formatHex:Pe,formatHex8:function(){return`#${Te(this.r)}${Te(this.g)}${Te(this.b)}${Te(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Me,toString:Me})),le(Fe,(function(e,t,r,n){return 1===arguments.length?Ne(e):new Fe(e,t,r,null==n?1:n)}),ue(ce,{brighter(e){return e=null==e?de:Math.pow(de,e),new Fe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Fe(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 qe(He(e>=240?e-240:e+120,o,n),He(e,o,n),He(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Fe(je(this.h),ze(this.s),ze(this.l),_e(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=_e(this.opacity);return`${1===e?"hsl(":"hsla("}${je(this.h)}, ${100*ze(this.s)}%, ${100*ze(this.l)}%${1===e?")":`, ${e})`}`}}));const Be=Math.PI/180,$e=180/Math.PI,Ve=4/29,Ge=6/29,We=3*Ge*Ge;function Ue(e){if(e instanceof Ye)return new Ye(e.l,e.a,e.b,e.opacity);if(e instanceof Qe)return et(e);e instanceof qe||(e=Le(e));var t,r,n=Ze(e.r),o=Ze(e.g),i=Ze(e.b),a=Ke((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Ke((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Ke((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ye(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ye(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Ke(e){return e>.008856451679035631?Math.pow(e,1/3):e/We+Ve}function Xe(e){return e>Ge?e*e*e:We*(e-Ve)}function Je(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ze(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Qe(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function et(e){if(isNaN(e.h))return new Ye(e.l,0,0,e.opacity);var t=e.h*Be;return new Ye(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}le(Ye,(function(e,t,r,n){return 1===arguments.length?Ue(e):new Ye(e,t,r,null==n?1:n)}),ue(ce,{brighter(e){return new Ye(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ye(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 qe(Je(3.1338561*(t=.96422*Xe(t))-1.6168667*(e=1*Xe(e))-.4906146*(r=.82521*Xe(r))),Je(-.9787684*t+1.9161415*e+.033454*r),Je(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),le(Qe,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Qe)return new Qe(e.h,e.c,e.l,e.opacity);if(e instanceof Ye||(e=Ue(e)),0===e.a&&0===e.b)return new Qe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*$e;return new Qe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Qe(e,t,r,null==n?1:n)}),ue(ce,{brighter(e){return new Qe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Qe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return et(this).rgb()}}));var tt=e=>()=>e;function rt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):tt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?rt: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):tt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Ie(e)).r,(t=Ie(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=rt(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 nt="center",ot="bottom";[{key:"NoDataExist",alignment:nt,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:nt,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:nt,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:nt},{key:"DataRangeIncludingZero",alignment:ot},{key:"LimitedData",alignment:ot},{key:"NegativeOrZeroValues",alignment:ot}].reduce((function(e,t){return e[t.key]=t,e}),{});var it,at=["__proto__","constructor"];function st(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!at.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 lt(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 ut(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 ct(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=pt)):void 0===t&&(t=dt);for(var r,n,o,i,a,s=new ht(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 ht(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(mt)}function dt(e){return e.children}function pt(e){return Array.isArray(e)?e[1]:null}function ft(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function mt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ht(e){this.data=e,this.depth=this.height=0,this.parent=null}ht.prototype=ct.prototype={constructor:ht,count:function(){return this.eachAfter(ut)},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 ct(this).eachBefore(ft)},[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)}},it=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),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))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},lt({exports:{}});const bt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function yt(t,r){return e((()=>t),r)}const xt={},St=()=>{const{viewState:n}=t(),o=(t=>{const r=e((()=>({current:xt})),[]);return r.current=r.current===xt?t:r.current,r})(new Set),i=void 0!==n,{promise:a,resolve:l}=e((()=>bt()),[]),s=yt((e=>{i&&o.current.add(e)}),[o]),u=yt(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(o.current),o.current.clear(),l()}),1e3),[l,o]);return r((async()=>{i&&await a}),[a,i]),e((()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:s})),[u,i,n,s])};function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wt.apply(null,arguments)}function Ct(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Et(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 Rt={exports:{}};function It(){}function Dt(){}Dt.resetWarningCache=It;Rt.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:Dt,resetWarningCache:It};return r.PropTypes=r,r}();var At=Ct(Rt.exports);function Pt(e){if(e.type)return e;if("#"===e.charAt(0))return Pt(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Mt(e,t){return e=Pt(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function qt(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Tt(e,t){return Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tt(e,t)}function kt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tt(e,t)}function Lt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Ot={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"},Nt={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",...Ot,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)"},_t=12,zt=14,jt=16,Ft=24,Ht=3,Bt=300,$t=400,Vt=600,Wt=700,Ut={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Mt(Nt.GREYSCALE_0,.05),Mt(Nt.GREEN_PALE,.5),Mt(Nt.BLUE_PALE,.5),Mt(Nt.GREEN_PALE,.5),Mt(Nt.BLUE_PALE,.5),Mt(Nt.GREEN_PALE,.5),Mt(Nt.BLUE_PALE,.5);Mt(Nt.GREEN_PALE,.5),Mt(Nt.BLUE_PALE,.5),Mt(Nt.GREEN_PALE,.5),Mt(Nt.BLUE_PALE,.5);var Gt={exports:{}},Yt={},Kt=x,Xt=Symbol.for("react.element"),Jt=Symbol.for("react.fragment"),Zt=Object.prototype.hasOwnProperty,Qt=Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0};function tr(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)Zt.call(t,n)&&!er.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:Xt,type:e,key:i,ref:a,props:o,_owner:Qt.current}}Yt.Fragment=Jt,Yt.jsx=tr,Yt.jsxs=tr,Gt.exports=Yt;var rr,nr=Gt.exports;function or(){return or=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},or.apply(null,arguments)}var ir,ar=function(e){return y.createElement("svg",or({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),rr||(rr=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function lr(){return lr=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},lr.apply(null,arguments)}var sr=function(e){return y.createElement("svg",lr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),ir||(ir=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function ur({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return nr.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function cr(e={}){return nr.jsx(ur,{...e,children:nr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[nr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),nr.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 dr(e={}){return nr.jsx(ur,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[nr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),nr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function pr(e={}){return nr.jsx(ur,{fontSize:"medium",...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:nr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function fr(e={}){return nr.jsx(ur,{fontSize:"medium",...e,children:nr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[nr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),nr.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 mr({className:e}){return nr.jsx(ur,{fontSize:"small",className:e,children:nr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:nr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[nr.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"}),nr.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"})]})})})})})}nr.jsx(sr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),nr.jsx(ar,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),nr.jsx(pr,{}),nr.jsx(fr,{}),nr.jsx((function(e={}){return nr.jsx(ur,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:nr.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),nr.jsx(cr,{}),nr.jsx(dr,{}),nr.jsx(ar,{style:{color:Nt.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const hr={black:"#000",white:"#fff"},gr="#e57373",vr="#ef5350",br="#f44336",yr="#d32f2f",xr="#c62828",Sr="#f3e5f5",wr="#ce93d8",Cr="#ba68c8",Er="#ab47bc",Rr="#9c27b0",Ir="#7b1fa2",Dr="#e3f2fd",Ar="#90caf9",Pr="#42a5f5",Mr="#1976d2",qr="#1565c0",Tr="#4fc3f7",kr="#29b6f6",Lr="#03a9f4",Or="#0288d1",Nr="#01579b",_r="#81c784",zr="#66bb6a",jr="#4caf50",Fr="#388e3c",Hr="#2e7d32",Br="#1b5e20",$r="#ffb74d",Vr="#ffa726",Wr="#ff9800",Ur="#f57c00",Gr="#e65100",Yr={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 Kr(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 Xr=Object.freeze({__proto__:null,default:Kr}),Jr="$$material";function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zr.apply(this,arguments)}function Qr(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var en=function(){return en=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},en.apply(this,arguments)};function tn(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 rn=Ct((function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),nn="-ms-",on="-moz-",an="-webkit-",ln="comm",sn="rule",un="decl",cn="@keyframes",dn=Math.abs,pn=String.fromCharCode,fn=Object.assign;function mn(e){return e.trim()}function hn(e,t){return(e=t.exec(e))?e[0]:e}function gn(e,t,r){return e.replace(t,r)}function vn(e,t,r){return e.indexOf(t,r)}function bn(e,t){return 0|e.charCodeAt(t)}function yn(e,t,r){return e.slice(t,r)}function xn(e){return e.length}function Sn(e){return e.length}function wn(e,t){return t.push(e),e}function Cn(e,t){return e.filter((function(e){return!hn(e,t)}))}var En=1,Rn=1,In=0,Dn=0,An=0,Pn="";function Mn(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:En,column:Rn,length:a,return:"",siblings:l}}function qn(e,t){return fn(Mn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Tn(e){for(;e.root;)e=qn(e.root,{children:[e]});wn(e,e.siblings)}function kn(){return An=Dn<In?bn(Pn,Dn++):0,Rn++,10===An&&(Rn=1,En++),An}function Ln(){return bn(Pn,Dn)}function On(){return Dn}function Nn(e,t){return yn(Pn,e,t)}function _n(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 zn(e){return mn(Nn(Dn-1,Hn(91===e?e+2:40===e?e+1:e)))}function jn(e){for(;(An=Ln())&&An<33;)kn();return _n(e)>2||_n(An)>3?"":" "}function Fn(e,t){for(;--t&&kn()&&!(An<48||An>102||An>57&&An<65||An>70&&An<97););return Nn(e,On()+(t<6&&32==Ln()&&32==kn()))}function Hn(e){for(;kn();)switch(An){case e:return Dn;case 34:case 39:34!==e&&39!==e&&Hn(An);break;case 40:41===e&&Hn(e);break;case 92:kn()}return Dn}function Bn(e,t){for(;kn()&&e+An!==57&&(e+An!==84||47!==Ln()););return"/*"+Nn(t,Dn-1)+"*"+pn(47===e?e:kn())}function $n(e){for(;!_n(Ln());)kn();return Nn(e,Dn)}function Vn(e){return function(e){return Pn="",e}(Wn("",null,null,null,[""],e=function(e){return En=Rn=1,In=xn(Pn=e),Dn=0,[]}(e),0,[0],e))}function Wn(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,w=n,C=y;g;)switch(m=b,b=kn()){case 40:if(108!=m&&58==bn(C,d-1)){-1!=vn(C+=gn(zn(b),"&","&\f"),"&\f",dn(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=zn(b);break;case 9:case 10:case 13:case 32:C+=jn(m);break;case 92:C+=Fn(On()-1,7);continue;case 47:switch(Ln()){case 42:case 47:wn(Gn(Bn(kn(),On()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=xn(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=gn(C,/\f/g,"")),f>0&&xn(C)-d&&wn(f>32?Yn(C+";",n,r,d-1,s):Yn(gn(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(wn(w=Un(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)Wn(C,t,w,w,x,i,d,l,S);else switch(99===p&&110===bn(C,3)?100:p){case 100:case 108:case 109:case 115:Wn(e,w,w,n&&wn(Un(e,w,w,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:Wn(C,w,w,w,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+xn(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==(An=Dn>0?bn(Pn,--Dn):0,Rn--,10===An&&(Rn=1,En--),An))continue;switch(C+=pn(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(xn(C)-1)*v,v=1;break;case 64:45===Ln()&&(C+=zn(kn())),p=Ln(),c=d=xn(y=C+=$n(On())),b++;break;case 45:45===m&&2==xn(C)&&(h=0)}}return i}function Un(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Sn(f),h=0,g=0,v=0;h<n;++h)for(var b=0,y=yn(e,p+1,p=dn(g=a[h])),x=e;b<m;++b)(x=mn(g>0?f[b]+" "+y:gn(y,/&\f/g,f[b])))&&(s[v++]=x);return Mn(e,t,r,0===o?sn:l,s,u,c,d)}function Gn(e,t,r,n){return Mn(e,t,r,ln,pn(An),yn(e,2,-2),0,n)}function Yn(e,t,r,n,o){return Mn(e,t,r,un,yn(e,0,n),yn(e,n+1,-1),n,o)}function Kn(e,t,r){switch(function(e,t){return 45^bn(e,0)?(((t<<2^bn(e,0))<<2^bn(e,1))<<2^bn(e,2))<<2^bn(e,3):0}(e,t)){case 5103:return an+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return an+e+e;case 4789:return on+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return an+e+on+e+nn+e+e;case 5936:switch(bn(e,t+11)){case 114:return an+e+nn+gn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return an+e+nn+gn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return an+e+nn+gn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return an+e+nn+e+e;case 6165:return an+e+nn+"flex-"+e+e;case 5187:return an+e+gn(e,/(\w+).+(:[^]+)/,an+"box-$1$2"+nn+"flex-$1$2")+e;case 5443:return an+e+nn+"flex-item-"+gn(e,/flex-|-self/g,"")+(hn(e,/flex-|baseline/)?"":nn+"grid-row-"+gn(e,/flex-|-self/g,""))+e;case 4675:return an+e+nn+"flex-line-pack"+gn(e,/align-content|flex-|-self/g,"")+e;case 5548:return an+e+nn+gn(e,"shrink","negative")+e;case 5292:return an+e+nn+gn(e,"basis","preferred-size")+e;case 6060:return an+"box-"+gn(e,"-grow","")+an+e+nn+gn(e,"grow","positive")+e;case 4554:return an+gn(e,/([^-])(transform)/g,"$1"+an+"$2")+e;case 6187:return gn(gn(gn(e,/(zoom-|grab)/,an+"$1"),/(image-set)/,an+"$1"),e,"")+e;case 5495:case 3959:return gn(e,/(image-set\([^]*)/,an+"$1$`$1");case 4968:return gn(gn(e,/(.+:)(flex-)?(.*)/,an+"box-pack:$3"+nn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+an+e+e;case 4200:if(!hn(e,/flex-|baseline/))return nn+"grid-column-align"+yn(e,t)+e;break;case 2592:case 3360:return nn+gn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,hn(e.props,/grid-\w+-end/)}))?~vn(e+(r=r[t].value),"span",0)?e:nn+gn(e,"-start","")+e+nn+"grid-row-span:"+(~vn(r,"span",0)?hn(r,/\d+/):+hn(r,/\d+/)-+hn(e,/\d+/))+";":nn+gn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return hn(e.props,/grid-\w+-start/)}))?e:nn+gn(gn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return gn(e,/(.+)-inline(.+)/,an+"$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(xn(e)-1-t>6)switch(bn(e,t+1)){case 109:if(45!==bn(e,t+4))break;case 102:return gn(e,/(.+:)(.+)-([^]+)/,"$1"+an+"$2-$3$1"+on+(108==bn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~vn(e,"stretch",0)?Kn(gn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return gn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return nn+r+":"+n+l+(o?nn+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===bn(e,t+6))return gn(e,":",":"+an)+e;break;case 6444:switch(bn(e,45===bn(e,14)?18:11)){case 120:return gn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+an+(45===bn(e,14)?"inline-":"")+"box$3$1"+an+"$2$3$1"+nn+"$2box$3")+e;case 100:return gn(e,":",":"+nn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return gn(e,"scroll-","scroll-snap-")+e}return e}function Xn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Jn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case un:return e.return=e.return||e.value;case ln:return"";case cn:return e.return=e.value+"{"+Xn(e.children,n)+"}";case sn:if(!xn(e.value=e.props.join(",")))return""}return xn(r=Xn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Zn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case un:return void(e.return=Kn(e.value,e.length,r));case cn:return Xn([qn(e,{value:gn(e.value,"@","@"+an)})],n);case sn:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(hn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Tn(qn(e,{props:[gn(t,/:(read-\w+)/,":-moz-$1")]})),Tn(qn(e,{props:[t]})),fn(e,{props:Cn(r,n)});break;case"::placeholder":Tn(qn(e,{props:[gn(t,/:(plac\w+)/,":"+an+"input-$1")]})),Tn(qn(e,{props:[gn(t,/:(plac\w+)/,":-moz-$1")]})),Tn(qn(e,{props:[gn(t,/:(plac\w+)/,nn+"input-$1")]})),Tn(qn(e,{props:[t]})),fn(e,{props:Cn(r,n)})}return""}))}}var Qn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},eo="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",to="active",ro="data-styled-version",no="6.1.18",oo="/*!sc*/\n",io="undefined"!=typeof window&&"undefined"!=typeof document,ao=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)),lo={},so=Object.freeze([]),uo=Object.freeze({});function co(e,t,r){return void 0===r&&(r=uo),e.theme!==r.theme&&e.theme||t||r.theme}var po=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),fo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,mo=/(^-|-$)/g;function ho(e){return e.replace(fo,"-").replace(mo,"")}var go=/(a)(d)/gi,vo=function(e){return String.fromCharCode(e+(e>25?39:97))};function bo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=vo(t%52)+r;return(vo(t%52)+r).replace(go,"$1-$2")}var yo,xo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},So=function(e){return xo(5381,e)};function wo(e){return bo(So(e)>>>0)}function Co(e){return"string"==typeof e&&!0}var Eo="function"==typeof Symbol&&Symbol.for,Ro=Eo?Symbol.for("react.memo"):60115,Io=Eo?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},Ao={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Po={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Mo=((yo={})[Io]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yo[Ro]=Po,yo);function qo(e){return("type"in(t=e)&&t.type.$$typeof)===Ro?Po:"$$typeof"in e?Mo[e.$$typeof]:Do;var t}var To=Object.defineProperty,ko=Object.getOwnPropertyNames,Lo=Object.getOwnPropertySymbols,Oo=Object.getOwnPropertyDescriptor,No=Object.getPrototypeOf,_o=Object.prototype;function zo(e,t,r){if("string"!=typeof t){if(_o){var n=No(t);n&&n!==_o&&zo(e,n,r)}var o=ko(t);Lo&&(o=o.concat(Lo(t)));for(var i=qo(e),a=qo(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Ao||r&&r[s]||a&&s in a||i&&s in i)){var u=Oo(t,s);try{To(e,s,u)}catch(e){}}}}return e}function jo(e){return"function"==typeof e}function Fo(e){return"object"==typeof e&&"styledComponentId"in e}function Ho(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Bo(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function $o(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Vo(e,t,r){if(void 0===r&&(r=!1),!r&&!$o(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Vo(e[n],t[n]);else if($o(t))for(var n in t)e[n]=Vo(e[n],t[n]);return e}function Wo(e,t){Object.defineProperty(e,"toString",{value:t})}function Uo(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 Go=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Uo(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(oo);return t},e}(),Yo=new Map,Ko=new Map,Xo=1,Jo=function(e){if(Yo.has(e))return Yo.get(e);for(;Ko.has(Xo);)Xo++;var t=Xo++;return Yo.set(e,t),Ko.set(t,e),t},Zo=function(e,t){Xo=t+1,Yo.set(e,t),Ko.set(t,e)},Qo="style[".concat(eo,"][").concat(ro,'="').concat(no,'"]'),ei=new RegExp("^".concat(eo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),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(oo),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(ei);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Zo(c,u),ti(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},ni=function(e){for(var t=document.querySelectorAll(Qo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(eo)!==to&&(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(eo,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(eo,to),n.setAttribute(ro,no);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){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw Uo(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}(),li=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),si=io,ui={isServer:!io,useCSSOMInjection:!ao},ci=function(){function e(e,t,r){void 0===e&&(e=uo),void 0===t&&(t={});var n=this;this.options=en(en({},ui),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&io&&si&&(si=!1,ni(this)),Wo(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Ko.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(eo,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(oo)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Jo(e)},e.prototype.rehydrate=function(){!this.server&&io&&ni(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(en(en({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new li(r):t?new ii(r):new ai(r)}(this.options),new Go(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Jo(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Jo(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Jo(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),di=/&/g,pi=/^\s*\/\/.*$/gm;function fi(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=fi(e.children,t)),e}))}function mi(e){var t,r,n,o=void 0===e?uo:e,i=o.options,a=void 0===i?uo:i,l=o.plugins,s=void 0===l?so:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===sn&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(di,r).replace(n,u))})),a.prefix&&c.push(Zn),c.push(Jn);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(pi,""),u=Vn(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=fi(u,a.namespace));var d,p=[];return Xn(u,function(e){var t=Sn(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||Uo(15),xo(e,t.name)}),5381).toString():"",d}var hi=new ci,gi=mi(),vi=x.createContext({shouldForwardProp:void 0,styleSheet:hi,stylis:gi});vi.Consumer;var bi=x.createContext(void 0);function yi(){return S(vi)}function xi(e){var t=w(e.stylisPlugins),r=t[0],n=t[1],o=yi().styleSheet,i=C((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=C((function(){return mi({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);E((function(){rn(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var l=C((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(vi.Provider,{value:l},x.createElement(bi.Provider,{value:a},e.children))}var Si=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=gi);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,Wo(this,(function(){throw Uo(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=gi),this.name+e.hash},e}(),wi=function(e){return e>="A"&&e<="Z"};function Ci(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;wi(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Ei=function(e){return null==e||!1===e||""===e},Ri=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ei(i)&&(Array.isArray(i)&&i.isCss||jo(i)?n.push("".concat(Ci(o),":"),i,";"):$o(i)?n.push.apply(n,tn(tn(["".concat(o," {")],Ri(i),!1),["}"],!1)):n.push("".concat(Ci(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Qn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ii(e,t,r,n){return Ei(e)?[]:Fo(e)?[".".concat(e.styledComponentId)]:jo(e)?!jo(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ii(e(t),t,r,n):e instanceof Si?r?(e.inject(r,n),[e.getName(n)]):[e]:$o(e)?Ri(e):Array.isArray(e)?Array.prototype.concat.apply(so,e.map((function(e){return Ii(e,t,r,n)}))):[e.toString()];var o}function Di(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(jo(r)&&!Fo(r))return!1}return!0}var Ai=So(no),Pi=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Di(e),this.componentId=t,this.baseHash=xo(Ai,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):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Ho(n,this.staticRulesId);else{var o=Bo(Ii(this.rules,e,t,r)),i=bo(xo(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=Ho(n,i),this.staticRulesId=i}else{for(var l=xo(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Bo(Ii(c,e,t,r));l=xo(l,d+u),s+=d}}if(s){var p=bo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=Ho(n,p)}}return n},e}(),Mi=x.createContext(void 0);Mi.Consumer;var qi={};function Ti(e,t,r){var n=Fo(e),o=e,i=!Co(e),a=t.attrs,l=void 0===a?so:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":ho(e);qi[r]=(qi[r]||0)+1;var n="".concat(r,"-").concat(wo(no+r+qi[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Co(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(ho(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new Pi(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,l=e.styledComponentId,s=e.target,u=x.useContext(Mi),c=yi(),d=e.shouldForwardProp||c.shouldForwardProp,p=co(t,u,i)||uo,f=function(e,t,r){for(var n,o=en(en({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=jo(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?Ho(o[l],a[l]):"style"===l?en(en({},o[l]),a[l]):a[l]}return t.className&&(o.className=Ho(o.className,t.className)),o}(n,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var v=function(e,t){var r=yi();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),b=Ho(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),h[Co(m)&&!po.has(m)?"class":"className"]=b,r&&(h.ref=r),R(m,h)}(y,e,t)}b.displayName=d;var y=x.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=n?Ho(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++)Vo(e,o[n],!0);return e}({},o.defaultProps,e):e}}),Wo(y,(function(){return".".concat(y.styledComponentId)})),i&&zo(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function ki(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 Li=function(e){return Object.assign(e,{isCss:!0})};function Oi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(jo(e)||$o(e))return Li(Ii(ki(so,tn([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ii(n):Li(Ii(ki(n,t)))}function Ni(e,t,r){if(void 0===r&&(r=uo),!t)throw Uo(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Oi.apply(void 0,tn([n],o,!1)))};return n.attrs=function(n){return Ni(e,t,en(en({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Ni(e,t,en(en({},r),n))},n}var _i=function(e){return Ni(Ti,e)},zi=_i;po.forEach((function(e){zi[e]=_i(e)}));var ji=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Di(e),ci.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Bo(Ii(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),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Fi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Bo(Oi.apply(void 0,tn([e],t,!1))),o=wo(n);return new Si(o,n)}function Hi(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}Hi.propTypes={children:At.node,injectFirst:At.bool};const Bi=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Oi.apply(void 0,tn([e],t,!1)),o="sc-global-".concat(wo(JSON.stringify(n))),i=new ji(n,o),a=function(e){var t=yi(),r=x.useContext(Mi),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&l(n,e,t.styleSheet,r,t.stylis),x.useLayoutEffect((function(){if(!t.styleSheet.server)return l(n,e,t.styleSheet,r,t.stylis),function(){return i.removeStyles(n,t.styleSheet)}}),[n,e,t.styleSheet,r,t.stylis]),null};function l(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,lo,r,o);else{var l=en(en({},t),{theme:co(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}return x.memo(a)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
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\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",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(h="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},it({exports:{}});const gt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function bt(t,r){return e((()=>t),r)}const vt={},yt=()=>{const{viewState:n}=t(),o=(t=>{const r=e((()=>({current:vt})),[]);return r.current=r.current===vt?t:r.current,r})(new Set),i=void 0!==n,{promise:a,resolve:s}=e((()=>gt()),[]),l=bt((e=>{i&&o.current.add(e)}),[o]),u=bt(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(o.current),o.current.clear(),s()}),1e3),[s,o]);return r((async()=>{i&&await a}),[a,i]),e((()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,n,l])};function xt(e,t){return function(){return null}}function St(){return St=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},St.apply(null,arguments)}function Et(e){return Et="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},Et(e)}function Ct(e){return e&&"object"===Et(e)&&e.constructor===Object}function wt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?St({},e):e;return Ct(e)&&Ct(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Ct(t[o])&&o in e?n[o]=wt(e[o],t[o],r):n[o]=t[o])})),n}function Rt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function At(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 Dt={exports:{}};function Lt(){}function It(){}It.resetWarningCache=Lt;Dt.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:It,resetWarningCache:Lt};return r.PropTypes=r,r}();var qt=Rt(Dt.exports),Pt=(qt.element,function(){return null});Pt.isRequired=(qt.element.isRequired,function(){return null});var Mt=function(){return null};function _t(e){var t=function(e,t){if("object"!=Et(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Et(t)?t:t+""}function kt(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."}var Tt={exports:{}},Ot={},Nt=60103,Ft=60106,jt=60107,zt=60108,Ht=60114,Bt=60109,$t=60110,Vt=60112,Gt=60113,Wt=60120,Ut=60115,Yt=60116,Kt=60121,Xt=60122,Jt=60117,Zt=60129,Qt=60131;if("function"==typeof Symbol&&Symbol.for){var er=Symbol.for;Nt=er("react.element"),Ft=er("react.portal"),jt=er("react.fragment"),zt=er("react.strict_mode"),Ht=er("react.profiler"),Bt=er("react.provider"),$t=er("react.context"),Vt=er("react.forward_ref"),Gt=er("react.suspense"),Wt=er("react.suspense_list"),Ut=er("react.memo"),Yt=er("react.lazy"),Kt=er("react.block"),Xt=er("react.server.block"),Jt=er("react.fundamental"),Zt=er("react.debug_trace_mode"),Qt=er("react.legacy_hidden")}function tr(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Nt:switch(e=e.type){case jt:case Ht:case zt:case Gt:case Wt:return e;default:switch(e=e&&e.$$typeof){case $t:case Vt:case Yt:case Ut:case Bt:return e;default:return t}}case Ft:return t}}}var rr=Bt,nr=Nt,or=Vt,ir=jt,ar=Yt,sr=Ut,lr=Ft,ur=Ht,cr=zt,dr=Gt;Ot.ContextConsumer=$t,Ot.ContextProvider=rr,Ot.Element=nr,Ot.ForwardRef=or,Ot.Fragment=ir,Ot.Lazy=ar,Ot.Memo=sr,Ot.Portal=lr,Ot.Profiler=ur,Ot.StrictMode=cr,Ot.Suspense=dr,Ot.isAsyncMode=function(){return!1},Ot.isConcurrentMode=function(){return!1},Ot.isContextConsumer=function(e){return tr(e)===$t},Ot.isContextProvider=function(e){return tr(e)===Bt},Ot.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Nt},Ot.isForwardRef=function(e){return tr(e)===Vt},Ot.isFragment=function(e){return tr(e)===jt},Ot.isLazy=function(e){return tr(e)===Yt},Ot.isMemo=function(e){return tr(e)===Ut},Ot.isPortal=function(e){return tr(e)===Ft},Ot.isProfiler=function(e){return tr(e)===Ht},Ot.isStrictMode=function(e){return tr(e)===zt},Ot.isSuspense=function(e){return tr(e)===Gt},Ot.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===jt||e===Ht||e===Zt||e===zt||e===Gt||e===Wt||e===Qt||"object"==typeof e&&null!==e&&(e.$$typeof===Yt||e.$$typeof===Ut||e.$$typeof===Bt||e.$$typeof===$t||e.$$typeof===Vt||e.$$typeof===Jt||e.$$typeof===Kt||e[0]===Xt)},Ot.typeOf=tr,Tt.exports=Ot;var pr=Tt.exports,fr=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function mr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(fr);return t&&t[1]||""}(e)||t}function hr(e,t,r){var n=mr(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var gr="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),br=qt.oneOfType([qt.func,qt.object]),vr=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:xt,deepmerge:wt,elementAcceptingRef:Pt,elementTypeAcceptingRef:Mt,exactProp:function(e){return e},formatMuiErrorMessage:kt,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return mr(e,"Component");if("object"===Et(e))switch(e.$$typeof){case pr.ForwardRef:return hr(e,e.render,"ForwardRef");case pr.Memo:return hr(e,e.type,"memo");default:return}}},ponyfillGlobal:gr,refType:br});function yr(e){if(e.type)return e;if("#"===e.charAt(0))return yr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(kt(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 xr(e,t){return e=yr(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function Sr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Er(e,t){if(null==e)return{};var r,n,o=Sr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Cr(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 wr(e,t){if(e){if("string"==typeof e)return Cr(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)?Cr(e,t):void 0}}function Rr(e){return function(e){if(Array.isArray(e))return Cr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wr(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 Ar(e,t){return t?wt(e,t,{clone:!1}):e}var Dr={xs:0,sm:600,md:960,lg:1280,xl:1920},Lr={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Dr[e],"px)")}};function Ir(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Lr;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Et(t)){var o=e.theme.breakpoints||Lr;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function qr(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Pr(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=qr(e.theme,o)||{};return Ir(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=qr(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=_t(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 Mr(){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?Ar(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function _r(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var kr=Pr({prop:"border",themeKey:"borders",transform:_r}),Tr=Pr({prop:"borderTop",themeKey:"borders",transform:_r}),Or=Pr({prop:"borderRight",themeKey:"borders",transform:_r}),Nr=Pr({prop:"borderBottom",themeKey:"borders",transform:_r}),Fr=Pr({prop:"borderLeft",themeKey:"borders",transform:_r}),jr=Pr({prop:"borderColor",themeKey:"palette"}),zr=Pr({prop:"borderRadius",themeKey:"shape"}),Hr=Mr(kr,Tr,Or,Nr,Fr,jr,zr);function Br(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function $r(e){var t=function(t){var r=e(t);return t.css?St({},Ar(r,e(St({theme:t.theme},t.css))),Br(t.css,[e.filterProps])):t.sx?St({},Ar(r,e(St({theme:t.theme},t.sx))),Br(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(Rr(e.filterProps)),t}var Vr=Mr(Pr({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Pr({prop:"display"}),Pr({prop:"overflow"}),Pr({prop:"textOverflow"}),Pr({prop:"visibility"}),Pr({prop:"whiteSpace"})),Gr=Pr({prop:"flexBasis"}),Wr=Pr({prop:"flexDirection"}),Ur=Pr({prop:"flexWrap"}),Yr=Pr({prop:"justifyContent"}),Kr=Pr({prop:"alignItems"}),Xr=Pr({prop:"alignContent"}),Jr=Pr({prop:"order"}),Zr=Pr({prop:"flex"}),Qr=Pr({prop:"flexGrow"}),en=Pr({prop:"flexShrink"}),tn=Pr({prop:"alignSelf"}),rn=Pr({prop:"justifyItems"}),nn=Pr({prop:"justifySelf"}),on=Mr(Gr,Wr,Ur,Yr,Kr,Xr,Jr,Zr,Qr,en,tn,rn,nn),an=Pr({prop:"gridGap"}),sn=Pr({prop:"gridColumnGap"}),ln=Pr({prop:"gridRowGap"}),un=Pr({prop:"gridColumn"}),cn=Pr({prop:"gridRow"}),dn=Pr({prop:"gridAutoFlow"}),pn=Pr({prop:"gridAutoColumns"}),fn=Pr({prop:"gridAutoRows"}),mn=Pr({prop:"gridTemplateColumns"}),hn=Pr({prop:"gridTemplateRows"}),gn=Pr({prop:"gridTemplateAreas"}),bn=Pr({prop:"gridArea"}),vn=Mr(an,sn,ln,un,cn,dn,pn,fn,mn,hn,gn,bn),yn=Pr({prop:"color",themeKey:"palette"}),xn=Pr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Sn=Mr(yn,xn),En=Pr({prop:"position"}),Cn=Pr({prop:"zIndex",themeKey:"zIndex"}),wn=Pr({prop:"top"}),Rn=Pr({prop:"right"}),An=Pr({prop:"bottom"}),Dn=Pr({prop:"left"}),Ln=Mr(En,Cn,wn,Rn,An,Dn),In=Pr({prop:"boxShadow",themeKey:"shadows"});function qn(e){return e<=1?"".concat(100*e,"%"):e}var Pn=Pr({prop:"width",transform:qn}),Mn=Pr({prop:"maxWidth",transform:qn}),_n=Pr({prop:"minWidth",transform:qn}),kn=Pr({prop:"height",transform:qn}),Tn=Pr({prop:"maxHeight",transform:qn}),On=Pr({prop:"minHeight",transform:qn}),Nn=Pr({prop:"size",cssProperty:"width",transform:qn}),Fn=Pr({prop:"size",cssProperty:"height",transform:qn}),jn=Pr({prop:"boxSizing"}),zn=Mr(Pn,Mn,_n,kn,Tn,On,jn);function Hn(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)||wr(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 Bn={m:"margin",p:"padding"},$n={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Vn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Gn=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(!Vn[e])return[e];e=Vn[e]}var t=Hn(e.split(""),2),r=t[0],n=t[1],o=Bn[r],i=$n[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Wn=["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 Un(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 Yn(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 Kn(e){var t=Un(e.theme);return Object.keys(e).map((function(r){if(-1===Wn.indexOf(r))return null;var n=Yn(Gn(r),t),o=e[r];return Ir(e,o,n)})).reduce(Ar,{})}Kn.propTypes={},Kn.filterProps=Wn;var Xn=Pr({prop:"fontFamily",themeKey:"typography"}),Jn=Pr({prop:"fontSize",themeKey:"typography"}),Zn=Pr({prop:"fontStyle",themeKey:"typography"}),Qn=Pr({prop:"fontWeight",themeKey:"typography"}),eo=Pr({prop:"letterSpacing"}),to=Pr({prop:"lineHeight"}),ro=Pr({prop:"textAlign"}),no=Mr(Xn,Jn,Zn,Qn,eo,to,ro),oo=Object.freeze({__proto__:null,alignContent:Xr,alignItems:Kr,alignSelf:tn,bgcolor:xn,border:kr,borderBottom:Nr,borderColor:jr,borderLeft:Fr,borderRadius:zr,borderRight:Or,borderTop:Tr,borders:Hr,bottom:An,boxSizing:jn,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Lr,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(St({theme:t.theme},t[o]))),r}),null);return Ar(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Rr(e.filterProps)),t},color:yn,compose:Mr,createUnarySpacing:Un,css:function(e){return $r(e)},display:Vr,flex:Zr,flexBasis:Gr,flexDirection:Wr,flexGrow:Qr,flexShrink:en,flexWrap:Ur,flexbox:on,fontFamily:Xn,fontSize:Jn,fontStyle:Zn,fontWeight:Qn,grid:vn,gridArea:bn,gridAutoColumns:pn,gridAutoFlow:dn,gridAutoRows:fn,gridColumn:un,gridColumnGap:sn,gridGap:an,gridRow:cn,gridRowGap:ln,gridTemplateAreas:gn,gridTemplateColumns:mn,gridTemplateRows:hn,height:kn,justifyContent:Yr,justifyItems:rn,justifySelf:nn,left:Dn,letterSpacing:eo,lineHeight:to,maxHeight:Tn,maxWidth:Mn,minHeight:On,minWidth:_n,order:Jr,palette:Sn,position:En,positions:Ln,right:Rn,shadows:In,sizeHeight:Fn,sizeWidth:Nn,sizing:zn,spacing:Kn,style:Pr,styleFunctionSx:$r,textAlign:ro,top:wn,typography:no,width:Pn,zIndex:Cn}),io="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ao=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function so(){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!==ao.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[io]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function lo(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 uo="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},co="object"===("undefined"==typeof window?"undefined":uo(window))&&"object"===("undefined"==typeof document?"undefined":uo(document))&&9===document.nodeType;function po(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,_t(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fo(e,t){return fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fo(e,t)}function mo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fo(e,t)}function ho(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var go={}.constructor;function bo(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(bo);if(e.constructor!==go)return e;var t={};for(var r in e)t[r]=bo(e[r]);return t}function vo(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=bo(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var yo=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},xo=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+=yo(e[r]," ");else t=yo(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function So(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Eo(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Co(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=So(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+=Eo(p+":"+u+xo(f)+";",i))}}else for(var m in a){var h=a[m];null!=h&&(n&&(n+=l),n+=Eo(m+":"+u+xo(h)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=Eo(g+":"+u+xo(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Eo(""+e+u+"{"+n,--i)+Eo("}",i)):n}var wo=/([[\].#*$><+~=|^:(),"'`\s])/g,Ro="undefined"!=typeof CSS&&CSS.escape,Ao=function(e){return Ro?Ro(e):e.replace(wo,"\\$1")},Do=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}(),Lo=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(ho(ho(o)),s),o.selectorText="."+Ao(o.id)),o}mo(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]=xo(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?St({},e,{allowEmpty:!0}):e;return Co(this.selectorText,this.style,r)},po(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}(Do),Io={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Lo(e,t,r)}},qo={indent:1,children:!0},Po=/@([\w-]+)/,Mo=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Po);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ri(St({},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=qo);var t=So(e).linebreak;if(null==e.indent&&(e.indent=qo.indent),null==e.children&&(e.children=qo.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),_o=/@container|@media|@supports\s+/,ko={onCreateRule:function(e,t,r){return _o.test(e)?new Mo(e,t,r):null}},To={indent:1,children:!0},Oo=/@keyframes\s+([\w-]+)/,No=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Oo);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:Ao(a(this,i)),this.rules=new ri(St({},r,{parent:this})),t)this.rules.add(s,t[s],St({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=To);var t=So(e).linebreak;if(null==e.indent&&(e.indent=To.indent),null==e.children&&(e.children=To.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}(),Fo=/@keyframes\s+/,jo=/\$([\w-]+)/g,zo=function(e,t){return"string"==typeof e?e.replace(jo,(function(e,r){return r in t?t[r]:e})):e},Ho=function(e,t,r){var n=e[t],o=zo(n,r);o!==n&&(e[t]=o)},Bo={onCreateRule:function(e,t,r){return"string"==typeof e&&Fo.test(e)?new No(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Ho(e,"animation-name",r.keyframes),"animation"in e&&Ho(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 zo(e,n.keyframes);default:return e}}},$o=function(e){function t(){return e.apply(this,arguments)||this}return mo(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?St({},e,{allowEmpty:!0}):e;return Co(this.key,this.style,r)},t}(Do),Vo={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new $o(e,t,r):null}},Go=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=So(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Co(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Co(this.at,this.style,e)},e}(),Wo=/@font-face/,Uo={onCreateRule:function(e,t,r){return Wo.test(e)?new Go(e,t,r):null}},Yo=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 Co(this.key,this.style,e)},e}(),Ko={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Yo(e,t,r):null}},Xo=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}(),Jo={"@charset":!0,"@import":!0,"@namespace":!0},Zo={onCreateRule:function(e,t,r){return e in Jo?new Xo(e,t,r):null}},Qo=[Io,ko,Bo,Vo,Uo,Ko,Zo],ei={process:!0},ti={force:!0,process:!0},ri=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=St({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="."+Ao(this.classes[d]));var p=vo(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=St({},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 Lo?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof No&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Lo?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof No&&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=ei);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,ti)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ti)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=So(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}(),ni=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=St({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ri(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}(),oi=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}(),ii=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=Sr(t,["attached"]),o=So(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},po(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ai=new ii,si="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),li="2f1acc6c3a606b082e5eef5e54414ffb";null==si[li]&&(si[li]=0);var ui=si[li]++,ci=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")+ui+o+t:i+r.key+"-"+ui+(o?"-"+o:"")+"-"+t}},di=function(e){var t;return function(){return t||(t=e()),t}},pi=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},fi=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=xo(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},mi=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},hi=function(e,t){return e.selectorText=t,e.selectorText===t},gi=di((function(){return document.querySelector("head")}));function bi(e){var t=ai.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=gi(),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 vi=di((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),yi=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]},xi=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Si=function(){function e(e){this.getPropertyValue=pi,this.setProperty=fi,this.removeProperty=mi,this.setSelector=hi,this.hasInsertedRules=!1,this.cssRules=[],e&&ai.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=vi();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=bi(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 gi().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=xi(r,t);if(!1===(o=yi(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=xi(r,t),l=yi(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 ni&&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}(),Ei=0,Ci=function(){function e(e){this.id=Ei++,this.version="10.10.0",this.plugins=new oi,this.options={id:{minify:!1},createGenerateId:ci,Renderer:co?Si:null,plugins:[]},this.generateId=ci({minify:!1});for(var t=0;t<Qo.length;t++)this.plugins.use(Qo[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=St({},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===ai.index?0:ai.index+1);var n=new ni(e,St({},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(),ai.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=St({},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=vo(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}(),wi=function(e){return new Ci(e)},Ri="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Ai(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=Ai(n);i&&(t||(t={}),t[r]=i)}}return t}
10
+ /**
11
+ * A better abstraction over CSS.
12
+ *
13
+ * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
14
+ * @website https://github.com/cssinjs/jss
15
+ * @license MIT
16
+ */wi();var Di=Date.now(),Li="fnValues"+Di,Ii="fnStyle"+ ++Di,qi="@global",Pi="@global ",Mi=function(){function e(e,t,r){for(var n in this.type="global",this.at=qi,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new ri(St({},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}(),_i=function(){function e(e,t,r){this.type="global",this.at=qi,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,St({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ki=/\s*,\s*/g;function Ti(e,t){for(var r=e.split(ki),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Oi(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===qi)return new Mi(e,t,r);if("@"===e[0]&&e.substr(0,8)===Pi)return new _i(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[qi]:null;if(o){for(var i in o)t.addRule(i,o[i],St({},r,{selector:Ti(i,e.selector)}));delete n[qi]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===qi){var i=Ti(o.substr(7),e.selector);t.addRule(i,n[o],St({},r,{selector:i})),delete n[o]}}(e,t))}}}var Ni=/\s*,\s*/g,Fi=/&/g,ji=/\$([\w-]+)/g;function zi(){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(Ni),n=e.split(Ni),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(Fi,a):a+" "+l}return o}function r(e,t,r){if(r)return St({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=St({},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(ji,s);var m=l.key+"-"+c;"replaceRule"in u?u.replaceRule(m,n[c],St({},a,{selector:f})):u.addRule(m,n[c],St({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Hi=/[A-Z]/g,Bi=/^ms-/,$i={};function Vi(e){return"-"+e.toLowerCase()}function Gi(e){if($i.hasOwnProperty(e))return $i[e];var t=e.replace(Hi,Vi);return $i[e]=Bi.test(t)?"-"+t:t}function Wi(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Gi(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Wi):t.fallbacks=Wi(e.fallbacks)),t}var Ui=Ri&&CSS?CSS.px:"px",Yi=Ri&&CSS?CSS.ms:"ms",Ki=Ri&&CSS?CSS.percent:"%";function Xi(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 Ji=Xi({"animation-delay":Yi,"animation-duration":Yi,"background-position":Ui,"background-position-x":Ui,"background-position-y":Ui,"background-size":Ui,border:Ui,"border-bottom":Ui,"border-bottom-left-radius":Ui,"border-bottom-right-radius":Ui,"border-bottom-width":Ui,"border-left":Ui,"border-left-width":Ui,"border-radius":Ui,"border-right":Ui,"border-right-width":Ui,"border-top":Ui,"border-top-left-radius":Ui,"border-top-right-radius":Ui,"border-top-width":Ui,"border-width":Ui,"border-block":Ui,"border-block-end":Ui,"border-block-end-width":Ui,"border-block-start":Ui,"border-block-start-width":Ui,"border-block-width":Ui,"border-inline":Ui,"border-inline-end":Ui,"border-inline-end-width":Ui,"border-inline-start":Ui,"border-inline-start-width":Ui,"border-inline-width":Ui,"border-start-start-radius":Ui,"border-start-end-radius":Ui,"border-end-start-radius":Ui,"border-end-end-radius":Ui,margin:Ui,"margin-bottom":Ui,"margin-left":Ui,"margin-right":Ui,"margin-top":Ui,"margin-block":Ui,"margin-block-end":Ui,"margin-block-start":Ui,"margin-inline":Ui,"margin-inline-end":Ui,"margin-inline-start":Ui,padding:Ui,"padding-bottom":Ui,"padding-left":Ui,"padding-right":Ui,"padding-top":Ui,"padding-block":Ui,"padding-block-end":Ui,"padding-block-start":Ui,"padding-inline":Ui,"padding-inline-end":Ui,"padding-inline-start":Ui,"mask-position-x":Ui,"mask-position-y":Ui,"mask-size":Ui,height:Ui,width:Ui,"min-height":Ui,"max-height":Ui,"min-width":Ui,"max-width":Ui,bottom:Ui,left:Ui,top:Ui,right:Ui,inset:Ui,"inset-block":Ui,"inset-block-end":Ui,"inset-block-start":Ui,"inset-inline":Ui,"inset-inline-end":Ui,"inset-inline-start":Ui,"box-shadow":Ui,"text-shadow":Ui,"column-gap":Ui,"column-rule":Ui,"column-rule-width":Ui,"column-width":Ui,"font-size":Ui,"font-size-delta":Ui,"letter-spacing":Ui,"text-decoration-thickness":Ui,"text-indent":Ui,"text-stroke":Ui,"text-stroke-width":Ui,"word-spacing":Ui,motion:Ui,"motion-offset":Ui,outline:Ui,"outline-offset":Ui,"outline-width":Ui,perspective:Ui,"perspective-origin-x":Ki,"perspective-origin-y":Ki,"transform-origin":Ki,"transform-origin-x":Ki,"transform-origin-y":Ki,"transform-origin-z":Ki,"transition-delay":Yi,"transition-duration":Yi,"vertical-align":Ui,"flex-basis":Ui,"shape-margin":Ui,size:Ui,gap:Ui,grid:Ui,"grid-gap":Ui,"row-gap":Ui,"grid-row-gap":Ui,"grid-column-gap":Ui,"grid-template-rows":Ui,"grid-template-columns":Ui,"grid-auto-rows":Ui,"grid-auto-columns":Ui,"box-shadow-x":Ui,"box-shadow-y":Ui,"box-shadow-blur":Ui,"box-shadow-spread":Ui,"font-line-height":Ui,"text-shadow-x":Ui,"text-shadow-y":Ui,"text-shadow-blur":Ui});function Zi(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Zi(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Zi(o,t[o],r);else for(var i in t)t[i]=Zi(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Ji[e];return!a||0===t&&a===Ui?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Qi(e){void 0===e&&(e={});var t=Xi(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Zi(n,e[n],t);return e},onChangeValue:function(e,r){return Zi(r,e,t)}}}var ea="",ta="",ra="",na="",oa=co&&"ontouchstart"in document.documentElement;if(co){var ia={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},aa=document.createElement("p").style;for(var sa in ia)if(sa+"Transform"in aa){ea=sa,ta=ia[sa];break}"Webkit"===ea&&"msHyphens"in aa&&(ea="ms",ta=ia.ms,na="edge"),"Webkit"===ea&&"-apple-trailing-word"in aa&&(ra="apple")}var la=ea,ua=ta,ca=ra,da=na,pa=oa;var fa={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===la?"-webkit-"+e:ua+e)}},ma={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===la?ua+"print-"+e:e)}},ha=/[-\s]+(.)?/g;function ga(e,t){return t?t.toUpperCase():""}function ba(e){return e.replace(ha,ga)}function va(e){return ba("-"+e)}var ya,xa={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===la){var r="mask-image";if(ba(r)in t)return e;if(la+va(r)in t)return ua+e}return e}},Sa={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==ca||pa?e:ua+e)}},Ea={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:ua+e)}},Ca={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:ua+e)}},wa={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===la||"ms"===la&&"edge"!==da?ua+e:e)}},Ra={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===la||"ms"===la||"apple"===ca?ua+e:e)}},Aa={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===la?"WebkitColumn"+va(e)in t&&ua+"column-"+e:"Moz"===la&&("page"+va(e)in t&&"page-"+e))}},Da={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===la)return e;var r=e.replace("-inline","");return la+va(r)in t&&ua+r}},La={supportedProperty:function(e,t){return ba(e)in t&&e}},Ia={supportedProperty:function(e,t){var r=va(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:la+r in t?ua+e:"Webkit"!==la&&"Webkit"+r in t&&"-webkit-"+e}},qa={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===la?""+ua+e:e)}},Pa={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===la?ua+"scroll-chaining":e)}},Ma={"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"},_a={supportedProperty:function(e,t){var r=Ma[e];return!!r&&(la+va(r)in t&&ua+r)}},ka={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"},Ta=Object.keys(ka),Oa=function(e){return ua+e},Na={supportedProperty:function(e,t,r){var n=r.multiple;if(Ta.indexOf(e)>-1){var o=ka[e];if(!Array.isArray(o))return la+va(o)in t&&ua+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(la+va(o[0])in t))return!1;return o.map(Oa)}return!1}},Fa=[fa,ma,xa,Sa,Ea,Ca,wa,Ra,Aa,Da,La,Ia,qa,Pa,_a,Na],ja=Fa.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),za=Fa.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Rr(t.noPrefill)),e}),[]),Ha={};if(co){ya=document.createElement("p");var Ba=window.getComputedStyle(document.documentElement,"");for(var $a in Ba)isNaN($a)||(Ha[Ba[$a]]=Ba[$a]);za.forEach((function(e){return delete Ha[e]}))}function Va(e,t){if(void 0===t&&(t={}),!ya)return e;if(null!=Ha[e])return Ha[e];"transition"!==e&&"transform"!==e||(t[e]=e in ya.style);for(var r=0;r<ja.length&&(Ha[e]=ja[r](e,ya.style,t),!Ha[e]);r++);try{ya.style[e]=""}catch(e){return!1}return Ha[e]}var Ga,Wa={},Ua={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ya=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ka(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Va(t):", "+Va(r);return n||(t||r)}function Xa(e,t){var r=t;if(!Ga||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Wa[n])return Wa[n];try{Ga.style[e]=r}catch(e){return Wa[n]=!1,!1}if(Ua[e])r=r.replace(Ya,Ka);else if(""===Ga.style[e]&&("-ms-flex"===(r=ua+r)&&(Ga.style[e]="-ms-flexbox"),Ga.style[e]=r,""===Ga.style[e]))return Wa[n]=!1,!1;return Ga.style[e]="",Wa[n]=r,Wa[n]}function Ja(){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=Va(r);i&&i!==r&&(o=!0);var a=!1,s=Xa(i,xo(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"===la?e:"@"+ua+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return Xa(t,xo(e))||e}}}function Za(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=vo(e,{},r);return n[Ii]=t,n},onProcessStyle:function(e,t){if(Li in t||Ii 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[Li]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Ii];i&&(o.style=i(e)||{});var a=o[Li];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Oi(),zi(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Wi(e[t]);return e}return Wi(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Gi(t);return t===n?e:(r.prop(n,e),null)}},Qi(),"undefined"==typeof window?null:Ja(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{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}})]};var e}function Qa(){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=St({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}co&&(Ga=document.createElement("p"));var es=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},ts=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},rs=function(e,t,r){e.get(t).delete(r)},ns=x.createContext(null);function os(){return x.useContext(ns)}var is,as=wi(Za()),ss=so(),ls=new Map,us={disableGeneration:!1,generateClassName:ss,jss:as,sheetsCache:null,sheetsManager:ls,sheetsRegistry:null},cs=x.createContext(us);function ds(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=Er(e,["children","injectFirst","disableGeneration"]),s=St({},x.useContext(cs),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!is){var l=document.head;is=document.createComment("mui-inject-first"),l.insertBefore(is,l.firstChild)}s.jss=wi({plugins:Za().plugins,insertionPoint:is})}return x.createElement(cs.Provider,{value:s},t)}var ps=-1e9;var fs={};function ms(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=ts(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},es(o.sheetsManager,i,n,s));var l=St({},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=ts(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,St({link:!1},l))).attach(),o.sheetsCache&&es(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Ai(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,St({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=Qa({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function hs(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?fs:i,s=Er(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=St({},o);return Object.keys(i).forEach((function(e){a[e]=wt(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:ps+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=os()||a,n=St({},x.useContext(cs),s),i=x.useRef(),u=x.useRef();!function(e,t){var r,n=x.useRef([]),o=x.useMemo((function(){return{}}),t);n.current!==o&&(n.current=o,r=e()),x.useEffect((function(){return function(){r&&r()}}),[o])}((function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return ms(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=ts(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(rs(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]),x.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=Qa({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var gs=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 po(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new ii;var r=so();return x.createElement(ds,St({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 x.createElement("style",St({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function bs(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=bs(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function vs(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=bs(e))&&(n&&(n+=" "),n+=t);return n}var ys={exports:{}},xs={},Ss="function"==typeof Symbol&&Symbol.for,Es=Ss?Symbol.for("react.element"):60103,Cs=Ss?Symbol.for("react.portal"):60106,ws=Ss?Symbol.for("react.fragment"):60107,Rs=Ss?Symbol.for("react.strict_mode"):60108,As=Ss?Symbol.for("react.profiler"):60114,Ds=Ss?Symbol.for("react.provider"):60109,Ls=Ss?Symbol.for("react.context"):60110,Is=Ss?Symbol.for("react.async_mode"):60111,qs=Ss?Symbol.for("react.concurrent_mode"):60111,Ps=Ss?Symbol.for("react.forward_ref"):60112,Ms=Ss?Symbol.for("react.suspense"):60113,_s=Ss?Symbol.for("react.suspense_list"):60120,ks=Ss?Symbol.for("react.memo"):60115,Ts=Ss?Symbol.for("react.lazy"):60116,Os=Ss?Symbol.for("react.block"):60121,Ns=Ss?Symbol.for("react.fundamental"):60117,Fs=Ss?Symbol.for("react.responder"):60118,js=Ss?Symbol.for("react.scope"):60119;function zs(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Es:switch(e=e.type){case Is:case qs:case ws:case As:case Rs:case Ms:return e;default:switch(e=e&&e.$$typeof){case Ls:case Ps:case Ts:case ks:case Ds:return e;default:return t}}case Cs:return t}}}function Hs(e){return zs(e)===qs}xs.AsyncMode=Is,xs.ConcurrentMode=qs,xs.ContextConsumer=Ls,xs.ContextProvider=Ds,xs.Element=Es,xs.ForwardRef=Ps,xs.Fragment=ws,xs.Lazy=Ts,xs.Memo=ks,xs.Portal=Cs,xs.Profiler=As,xs.StrictMode=Rs,xs.Suspense=Ms,xs.isAsyncMode=function(e){return Hs(e)||zs(e)===Is},xs.isConcurrentMode=Hs,xs.isContextConsumer=function(e){return zs(e)===Ls},xs.isContextProvider=function(e){return zs(e)===Ds},xs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Es},xs.isForwardRef=function(e){return zs(e)===Ps},xs.isFragment=function(e){return zs(e)===ws},xs.isLazy=function(e){return zs(e)===Ts},xs.isMemo=function(e){return zs(e)===ks},xs.isPortal=function(e){return zs(e)===Cs},xs.isProfiler=function(e){return zs(e)===As},xs.isStrictMode=function(e){return zs(e)===Rs},xs.isSuspense=function(e){return zs(e)===Ms},xs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ws||e===qs||e===As||e===Rs||e===Ms||e===_s||"object"==typeof e&&null!==e&&(e.$$typeof===Ts||e.$$typeof===ks||e.$$typeof===Ds||e.$$typeof===Ls||e.$$typeof===Ps||e.$$typeof===Ns||e.$$typeof===Fs||e.$$typeof===js||e.$$typeof===Os)},xs.typeOf=zs,ys.exports=xs;var Bs=ys.exports,$s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vs={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Gs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ws={};function Us(e){return Bs.isMemo(e)?Gs:Ws[e.$$typeof]||$s}Ws[Bs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ws[Bs.Memo]=Gs;var Ys=Object.defineProperty,Ks=Object.getOwnPropertyNames,Xs=Object.getOwnPropertySymbols,Js=Object.getOwnPropertyDescriptor,Zs=Object.getPrototypeOf,Qs=Object.prototype;var el=function e(t,r,n){if("string"!=typeof r){if(Qs){var o=Zs(r);o&&o!==Qs&&e(t,o,n)}var i=Ks(r);Xs&&(i=i.concat(Xs(r)));for(var a=Us(t),s=Us(r),l=0;l<i.length;++l){var u=i[l];if(!(Vs[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Js(r,u);try{Ys(t,u,c)}catch(e){}}}}return t},tl=Rt(el);function rl(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=x.forwardRef((function(r,n){var o=r.innerRef,i=Er(r,["innerRef"]),a=os()||e;return x.createElement(t,St({theme:a,ref:o||n},i))}));return tl(r,t),r}}var nl=rl(),ol=Object.freeze({__proto__:null,ServerStyleSheets:gs,StylesContext:cs,StylesProvider:ds,ThemeProvider:function(e){var t=e.children,r=e.theme,n=os(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):St({},e,t)}(n,r);return null!=e&&(e[io]=null!==n),e}),[r,n]);return x.createElement(ns.Provider,{value:o},t)},createGenerateClassName:so,createStyles:function(e){return e},getThemeProps:lo,jssPreset:Za,makeStyles:hs,mergeClasses:Qa,sheetsManager:ls,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=Er(n,["name"]),a=o,s=hs("function"==typeof t?function(e){return{root:function(r){return t(St({theme:e},r))}}}:{root:t},St({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=x.forwardRef((function(t,n){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,p=Er(t,["children","className","clone","component"]),f=vs(s(t).root,u),m=p;if(r&&(o=m,i=r,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),m=a),c)return x.cloneElement(l,St({className:vs(l.props.className,f)},m));if("function"==typeof l)return l(St({className:f},m));var h=d||e;return x.createElement(h,St({ref:n,className:f},m),l)}));return tl(l,e),l}},useTheme:os,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=Er(t,["defaultTheme","withTheme","name"]),l=a,u=hs(e,St({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),c=x.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=Er(e,["classes","innerRef"]),c=u(St({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=os()||n,a&&(d=lo({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,St({ref:s||t,classes:c},d))}));return tl(c,r),c}},withTheme:nl,withThemeCreator:rl});
17
+ /** @license Material-UI v4.11.5
18
+ *
19
+ * This source code is licensed under the MIT license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ */const il={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"},al={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",...il,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)"},sl=12,ll=14,ul=16,cl=24,dl=3,pl=300,fl=400,ml=600,hl=700,gl={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};xr(al.GREYSCALE_0,.05),xr(al.GREEN_PALE,.5),xr(al.BLUE_PALE,.5),xr(al.GREEN_PALE,.5),xr(al.BLUE_PALE,.5),xr(al.GREEN_PALE,.5),xr(al.BLUE_PALE,.5);xr(al.GREEN_PALE,.5),xr(al.BLUE_PALE,.5),xr(al.GREEN_PALE,.5),xr(al.BLUE_PALE,.5);var bl={exports:{}},vl={},yl=x,xl=Symbol.for("react.element"),Sl=Symbol.for("react.fragment"),El=Object.prototype.hasOwnProperty,Cl=yl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wl={key:!0,ref:!0,__self:!0,__source:!0};function Rl(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)El.call(t,n)&&!wl.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:xl,type:e,key:i,ref:a,props:o,_owner:Cl.current}}vl.Fragment=Sl,vl.jsx=Rl,vl.jsxs=Rl,bl.exports=vl;var Al,Dl=bl.exports;function Ll(){return Ll=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},Ll.apply(null,arguments)}var Il,ql=function(e){return y.createElement("svg",Ll({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Al||(Al=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Pl(){return Pl=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},Pl.apply(null,arguments)}var Ml=function(e){return y.createElement("svg",Pl({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Il||(Il=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function _l({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Dl.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function kl(e={}){return Dl.jsx(_l,{...e,children:Dl.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Dl.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Dl.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 Tl(e={}){return Dl.jsx(_l,{...e,children:Dl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Dl.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Dl.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Dl.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Ol(e={}){return Dl.jsx(_l,{fontSize:"medium",...e,children:Dl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Dl.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Dl.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Nl(e={}){return Dl.jsx(_l,{fontSize:"medium",...e,children:Dl.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Dl.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Dl.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 Fl({className:e}){return Dl.jsx(_l,{fontSize:"small",className:e,children:Dl.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Dl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Dl.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Dl.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Dl.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"}),Dl.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"})]})})})})})}Dl.jsx(Ml,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Dl.jsx(ql,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Dl.jsx(Ol,{}),Dl.jsx(Nl,{}),Dl.jsx((function(e={}){return Dl.jsx(_l,{...e,children:Dl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Dl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Dl.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Dl.jsx(kl,{}),Dl.jsx(Tl,{}),Dl.jsx(ql,{style:{color:al.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const jl={black:"#000",white:"#fff"},zl="#e57373",Hl="#ef5350",Bl="#f44336",$l="#d32f2f",Vl="#c62828",Gl="#f3e5f5",Wl="#ce93d8",Ul="#ba68c8",Yl="#ab47bc",Kl="#9c27b0",Xl="#7b1fa2",Jl="#e3f2fd",Zl="#90caf9",Ql="#42a5f5",eu="#1976d2",tu="#1565c0",ru="#4fc3f7",nu="#29b6f6",ou="#03a9f4",iu="#0288d1",au="#01579b",su="#81c784",lu="#66bb6a",uu="#4caf50",cu="#388e3c",du="#2e7d32",pu="#1b5e20",fu="#ffb74d",mu="#ffa726",hu="#ff9800",gu="#f57c00",bu="#e65100",vu={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 yu(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 xu=Object.freeze({__proto__:null,default:yu}),Su="$$material";function Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eu.apply(this,arguments)}function Cu(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var wu=function(){return wu=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},wu.apply(this,arguments)};function Ru(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 Au=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0},Du=Rt(Au),Lu="-ms-",Iu="-moz-",qu="-webkit-",Pu="comm",Mu="rule",_u="decl",ku="@keyframes",Tu=Math.abs,Ou=String.fromCharCode,Nu=Object.assign;function Fu(e){return e.trim()}function ju(e,t){return(e=t.exec(e))?e[0]:e}function zu(e,t,r){return e.replace(t,r)}function Hu(e,t,r){return e.indexOf(t,r)}function Bu(e,t){return 0|e.charCodeAt(t)}function $u(e,t,r){return e.slice(t,r)}function Vu(e){return e.length}function Gu(e){return e.length}function Wu(e,t){return t.push(e),e}function Uu(e,t){return e.filter((function(e){return!ju(e,t)}))}var Yu=1,Ku=1,Xu=0,Ju=0,Zu=0,Qu="";function ec(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Yu,column:Ku,length:a,return:"",siblings:s}}function tc(e,t){return Nu(ec("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function rc(e){for(;e.root;)e=tc(e.root,{children:[e]});Wu(e,e.siblings)}function nc(){return Zu=Ju<Xu?Bu(Qu,Ju++):0,Ku++,10===Zu&&(Ku=1,Yu++),Zu}function oc(){return Bu(Qu,Ju)}function ic(){return Ju}function ac(e,t){return $u(Qu,e,t)}function sc(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 lc(e){return Fu(ac(Ju-1,dc(91===e?e+2:40===e?e+1:e)))}function uc(e){for(;(Zu=oc())&&Zu<33;)nc();return sc(e)>2||sc(Zu)>3?"":" "}function cc(e,t){for(;--t&&nc()&&!(Zu<48||Zu>102||Zu>57&&Zu<65||Zu>70&&Zu<97););return ac(e,ic()+(t<6&&32==oc()&&32==nc()))}function dc(e){for(;nc();)switch(Zu){case e:return Ju;case 34:case 39:34!==e&&39!==e&&dc(Zu);break;case 40:41===e&&dc(e);break;case 92:nc()}return Ju}function pc(e,t){for(;nc()&&e+Zu!==57&&(e+Zu!==84||47!==oc()););return"/*"+ac(t,Ju-1)+"*"+Ou(47===e?e:nc())}function fc(e){for(;!sc(oc());)nc();return ac(e,Ju)}function mc(e){return function(e){return Qu="",e}(hc("",null,null,null,[""],e=function(e){return Yu=Ku=1,Xu=Vu(Qu=e),Ju=0,[]}(e),0,[0],e))}function hc(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=nc()){case 40:if(108!=m&&58==Bu(C,d-1)){-1!=Hu(C+=zu(lc(v),"&","&\f"),"&\f",Tu(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=lc(v);break;case 9:case 10:case 13:case 32:C+=uc(m);break;case 92:C+=cc(ic()-1,7);continue;case 47:switch(oc()){case 42:case 47:Wu(bc(pc(nc(),ic()),t,r,l),l);break;default:C+="/"}break;case 123*h:s[u++]=Vu(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=zu(C,/\f/g,"")),f>0&&Vu(C)-d&&Wu(f>32?vc(C+";",n,r,d-1,l):vc(zu(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(Wu(E=gc(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)hc(C,t,E,E,x,i,d,s,S);else switch(99===p&&110===Bu(C,3)?100:p){case 100:case 108:case 109:case 115:hc(e,E,E,n&&Wu(gc(e,E,E,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:hc(C,E,E,E,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+Vu(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(Zu=Ju>0?Bu(Qu,--Ju):0,Ku--,10===Zu&&(Ku=1,Yu--),Zu))continue;switch(C+=Ou(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Vu(C)-1)*b,b=1;break;case 64:45===oc()&&(C+=lc(nc())),p=oc(),c=d=Vu(y=C+=fc(ic())),v++;break;case 45:45===m&&2==Vu(C)&&(h=0)}}return i}function gc(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Gu(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=$u(e,p+1,p=Tu(g=a[h])),x=e;v<m;++v)(x=Fu(g>0?f[v]+" "+y:zu(y,/&\f/g,f[v])))&&(l[b++]=x);return ec(e,t,r,0===o?Mu:s,l,u,c,d)}function bc(e,t,r,n){return ec(e,t,r,Pu,Ou(Zu),$u(e,2,-2),0,n)}function vc(e,t,r,n,o){return ec(e,t,r,_u,$u(e,0,n),$u(e,n+1,-1),n,o)}function yc(e,t,r){switch(function(e,t){return 45^Bu(e,0)?(((t<<2^Bu(e,0))<<2^Bu(e,1))<<2^Bu(e,2))<<2^Bu(e,3):0}(e,t)){case 5103:return qu+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qu+e+e;case 4789:return Iu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qu+e+Iu+e+Lu+e+e;case 5936:switch(Bu(e,t+11)){case 114:return qu+e+Lu+zu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qu+e+Lu+zu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qu+e+Lu+zu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return qu+e+Lu+e+e;case 6165:return qu+e+Lu+"flex-"+e+e;case 5187:return qu+e+zu(e,/(\w+).+(:[^]+)/,qu+"box-$1$2"+Lu+"flex-$1$2")+e;case 5443:return qu+e+Lu+"flex-item-"+zu(e,/flex-|-self/g,"")+(ju(e,/flex-|baseline/)?"":Lu+"grid-row-"+zu(e,/flex-|-self/g,""))+e;case 4675:return qu+e+Lu+"flex-line-pack"+zu(e,/align-content|flex-|-self/g,"")+e;case 5548:return qu+e+Lu+zu(e,"shrink","negative")+e;case 5292:return qu+e+Lu+zu(e,"basis","preferred-size")+e;case 6060:return qu+"box-"+zu(e,"-grow","")+qu+e+Lu+zu(e,"grow","positive")+e;case 4554:return qu+zu(e,/([^-])(transform)/g,"$1"+qu+"$2")+e;case 6187:return zu(zu(zu(e,/(zoom-|grab)/,qu+"$1"),/(image-set)/,qu+"$1"),e,"")+e;case 5495:case 3959:return zu(e,/(image-set\([^]*)/,qu+"$1$`$1");case 4968:return zu(zu(e,/(.+:)(flex-)?(.*)/,qu+"box-pack:$3"+Lu+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qu+e+e;case 4200:if(!ju(e,/flex-|baseline/))return Lu+"grid-column-align"+$u(e,t)+e;break;case 2592:case 3360:return Lu+zu(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,ju(e.props,/grid-\w+-end/)}))?~Hu(e+(r=r[t].value),"span",0)?e:Lu+zu(e,"-start","")+e+Lu+"grid-row-span:"+(~Hu(r,"span",0)?ju(r,/\d+/):+ju(r,/\d+/)-+ju(e,/\d+/))+";":Lu+zu(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return ju(e.props,/grid-\w+-start/)}))?e:Lu+zu(zu(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return zu(e,/(.+)-inline(.+)/,qu+"$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(Vu(e)-1-t>6)switch(Bu(e,t+1)){case 109:if(45!==Bu(e,t+4))break;case 102:return zu(e,/(.+:)(.+)-([^]+)/,"$1"+qu+"$2-$3$1"+Iu+(108==Bu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Hu(e,"stretch",0)?yc(zu(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return zu(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Lu+r+":"+n+s+(o?Lu+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===Bu(e,t+6))return zu(e,":",":"+qu)+e;break;case 6444:switch(Bu(e,45===Bu(e,14)?18:11)){case 120:return zu(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+qu+(45===Bu(e,14)?"inline-":"")+"box$3$1"+qu+"$2$3$1"+Lu+"$2box$3")+e;case 100:return zu(e,":",":"+Lu)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return zu(e,"scroll-","scroll-snap-")+e}return e}function xc(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Sc(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case _u:return e.return=e.return||e.value;case Pu:return"";case ku:return e.return=e.value+"{"+xc(e.children,n)+"}";case Mu:if(!Vu(e.value=e.props.join(",")))return""}return Vu(r=xc(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ec(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case _u:return void(e.return=yc(e.value,e.length,r));case ku:return xc([tc(e,{value:zu(e.value,"@","@"+qu)})],n);case Mu:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(ju(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":rc(tc(e,{props:[zu(t,/:(read-\w+)/,":-moz-$1")]})),rc(tc(e,{props:[t]})),Nu(e,{props:Uu(r,n)});break;case"::placeholder":rc(tc(e,{props:[zu(t,/:(plac\w+)/,":"+qu+"input-$1")]})),rc(tc(e,{props:[zu(t,/:(plac\w+)/,":-moz-$1")]})),rc(tc(e,{props:[zu(t,/:(plac\w+)/,Lu+"input-$1")]})),rc(tc(e,{props:[t]})),Nu(e,{props:Uu(r,n)})}return""}))}}var Cc={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wc="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Rc="active",Ac="data-styled-version",Dc="6.1.18",Lc="/*!sc*/\n",Ic="undefined"!=typeof window&&"undefined"!=typeof document,qc=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)),Pc={},Mc=Object.freeze([]),_c=Object.freeze({});function kc(e,t,r){return void 0===r&&(r=_c),e.theme!==r.theme&&e.theme||t||r.theme}var Tc=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Oc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Nc=/(^-|-$)/g;function Fc(e){return e.replace(Oc,"-").replace(Nc,"")}var jc=/(a)(d)/gi,zc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Hc(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=zc(t%52)+r;return(zc(t%52)+r).replace(jc,"$1-$2")}var Bc,$c=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Vc=function(e){return $c(5381,e)};function Gc(e){return Hc(Vc(e)>>>0)}function Wc(e){return"string"==typeof e&&!0}var Uc="function"==typeof Symbol&&Symbol.for,Yc=Uc?Symbol.for("react.memo"):60115,Kc=Uc?Symbol.for("react.forward_ref"):60112,Xc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Jc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Zc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qc=((Bc={})[Kc]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Bc[Yc]=Zc,Bc);function ed(e){return("type"in(t=e)&&t.type.$$typeof)===Yc?Zc:"$$typeof"in e?Qc[e.$$typeof]:Xc;var t}var td=Object.defineProperty,rd=Object.getOwnPropertyNames,nd=Object.getOwnPropertySymbols,od=Object.getOwnPropertyDescriptor,id=Object.getPrototypeOf,ad=Object.prototype;function sd(e,t,r){if("string"!=typeof t){if(ad){var n=id(t);n&&n!==ad&&sd(e,n,r)}var o=rd(t);nd&&(o=o.concat(nd(t)));for(var i=ed(e),a=ed(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Jc||r&&r[l]||a&&l in a||i&&l in i)){var u=od(t,l);try{td(e,l,u)}catch(e){}}}}return e}function ld(e){return"function"==typeof e}function ud(e){return"object"==typeof e&&"styledComponentId"in e}function cd(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function dd(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function pd(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function fd(e,t,r){if(void 0===r&&(r=!1),!r&&!pd(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=fd(e[n],t[n]);else if(pd(t))for(var n in t)e[n]=fd(e[n],t[n]);return e}function md(e,t){Object.defineProperty(e,"toString",{value:t})}function hd(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 gd=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw hd(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=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Lc);return t},e}(),bd=new Map,vd=new Map,yd=1,xd=function(e){if(bd.has(e))return bd.get(e);for(;vd.has(yd);)yd++;var t=yd++;return bd.set(e,t),vd.set(t,e),t},Sd=function(e,t){yd=t+1,bd.set(e,t),vd.set(t,e)},Ed="style[".concat(wc,"][").concat(Ac,'="').concat(Dc,'"]'),Cd=new RegExp("^".concat(wc,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),wd=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)},Rd=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Lc),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Cd);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Sd(c,u),wd(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Ad=function(e){for(var t=document.querySelectorAll(Ed),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(wc)!==Rc&&(Rd(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Dd=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(wc,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(wc,Rc),n.setAttribute(Ac,Dc);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Ld=function(){function e(e){this.element=Dd(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw hd(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}(),Id=function(){function e(e){this.element=Dd(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}(),qd=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Pd=Ic,Md={isServer:!Ic,useCSSOMInjection:!qc},_d=function(){function e(e,t,r){void 0===e&&(e=_c),void 0===t&&(t={});var n=this;this.options=wu(wu({},Md),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ic&&Pd&&(Pd=!1,Ad(this)),md(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return vd.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(wc,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(Lc)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return xd(e)},e.prototype.rehydrate=function(){!this.server&&Ic&&Ad(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(wu(wu({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new qd(r):t?new Ld(r):new Id(r)}(this.options),new gd(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(xd(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(xd(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(xd(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),kd=/&/g,Td=/^\s*\/\/.*$/gm;function Od(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=Od(e.children,t)),e}))}function Nd(e){var t,r,n,o=void 0===e?_c:e,i=o.options,a=void 0===i?_c:i,s=o.plugins,l=void 0===s?Mc: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===Mu&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(kd,r).replace(n,u))})),a.prefix&&c.push(Ec),c.push(Sc);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var l=e.replace(Td,""),u=mc(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=Od(u,a.namespace));var d,p=[];return xc(u,function(e){var t=Gu(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)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||hd(15),$c(e,t.name)}),5381).toString():"",d}var Fd=new _d,jd=Nd(),zd=x.createContext({shouldForwardProp:void 0,styleSheet:Fd,stylis:jd});zd.Consumer;var Hd=x.createContext(void 0);function Bd(){return S(zd)}function $d(e){var t=E(e.stylisPlugins),r=t[0],n=t[1],o=Bd().styleSheet,i=C((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=C((function(){return Nd({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);w((function(){Du(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var s=C((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(zd.Provider,{value:s},x.createElement(Hd.Provider,{value:a},e.children))}var Vd=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=jd);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,md(this,(function(){throw hd(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=jd),this.name+e.hash},e}(),Gd=function(e){return e>="A"&&e<="Z"};function Wd(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Gd(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Ud=function(e){return null==e||!1===e||""===e},Yd=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ud(i)&&(Array.isArray(i)&&i.isCss||ld(i)?n.push("".concat(Wd(o),":"),i,";"):pd(i)?n.push.apply(n,Ru(Ru(["".concat(o," {")],Yd(i),!1),["}"],!1)):n.push("".concat(Wd(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Cc||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Kd(e,t,r,n){return Ud(e)?[]:ud(e)?[".".concat(e.styledComponentId)]:ld(e)?!ld(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Kd(e(t),t,r,n):e instanceof Vd?r?(e.inject(r,n),[e.getName(n)]):[e]:pd(e)?Yd(e):Array.isArray(e)?Array.prototype.concat.apply(Mc,e.map((function(e){return Kd(e,t,r,n)}))):[e.toString()];var o}function Xd(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ld(r)&&!ud(r))return!1}return!0}var Jd=Vc(Dc),Zd=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Xd(e),this.componentId=t,this.baseHash=$c(Jd,t),this.baseStyle=r,_d.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=cd(n,this.staticRulesId);else{var o=dd(Kd(this.rules,e,t,r)),i=Hc($c(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=cd(n,i),this.staticRulesId=i}else{for(var s=$c(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=dd(Kd(c,e,t,r));s=$c(s,d+u),l+=d}}if(l){var p=Hc(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=cd(n,p)}}return n},e}(),Qd=x.createContext(void 0);Qd.Consumer;var ep={};function tp(e,t,r){var n=ud(e),o=e,i=!Wc(e),a=t.attrs,s=void 0===a?Mc:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":Fc(e);ep[r]=(ep[r]||0)+1;var n="".concat(r,"-").concat(Gc(Dc+r+ep[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return Wc(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Fc(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new Zd(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=x.useContext(Qd),c=Bd(),d=e.shouldForwardProp||c.shouldForwardProp,p=kc(t,u,i)||_c,f=function(e,t,r){for(var n,o=wu(wu({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=ld(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?cd(o[s],a[s]):"style"===s?wu(wu({},o[s]),a[s]):a[s]}return t.className&&(o.className=cd(o.className,t.className)),o}(n,t,p),m=f.as||l,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var r=Bd();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=cd(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[Wc(m)&&!Tc.has(m)?"class":"className"]=v,r&&(h.ref=r),R(m,h)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=n?cd(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++)fd(e,o[n],!0);return e}({},o.defaultProps,e):e}}),md(y,(function(){return".".concat(y.styledComponentId)})),i&&sd(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function rp(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 np=function(e){return Object.assign(e,{isCss:!0})};function op(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ld(e)||pd(e))return np(Kd(rp(Mc,Ru([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Kd(n):np(Kd(rp(n,t)))}function ip(e,t,r){if(void 0===r&&(r=_c),!t)throw hd(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,op.apply(void 0,Ru([n],o,!1)))};return n.attrs=function(n){return ip(e,t,wu(wu({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return ip(e,t,wu(wu({},r),n))},n}var ap=function(e){return ip(tp,e)},sp=ap;Tc.forEach((function(e){sp[e]=ap(e)}));var lp=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Xd(e),_d.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(dd(Kd(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&&_d.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function up(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=dd(op.apply(void 0,Ru([e],t,!1))),o=Gc(n);return new Vd(o,n)}function cp(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}cp.propTypes={children:qt.node,injectFirst:qt.bool};const dp=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=op.apply(void 0,Ru([e],t,!1)),o="sc-global-".concat(Gc(JSON.stringify(n))),i=new lp(n,o),a=function(e){var t=Bd(),r=x.useContext(Qd),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&s(n,e,t.styleSheet,r,t.stylis),x.useLayoutEffect((function(){if(!t.styleSheet.server)return s(n,e,t.styleSheet,r,t.stylis),function(){return i.removeStyles(n,t.styleSheet)}}),[n,e,t.styleSheet,r,t.stylis]),null};function s(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Pc,r,o);else{var s=wu(wu({},t),{theme:kc(t,n,a.defaultProps)});i.renderStyles(e,s,r,o)}}return x.memo(a)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
10
22
  /**
11
23
  * @mui/styled-engine-sc v6.4.2
12
24
  *
@@ -14,7 +26,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
14
26
  * This source code is licensed under the MIT license found in the
15
27
  * LICENSE file in the root directory of this source tree.
16
28
  */
17
- function $i(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):zi(e),r}function Vi(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}Bi.propTypes={defaultTheme:At.object,styles:At.oneOfType([At.array,At.string,At.object,At.func])};var Wi=Object.freeze({__proto__:null,GlobalStyles:Bi,StyledEngineProvider:Hi,ThemeContext:Mi,css:Oi,default:$i,internal_mutateStyles:Vi,internal_processStyles:function(e,t){return Vi(e,t)},internal_serializeStyles:function(e){return e},keyframes:Fi});function Ui(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Gi(e){if(y.isValidElement(e)||!Ui(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Gi(e[r])})),t}function Yi(e,t,r={clone:!0}){const n=r.clone?wt({},e):e;return Ui(e)&&Ui(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:Ui(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ui(e[o])?n[o]=Yi(e[o],t[o],r):r.clone?n[o]=Ui(t[o])?Gi(t[o]):t[o]:n[o]=t[o]})),n}var Ki=Object.freeze({__proto__:null,default:Yi,isPlainObject:Ui});const Xi=["values","unit","step"];function Ji(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=qt(e,Xi),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)=>wt({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return wt({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const Zi={borderRadius:4};function Qi(e,t){return t?Yi(e,t,{clone:!1}):e}const ea={xs:0,sm:600,md:900,lg:1200,xl:1536},ta={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ea[e]}px)`};function ra(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ta;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||ta;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||ea).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function na(e){if("string"!=typeof e)throw new Error(Kr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var oa=Object.freeze({__proto__:null,default:na});function ia(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 aa(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:ia(e,r)||n,t&&(o=t(o,n,e)),o}function la(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=ia(e.theme,n)||{};return ra(e,i,(e=>{let n=aa(a,o,e);return e===n&&"string"==typeof e&&(n=aa(a,o,`${t}${"default"===e?"":na(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const sa={m:"margin",p:"padding"},ua={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ca={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},da=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!ca[e])return[e];e=ca[e]}const[t,r]=e.split(""),n=sa[t],o=ua[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),pa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ma(e,t,r,n){var o;const i=null!=(o=ia(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 ha(e){return ma(e,"spacing",8)}function ga(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 va(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=ga(t,r),e)),{})}(da(r),n);return ra(e,e[r],o)}function ba(e,t){const r=ha(e.theme);return Object.keys(e).map((n=>va(e,t,n,r))).reduce(Qi,{})}function ya(e){return ba(e,pa)}function xa(e){return ba(e,fa)}function Sa(...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]?Qi(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function wa(e){return"number"!=typeof e?e:`${e}px solid`}function Ca(e,t){return la({prop:e,themeKey:"borders",transform:t})}ya.propTypes={},ya.filterProps=pa,xa.propTypes={},xa.filterProps=fa;const Ea=Ca("border",wa),Ra=Ca("borderTop",wa),Ia=Ca("borderRight",wa),Da=Ca("borderBottom",wa),Aa=Ca("borderLeft",wa),Pa=Ca("borderColor"),Ma=Ca("borderTopColor"),qa=Ca("borderRightColor"),Ta=Ca("borderBottomColor"),ka=Ca("borderLeftColor"),La=Ca("outline",wa),Oa=Ca("outlineColor"),Na=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ma(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:ga(t,e)});return ra(e,e.borderRadius,r)}return null};Na.propTypes={},Na.filterProps=["borderRadius"],Sa(Ea,Ra,Ia,Da,Aa,Pa,Ma,qa,Ta,ka,Na,La,Oa);const _a=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ma(e.theme,"spacing",8),r=e=>({gap:ga(t,e)});return ra(e,e.gap,r)}return null};_a.propTypes={},_a.filterProps=["gap"];const za=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ma(e.theme,"spacing",8),r=e=>({columnGap:ga(t,e)});return ra(e,e.columnGap,r)}return null};za.propTypes={},za.filterProps=["columnGap"];const ja=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ma(e.theme,"spacing",8),r=e=>({rowGap:ga(t,e)});return ra(e,e.rowGap,r)}return null};ja.propTypes={},ja.filterProps=["rowGap"];function Fa(e,t){return"grey"===t?t:e}Sa(_a,za,ja,la({prop:"gridColumn"}),la({prop:"gridRow"}),la({prop:"gridAutoFlow"}),la({prop:"gridAutoColumns"}),la({prop:"gridAutoRows"}),la({prop:"gridTemplateColumns"}),la({prop:"gridTemplateRows"}),la({prop:"gridTemplateAreas"}),la({prop:"gridArea"}));function Ha(e){return e<=1&&0!==e?100*e+"%":e}Sa(la({prop:"color",themeKey:"palette",transform:Fa}),la({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fa}),la({prop:"backgroundColor",themeKey:"palette",transform:Fa}));const Ba=la({prop:"width",transform:Ha}),$a=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])||ea[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:Ha(t)}};return ra(e,e.maxWidth,t)}return null};$a.filterProps=["maxWidth"];const Va=la({prop:"minWidth",transform:Ha}),Wa=la({prop:"height",transform:Ha}),Ua=la({prop:"maxHeight",transform:Ha}),Ga=la({prop:"minHeight",transform:Ha});la({prop:"size",cssProperty:"width",transform:Ha}),la({prop:"size",cssProperty:"height",transform:Ha});Sa(Ba,$a,Va,Wa,Ua,Ga,la({prop:"boxSizing"}));const Ya={border:{themeKey:"borders",transform:wa},borderTop:{themeKey:"borders",transform:wa},borderRight:{themeKey:"borders",transform:wa},borderBottom:{themeKey:"borders",transform:wa},borderLeft:{themeKey:"borders",transform:wa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Na},color:{themeKey:"palette",transform:Fa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fa},backgroundColor:{themeKey:"palette",transform:Fa},p:{style:xa},pt:{style:xa},pr:{style:xa},pb:{style:xa},pl:{style:xa},px:{style:xa},py:{style:xa},padding:{style:xa},paddingTop:{style:xa},paddingRight:{style:xa},paddingBottom:{style:xa},paddingLeft:{style:xa},paddingX:{style:xa},paddingY:{style:xa},paddingInline:{style:xa},paddingInlineStart:{style:xa},paddingInlineEnd:{style:xa},paddingBlock:{style:xa},paddingBlockStart:{style:xa},paddingBlockEnd:{style:xa},m:{style:ya},mt:{style:ya},mr:{style:ya},mb:{style:ya},ml:{style:ya},mx:{style:ya},my:{style:ya},margin:{style:ya},marginTop:{style:ya},marginRight:{style:ya},marginBottom:{style:ya},marginLeft:{style:ya},marginX:{style:ya},marginY:{style:ya},marginInline:{style:ya},marginInlineStart:{style:ya},marginInlineEnd:{style:ya},marginBlock:{style:ya},marginBlockStart:{style:ya},marginBlockEnd:{style:ya},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:_a},rowGap:{style:ja},columnGap:{style:za},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ha},maxWidth:{style:$a},minWidth:{transform:Ha},height:{transform:Ha},maxHeight:{transform:Ha},minHeight:{transform:Ha},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ka(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=ia(r,l)||{};if(u)return u(o);return ra(o,t,(t=>{let r=aa(c,s,t);return t===r&&"string"==typeof t&&(r=aa(c,s,`${e}${"default"===t?"":na(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:Ya;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=Qi(s,e(r,o,i,a));else{const e=ra({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=Qi(s,e):s[r]=t({sx:o,theme:i})}else s=Qi(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Xa=Ka();function Ja(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:{}}Xa.filterProps=["sx"];const Za=["breakpoints","palette","spacing","shape"];function Qa(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=qt(e,Za),l=Ji(r),s=function(e=8){if(e.mui)return e;const t=ha({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=Yi({breakpoints:l,direction:"ltr",components:{},palette:wt({mode:"light"},n),spacing:s,shape:wt({},Zi,i)},a);return u.applyStyles=Ja,u=t.reduce(((e,t)=>Yi(e,t)),u),u.unstable_sxConfig=wt({},Ya,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Xa({sx:e,theme:this})},u}var el=Object.freeze({__proto__:null,default:Qa,private_createBreakpoints:Ji,unstable_applyStyles:Ja});function tl(e=null){const t=y.useContext(Mi);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const rl=Qa();function nl(e=rl){return tl(e)}function ol({styles:e,themeId:t,defaultTheme:r={}}){const n=nl(r),o="function"==typeof e?e(t&&n[t]||n):e;return nr.jsx(Bi,{styles:o})}const il=["sx"];function al(e){const{sx:t}=e,r=qt(e,il),{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:Ya;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Ui(r)?wt({},n,r):n}:wt({},n,t),wt({},o,{sx:i})}var ll=Object.freeze({__proto__:null,default:Xa,extendSxProp:al,unstable_createStyleFunctionSx:Ka,unstable_defaultSxConfig:Ya});const sl=e=>e,ul=(()=>{let e=sl;return{configure(t){e=t},generate:t=>e(t),reset(){e=sl}}})();function cl(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=cl(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function dl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=cl(e))&&(n&&(n+=" "),n+=t);return n}const pl=["className","component"];const fl={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 ml(e,t,r="Mui"){const n=fl[t];return n?`${r}-${n}`:`${ul.generate(e)}-${t}`}function hl(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ml(e,t,r)})),n}var gl={exports:{}},vl={},bl=Symbol.for("react.transitional.element"),yl=Symbol.for("react.portal"),xl=Symbol.for("react.fragment"),Sl=Symbol.for("react.strict_mode"),wl=Symbol.for("react.profiler"),Cl=Symbol.for("react.consumer"),El=Symbol.for("react.context"),Rl=Symbol.for("react.forward_ref"),Il=Symbol.for("react.suspense"),Dl=Symbol.for("react.suspense_list"),Al=Symbol.for("react.memo"),Pl=Symbol.for("react.lazy"),Ml=Symbol.for("react.offscreen"),ql=Symbol.for("react.client.reference");function Tl(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case bl:switch(e=e.type){case xl:case wl:case Sl:case Il:case Dl:return e;default:switch(e=e&&e.$$typeof){case El:case Rl:case Pl:case Al:case Cl:return e;default:return t}}case yl:return t}}}vl.ContextConsumer=Cl,vl.ContextProvider=El,vl.Element=bl,vl.ForwardRef=Rl,vl.Fragment=xl,vl.Lazy=Pl,vl.Memo=Al,vl.Portal=yl,vl.Profiler=wl,vl.StrictMode=Sl,vl.Suspense=Il,vl.SuspenseList=Dl,vl.isContextConsumer=function(e){return Tl(e)===Cl},vl.isContextProvider=function(e){return Tl(e)===El},vl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===bl},vl.isForwardRef=function(e){return Tl(e)===Rl},vl.isFragment=function(e){return Tl(e)===xl},vl.isLazy=function(e){return Tl(e)===Pl},vl.isMemo=function(e){return Tl(e)===Al},vl.isPortal=function(e){return Tl(e)===yl},vl.isProfiler=function(e){return Tl(e)===wl},vl.isStrictMode=function(e){return Tl(e)===Sl},vl.isSuspense=function(e){return Tl(e)===Il},vl.isSuspenseList=function(e){return Tl(e)===Dl},vl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===xl||e===wl||e===Sl||e===Il||e===Dl||e===Ml||"object"==typeof e&&null!==e&&(e.$$typeof===Pl||e.$$typeof===Al||e.$$typeof===El||e.$$typeof===Cl||e.$$typeof===Rl||e.$$typeof===ql||void 0!==e.getModuleId)},vl.typeOf=Tl,gl.exports=vl;var kl=gl.exports;const Ll=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ol(e){const t=`${e}`.match(Ll);return t&&t[1]||""}function Nl(e,t=""){return e.displayName||e.name||Ol(e)||t}function _l(e,t,r){const n=Nl(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var zl=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Nl(e,"Component");if("object"==typeof e)switch(e.$$typeof){case kl.ForwardRef:return _l(e,e.render,"ForwardRef");case kl.Memo:return _l(e,e.type,"memo");default:return}}},getFunctionName:Ol});function jl(e,t){const r=wt({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=wt({},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]=wt({},i),Object.keys(o).forEach((e=>{r[n][e]=jl(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Fl="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Hl(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Bl=Object.freeze({__proto__:null,default:Hl});function $l(e){if(e.type)return e;if("#"===e.charAt(0))return $l(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(Kr(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(Kr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Vl(e,t){return e=$l(e),t=function(e,t=0,r=1){return Hl(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 Wl(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Ul(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Gl(e){return e&&e.ownerDocument||document}function Yl(e){return Gl(e).defaultView||window}function Kl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Xl=0;const Jl=y["useId".toString()];function Zl(e){if(void 0!==Jl){return Jl()}return function(e){const[t,r]=y.useState(e),n=t;return y.useEffect((()=>{null==t&&(Xl+=1,r(`mui-${Xl}`))}),[t]),n}(e)}function Ql({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function es(e){const t=y.useRef(e);return Fl((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function ts(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Kl(e,t)}))}),e)}const rs={};const ns=[];class os{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new os}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function is(){const e=function(e,t){const r=y.useRef(rs);return r.current===rs&&(r.current=e(t)),r}(os.create).current;return function(e){y.useEffect(e,ns)}(e.disposeEffect),e}let as=!0,ls=!1;const ss=new os,us={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 cs(e){e.metaKey||e.altKey||e.ctrlKey||(as=!0)}function ds(){as=!1}function ps(){"hidden"===this.visibilityState&&ls&&(as=!0)}function fs(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return as||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!us[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function ms(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",cs,!0),t.addEventListener("mousedown",ds,!0),t.addEventListener("pointerdown",ds,!0),t.addEventListener("touchstart",ds,!0),t.addEventListener("visibilitychange",ps,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!fs(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ls=!0,ss.start(100,(()=>{ls=!1})),t.current=!1,!0)},ref:e}}function hs(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function gs(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 vs(e){return"string"==typeof e}function bs(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 ys(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 xs=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ss(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=qt(e,xs),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=dl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=wt({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=wt({},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=bs(wt({},o,n)),l=ys(n),s=ys(o),u=t(a),c=dl(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=wt({},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=wt({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(wt({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||vs(e)?t:wt({},t,{ownerState:wt({},t.ownerState,r)})}(r,wt({},s,{ref:ts(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function ws(e){var t;return parseInt(y.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Cs=y.createContext(null);function Es(){return y.useContext(Cs)}var Rs="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Is(e){const{children:t,theme:r}=e,n=Es(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return wt({},e,t)}(n,r);return null!=e&&(e[Rs]=null!==n),e}),[r,n]);return nr.jsx(Cs.Provider,{value:o,children:t})}const Ds=["value"],As=y.createContext();function Ps(e){let{value:t}=e,r=qt(e,Ds);return nr.jsx(As.Provider,wt({value:null==t||t},r))}const Ms=y.createContext(void 0);function qs({value:e,children:t}){return nr.jsx(Ms.Provider,{value:e,children:t})}function Ts({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?jl(o.defaultProps,n):o.styleOverrides||o.variants?n:jl(o,n)}({props:e,name:t,theme:{components:y.useContext(Ms)}})}const ks={};function Ls(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?wt({},t,{[e]:i}):i;return n?()=>a:a}return wt({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Os(e){const{children:t,theme:r,themeId:n}=e,o=tl(ks),i=Es()||ks,a=Ls(n,o,r),l=Ls(n,i,r,!0),s="rtl"===a.direction;return nr.jsx(Is,{theme:l,children:nr.jsx(Mi.Provider,{value:a,children:nr.jsx(Ps,{value:s,children:nr.jsx(qs,{value:null==a?void 0:a.components,children:t})})})})}var Ns,_s={},zs={exports:{}};(Ns=zs).exports=function(e){return e&&e.__esModule?e:{default:e}},Ns.exports.__esModule=!0,Ns.exports.default=Ns.exports;var js=zs.exports,Fs=Et(Xr),Hs=Et(Bl),Bs=js;Object.defineProperty(_s,"__esModule",{value:!0});var $s=_s.alpha=ru;_s.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Js(e),a=Js(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Qs({type:"rgb",values:l})},_s.colorChannel=void 0;var Vs=_s.darken=nu;_s.decomposeColor=Js,_s.emphasize=iu;var Ws=_s.getContrastRatio=function(e,t){const r=tu(e),n=tu(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};_s.getLuminance=tu,_s.hexToRgb=Xs,_s.hslToRgb=eu;var Us=_s.lighten=ou;_s.private_safeAlpha=function(e,t,r){try{return ru(e,t)}catch(t){return e}},_s.private_safeColorChannel=void 0,_s.private_safeDarken=function(e,t,r){try{return nu(e,t)}catch(t){return e}},_s.private_safeEmphasize=function(e,t,r){try{return iu(e,t)}catch(t){return e}},_s.private_safeLighten=function(e,t,r){try{return ou(e,t)}catch(t){return e}},_s.recomposeColor=Qs,_s.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Js(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 Gs=Bs(Fs),Ys=Bs(Hs);function Ks(e,t=0,r=1){return(0,Ys.default)(e,t,r)}function Xs(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 Js(e){if(e.type)return e;if("#"===e.charAt(0))return Js(Xs(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Gs.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,Gs.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Zs=e=>{const t=Js(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};_s.colorChannel=Zs;function Qs(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 eu(e){e=Js(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Qs({type:l,values:s})}function tu(e){let t="hsl"===(e=Js(e)).type||"hsla"===e.type?Js(eu(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 ru(e,t){return e=Js(e),t=Ks(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Qs(e)}function nu(e,t){if(e=Js(e),t=Ks(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 Qs(e)}function ou(e,t){if(e=Js(e),t=Ks(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 Qs(e)}function iu(e,t=.15){return tu(e)>.5?nu(e,t):ou(e,t)}_s.private_safeColorChannel=(e,t)=>{try{return Zs(e)}catch(t){return e}};const au=["mode","contrastThreshold","tonalOffset"],lu={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:hr.white,default:hr.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}},su={text:{primary:hr.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:hr.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 uu(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=Us(e.main,o):"dark"===t&&(e.dark=Vs(e.main,i)))}function cu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Qr(e,au),i=e.primary||function(e="light"){return"dark"===e?{main:Ar,light:Dr,dark:Pr}:{main:Mr,light:Pr,dark:qr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:wr,light:Sr,dark:Er}:{main:Rr,light:Cr,dark:Ir}}(t),l=e.error||function(e="light"){return"dark"===e?{main:br,light:gr,dark:yr}:{main:yr,light:vr,dark:xr}}(t),s=e.info||function(e="light"){return"dark"===e?{main:kr,light:Tr,dark:Or}:{main:Or,light:Lr,dark:Nr}}(t),u=e.success||function(e="light"){return"dark"===e?{main:zr,light:_r,dark:Fr}:{main:Hr,light:jr,dark:Br}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Vr,light:$r,dark:Ur}:{main:"#ed6c02",light:Wr,dark:Gr}}(t);function d(e){return Ws(e,su.text.primary)>=r?su.text.primary:lu.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Zr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Kr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Kr(12,t?` (${t})`:"",JSON.stringify(e.main)));return uu(e,"light",o,n),uu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:su,light:lu};return Yi(Zr({common:Zr({},hr),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Yr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const du=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const pu={textTransform:"uppercase"},fu='"Roboto", "Helvetica", "Arial", sans-serif';function mu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=fu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Qr(r,du),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return Zr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===fu?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,pu),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,pu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yi(Zr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function hu(...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 gu=["none",hu(0,2,1,-1,0,1,1,0,0,1,3,0),hu(0,3,1,-2,0,2,2,0,0,1,5,0),hu(0,3,3,-2,0,3,4,0,0,1,8,0),hu(0,2,4,-1,0,4,5,0,0,1,10,0),hu(0,3,5,-1,0,5,8,0,0,1,14,0),hu(0,3,5,-1,0,6,10,0,0,1,18,0),hu(0,4,5,-2,0,7,10,1,0,2,16,1),hu(0,5,5,-3,0,8,10,1,0,3,14,2),hu(0,5,6,-3,0,9,12,1,0,3,16,2),hu(0,6,6,-3,0,10,14,1,0,4,18,3),hu(0,6,7,-4,0,11,15,1,0,4,20,3),hu(0,7,8,-4,0,12,17,2,0,5,22,4),hu(0,7,8,-4,0,13,19,2,0,5,24,4),hu(0,7,9,-4,0,14,21,2,0,5,26,4),hu(0,8,9,-5,0,15,22,2,0,6,28,5),hu(0,8,10,-5,0,16,24,2,0,6,30,5),hu(0,8,11,-5,0,17,26,2,0,6,32,5),hu(0,9,11,-5,0,18,28,2,0,7,34,6),hu(0,9,12,-6,0,19,29,2,0,7,36,6),hu(0,10,13,-6,0,20,31,3,0,8,38,7),hu(0,10,13,-6,0,21,33,3,0,8,40,7),hu(0,10,14,-6,0,22,35,3,0,8,42,7),hu(0,11,14,-7,0,23,36,3,0,9,44,8),hu(0,11,15,-7,0,24,38,3,0,9,46,8)],vu=["duration","easing","delay"],bu={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)"},yu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xu(e){return`${Math.round(e)}ms`}function Su(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function wu(e){const t=Zr({},bu,e.easing),r=Zr({},yu,e.duration);return Zr({getAutoHeightDuration:Su,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Qr(n,vu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:xu(o)} ${i} ${"string"==typeof a?a:xu(a)}`)).join(",")}},e,{easing:t,duration:r})}const Cu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Eu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ru(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Qr(e,Eu);if(e.vars&&void 0===e.generateCssVars)throw new Error(Kr(18));const l=cu(n),s=Qa(e);let u=Yi(s,{mixins:(c=s.breakpoints,d=r,Zr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:gu.slice(),typography:mu(l,i),transitions:wu(o),zIndex:Zr({},Cu)});var c,d;return u=Yi(u,a),u=t.reduce(((e,t)=>Yi(e,t)),u),u.unstable_sxConfig=Zr({},Ya,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Xa({sx:e,theme:this})},u}const Iu=Ru();function Du(){const e=nl(Iu);return e[Jr]||e}var Au,Pu={},Mu={exports:{}};var qu,Tu={exports:{}};var ku=Et(Wi),Lu=Et(Ki),Ou=Et(oa),Nu=Et(zl),_u=Et(el),zu=Et(ll),ju=js;Object.defineProperty(Pu,"__esModule",{value:!0});var Fu=Pu.default=function(e={}){const{themeId:t,defaultTheme:r=Zu,rootShouldForwardProp:n=Ju,slotShouldForwardProp:o=Ju}=e,i=e=>(0,Uu.default)((0,Hu.default)({},e,{theme:ec((0,Hu.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,$u.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=tc(Qu(s))}=a,p=(0,Bu.default)(a,Ku),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Ju;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,$u.default)(e,(0,Hu.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Vu.isPlainObject)(e)?n=>rc(e,(0,Hu.default)({},n,{theme:ec({theme:n.theme,defaultTheme:r,themeId:t})})):e,b=(n,...o)=>{let a=v(n);const s=o?o.map(v):[];l&&d&&s.push((e=>{const n=ec((0,Hu.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=rc(r,(0,Hu.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=ec((0,Hu.default)({},e,{defaultTheme:r,themeId:t}));return rc({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Hu.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}};Pu.shouldForwardProp=Ju,Pu.systemDefaultTheme=void 0;var Hu=ju((Au||(Au=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}(Mu)),Mu.exports)),Bu=ju((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(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Tu)),Tu.exports)),$u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Xu(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),Vu=Lu;ju(Ou),ju(Nu);var Wu=ju(_u),Uu=ju(zu);const Gu=["ownerState"],Yu=["variants"],Ku=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xu(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Xu=function(e){return e?r:t})(e)}function Ju(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Zu=Pu.systemDefaultTheme=(0,Wu.default)(),Qu=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 tc(e){return e?(t,r)=>r[e]:null}function rc(e,t){let{ownerState:r}=t,n=(0,Bu.default)(t,Gu);const o="function"==typeof e?e((0,Hu.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>rc(e,(0,Hu.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Bu.default)(o,Yu);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Hu.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Hu.default)({ownerState:r},n,r)):e.style))})),t}return o}function nc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const oc=e=>nc(e)&&"classes"!==e,ic=Fu({themeId:Jr,defaultTheme:Iu,rootShouldForwardProp:oc}),ac=["theme"];function lc(e){let{theme:t}=e,r=Qr(e,ac);const n=t[Jr];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Zr({},n,{vars:null}):t&&!t.vars&&(o=Zr({},t,{vars:null}))),nr.jsx(Os,Zr({},r,{themeId:n?Jr:void 0,theme:o}))}const sc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function uc(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=uc(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function cc(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=uc(e))&&(n&&(n+=" "),n+=t);return n}function dc(e){return Ts(e)}function pc(e){return ml("MuiSvgIcon",e)}hl("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],mc=ic("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${na(r.color)}`],t[`fontSize${na(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),hc=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Qr(r,fc),f=y.isValidElement(n)&&"svg"===n.type,m=Zr({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return gs({root:["root","inherit"!==t&&`color${na(t)}`,`fontSize${na(r)}`]},pc,n)})(m);return nr.jsxs(mc,Zr({as:a,className:cc(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?nr.jsx("title",{children:c}):null]}))}));hc.muiName="SvgIcon";var gc=!1,vc=x.createContext(null),bc="unmounted",yc="exited",xc="entering",Sc="entered",wc="exiting",Cc=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=yc,n.appearStatus=xc):o=Sc:o=t.unmountOnExit||t.mountOnEnter?bc:yc,n.state={status:o},n.nextCallback=null,n}kt(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===bc?{status:yc}: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!==xc&&r!==Sc&&(t=xc):r!==xc&&r!==Sc||(t=wc)}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===xc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yc&&this.setState({status:bc})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[F.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||gc?this.safeSetState({status:Sc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:xc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Sc},(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:F.findDOMNode(this);t&&!gc?(this.props.onExit(n),this.safeSetState({status:wc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:yc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:yc},(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:F.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===bc)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=qt(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(vc.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Ec(){}function Rc(e,t){var r=Object.create(null);return e&&A.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&I(e)?t(e):e}(e)})),r}function Ic(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Dc(e,t,r){var n=Rc(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(I(a)){var l=i in t,s=i in n,u=t[i],c=I(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&I(u)&&(o[i]=D(a,{onExited:r.bind(null,a),in:u.props.in,exit:Ic(a,"exit",e),enter:Ic(a,"enter",e)})):o[i]=D(a,{in:!1}):o[i]=D(a,{onExited:r.bind(null,a),in:!0,exit:Ic(a,"exit",e),enter:Ic(a,"enter",e)})}})),o}Cc.contextType=vc,Cc.propTypes={},Cc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ec,onEntering:Ec,onEntered:Ec,onExit:Ec,onExiting:Ec,onExited:Ec},Cc.UNMOUNTED=bc,Cc.EXITED=yc,Cc.ENTERING=xc,Cc.ENTERED=Sc,Cc.EXITING=wc;var Ac=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Pc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Lt(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}kt(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,Rc(r.children,(function(e){return D(e,{onExited:n.bind(null,e),in:!0,appear:Ic(e,"appear",r),enter:Ic(e,"enter",r),exit:Ic(e,"exit",r)})}))):Dc(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Rc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=wt({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=qt(e,["component","childFactory"]),o=this.state.contextValue,i=Ac(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(vc.Provider,{value:o},i):x.createElement(vc.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);Pc.propTypes={},Pc.defaultProps={component:"div",childFactory:function(e){return e}};const Mc=e=>e.scrollTop;function qc(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 Tc(e){return ml("MuiPaper",e)}hl("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 kc=["className","component","elevation","square","variant"],Lc=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 Zr({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&&Zr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${$s("#fff",sc(t.elevation))}, ${$s("#fff",sc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Oc=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Qr(r,kc),u=Zr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return gs({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Tc,o)})(u);return nr.jsx(Lc,Zr({as:o,ownerState:u,className:cc(c.root,n),ref:t},s))}));const Nc=hl("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_c=["center","classes","className"];let zc,jc,Fc,Hc,Bc=e=>e;const $c=Fi(zc||(zc=Bc`
29
+ function pp(e,t){let r;return r=t?sp(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):sp(e),r}function fp(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}dp.propTypes={defaultTheme:qt.object,styles:qt.oneOfType([qt.array,qt.string,qt.object,qt.func])};var mp=Object.freeze({__proto__:null,GlobalStyles:dp,StyledEngineProvider:cp,ThemeContext:Qd,css:op,default:pp,internal_mutateStyles:fp,internal_processStyles:function(e,t){return fp(e,t)},internal_serializeStyles:function(e){return e},keyframes:up});function hp(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 gp(e){if(y.isValidElement(e)||!hp(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=gp(e[r])})),t}function bp(e,t,r={clone:!0}){const n=r.clone?St({},e):e;return hp(e)&&hp(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:hp(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&hp(e[o])?n[o]=bp(e[o],t[o],r):r.clone?n[o]=hp(t[o])?gp(t[o]):t[o]:n[o]=t[o]})),n}var vp=Object.freeze({__proto__:null,default:bp,isPlainObject:hp});const yp=["values","unit","step"];function xp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Sr(e,yp),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)=>St({},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 St({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 Sp={borderRadius:4};function Ep(e,t){return t?bp(e,t,{clone:!1}):e}const Cp={xs:0,sm:600,md:900,lg:1200,xl:1536},wp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cp[e]}px)`};function Rp(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||wp;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||wp;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Cp).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ap(e){if("string"!=typeof e)throw new Error(yu(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Dp=Object.freeze({__proto__:null,default:Ap});function Lp(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 Ip(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Lp(e,r)||n,t&&(o=t(o,n,e)),o}function qp(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=Lp(e.theme,n)||{};return Rp(e,i,(e=>{let n=Ip(a,o,e);return e===n&&"string"==typeof e&&(n=Ip(a,o,`${t}${"default"===e?"":Ap(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Pp={m:"margin",p:"padding"},Mp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_p={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},kp=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!_p[e])return[e];e=_p[e]}const[t,r]=e.split(""),n=Pp[t],o=Mp[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Tp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Op=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Np(e,t,r,n){var o;const i=null!=(o=Lp(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 Fp(e){return Np(e,"spacing",8)}function jp(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 zp(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=jp(t,r),e)),{})}(kp(r),n);return Rp(e,e[r],o)}function Hp(e,t){const r=Fp(e.theme);return Object.keys(e).map((n=>zp(e,t,n,r))).reduce(Ep,{})}function Bp(e){return Hp(e,Tp)}function $p(e){return Hp(e,Op)}function Vp(...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]?Ep(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Gp(e){return"number"!=typeof e?e:`${e}px solid`}function Wp(e,t){return qp({prop:e,themeKey:"borders",transform:t})}Bp.propTypes={},Bp.filterProps=Tp,$p.propTypes={},$p.filterProps=Op;const Up=Wp("border",Gp),Yp=Wp("borderTop",Gp),Kp=Wp("borderRight",Gp),Xp=Wp("borderBottom",Gp),Jp=Wp("borderLeft",Gp),Zp=Wp("borderColor"),Qp=Wp("borderTopColor"),ef=Wp("borderRightColor"),tf=Wp("borderBottomColor"),rf=Wp("borderLeftColor"),nf=Wp("outline",Gp),of=Wp("outlineColor"),af=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Np(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:jp(t,e)});return Rp(e,e.borderRadius,r)}return null};af.propTypes={},af.filterProps=["borderRadius"],Vp(Up,Yp,Kp,Xp,Jp,Zp,Qp,ef,tf,rf,af,nf,of);const sf=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Np(e.theme,"spacing",8),r=e=>({gap:jp(t,e)});return Rp(e,e.gap,r)}return null};sf.propTypes={},sf.filterProps=["gap"];const lf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Np(e.theme,"spacing",8),r=e=>({columnGap:jp(t,e)});return Rp(e,e.columnGap,r)}return null};lf.propTypes={},lf.filterProps=["columnGap"];const uf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Np(e.theme,"spacing",8),r=e=>({rowGap:jp(t,e)});return Rp(e,e.rowGap,r)}return null};uf.propTypes={},uf.filterProps=["rowGap"];function cf(e,t){return"grey"===t?t:e}Vp(sf,lf,uf,qp({prop:"gridColumn"}),qp({prop:"gridRow"}),qp({prop:"gridAutoFlow"}),qp({prop:"gridAutoColumns"}),qp({prop:"gridAutoRows"}),qp({prop:"gridTemplateColumns"}),qp({prop:"gridTemplateRows"}),qp({prop:"gridTemplateAreas"}),qp({prop:"gridArea"}));function df(e){return e<=1&&0!==e?100*e+"%":e}Vp(qp({prop:"color",themeKey:"palette",transform:cf}),qp({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cf}),qp({prop:"backgroundColor",themeKey:"palette",transform:cf}));const pf=qp({prop:"width",transform:df}),ff=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])||Cp[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:df(t)}};return Rp(e,e.maxWidth,t)}return null};ff.filterProps=["maxWidth"];const mf=qp({prop:"minWidth",transform:df}),hf=qp({prop:"height",transform:df}),gf=qp({prop:"maxHeight",transform:df}),bf=qp({prop:"minHeight",transform:df});qp({prop:"size",cssProperty:"width",transform:df}),qp({prop:"size",cssProperty:"height",transform:df});Vp(pf,ff,mf,hf,gf,bf,qp({prop:"boxSizing"}));const vf={border:{themeKey:"borders",transform:Gp},borderTop:{themeKey:"borders",transform:Gp},borderRight:{themeKey:"borders",transform:Gp},borderBottom:{themeKey:"borders",transform:Gp},borderLeft:{themeKey:"borders",transform:Gp},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gp},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:af},color:{themeKey:"palette",transform:cf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cf},backgroundColor:{themeKey:"palette",transform:cf},p:{style:$p},pt:{style:$p},pr:{style:$p},pb:{style:$p},pl:{style:$p},px:{style:$p},py:{style:$p},padding:{style:$p},paddingTop:{style:$p},paddingRight:{style:$p},paddingBottom:{style:$p},paddingLeft:{style:$p},paddingX:{style:$p},paddingY:{style:$p},paddingInline:{style:$p},paddingInlineStart:{style:$p},paddingInlineEnd:{style:$p},paddingBlock:{style:$p},paddingBlockStart:{style:$p},paddingBlockEnd:{style:$p},m:{style:Bp},mt:{style:Bp},mr:{style:Bp},mb:{style:Bp},ml:{style:Bp},mx:{style:Bp},my:{style:Bp},margin:{style:Bp},marginTop:{style:Bp},marginRight:{style:Bp},marginBottom:{style:Bp},marginLeft:{style:Bp},marginX:{style:Bp},marginY:{style:Bp},marginInline:{style:Bp},marginInlineStart:{style:Bp},marginInlineEnd:{style:Bp},marginBlock:{style:Bp},marginBlockStart:{style:Bp},marginBlockEnd:{style:Bp},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:sf},rowGap:{style:uf},columnGap:{style:lf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:df},maxWidth:{style:ff},minWidth:{transform:df},height:{transform:df},maxHeight:{transform:df},minHeight:{transform:df},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function yf(){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=Lp(r,s)||{};if(u)return u(o);return Rp(o,t,(t=>{let r=Ip(c,l,t);return t===r&&"string"==typeof t&&(r=Ip(c,l,`${e}${"default"===t?"":Ap(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:vf;function s(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),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=Ep(l,e(r,o,i,a));else{const e=Rp({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)?l=Ep(l,e):l[r]=t({sx:o,theme:i})}else l=Ep(l,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const xf=yf();function Sf(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:{}}xf.filterProps=["sx"];const Ef=["breakpoints","palette","spacing","shape"];function Cf(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Sr(e,Ef),s=xp(r),l=function(e=8){if(e.mui)return e;const t=Fp({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=bp({breakpoints:s,direction:"ltr",components:{},palette:St({mode:"light"},n),spacing:l,shape:St({},Sp,i)},a);return u.applyStyles=Sf,u=t.reduce(((e,t)=>bp(e,t)),u),u.unstable_sxConfig=St({},vf,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return xf({sx:e,theme:this})},u}var wf=Object.freeze({__proto__:null,default:Cf,private_createBreakpoints:xp,unstable_applyStyles:Sf});function Rf(e=null){const t=y.useContext(Qd);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Af=Cf();function Df(e=Af){return Rf(e)}function Lf({styles:e,themeId:t,defaultTheme:r={}}){const n=Df(r),o="function"==typeof e?e(t&&n[t]||n):e;return Dl.jsx(dp,{styles:o})}const If=["sx"];function qf(e){const{sx:t}=e,r=Sr(e,If),{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:vf;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 hp(r)?St({},n,r):n}:St({},n,t),St({},o,{sx:i})}var Pf=Object.freeze({__proto__:null,default:xf,extendSxProp:qf,unstable_createStyleFunctionSx:yf,unstable_defaultSxConfig:vf});const Mf=e=>e,_f=(()=>{let e=Mf;return{configure(t){e=t},generate:t=>e(t),reset(){e=Mf}}})();function kf(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=kf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Tf(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=kf(e))&&(n&&(n+=" "),n+=t);return n}const Of=["className","component"];const Nf={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 Ff(e,t,r="Mui"){const n=Nf[t];return n?`${r}-${n}`:`${_f.generate(e)}-${t}`}function jf(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Ff(e,t,r)})),n}var zf={exports:{}},Hf={},Bf=Symbol.for("react.transitional.element"),$f=Symbol.for("react.portal"),Vf=Symbol.for("react.fragment"),Gf=Symbol.for("react.strict_mode"),Wf=Symbol.for("react.profiler"),Uf=Symbol.for("react.consumer"),Yf=Symbol.for("react.context"),Kf=Symbol.for("react.forward_ref"),Xf=Symbol.for("react.suspense"),Jf=Symbol.for("react.suspense_list"),Zf=Symbol.for("react.memo"),Qf=Symbol.for("react.lazy"),em=Symbol.for("react.offscreen"),tm=Symbol.for("react.client.reference");function rm(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Bf:switch(e=e.type){case Vf:case Wf:case Gf:case Xf:case Jf:return e;default:switch(e=e&&e.$$typeof){case Yf:case Kf:case Qf:case Zf:case Uf:return e;default:return t}}case $f:return t}}}Hf.ContextConsumer=Uf,Hf.ContextProvider=Yf,Hf.Element=Bf,Hf.ForwardRef=Kf,Hf.Fragment=Vf,Hf.Lazy=Qf,Hf.Memo=Zf,Hf.Portal=$f,Hf.Profiler=Wf,Hf.StrictMode=Gf,Hf.Suspense=Xf,Hf.SuspenseList=Jf,Hf.isContextConsumer=function(e){return rm(e)===Uf},Hf.isContextProvider=function(e){return rm(e)===Yf},Hf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Bf},Hf.isForwardRef=function(e){return rm(e)===Kf},Hf.isFragment=function(e){return rm(e)===Vf},Hf.isLazy=function(e){return rm(e)===Qf},Hf.isMemo=function(e){return rm(e)===Zf},Hf.isPortal=function(e){return rm(e)===$f},Hf.isProfiler=function(e){return rm(e)===Wf},Hf.isStrictMode=function(e){return rm(e)===Gf},Hf.isSuspense=function(e){return rm(e)===Xf},Hf.isSuspenseList=function(e){return rm(e)===Jf},Hf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Vf||e===Wf||e===Gf||e===Xf||e===Jf||e===em||"object"==typeof e&&null!==e&&(e.$$typeof===Qf||e.$$typeof===Zf||e.$$typeof===Yf||e.$$typeof===Uf||e.$$typeof===Kf||e.$$typeof===tm||void 0!==e.getModuleId)},Hf.typeOf=rm,zf.exports=Hf;var nm=zf.exports;const om=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function im(e){const t=`${e}`.match(om);return t&&t[1]||""}function am(e,t=""){return e.displayName||e.name||im(e)||t}function sm(e,t,r){const n=am(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var lm=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return am(e,"Component");if("object"==typeof e)switch(e.$$typeof){case nm.ForwardRef:return sm(e,e.render,"ForwardRef");case nm.Memo:return sm(e,e.type,"memo");default:return}}},getFunctionName:im});function um(e,t){const r=St({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=St({},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]=St({},i),Object.keys(o).forEach((e=>{r[n][e]=um(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const cm="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function dm(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var pm=Object.freeze({__proto__:null,default:dm});function fm(e){if(e.type)return e;if("#"===e.charAt(0))return fm(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(yu(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(yu(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function mm(e,t){return e=fm(e),t=function(e,t=0,r=1){return dm(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 hm(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function gm(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function bm(e){return e&&e.ownerDocument||document}function vm(e){return bm(e).defaultView||window}function ym(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let xm=0;const Sm=y["useId".toString()];function Em(e){if(void 0!==Sm){return Sm()}return function(e){const[t,r]=y.useState(e),n=t;return y.useEffect((()=>{null==t&&(xm+=1,r(`mui-${xm}`))}),[t]),n}(e)}function Cm({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function wm(e){const t=y.useRef(e);return cm((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Rm(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ym(e,t)}))}),e)}const Am={};const Dm=[];class Lm{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Lm}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Im(){const e=function(e,t){const r=y.useRef(Am);return r.current===Am&&(r.current=e(t)),r}(Lm.create).current;return function(e){y.useEffect(e,Dm)}(e.disposeEffect),e}let qm=!0,Pm=!1;const Mm=new Lm,_m={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 km(e){e.metaKey||e.altKey||e.ctrlKey||(qm=!0)}function Tm(){qm=!1}function Om(){"hidden"===this.visibilityState&&Pm&&(qm=!0)}function Nm(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return qm||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!_m[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Fm(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",km,!0),t.addEventListener("mousedown",Tm,!0),t.addEventListener("pointerdown",Tm,!0),t.addEventListener("touchstart",Tm,!0),t.addEventListener("visibilitychange",Om,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Nm(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Pm=!0,Mm.start(100,(()=>{Pm=!1})),t.current=!1,!0)},ref:e}}function jm(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function zm(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 Hm(e){return"string"==typeof e}function Bm(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 $m(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 Vm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Gm(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Sr(e,Vm),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=Tf(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=St({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=St({},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=Bm(St({},o,n)),s=$m(n),l=$m(o),u=t(a),c=Tf(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=St({},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=St({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(St({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Hm(e)?t:St({},t,{ownerState:St({},t.ownerState,r)})}(r,St({},l,{ref:Rm(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Wm(e){var t;return parseInt(y.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Um=y.createContext(null);function Ym(){return y.useContext(Um)}var Km="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Xm(e){const{children:t,theme:r}=e,n=Ym(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return St({},e,t)}(n,r);return null!=e&&(e[Km]=null!==n),e}),[r,n]);return Dl.jsx(Um.Provider,{value:o,children:t})}const Jm=["value"],Zm=y.createContext();function Qm(e){let{value:t}=e,r=Sr(e,Jm);return Dl.jsx(Zm.Provider,St({value:null==t||t},r))}const eh=y.createContext(void 0);function th({value:e,children:t}){return Dl.jsx(eh.Provider,{value:e,children:t})}function rh({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?um(o.defaultProps,n):o.styleOverrides||o.variants?n:um(o,n)}({props:e,name:t,theme:{components:y.useContext(eh)}})}const nh={};function oh(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?St({},t,{[e]:i}):i;return n?()=>a:a}return St({},t,e?{[e]:r}:r)}),[e,t,r,n])}function ih(e){const{children:t,theme:r,themeId:n}=e,o=Rf(nh),i=Ym()||nh,a=oh(n,o,r),s=oh(n,i,r,!0),l="rtl"===a.direction;return Dl.jsx(Xm,{theme:s,children:Dl.jsx(Qd.Provider,{value:a,children:Dl.jsx(Qm,{value:l,children:Dl.jsx(th,{value:null==a?void 0:a.components,children:t})})})})}function ah(e,t){return Eu({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var sh,lh={},uh={exports:{}};(sh=uh).exports=function(e){return e&&e.__esModule?e:{default:e}},sh.exports.__esModule=!0,sh.exports.default=sh.exports;var ch=uh.exports,dh=At(xu),ph=At(pm),fh=ch;Object.defineProperty(lh,"__esModule",{value:!0});var mh=lh.alpha=Dh;lh.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Eh(e),a=Eh(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return wh({type:"rgb",values:s})},lh.colorChannel=void 0;var hh=lh.darken=Lh;lh.decomposeColor=Eh,lh.emphasize=qh;var gh=lh.getContrastRatio=function(e,t){const r=Ah(e),n=Ah(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};lh.getLuminance=Ah,lh.hexToRgb=Sh,lh.hslToRgb=Rh;var bh=lh.lighten=Ih;lh.private_safeAlpha=function(e,t,r){try{return Dh(e,t)}catch(t){return e}},lh.private_safeColorChannel=void 0,lh.private_safeDarken=function(e,t,r){try{return Lh(e,t)}catch(t){return e}},lh.private_safeEmphasize=function(e,t,r){try{return qh(e,t)}catch(t){return e}},lh.private_safeLighten=function(e,t,r){try{return Ih(e,t)}catch(t){return e}},lh.recomposeColor=wh,lh.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Eh(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 vh=fh(dh),yh=fh(ph);function xh(e,t=0,r=1){return(0,yh.default)(e,t,r)}function Sh(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 Eh(e){if(e.type)return e;if("#"===e.charAt(0))return Eh(Sh(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,vh.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,vh.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Ch=e=>{const t=Eh(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};lh.colorChannel=Ch;function wh(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 Rh(e){e=Eh(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])),wh({type:s,values:l})}function Ah(e){let t="hsl"===(e=Eh(e)).type||"hsla"===e.type?Eh(Rh(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 Dh(e,t){return e=Eh(e),t=xh(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,wh(e)}function Lh(e,t){if(e=Eh(e),t=xh(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 wh(e)}function Ih(e,t){if(e=Eh(e),t=xh(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 wh(e)}function qh(e,t=.15){return Ah(e)>.5?Lh(e,t):Ih(e,t)}lh.private_safeColorChannel=(e,t)=>{try{return Ch(e)}catch(t){return e}};const Ph=["mode","contrastThreshold","tonalOffset"],Mh={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:jl.white,default:jl.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}},_h={text:{primary:jl.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:jl.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 kh(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=bh(e.main,o):"dark"===t&&(e.dark=hh(e.main,i)))}function Th(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Cu(e,Ph),i=e.primary||function(e="light"){return"dark"===e?{main:Zl,light:Jl,dark:Ql}:{main:eu,light:Ql,dark:tu}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Wl,light:Gl,dark:Yl}:{main:Kl,light:Ul,dark:Xl}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Bl,light:zl,dark:$l}:{main:$l,light:Hl,dark:Vl}}(t),l=e.info||function(e="light"){return"dark"===e?{main:nu,light:ru,dark:iu}:{main:iu,light:ou,dark:au}}(t),u=e.success||function(e="light"){return"dark"===e?{main:lu,light:su,dark:cu}:{main:du,light:uu,dark:pu}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:mu,light:fu,dark:gu}:{main:"#ed6c02",light:hu,dark:bu}}(t);function d(e){return gh(e,_h.text.primary)>=r?_h.text.primary:Mh.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Eu({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(yu(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(yu(12,t?` (${t})`:"",JSON.stringify(e.main)));return kh(e,"light",o,n),kh(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:_h,light:Mh};return bp(Eu({common:Eu({},jl),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:vu,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Oh=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Nh={textTransform:"uppercase"},Fh='"Roboto", "Helvetica", "Arial", sans-serif';function jh(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Fh,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Cu(r,Oh),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return Eu({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Fh?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Nh),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Nh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bp(Eu({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function zh(...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 Hh=["none",zh(0,2,1,-1,0,1,1,0,0,1,3,0),zh(0,3,1,-2,0,2,2,0,0,1,5,0),zh(0,3,3,-2,0,3,4,0,0,1,8,0),zh(0,2,4,-1,0,4,5,0,0,1,10,0),zh(0,3,5,-1,0,5,8,0,0,1,14,0),zh(0,3,5,-1,0,6,10,0,0,1,18,0),zh(0,4,5,-2,0,7,10,1,0,2,16,1),zh(0,5,5,-3,0,8,10,1,0,3,14,2),zh(0,5,6,-3,0,9,12,1,0,3,16,2),zh(0,6,6,-3,0,10,14,1,0,4,18,3),zh(0,6,7,-4,0,11,15,1,0,4,20,3),zh(0,7,8,-4,0,12,17,2,0,5,22,4),zh(0,7,8,-4,0,13,19,2,0,5,24,4),zh(0,7,9,-4,0,14,21,2,0,5,26,4),zh(0,8,9,-5,0,15,22,2,0,6,28,5),zh(0,8,10,-5,0,16,24,2,0,6,30,5),zh(0,8,11,-5,0,17,26,2,0,6,32,5),zh(0,9,11,-5,0,18,28,2,0,7,34,6),zh(0,9,12,-6,0,19,29,2,0,7,36,6),zh(0,10,13,-6,0,20,31,3,0,8,38,7),zh(0,10,13,-6,0,21,33,3,0,8,40,7),zh(0,10,14,-6,0,22,35,3,0,8,42,7),zh(0,11,14,-7,0,23,36,3,0,9,44,8),zh(0,11,15,-7,0,24,38,3,0,9,46,8)],Bh=["duration","easing","delay"],$h={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)"},Vh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gh(e){return`${Math.round(e)}ms`}function Wh(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Uh(e){const t=Eu({},$h,e.easing),r=Eu({},Vh,e.duration);return Eu({getAutoHeightDuration:Wh,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Cu(n,Bh),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Gh(o)} ${i} ${"string"==typeof a?a:Gh(a)}`)).join(",")}},e,{easing:t,duration:r})}const Yh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Kh=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Xh(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Cu(e,Kh);if(e.vars&&void 0===e.generateCssVars)throw new Error(yu(18));const s=Th(n),l=Cf(e);let u=bp(l,{mixins:ah(l.breakpoints,r),palette:s,shadows:Hh.slice(),typography:jh(s,i),transitions:Uh(o),zIndex:Eu({},Yh)});return u=bp(u,a),u=t.reduce(((e,t)=>bp(e,t)),u),u.unstable_sxConfig=Eu({},vf,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return xf({sx:e,theme:this})},u}const Jh=Xh();function Zh(){const e=Df(Jh);return e[Su]||e}var Qh,eg={},tg={exports:{}};function rg(){return Qh||(Qh=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}(tg)),tg.exports}var ng,og={exports:{}};function ig(){return ng||(ng=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(og)),og.exports}var ag=At(mp),sg=At(vp),lg=At(Dp),ug=At(lm),cg=At(wf),dg=At(Pf),pg=ch;Object.defineProperty(eg,"__esModule",{value:!0});var fg=eg.default=function(e={}){const{themeId:t,defaultTheme:r=Rg,rootShouldForwardProp:n=wg,slotShouldForwardProp:o=wg}=e,i=e=>(0,yg.default)((0,mg.default)({},e,{theme:Dg((0,mg.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,gg.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Lg(Ag(l))}=a,p=(0,hg.default)(a,Eg),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let h=wg;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,gg.default)(e,(0,mg.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,bg.isPlainObject)(e)?n=>Ig(e,(0,mg.default)({},n,{theme:Dg({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=Dg((0,mg.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]=Ig(r,(0,mg.default)({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=Dg((0,mg.default)({},e,{defaultTheme:r,themeId:t}));return Ig({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,mg.default)({},e,{theme:o}))})),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=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};eg.shouldForwardProp=wg,eg.systemDefaultTheme=void 0;var mg=pg(rg()),hg=pg(ig()),gg=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Cg(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}(ag),bg=sg;pg(lg),pg(ug);var vg=pg(cg),yg=pg(dg);const xg=["ownerState"],Sg=["variants"],Eg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Cg(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Cg=function(e){return e?r:t})(e)}function wg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Rg=eg.systemDefaultTheme=(0,vg.default)(),Ag=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Dg({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Lg(e){return e?(t,r)=>r[e]:null}function Ig(e,t){let{ownerState:r}=t,n=(0,hg.default)(t,xg);const o="function"==typeof e?e((0,mg.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Ig(e,(0,mg.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,hg.default)(o,Sg);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,mg.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,mg.default)({ownerState:r},n,r)):e.style))})),t}return o}function qg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Pg=e=>qg(e)&&"classes"!==e,Mg=fg({themeId:Su,defaultTheme:Jh,rootShouldForwardProp:Pg}),_g=["theme"];function kg(e){let{theme:t}=e,r=Cu(e,_g);const n=t[Su];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Eu({},n,{vars:null}):t&&!t.vars&&(o=Eu({},t,{vars:null}))),Dl.jsx(ih,Eu({},r,{themeId:n?Su:void 0,theme:o}))}const Tg=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Og(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=Og(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ng(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Og(e))&&(n&&(n+=" "),n+=t);return n}function Fg(e){return rh(e)}function jg(e){return Ff("MuiSvgIcon",e)}jf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Hg=Mg("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Ap(r.color)}`],t[`fontSize${Ap(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(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==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Bg=y.forwardRef((function(e,t){const r=Fg({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=Cu(r,zg),f=y.isValidElement(n)&&"svg"===n.type,m=Eu({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return zm({root:["root","inherit"!==t&&`color${Ap(t)}`,`fontSize${Ap(r)}`]},jg,n)})(m);return Dl.jsxs(Hg,Eu({as:a,className:Ng(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?Dl.jsx("title",{children:c}):null]}))}));Bg.muiName="SvgIcon";var $g=!1,Vg=x.createContext(null),Gg="unmounted",Wg="exited",Ug="entering",Yg="entered",Kg="exiting",Xg=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=Wg,n.appearStatus=Ug):o=Yg:o=t.unmountOnExit||t.mountOnEnter?Gg:Wg,n.state={status:o},n.nextCallback=null,n}mo(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Gg?{status:Wg}: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!==Ug&&r!==Yg&&(t=Ug):r!==Ug&&r!==Yg||(t=Kg)}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===Ug){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wg&&this.setState({status:Gg})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[z.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||$g?this.safeSetState({status:Yg},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Ug},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Yg},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:z.findDOMNode(this);t&&!$g?(this.props.onExit(n),this.safeSetState({status:Kg},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Wg},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Wg},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Gg)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=Sr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Vg.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Jg(){}function Zg(e,t){var r=Object.create(null);return e&&L.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&A(e)?t(e):e}(e)})),r}function Qg(e,t,r){return null!=r[t]?r[t]:e.props[t]}function eb(e,t,r){var n=Zg(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(A(a)){var s=i in t,l=i in n,u=t[i],c=A(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&A(u)&&(o[i]=D(a,{onExited:r.bind(null,a),in:u.props.in,exit:Qg(a,"exit",e),enter:Qg(a,"enter",e)})):o[i]=D(a,{in:!1}):o[i]=D(a,{onExited:r.bind(null,a),in:!0,exit:Qg(a,"exit",e),enter:Qg(a,"enter",e)})}})),o}Xg.contextType=Vg,Xg.propTypes={},Xg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Jg,onEntering:Jg,onEntered:Jg,onExit:Jg,onExiting:Jg,onExited:Jg},Xg.UNMOUNTED=Gg,Xg.EXITED=Wg,Xg.ENTERING=Ug,Xg.ENTERED=Yg,Xg.EXITING=Kg;var tb=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},rb=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(ho(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}mo(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,Zg(r.children,(function(e){return D(e,{onExited:n.bind(null,e),in:!0,appear:Qg(e,"appear",r),enter:Qg(e,"enter",r),exit:Qg(e,"exit",r)})}))):eb(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Zg(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=St({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Sr(e,["component","childFactory"]),o=this.state.contextValue,i=tb(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Vg.Provider,{value:o},i):x.createElement(Vg.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);rb.propTypes={},rb.defaultProps={component:"div",childFactory:function(e){return e}};const nb=e=>e.scrollTop;function ob(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 ib(e){return Ff("MuiPaper",e)}jf("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 ab=["className","component","elevation","square","variant"],sb=Mg("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 Eu({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&&Eu({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${mh("#fff",Tg(t.elevation))}, ${mh("#fff",Tg(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),lb=y.forwardRef((function(e,t){const r=Fg({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Cu(r,ab),u=Eu({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return zm({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},ib,o)})(u);return Dl.jsx(sb,Eu({as:o,ownerState:u,className:Ng(c.root,n),ref:t},l))}));const ub=jf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),cb=["center","classes","className"];let db,pb,fb,mb,hb=e=>e;const gb=up(db||(db=hb`
18
30
  0% {
19
31
  transform: scale(0);
20
32
  opacity: 0.1;
@@ -24,7 +36,7 @@ function $i(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldFo
24
36
  transform: scale(1);
25
37
  opacity: 0.3;
26
38
  }
27
- `)),Vc=Fi(jc||(jc=Bc`
39
+ `)),bb=up(pb||(pb=hb`
28
40
  0% {
29
41
  opacity: 1;
30
42
  }
@@ -32,7 +44,7 @@ function $i(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldFo
32
44
  100% {
33
45
  opacity: 0;
34
46
  }
35
- `)),Wc=Fi(Fc||(Fc=Bc`
47
+ `)),vb=up(fb||(fb=hb`
36
48
  0% {
37
49
  transform: scale(1);
38
50
  }
@@ -44,7 +56,7 @@ function $i(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldFo
44
56
  100% {
45
57
  transform: scale(1);
46
58
  }
47
- `)),Uc=ic("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Gc=ic((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=cc(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=cc(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),nr.jsx("span",{className:p,style:f,children:nr.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Hc||(Hc=Bc`
59
+ `)),yb=Mg("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),xb=Mg((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]=y.useState(!1),p=Ng(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Ng(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),y.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),Dl.jsx("span",{className:p,style:f,children:Dl.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(mb||(mb=hb`
48
60
  opacity: 0;
49
61
  position: absolute;
50
62
 
@@ -87,7 +99,7 @@ function $i(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldFo
87
99
  animation-iteration-count: infinite;
88
100
  animation-delay: 200ms;
89
101
  }
90
- `),Nc.rippleVisible,$c,550,(({theme:e})=>e.transitions.easing.easeInOut),Nc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Nc.child,Nc.childLeaving,Vc,550,(({theme:e})=>e.transitions.easing.easeInOut),Nc.childPulsate,Wc,(({theme:e})=>e.transitions.easing.easeInOut)),Yc=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Qr(r,_c),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=is(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,nr.jsx(Gc,{classes:{ripple:cc(o.ripple,Nc.ripple),rippleVisible:cc(o.rippleVisible,Nc.rippleVisible),ripplePulsate:cc(o.ripplePulsate,Nc.ripplePulsate),child:cc(o.child,Nc.child),childLeaving:cc(o.childLeaving,Nc.childLeaving),childPulsate:cc(o.childPulsate,Nc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),v=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=y.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,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),nr.jsx(Uc,Zr({className:cc(Nc.root,o.root,i),ref:m},a,{children:nr.jsx(Pc,{component:null,exit:!0,children:l})}))}));function Kc(e){return ml("MuiButtonBase",e)}const Xc=hl("MuiButtonBase",["root","disabled","focusVisible"]),Jc=["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"],Zc=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"},[`&.${Xc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qc=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:I,onTouchStart:D,tabIndex:A=0,TouchRippleProps:P,touchRippleRef:M,type:q}=r,T=Qr(r,Jc),k=y.useRef(null),L=y.useRef(null),O=ts(L,M),{isFocusVisibleRef:N,onFocus:_,onBlur:z,ref:j}=ms(),[F,H]=y.useState(!1);s&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),k.current.focus()}})),[]);const[B,$]=y.useState(!1);y.useEffect((()=>{$(!0)}),[]);const V=B&&!u&&!s;function W(e,t,r=c){return es((n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&B&&L.current.pulsate()}),[u,d,F,B]);const U=W("start",w),G=W("stop",h),Y=W("stop",g),K=W("stop",E),X=W("stop",(e=>{F&&e.preventDefault(),C&&C(e)})),J=W("start",D),Z=W("stop",R),Q=W("stop",I),ee=W("stop",(e=>{z(e),!1===N.current&&H(!1),f&&f(e)}),!1),te=es((e=>{k.current||(k.current=e.currentTarget),_(e),!0===N.current&&(H(!0),b&&b(e)),v&&v(e)})),re=()=>{const e=k.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=es((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(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=es((e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(T.href||T.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===q?"button":q,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=ts(t,j,k),ue=Zr({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=gs({root:["root",t&&"disabled",r&&"focusVisible"]},Kc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return nr.jsxs(Zc,Zr({as:ae,className:cc(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:A,type:q},le,T,{children:[i,V?nr.jsx(Yc,Zr({ref:O,center:o},P)):null]}))}));function ed(e){return ml("MuiTypography",e)}hl("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const td=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],rd=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${na(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Zr({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}))),nd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},od={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},id=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiTypography"}),n=(e=>od[e]||e)(r.color),o=al(Zr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=nd}=o,f=Qr(o,td),m=Zr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||nd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return gs({root:["root",i,"inherit"!==e.align&&`align${na(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},ed,a)})(m);return nr.jsx(rd,Zr({as:h,ref:t,ownerState:m,className:cc(g.root,a)},f))}));const ad=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=ts(y.isValidElement(r)?ws(r):null,t);if(Fl((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Fl((()=>{if(i&&!o)return Kl(t,i),()=>{Kl(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:l};return y.cloneElement(r,e)}return nr.jsx(y.Fragment,{children:r})}return nr.jsx(y.Fragment,{children:i?j.createPortal(r,i):i})})),ld=["onChange","maxRows","minRows","style","value"];function sd(e){return parseInt(e,10)||0}const ud={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function cd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const dd=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=Qr(e,ld),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=ts(t,u),d=y.useRef(null),p=y.useRef(null),f=y.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=Yl(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,l=sd(i.paddingBottom)+sd(i.paddingTop),s=sd(i.borderBottomWidth)+sd(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?l+s:0),overflowing:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),m=es((()=>{const e=u.current,t=f();if(!e||!t||cd(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),h=y.useCallback((()=>{const e=u.current,t=f();if(!e||!t||cd(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=y.useRef(-1);Fl((()=>{const e=Ul(h),t=null==u?void 0:u.current;if(!t)return;const r=Yl(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{m()&&(n.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[f,h,m]),Fl((()=>{h()}));return nr.jsxs(y.Fragment,{children:[nr.jsx("textarea",Zr({value:a,onChange:e=>{s||h(),r&&r(e)},ref:c,rows:o,style:i},l)),nr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Zr({},ud,i,{paddingTop:0,paddingBottom:0})})]})}));function pd({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 fd=y.createContext(void 0);function md(){return y.useContext(fd)}function hd(e){return nr.jsx(ol,Zr({},e,{defaultTheme:Iu,themeId:Jr}))}function gd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function vd(e,t=!1){return e&&(gd(e.value)&&""!==e.value||t&&gd(e.defaultValue)&&""!==e.defaultValue)}function bd(e){return ml("MuiInputBase",e)}const yd=hl("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"],Sd=(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${na(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},wd=(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]},Cd=ic("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sd})((({theme:e,ownerState:t})=>Zr({},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",[`&.${yd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Zr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Ed=ic("input",{name:"MuiInputBase",slot:"Input",overridesResolver:wd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Zr({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 Zr({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] + .${yd.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},[`&.${yd.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"})})),Rd=nr.jsx(hd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Id=y.forwardRef((function(e,t){var r;const n=dc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:I,onFocus:D,onKeyDown:A,onKeyUp:P,placeholder:M,readOnly:q,renderSuffix:T,rows:k,slotProps:L={},slots:O={},startAdornment:N,type:_="text",value:z}=n,j=Qr(n,xd),F=null!=v.value?v.value:z,{current:H}=y.useRef(null!=F),B=y.useRef(),$=y.useCallback((e=>{}),[]),V=ts(B,b,v.ref,$),[W,U]=y.useState(!1),G=md(),Y=pd({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:W,y.useEffect((()=>{!G&&d&&W&&(U(!1),E&&E())}),[G,d,W,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=y.useCallback((e=>{vd(e)?K&&K():X&&X()}),[K,X]);Fl((()=>{H&&J({value:F})}),[F,J,H]);y.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=v;w&&"input"===Z&&(Q=Zr(k?{type:void 0,minRows:k,maxRows:k}:{type:void 0,maxRows:x,minRows:S},Q),Z=dd);y.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=Zr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:N,type:_}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return gs({root:["root",`color${na(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${na(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},bd,t)})(ee),re=O.root||s.Root||Cd,ne=L.root||u.root||{},oe=O.input||s.Input||Ed;return Q=Zr({},Q,null!=(r=L.input)?r:u.input),nr.jsxs(y.Fragment,{children:[!p&&Rd,nr.jsxs(re,Zr({},ne,!vs(re)&&{ownerState:Zr({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),I&&I(e)}},j,{className:cc(te.root,ne.className,l,q&&"MuiInputBase-readOnly"),children:[N,nr.jsx(fd.Provider,{value:null,children:nr.jsx(oe,Zr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:M,readOnly:q,required:Y.required,rows:k,value:F,onKeyDown:A,onKeyUp:P,type:_},Q,!vs(oe)&&{as:Z,ownerState:Zr({},ee,Q.ownerState)},{ref:V,className:cc(te.input,Q.className,q&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||B.current;if(null==t)throw new Error(Kr(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(D&&D(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(Zr({},Y,{startAdornment:N})):null]}))]})}));function Dd(e){return ml("MuiInput",e)}const Ad=Zr({},yd,hl("MuiInput",["root","underline","input"]));function Pd(e){return ml("MuiOutlinedInput",e)}const Md=Zr({},yd,hl("MuiOutlinedInput",["root","notchedOutline","input"]));function qd(e){return ml("MuiFilledInput",e)}const Td=Zr({},yd,hl("MuiFilledInput",["root","underline","input"]));var kd=function(e,t){function r(r,n){return nr.jsx(hc,Zr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=hc.muiName,y.memo(y.forwardRef(r))}(nr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Ld=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Od={entering:{opacity:1},entered:{opacity:1}},Nd=y.forwardRef((function(e,t){const r=Du(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:v=Cc}=e,b=Qr(e,Ld),x=y.useRef(null),S=ts(x,ws(a),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w(((e,t)=>{Mc(e);const n=qc({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=w(c),I=w(m),D=w((e=>{const t=qc({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),A=w(f);return nr.jsx(v,Zr({appear:i,in:s,nodeRef:x,onEnter:E,onEntered:R,onEntering:C,onExit:D,onExited:A,onExiting:I,addEndListener:e=>{o&&o(x.current,e)},timeout:g},b,{children:(e,t)=>y.cloneElement(a,Zr({style:Zr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Od[e],h,a.props.style),ref:S},t))}))}));function _d(e){return ml("MuiBackdrop",e)}hl("MuiBackdrop",["root","invisible"]);const zd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],jd=ic("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Zr({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"}))),Fd=y.forwardRef((function(e,t){var r,n,o;const i=dc({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=Nd,transitionDuration:g}=i,v=Qr(i,zd),b=Zr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return gs({root:["root",r&&"invisible"]},_d,t)})(b),x=null!=(r=f.root)?r:c.root;return nr.jsx(h,Zr({in:p,timeout:g},v,{children:nr.jsx(jd,Zr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:cc(y.root,l,null==x?void 0:x.className),ownerState:Zr({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Hd=hl("MuiBox",["root"]),Bd=Ru(),$d=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=$i("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Xa);return y.forwardRef((function(e,a){const l=nl(r),s=al(e),{className:u,component:c="div"}=s,d=qt(s,pl);return nr.jsx(i,wt({as:c,ref:a,className:dl(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:Jr,defaultTheme:Bd,defaultClassName:Hd.root,generateClassName:ul.generate});function Vd(e){return ml("MuiButton",e)}const Wd=hl("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"]),Ud=y.createContext({}),Gd=y.createContext(void 0),Yd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Kd=e=>Zr({},"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}}),Xd=ic(Qc,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${na(r.color)}`],t[`size${na(r.size)}`],t[`${r.variant}Size${na(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 Zr({},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":Zr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:$s(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})`:$s(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})`:$s(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":Zr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Wd.focusVisible}`]:Zr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Wd.disabled}`]:Zr({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 ${$s(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"},[`&.${Wd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Wd.disabled}`]:{boxShadow:"none"}})),Jd=ic("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${na(r.size)}`]]}})((({ownerState:e})=>Zr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Kd(e)))),Zd=ic("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${na(r.size)}`]]}})((({ownerState:e})=>Zr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Kd(e)))),Qd=y.forwardRef((function(e,t){const r=y.useContext(Ud),n=y.useContext(Gd),o=dc({props:jl(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,x=Qr(o,Yd),S=Zr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Zr({},a,gs({root:["root",i,`${i}${na(t)}`,`size${na(o)}`,`${i}Size${na(o)}`,`color${na(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${na(o)}`],endIcon:["icon","endIcon",`iconSize${na(o)}`]},Vd,a))})(S),C=g&&nr.jsx(Jd,{className:w.startIcon,ownerState:S,children:g}),E=p&&nr.jsx(Zd,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return nr.jsxs(Xd,Zr({ownerState:S,className:cc(r.className,w.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:cc(w.focusVisible,f),ref:t,type:v},x,{classes:w,children:[C,i,E]}))}));function ep(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function tp(e){return parseInt(Yl(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&&ep(e,o)}))}function np(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function op(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Gl(e);return t.body===e?Yl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=hs(Gl(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${tp(n)+e}px`;const t=Gl(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${tp(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Gl(n).body;else{const t=n.parentElement,r=Yl(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 ip=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ap(e){const t=[],r=[];return Array.from(e.querySelectorAll(ip)).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 lp(){return!0}function sp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=ap,isEnabled:a=lp,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=ts(ws(t),m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!r)}),[r,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=Gl(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!m.current)return;const e=Gl(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return nr.jsxs(y.Fragment,{children:[nr.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),nr.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const up=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&&ep(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=np(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=np(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=op(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=np(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&&ep(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&&ep(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function cp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=up,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=ts(m,d),[g,v]=y.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=es((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Gl(f.current).body;o.add(S(),e),m.current&&w()})),E=y.useCallback((()=>o.isTopModal(S())),[o]),R=es((e=>{f.current=e,e&&(c&&E()?w():m.current&&ep(m.current,x))})),I=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{I()}),[I]),y.useEffect((()=>{c?C():b&&i||I()}),[c,I,b,i,C]);const D=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},A=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=bs(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Zr({},r,t);return Zr({role:"presentation"},n,{onKeyDown:D(n),ref:h})},getBackdropProps:(e={})=>Zr({"aria-hidden":!0},e,{onClick:A(e),open:c}),getTransitionProps:()=>({onEnter:Wl((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Wl((()=>{v(!0),l&&l(),i&&I()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:E,exited:g,hasTransition:b}}function dp(e){return ml("MuiModal",e)}hl("MuiModal",["root","hidden","backdrop"]);const pp=["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"],fp=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})=>Zr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),mp=ic(Fd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),hp=y.forwardRef((function(e,t){var r,n,o,i,a,l;const s=dc({name:"MuiModal",props:e}),{BackdropComponent:u=mp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:I=!1,onBackdropClick:D,open:A,slotProps:P,slots:M}=s,q=Qr(s,pp),T=Zr({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:I}),{getRootProps:k,getBackdropProps:L,getTransitionProps:O,portalRef:N,isTopModal:_,exited:z,hasTransition:j}=cp(Zr({},T,{rootRef:t})),F=Zr({},T,{exited:z}),H=(e=>{const{open:t,exited:r,classes:n}=e;return gs({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},dp,n)})(F),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=O();B.onEnter=e,B.onExited=t}const $=null!=(r=null!=(n=null==M?void 0:M.root)?n:g.Root)?r:fp,V=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==P?void 0:P.root)?a:v.root,U=null!=(l=null==P?void 0:P.backdrop)?l:v.backdrop,G=Ss({elementType:$,externalSlotProps:W,externalForwardedProps:q,getSlotProps:k,additionalProps:{ref:t,as:h},ownerState:F,className:cc(d,null==W?void 0:W.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=Ss({elementType:V,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L(Zr({},e,{onClick:t=>{D&&D(t),null!=e&&e.onClick&&e.onClick(t)}})),className:cc(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return I||A||j&&!z?nr.jsx(ad,{ref:N,container:m,disablePortal:w,children:nr.jsxs($,Zr({},G,{children:[!R&&u?nr.jsx(V,Zr({},Y)):null,nr.jsx(sp,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:_,open:A,children:y.cloneElement(f,B)})]}))}):null}));function gp(e){return ml("MuiDivider",e)}const vp=hl("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),bp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],yp=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})=>Zr({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)`:$s(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})=>Zr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Zr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>Zr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>Zr({},"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})=>Zr({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)`}))),Sp=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Qr(r,bp),m=Zr({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return gs({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},gp,n)})(m);return nr.jsx(yp,Zr({as:a,className:cc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?nr.jsx(xp,{className:h.wrapper,ownerState:m,children:o}):null}))}));Sp.muiSkipListHighlight=!0;const wp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Cp=ic(Cd,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Sd(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Zr({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}},[`&.${Td.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Td.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Td.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Td.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(.${Td.disabled}, .${Td.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Td.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Zr({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}))})),Ep=ic(Ed,{name:"MuiFilledInput",slot:"Input",overridesResolver:wd})((({theme:e,ownerState:t})=>Zr({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}))),Rp=y.forwardRef((function(e,t){var r,n,o,i;const a=dc({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Qr(a,wp),g=Zr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:r}=e;return Zr({},t,gs({root:["root",!r&&"underline"],input:["input"]},qd,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Yi(b,null!=p?p:s):b,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:Cp,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Ep;return nr.jsx(Id,Zr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));Rp.muiName="Input";const Ip=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Dp(e){return`scale(${e}, ${e**2})`}const Ap={entering:{opacity:1,transform:Dp(1)},entered:{opacity:1,transform:"none"}},Pp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Mp=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Cc}=e,g=Qr(e,Ip),v=is(),b=y.useRef(),x=Du(),S=y.useRef(null),w=ts(S,ws(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(u),R=C(((e,t)=>{Mc(e);const{duration:r,delay:n,easing:o}=qc({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Pp?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),I=C(s),D=C(p),A=C((e=>{const{duration:t,delay:r,easing:n}=qc({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Pp?o:.666*o,delay:Pp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Dp(.75),c&&c(e)})),P=C(d);return nr.jsx(h,Zr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:I,onEntering:E,onExit:A,onExited:P,onExiting:D,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,Zr({style:Zr({opacity:0,transform:Dp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Ap[e],f,o.props.style),ref:w},t))}))}));Mp.muiSupportAuto=!0;const qp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Tp=ic(Cd,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Sd(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})`),Zr({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"},[`&.${Ad.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ad.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(.${Ad.disabled}, .${Ad.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ad.disabled}:before`]:{borderBottomStyle:"dotted"}})})),kp=ic(Ed,{name:"MuiInput",slot:"Input",overridesResolver:wd})({}),Lp=y.forwardRef((function(e,t){var r,n,o,i;const a=dc({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Qr(a,qp),v=(e=>{const{classes:t,disableUnderline:r}=e;return Zr({},t,gs({root:["root",!r&&"underline"],input:["input"]},Dd,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Yi(null!=f?f:u,b):b,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:Tp,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:kp;return nr.jsx(Id,Zr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));function Op(e){return ml("MuiLink",e)}Lp.muiName="Input";const Np=hl("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),_p={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},zp=({theme:e,ownerState:t})=>{const r=(e=>_p[e]||e)(t.color),n=ia(e,`palette.${r}`,!1)||t.color,o=ia(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:$s(n,.4)},jp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Fp=ic(id,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${na(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Zr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Zr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:zp({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"},[`&.${Np.focusVisible}`]:{outline:"auto"}}))),Hp=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=Qr(r,jp),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=ms(),[v,b]=y.useState(!1),x=ts(t,g),S=Zr({},r,{color:o,component:i,focusVisible:v,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return gs({root:["root",`underline${na(o)}`,"button"===r&&"button",n&&"focusVisible"]},Op,t)})(S);return nr.jsx(Fp,Zr({color:o,className:cc(w.root,n),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&b(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(_p).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),Bp=y.createContext({});function $p(e){return ml("MuiList",e)}hl("MuiList",["root","padding","dense","subheader"]);const Vp=["children","className","component","dense","disablePadding","subheader"],Wp=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})=>Zr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Up=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=Qr(r,Vp),c=y.useMemo((()=>({dense:a})),[a]),d=Zr({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return gs({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},$p,t)})(d);return nr.jsx(Bp.Provider,{value:c,children:nr.jsxs(Wp,Zr({as:i,className:cc(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function Gp(e){return ml("MuiListItemIcon",e)}const Yp=hl("MuiListItemIcon",["root","alignItemsFlexStart"]),Kp=["className"],Xp=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})=>Zr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Jp=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Qr(r,Kp),i=Zr({},r,{alignItems:y.useContext(Bp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return gs({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Gp,r)})(i);return nr.jsx(Xp,Zr({className:cc(a.root,n),ownerState:i,ref:t},o))})),Zp=hl("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Qp=["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 tf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function rf(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 nf(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&rf(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const of=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Qr(e,Qp),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Fl((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${hs(Gl(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=ts(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return nr.jsx(Up,Zr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Gl(t).activeElement;if("ArrowDown"===r)e.preventDefault(),nf(t,n,s,l,ef);else if("ArrowUp"===r)e.preventDefault(),nf(t,n,s,l,tf);else if("Home"===r)e.preventDefault(),nf(t,null,s,l,ef);else if("End"===r)e.preventDefault(),nf(t,null,s,l,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 s=n&&!o.repeating&&rf(n,o);o.previousKeyMatched&&(s||nf(t,n,!1,l,ef,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function af(e){return ml("MuiPopover",e)}hl("MuiPopover",["root","paper"]);const lf=["onEntering"],sf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],uf=["slotProps"];function cf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function df(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function pf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function ff(e){return"function"==typeof e?e():e}const mf=ic(hp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hf=ic(Oc,{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}),gf=y.forwardRef((function(e,t){var r,n,o;const i=dc({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Mp,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,I=Qr(i.TransitionProps,lf),D=Qr(i,sf),A=null!=(r=null==x?void 0:x.paper)?r:v,P=y.useRef(),M=ts(P,A.ref),q=Zr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:I}),T=(e=>{const{classes:t}=e;return gs({root:["root"],paper:["paper"]},af,t)})(q),k=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=ff(l),t=(e&&1===e.nodeType?e:Gl(P.current).body).getBoundingClientRect();return{top:t.top+cf(t,s.vertical),left:t.left+df(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),L=y.useCallback((e=>({vertical:cf(e,S.vertical),horizontal:df(e,S.horizontal)})),[S.horizontal,S.vertical]),O=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:pf(r)};const n=k();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Yl(ff(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:pf(r)}}),[l,c,k,L,h]),[N,_]=y.useState(g),z=y.useCallback((()=>{const e=P.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,_(!0)}),[O]);y.useEffect((()=>(R&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,R,z]);y.useEffect((()=>{g&&z()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),y.useEffect((()=>{if(!g)return;const e=Ul((()=>{z()})),t=Yl(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let j=C;"auto"!==C||w.muiSupportAuto||(j=void 0);const F=f||(l?Gl(ff(l)).body:void 0),H=null!=(n=null==b?void 0:b.root)?n:mf,B=null!=(o=null==b?void 0:b.paper)?o:hf,$=Ss({elementType:B,externalSlotProps:Zr({},A,{style:N?A.style:Zr({},A.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:q,className:cc(T.paper,null==A?void 0:A.className)}),V=Ss({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:D,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:q,className:cc(T.root,p)}),{slotProps:W}=V,U=Qr(V,uf);return nr.jsx(H,Zr({},U,!vs(H)&&{slotProps:W,disableScrollLock:R},{children:nr.jsx(w,Zr({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),z()},onExited:()=>{_(!1)},timeout:j},I,{children:nr.jsx(B,Zr({},$,{children:d}))}))}))}));function vf(e){return ml("MuiMenu",e)}hl("MuiMenu",["root","paper","list"]);const bf=["onEntering"],yf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],xf={vertical:"top",horizontal:"right"},Sf={vertical:"top",horizontal:"left"},wf=ic(gf,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cf=ic(hf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ef=ic(of,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Rf=y.forwardRef((function(e,t){var r,n;const o=dc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,x=Qr(o.TransitionProps,bf),S=Qr(o,yf),w=(()=>{const e=y.useContext(As);return null!=e&&e})(),C=Zr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),E=(e=>{const{classes:t}=e;return gs({root:["root"],paper:["paper"],list:["list"]},vf,t)})(C),R=i&&!s&&d,I=y.useRef(null);let D=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=t))}));const A=null!=(r=v.paper)?r:Cf,P=null!=(n=b.paper)?n:p,M=Ss({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[E.root,l]}),q=Ss({elementType:A,externalSlotProps:P,ownerState:C,className:E.paper});return nr.jsx(wf,Zr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?xf:Sf,slots:{paper:A,root:v.root},slotProps:{root:M,paper:q},open:d,ref:t,transitionDuration:m,TransitionProps:Zr({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),h&&h(e,t)}},x),ownerState:C},S,{classes:f,children:nr.jsx(Ef,Zr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:I,autoFocus:i&&(-1===D||s),autoFocusItem:R,variant:g},u,{className:cc(E.list,u.className),children:a}))}))}));function If(e){return ml("MuiMenuItem",e)}const Df=hl("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Af=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Pf=ic(Qc,{shouldForwardProp:e=>oc(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})=>Zr({},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"}},[`&.${Df.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$s(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Df.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$s(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Df.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$s(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})`:$s(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Df.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Df.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${vp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${vp.inset}`]:{marginLeft:52},[`& .${Zp.root}`]:{marginTop:0,marginBottom:0},[`& .${Zp.inset}`]:{paddingLeft:36},[`& .${Yp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Zr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Yp.root} svg`]:{fontSize:"1.25rem"}})))),Mf=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=Qr(r,Af),f=y.useContext(Bp),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);Fl((()=>{n&&h.current&&h.current.focus()}),[n]);const g=Zr({},r,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Zr({},a,gs({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},If,a))})(r),b=ts(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),nr.jsx(Bp.Provider,{value:m,children:nr.jsx(Pf,Zr({ref:b,role:u,tabIndex:x,component:o,focusVisibleClassName:cc(v.focusVisible,s),className:cc(v.root,d)},p,{ownerState:g,classes:v}))})}));function qf(e){return ml("MuiNativeSelect",e)}const Tf=hl("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),kf=["className","disabled","error","IconComponent","inputRef","variant"],Lf=({ownerState:e,theme:t})=>Zr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Zr({},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"},[`&.${Tf.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}}),Of=ic("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:oc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Tf.multiple}`]:t.multiple}]}})(Lf),Nf=({ownerState:e,theme:t})=>Zr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Tf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),_f=ic("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${na(r.variant)}`],r.open&&t.iconOpen]}})(Nf),zf=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Qr(e,kf),u=Zr({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return gs({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${na(r)}`,i&&"iconOpen",n&&"disabled"]},qf,t)})(u);return nr.jsxs(y.Fragment,{children:[nr.jsx(Of,Zr({ownerState:u,className:cc(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:nr.jsx(_f,{as:i,ownerState:u,className:c.icon})]})}));var jf;const Ff=["children","classes","className","label","notched"],Hf=ic("fieldset",{shouldForwardProp:oc})({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%"}),Bf=ic("legend",{shouldForwardProp:oc})((({ownerState:e,theme:t})=>Zr({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&&Zr({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 $f=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Vf=ic(Cd,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Sd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Zr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Md.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Md.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Md.focused} .${Md.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Md.error} .${Md.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Md.disabled} .${Md.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Zr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Wf=ic((function(e){const{className:t,label:r,notched:n}=e,o=Qr(e,Ff),i=null!=r&&""!==r,a=Zr({},e,{notched:n,withLabel:i});return nr.jsx(Hf,Zr({"aria-hidden":!0,className:t,ownerState:a},o,{children:nr.jsx(Bf,{ownerState:a,children:i?nr.jsx("span",{children:r}):jf||(jf=nr.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}})),Uf=ic(Ed,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:wd})((({theme:e,ownerState:t})=>Zr({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}))),Gf=y.forwardRef((function(e,t){var r,n,o,i,a;const l=dc({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=Qr(l,$f),v=(e=>{const{classes:t}=e;return Zr({},t,gs({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Pd,t))})(l),b=md(),x=pd({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Zr({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),w=null!=(r=null!=(n=m.root)?n:s.Root)?r:Vf,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:Uf;return nr.jsx(Id,Zr({slots:{root:w,input:C},renderSuffix:e=>nr.jsx(Wf,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=nr.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Zr({},v,{notchedOutline:null})}))}));function Yf(e){return ml("MuiSelect",e)}Gf.muiName="Input";const Kf=hl("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Xf;const Jf=["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"],Zf=ic("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Kf.select}`]:t.select},{[`&.${Kf.select}`]:t[r.variant]},{[`&.${Kf.error}`]:t.error},{[`&.${Kf.multiple}`]:t.multiple}]}})(Lf,{[`&.${Kf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Qf=ic("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${na(r.variant)}`],r.open&&t.iconOpen]}})(Nf),em=ic("input",{shouldForwardProp:e=>nc(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 tm(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function rm(e){return null==e||"string"==typeof e&&!e.trim()}const nm=y.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:I,readOnly:D,renderValue:A,SelectDisplayProps:P={},tabIndex:M,value:q,variant:T="standard"}=e,k=Qr(e,Jf),[L,O]=Ql({controlled:q,default:c,name:"Select"}),[N,_]=Ql({controlled:I,default:u,name:"Select"}),z=y.useRef(null),j=y.useRef(null),[F,H]=y.useState(null),{current:B}=y.useRef(null!=I),[$,V]=y.useState(),W=ts(t,h),U=y.useCallback((e=>{j.current=e,e&&H(e)}),[]),G=null==F?void 0:F.parentNode;y.useImperativeHandle(W,(()=>({focus:()=>{j.current.focus()},node:z.current,value:L})),[L]),y.useEffect((()=>{u&&N&&F&&!B&&(V(a?null:G.clientWidth),j.current.focus())}),[F,a]),y.useEffect((()=>{i&&j.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Gl(j.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),B||(V(a?null:G.clientWidth),_(e))},K=y.Children.toArray(l),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&&(O(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),w(o,e)}b||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete k["aria-invalid"];const ee=[];let te=!1;(vd({value:L})||p)&&(A?Z=A(L):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(b){if(!Array.isArray(L))throw new Error(Kr(2));t=L.some((t=>tm(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=tm(L,e.props.value),t&&te&&(Q=e.props.children);return y.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=$;!a&&B&&F&&(oe=G.clientWidth),ne=void 0!==M?M:d?null:0;const ie=P.id||(x?`mui-component-select-${x}`:void 0),ae=Zr({},e,{variant:T,value:L,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return gs({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${na(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Yf,t)})(ae),se=Zr({},v.PaperProps,null==(r=v.slotProps)?void 0:r.paper),ue=Zl();return nr.jsxs(y.Fragment,{children:[nr.jsx(Zf,Zr({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(!D){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||D?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:x}}),S(e))},onFocus:E},P,{ownerState:ae,className:cc(P.className,le.select,s),id:ie,children:rm(Z)?Xf||(Xf=nr.jsx("span",{className:"notranslate",children:"​"})):Z})),nr.jsx(em,Zr({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:x,ref:z,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},k)),nr.jsx(Qf,{as:m,className:le.icon,ownerState:ae}),nr.jsx(Rf,Zr({id:`menu-${x||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Zr({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:Zr({},v.slotProps,{paper:Zr({},se,{style:Zr({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})})),om=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],im=["root"],am={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>oc(e)&&"variant"!==e,slot:"Root"},lm=ic(Lp,am)(""),sm=ic(Gf,am)(""),um=ic(Rp,am)(""),cm=y.forwardRef((function(e,t){const r=dc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=kd,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Qr(r,om),I=v?zf:nm,D=pd({props:r,muiFormControl:md(),states:["variant","error"]}),A=D.variant||E,P=Zr({},r,{variant:A,classes:i}),M=(e=>{const{classes:t}=e;return t})(P),q=Qr(M,im),T=d||{standard:nr.jsx(lm,{ownerState:P}),outlined:nr.jsx(sm,{label:f,ownerState:P}),filled:nr.jsx(um,{ownerState:P})}[A],k=ts(t,ws(T));return nr.jsx(y.Fragment,{children:y.cloneElement(T,Zr({inputComponent:I,inputProps:Zr({children:o,error:D.error,IconComponent:u,variant:A,type:void 0,multiple:g},v?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:Zr({id:c},C)},p,{classes:p?Yi(q,p.classes):q},d?d.props.inputProps:{})},(g&&v||s)&&"outlined"===A?{notched:!0}:{},{ref:k,className:cc(T.props.className,a,M.root)},!d&&{variant:A},R))})}));cm.muiName="Select";const dm=y.createContext();function pm(e){return ml("MuiTable",e)}hl("MuiTable",["root","stickyHeader"]);const fm=["className","component","padding","size","stickyHeader"],mm=ic("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Zr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Zr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),hm="table",gm=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiTable"}),{className:n,component:o=hm,padding:i="normal",size:a="medium",stickyHeader:l=!1}=r,s=Qr(r,fm),u=Zr({},r,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:r}=e;return gs({root:["root",r&&"stickyHeader"]},pm,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return nr.jsx(dm.Provider,{value:d,children:nr.jsx(mm,Zr({as:o,role:o===hm?null:"table",ref:t,className:cc(c.root,n),ownerState:u},s))})})),vm=y.createContext();function bm(e){return ml("MuiTableBody",e)}hl("MuiTableBody",["root"]);const ym=["className","component"],xm=ic("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Sm={variant:"body"},wm="tbody",Cm=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiTableBody"}),{className:n,component:o=wm}=r,i=Qr(r,ym),a=Zr({},r,{component:o}),l=(e=>{const{classes:t}=e;return gs({root:["root"]},bm,t)})(a);return nr.jsx(vm.Provider,{value:Sm,children:nr.jsx(xm,Zr({className:cc(l.root,n),as:o,ref:t,role:o===wm?null:"rowgroup",ownerState:a},i))})}));function Em(e){return ml("MuiTableCell",e)}const Rm=hl("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Im=["align","className","component","padding","scope","size","sortDirection","variant"],Dm=ic("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${na(r.size)}`],"normal"!==r.padding&&t[`padding${na(r.padding)}`],"inherit"!==r.align&&t[`align${na(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Zr({},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?Us($s(e.palette.divider,1),.88):Vs($s(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",[`&.${Rm.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}))),Am=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=r,d=Qr(r,Im),p=y.useContext(dm),f=y.useContext(vm),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const v=c||f&&f.variant,b=Zr({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&p&&p.stickyHeader,variant:v}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return gs({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${na(n)}`,"normal"!==o&&`padding${na(o)}`,`size${na(i)}`]},Em,t)})(b);let S=null;return u&&(S="asc"===u?"ascending":"descending"),nr.jsx(Dm,Zr({as:h,ref:t,className:cc(x.root,o),"aria-sort":S,scope:g,ownerState:b},d))}));function Pm(e){return ml("MuiTableContainer",e)}hl("MuiTableContainer",["root"]);const Mm=["className","component"],qm=ic("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Tm=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Qr(r,Mm),a=Zr({},r,{component:o}),l=(e=>{const{classes:t}=e;return gs({root:["root"]},Pm,t)})(a);return nr.jsx(qm,Zr({ref:t,as:o,className:cc(l.root,n),ownerState:a},i))}));function km(e){return ml("MuiTableHead",e)}hl("MuiTableHead",["root"]);const Lm=["className","component"],Om=ic("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Nm={variant:"head"},_m="thead",zm=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiTableHead"}),{className:n,component:o=_m}=r,i=Qr(r,Lm),a=Zr({},r,{component:o}),l=(e=>{const{classes:t}=e;return gs({root:["root"]},km,t)})(a);return nr.jsx(vm.Provider,{value:Nm,children:nr.jsx(Om,Zr({as:o,className:cc(l.root,n),ref:t,role:o===_m?null:"rowgroup",ownerState:a},i))})}));function jm(e){return ml("MuiTableRow",e)}const Fm=hl("MuiTableRow",["root","selected","hover","head","footer"]),Hm=["className","component","hover","selected"],Bm=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,[`&.${Fm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Fm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$s(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}))`:$s(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),$m="tr",Vm=y.forwardRef((function(e,t){const r=dc({props:e,name:"MuiTableRow"}),{className:n,component:o=$m,hover:i=!1,selected:a=!1}=r,l=Qr(r,Hm),s=y.useContext(vm),u=Zr({},r,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return gs({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},jm,t)})(u);return nr.jsx(Bm,Zr({as:o,ref:t,className:cc(c.root,n),role:o===$m?null:"row",ownerState:u},l))}));function Wm(e={}){return nr.jsx(ur,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("rect",{stroke:Nt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const Um={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ht,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},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:[]}};var Gm=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Nt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Nt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:nr.jsx(ar,{"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 ${Nt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`,borderRadius:Ht,backgroundColor:Nt.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 ${Nt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Nt.WHITE,color:Nt.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:Ht},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Nt.GREYSCALE_0_15,backgroundColor:Nt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Nt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Nt.GREEN_PALE},"&:active":{backgroundColor:Nt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Nt.GREEN_PALE,boxShadow:`0 0 0 3px ${Vl(Nt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Nt.BLUE_PALE},"&:active":{backgroundColor:Nt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Nt.BLUE_PALE,boxShadow:`0 0 0 3px ${Vl(Nt.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:Ht,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Nt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Nt.GREYSCALE_0_15,backgroundColor:Nt.GREYSCALE_100_60,"&:active":{backgroundColor:Nt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Nt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Nt.PURPLE,"&.Mui-focusVisible":{borderColor:Nt.PURPLE,boxShadow:`0 0 0 3px ${Vl(Nt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Nt.GREEN,"&.Mui-focusVisible":{borderColor:Nt.GREEN,boxShadow:`0 0 0 3px ${Vl(Nt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Nt.BLUE,"&.Mui-focusVisible":{borderColor:Nt.BLUE,boxShadow:`0 0 0 3px ${Vl(Nt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Nt.ORANGE,"&.Mui-focusVisible":{borderColor:Nt.ORANGE,boxShadow:`0 0 0 3px ${Vl(Nt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Nt.RED,"&.Mui-focusVisible":{borderColor:Nt.RED,boxShadow:`0 0 0 3px ${Vl(Nt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Nt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Nt.PURPLE_PALE},"&:active":{backgroundColor:Nt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Nt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Vl(Nt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Nt.GREEN_PALE},"&:active":{backgroundColor:Nt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Nt.GREEN_PALE,boxShadow:`0 0 0 3px ${Vl(Nt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Nt.BLUE_PALE},"&:active":{backgroundColor:Nt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Nt.BLUE_PALE,boxShadow:`0 0 0 3px ${Vl(Nt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Nt.ORANGE_PALE},"&:active":{backgroundColor:Nt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Nt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Vl(Nt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Nt.RED_PALE},"&:active":{backgroundColor:Nt.RED_DARK},"&.Mui-focusVisible":{borderColor:Nt.RED_PALE,boxShadow:`0 0 0 3px ${Vl(Nt.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:Nt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Nt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ht,boxShadow:`inset 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:nr.jsx(sr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:_t,borderRadius:Ht,color:Nt.TEXT_PRIMARY,backgroundColor:Nt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Nt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Nt.GREYSCALE_0_05,color:Nt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Nt.GREEN,borderColor:Nt.GREEN},"&.MuiChip-outlinedInfo":{color:Nt.BLUE,borderColor:Nt.BLUE},"&.MuiChip-outlinedWarning":{color:Nt.ORANGE,borderColor:Nt.ORANGE},"&.MuiChip-outlinedError":{color:Nt.RED,borderColor:Nt.RED}},outlined:{border:`solid 1px ${Nt.GREYSCALE_0_15}`,backgroundColor:Nt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ht,boxShadow:"none",backgroundColor:Nt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Nt.GREEN,borderColor:Nt.GREEN},outlinedSecondary:{color:Nt.BLUE,borderColor:Nt.BLUE},label:{fontFamily:Ut.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:nr.jsx(sr,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:nr.jsx(ar,{"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:Ht},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ht,fontSize:zt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Nt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Nt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Nt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Nt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Nt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ht,border:`solid 1px ${Nt.GREYSCALE_0_15}`,color:Nt.GREYSCALE_0_60,marginRight:0,width:Ft,height:Ft},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Nt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ht,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Nt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:zt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:_t,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Nt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Nt.GREYSCALE_25,fontSize:_t,fontFamily:Ut.FONT_FAMILY,fontWeight:Vt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Nt.TEXT_PRIMARY},"&.Mui-error":{color:Nt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Nt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:$t,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Nt.TEXT_SECONDARY,content:"'(required)'",fontWeight:$t,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:zt,lineHeight:"16px",backgroundColor:Nt.WHITE,borderRadius:Ht,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nt.GREYSCALE_0_05}`,borderColor:Nt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Nt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Nt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nt.RED}`,boxShadow:`0px 0px 0px 1px ${Nt.RED}, inset 0 2px 0 0 ${Nt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nt.GREYSCALE_0_10}`,borderColor:Nt.GREYSCALE_0_10,backgroundColor:Nt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Nt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Nt.GREYSCALE_0_15,borderRadius:Ht,boxShadow:`inset 0 2px 0 0 ${Nt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>nr.jsx(ar,{...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:Nt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Nt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Nt.GREYSCALE_0_03},"&:active":{backgroundColor:Nt.GREYSCALE_0_10},"&:focus":{backgroundColor:Nt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Nt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Nt.GREYSCALE_0_30,"&:hover":{backgroundColor:Nt.GREYSCALE_0_0,borderColor:Nt.GREYSCALE_0_15},"& ~svg":{color:Nt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Nt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ht}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Nt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:zt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:_t,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:_t,fontWeight:Vt,color:Nt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Vt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Nt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Nt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:nr.jsx(pr,{}),checkedIcon:nr.jsx(fr,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Nt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Nt.GREEN_PALE,boxShadow:`0 0 0 3px ${Vl(Nt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Nt.BLUE_PALE,boxShadow:`0 0 0 3px ${Vl(Nt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Nt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Nt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:nr.jsx(Wm,{}),checkedIcon:nr.jsx(cr,{}),indeterminateIcon:nr.jsx(dr,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ht,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Nt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Nt.GREYSCALE_0_55,color:Nt.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:Nt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Nt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Nt.GREYSCALE_0_55,"&:hover":{color:Nt.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:Nt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Nt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:zt,color:Nt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Vt},secondary:{fontSize:_t,color:Nt.GREYSCALE_45,fontWeight:$t,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:zt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:zt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Nt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:_t,borderBottom:`solid 1px ${Nt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:zt,color:Nt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Nt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Nt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Nt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Nt.RED}}},"&.Mui-focusVisible":{backgroundColor:Nt.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:Nt.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:Nt.GREEN,height:"24px","&.Mui-disabled":{color:Nt.GREYSCALE_0_15}},rail:{backgroundColor:Nt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Nt.GREYSCALE_0_05}`,borderRadius:Ht,boxShadow:`inset 0px 0px 0px 1px ${Nt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Nt.GREYSCALE_0_05}`,borderRadius:Ht},thumb:{height:"16px",width:"16px",borderRadius:Ht,backgroundColor:Nt.WHITE,boxShadow:`0px 1px 2px 0px ${Nt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Nt.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ht,boxShadow:`0 2px 4px 0 ${Nt.GREYSCALE_0_30}, 0 0 0 1px ${Nt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Nt.GREYSCALE_0_15}, 0 0 0 1px ${Nt.GREYSCALE_0_06}, 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Nt.GREYSCALE_0_15}, 0 0 0 1px ${Nt.GREYSCALE_0_06}, 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Nt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Nt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Nt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Nt.GREYSCALE_0_15},markLabel:{color:Nt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Nt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Nt.WHITE,color:Nt.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:Nt.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:Nt.GREEN_PALE,boxShadow:`0 0 0 3px ${Vl(Nt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Nt.BLUE_PALE,boxShadow:`0 0 0 3px ${Vl(Nt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Nt.GREYSCALE_0_15,borderRadius:Ht},thumb:{height:"16px",width:"16px",borderRadius:Ht,backgroundColor:Nt.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:zt,fontWeight:Vt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Nt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`,backgroundColor:Nt.GREYSCALE_0_03,borderRadius:Ht},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Nt.GREYSCALE_25,"&.Mui-selected":{color:Nt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:zt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ht,"&:hover":{backgroundColor:Nt.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 ${Nt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Nt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ht,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Nt.GREYSCALE_0_05},"&:hover":{backgroundColor:Nt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Nt.GREYSCALE_85}`,borderRight:`1px solid ${Nt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Vt,backgroundColor:Nt.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:Nt.GREYSCALE_98,borderBottom:`1px solid ${Nt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Nt.GREYSCALE_85}`,borderTop:`1px solid ${Nt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Nt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Nt.GREYSCALE_0_05,"&:hover":{backgroundColor:Nt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Nt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>nr.jsx(mr,{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 ${Nt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:zt,borderRadius:Ht,padding:"7px 16px",border:`1px solid ${Nt.GREYSCALE_0_15}`,backgroundColor:Nt.GREYSCALE_100_60,color:Nt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Nt.GREYSCALE_0_10,border:`1px solid ${Nt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Nt.GREYSCALE_0_03,border:`1px solid ${Nt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Nt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Nt.MISC_FOCUS_BORDER}`,border:`1px solid ${Nt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Nt.GREYSCALE_25,backgroundColor:Nt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Nt.GREYSCALE_0_10,border:`1px solid ${Nt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:_t,height:24,width:24,padding:7},sizeLarge:{fontSize:jt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:zt,borderRadius:Ht}}},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:Nt.GREYSCALE_20},tooltip:{backgroundColor:Nt.GREYSCALE_20,fontSize:_t,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Um}:{}}))(t);const Ym=e=>({mode:"light",primary:{ultraLight:Nt.GREEN_ULTRA_LIGHT,light:Nt.GREEN_PALE,main:Nt.GREEN,dark:Nt.GREEN_DARK,extraDark:Nt.GREEN_EXTRA_DARK,contrastText:Nt.WHITE},secondary:{ultraLight:Nt.BLUE_ULTRA_LIGHT,light:Nt.BLUE_PALE,main:Nt.BLUE,dark:Nt.BLUE_DARK,extraDark:Nt.BLUE_EXTRA_DARK,contrastText:Nt.WHITE},error:{ultraLight:Nt.RED_ULTRA_LIGHT,light:Nt.RED_PALE,main:Nt.RED,dark:Nt.RED_DARK,extraDark:Nt.RED_EXTRA_DARK,contrastText:Nt.WHITE},warning:{ultraLight:Nt.ORANGE_ULTRA_LIGHT,light:Nt.ORANGE_PALE,main:Nt.ORANGE,dark:Nt.ORANGE_DARK,extraDark:Nt.ORANGE_EXTRA_DARK,contrastText:Nt.WHITE},success:{ultraLight:Nt.GREEN_ULTRA_LIGHT,light:Nt.GREEN_PALE,main:Nt.GREEN,dark:Nt.GREEN_DARK,extraDark:Nt.GREEN_EXTRA_DARK,contrastText:Nt.WHITE},info:{ultraLight:Nt.BLUE_ULTRA_LIGHT,light:Nt.BLUE_PALE,main:Nt.BLUE,dark:Nt.BLUE_DARK,extraDark:Nt.BLUE_EXTRA_DARK,contrastText:Nt.WHITE},text:{primary:Nt.TEXT_PRIMARY,secondary:Nt.TEXT_SECONDARY,disabled:Nt.GREYSCALE_0_30},action:{hover:Nt.GREYSCALE_0_03,hoverOpacity:.03,selected:Nt.GREYSCALE_0_05,selectedOpacity:.05,focus:Nt.MISC_FOCUS_BORDER},amethyst:{ultraLight:Nt.WHITE,main:Nt.PURPLE,light:Nt.PURPLE_PALE,dark:Nt.PURPLE_DARK,extraDark:Nt.GREYSCALE_0_0,contrastText:Nt.WHITE},background:{paper:Nt.WHITE,default:Nt.GREYSCALE_95},divider:Nt.GREYSCALE_0_15}),Km={...Ot},Xm=(e="light",t=!1)=>((e,t=!1)=>({components:Gm(0,t),palette:Ym(),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:zt,fontWeightLight:Bt,fontWeightRegular:$t,fontWeightMedium:Vt,fontWeightBold:Wt,htmlFontSize:zt,fontFamily:Ut.FONT_FAMILY,button:{fontWeight:Vt,fontSize:zt,textTransform:"none"},body1:{fontSize:jt,lineHeight:"24px"},body2:{fontSize:zt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ft,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:jt,fontWeight:Vt,lineHeight:"16px"},h6:{fontSize:zt,fontWeight:Vt,lineHeight:"16px"},caption:{color:Nt.TEXT_SECONDARY},subtitle1:{fontSize:zt,color:Nt.TEXT_SECONDARY},subtitle2:{fontSize:_t,color:Nt.TEXT_SECONDARY}},shape:{borderRadius:Ht}}))(0,t),Jm=Xm().palette,Zm={TEXT:Jm.text.primary,DISABLED:Jm.text.disabled,HOVER:Jm.action.hover,WHITE:Km.GREYSCALE_100,BORDER_LIGHT:Km.GREYSCALE_90,BORDER_MEDIUM:Km.GREYSCALE_85,BORDER_HEAVY:Km.GREYSCALE_50,DARK_MODE_TEXT:Km.GREYSCALE_95,DARK_MODE_BORDER:Km.GREYSCALE_95,DARK_MODE_DISABLED:Km.GREYSCALE_70,DARK_MODE_BACKGROUND:Km.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Km.GREYSCALE_95,SELECTED:Jm.primary.main},Qm=(e,t=Zm.TEXT,r=Zm.WHITE)=>{const n=re(e),o=re(t),i=re(r);return n.isInvalid()?t:function(e,t,r){const n=ne(e,t),o=ne(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},eh=e=>{const t=e.getStyle("","","dataColors.selected")||Zm.SELECTED,r=function(e,t){const r=re("#FFFFFF"),n=re(e),o=re(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ne(r,n),a=ne(o,n),l=i>a||i>4.5;return!l&&a>3?o.getHex():l?"#FFFFFF":"#000000"}(t,Zm.TEXT);return{background:t,color:r}},th=(e,t)=>{const r=re(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},rh=e=>!!e&&0===re(e).a,nh=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},oh=e=>{const t=re(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},ih=(e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)},ah=e=>{e.stopPropagation(),e.preventDefault()},lh="#grid",sh=(e,t,r,n=Zm.WHITE)=>e&&!rh(e)?e:rh(t)?r&&!rh(r)?r:n:t,uh=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},ch=(e,t,r,n,o)=>{const i=uh(".qv-object .qv-inner-object",r),a=uh(".qv-panel-sheet",r),l=uh(lh,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return oh(s);if("none"===u)return"transparent";if(void 0===u)return;const c=re(u);return c.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=rh(p),m=!rh(h=f?s:p)&&Qm(h,Zm.TEXT,Zm.DARK_MODE_TEXT)===X(Zm.DARK_MODE_TEXT);var h;return{color:p,headerColor:sh(u,p,s),isDark:m}},dh=(t,r,a,l)=>{const s=i(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o((()=>{let r;return e&&(r=new MutationObserver((e=>{i(e)})),r.observe(e,t)),()=>{var e;null===(e=r)||void 0===e||e.disconnect()}}),[e,t]),r})(r.closest(lh),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e((()=>({...s,background:ch(t,s,r,a,l)})),[s.name(),r,a,l,t,u])};function ph(t,n){const o=e((()=>({isLoading:!0})),n),[i,a]=r((async()=>{try{return await t()}finally{o.isLoading=!1}}),n);return[i,o.isLoading,a]}const fh=3;function mh(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function hh({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=fh}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=C((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=ct(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=ct((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=mh(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var gh,vh=F;gh=vh.createRoot,vh.hydrateRoot;const bh="Source Sans Pro, sans-serif";function yh(e,t){const[r,n]=w(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var xh={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 Sh=({translator:e})=>(C((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(xh).forEach((t=>{e.add(xh[t])}))}}(e)}),[e]),e),wh="12px",Ch="nebula-table-utils-head-menu-button",Eh="nebula-table-utils-head-menu-wrapper",Rh="nebula-table-utils-head-menu",Ih="nebula-table-utils-head-menu-list-id",Dh="sn-copy-cell";let Ah=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const Ph="nebula-table-utils-column-adjuster";let Mh=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}({}),qh=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Th={darker:.15,brighter:.3,opacity:.03},kh={darker:.3,brighter:.5,opacity:.05};let Lh=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({});const Oh=document.createElement("textarea");function Nh(e){Oh.value=e,document.body.appendChild(Oh),Oh.select(),Oh.setSelectionRange(0,Oh.value.length),document.execCommand("copy"),document.body.removeChild(Oh)}Oh.style.position="absolute",Oh.style.left="-9999px",Oh.setAttribute("readonly","");const _h=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>{Nh(r)})):Nh(r))};var zh={exports:{}};self,zh.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>qe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function 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,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=b(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const 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 l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function 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),I={},D=Array.isArray;function A(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function P(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function q(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=P(e[r||t])?i:e[t],e=e[r||t]}})),e}function T(e,t){var r=!0;if(A(e)&&A(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){T(e[n],t[n])||(r=!1)})),r);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}I.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);T(i,a)||M(t,o)||(P(a)?n.push({op:"add",path:l,value:i}):A(i)&&A(a)?n=n.concat(I.generate(a,i,l)):D(i)&&D(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&P(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!P(t[0])&&P(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(I.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){P(t[o])&&!M(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},I.apply=function(e,t){t.forEach((function(t){var r,n,o=q(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return 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(A(a)&&A(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!M(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=q(e,t.from);D(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},I.clone=function(e){return R({},e)},I.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},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):R(e,t)};const k=I,L=function(e,r,n){if(!e)return Promise.resolve();var o=k.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 O="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===O)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===O)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 j={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,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=w.getNumStepComp(r,s),p=w.getAboveComp(r,s,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var m=w.getDimComp(u,1),h=w.getDimComp(u,0),g=w.getAggrComp(f,m,h);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,z)},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(O))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function H(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 B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;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:s,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),m=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",m);else{var h=w.getRangeComp("RangeSum",m),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(h," / ").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:s,funcComp:"Only",valueComp:x}):x}return v},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.movingAverage.disclaimer",show:function(e,t){return!w.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 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=H(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function U(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var 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(W))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=w.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),m=w.getDimComp(u,0),h=w.getAggrComp(p,f,m);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!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 le(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(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,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=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,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!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:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var 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",Ie="qDef.base.qAggrFunc",De={initBase:function(e,t){(t||De.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){De.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,Ie)&&r(e,Re,i(e,Ie)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),r=i(e,xe);return void 0!==t||void 0!==r}};const Ae=De;function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}var Me={accumulation:j,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const qe={modifiers:Me,apply:ke,applyModifiers:Le,cleanUpMeasure:Oe,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:Ae.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Me[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Me[e]&&Me[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Fe(e);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:ze};var Te={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Te[r.id]=Te[r.id]||{isFirstTime:!0};var u=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Pe(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(s);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 m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ge({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(r++,"object"!==Pe(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Le({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Pe(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Le(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ge({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ae.isValid(r)||Ae.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(l++,"object"!==Pe(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Me[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Me[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Me[n.type].updateModifier&&Me[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Me[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),$e(r)):Oe(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&!Me[e.type]}))}(e)?Ae.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(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(Me[n.type]&&!n.disabled)return n}}function ze(e){var t=_e(e);return!t||Me[t.type].enableTotalsFunction(e)}function je(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 He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){je(e).forEach((function(e){return function(e){var r=_e(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Ae.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!Me[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):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"===Pe(e)&&!e.disabled&&Me[e.type]&&Me[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Fe(t);if(Ge({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return ke({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:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},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=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),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 I=Math.pow(2,53)-1;function D(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 A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const P=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},M=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},q=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}}},k=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,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=E(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=E(l.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},l=R(a.max,o.dimensions.length,I),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,I),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},_=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))},z=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},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return D(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 D(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)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(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 A(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)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,v({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=z({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=s.defaultDimension,R=void 0===E?T():E,I=s.defaultMeasure,D=void 0===I?k():I;b.qDimensions.length=0,b.qMeasures.length=0,j({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}),O({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:b,defaultMeasure:D}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),_({exportFormat:t,newHyperCubeDef:b}),M("qMaxStackedCells",v,b),M("qNoOfLeftDims",v,b),q("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),q("qMode",v,b,"S"),q("qReductionMode",v,b,"N"),q("qSortbyYValue",v,b),q("qIndentMode",v,b),q("qShowTotalsAbove",v,b),P(g,t,n),h.qProperty=g;var A=i.getValue(c||{},"support.modifiers");return $({measures:b.qMeasures,modifierTypes:A}),p&&V(h.qProperty,"storedFilters"),"S"===b.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};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],l=t.length;if(G(a,t,n,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:l,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 le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},ve={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:v,properties:d})&&me(d):he(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(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?V(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(l,r.properties.measureAxes[t[0].axis])):w()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},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}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function 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,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ie="qHyperCubeDef.qMeasures",De="conditionalColoring",Ae="measures",Pe="qDef.conditionalColoring";const Me={quarantine:function(e){Ee({properties:e,arrayPath:Ie,quarantineName:De,arrayName:Ae,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ie,itemPath:Pe,arrayName:Ae,quarantineName:De})}};var qe="qHyperCubeDef.qMeasures",Te="measures",ke="qHyperCubeDef.qDimensions",Le="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",je="qCalcCondition",Fe="conditionalShowHide";const He={quarantine:function(e){Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Te,itemPath:je}),Ee({properties:e,arrayPath:ke,quarantineName:Fe,arrayName:Le,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Te,itemPath:je}),Re({properties:e,arrayPath:ke,quarantineName:Fe,arrayName:Le,itemPath:je})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Ne,itemPath:je}),Ee({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:ze,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Ne,itemPath:je}),Re({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:ze,itemPath:je})}},Be={hypercube:W,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:He}})(),n.default})();var jh=Ct(zh.exports);const Fh="qHyperCubeDef.qMeasures",Hh="measures",Bh="qHyperCubeDef.qDimensions",$h="dimensions",Vh="qDef.representation",Wh="tableRepresentation",Uh="qDef.conditionalColoring",Gh="conditionalColoring",Yh="qMiniChartDef",Kh="miniChartDef",Xh=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:Mh.PixelsDefault:-1})(r,e,t)));return o},Jh=({propertyTree:e,hyperCubePath:t})=>{const r=jh.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=Xh(o,i,n);return ut(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),jh.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),jh.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),jh.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{jh.quarantineArrayProp({properties:e,arrayPath:Bh,itemPath:Vh,arrayName:$h,quarantineName:Wh}),jh.quarantineArrayProp({properties:e,arrayPath:Fh,itemPath:Vh,arrayName:Hh,quarantineName:Wh}),jh.quarantineArrayProp({properties:e,arrayPath:Fh,itemPath:Uh,arrayName:Hh,quarantineName:Gh}),jh.quarantineArrayProp({properties:e,arrayPath:Fh,itemPath:Yh,arrayName:Hh,quarantineName:Kh})})(r.properties),r};const Zh=/^q[A-Z]/,Qh=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],eg=e=>"object"==typeof e&&null!==e,tg=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!Zh.test(e)&&!Qh.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>eg(e)?tg(e,`${o}.${t}`):e)):eg(n)&&(e[r]=tg(n,o))})),e),rg=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:qh.Pixels,pixels:e}:{type:qh.FitToContent}}return i},ng=({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)}tg(e.properties)}const a=jh.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(jh.conditionalShow.unquarantine(a.qProperty),i)ut(a,"qProperty.totals.show",!1),ut(a,"qProperty.usePagination",!0);else{jh.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{jh.unquarantineArrayProp({properties:e,arrayPath:Bh,itemPath:Vh,arrayName:$h,quarantineName:Wh}),jh.unquarantineArrayProp({properties:e,arrayPath:Fh,itemPath:Vh,arrayName:Hh,quarantineName:Wh}),jh.unquarantineArrayProp({properties:e,arrayPath:Fh,itemPath:Uh,arrayName:Hh,quarantineName:Gh}),jh.unquarantineArrayProp({properties:e,arrayPath:Fh,itemPath:Yh,arrayName:Hh,quarantineName:Kh})})(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=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>rg(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>rg(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(ut(a,"qProperty.qHyperCubeDef.qDimensions",o),ut(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var og={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function ig(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function ag(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function lg(e){return e>0?0:1}function sg(e){return e.translator.get("Visualizations.Descriptions.Column")}function ug(e){return{measures:{min:lg,max:1e3,description:()=>sg(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;ig(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;ag(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:lg,max:1e3,description:()=>sg(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return ig(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;ag(o,n)}}}}let cg=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}({}),dg=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const pg=e=>{switch(null==e?void 0:e.type){case"url":return cg.Link;case"image":return cg.Image;case"indicator":return cg.Indicator;case"miniChart":return cg.MiniChart;default:return cg.Text}},fg=({isImagesEnabled:e,supportedFeaturesInIndentMode:t})=>{const{isImagesSupportedInIndentMode:r}=null!=t?t:{};return{uses:"dimensionRepresentationItems.representationType",options(t,n,o){const{qIndentMode:i}=o.properties.qHyperCubeDef,a=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!i&&e||i&&r)&&a.push({value:"image",translation:"Object.Table.Representation.Image"}),a}}},mg=(e,t)=>{if(e||t)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>pg(e.qDef.representation)===cg.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"}]},...t&&{imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{var n,o;if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:i,qNoOfLeftDims:a,qDimensions:l,qIndentMode:s}=r.properties.qHyperCubeDef;let u=!1;null==i||i.indexOf(-1);const c=null!==(n=null==l?void 0:l.indexOf(e))&&void 0!==n?n:1/0;return(null!==(o=null==i?void 0:i.slice(0,a))&&void 0!==o?o:[]).indexOf(c)>-1&&(u=!0),u&&s}}}}}}},hg=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:fg({isImagesEnabled:a,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:i}}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>pg(e.qDef.representation)===cg.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>{var t;return pg(e.qDef.representation)===cg.Link&&(null===(t=e.qDef.representation)||void 0===t?void 0:t.urlPosition)===dg.Dimension}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>{var t;return pg(e.qDef.representation)===cg.Link&&(null===(t=e.qDef.representation)||void 0===t?void 0:t.urlPosition)===dg.Attribute}},...mg(a,i)}},gg=(e,t)=>{var r;const{anything:n}=e,o=null===(r=n.sense)||void 0===r?void 0:r.isUnsupportedFeature,i=!(null!=o&&o("tableImages"))&&t[cg.Image],a=!(null!=o&&o("qMiniChartDef"))&&t[cg.MiniChart],l=!(null!=o&&o("tableIndicators"))&&t[cg.Indicator],s=i&&t[cg.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{var t;const{qIndentMode:r}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!r&&i||r&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),l&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),a&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(r)},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:e=>pg(e.qDef.representation)===cg.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:l?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:a?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var vg,bg={};vg=bg,(()=>{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)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},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:()=>Oe});var o=r(909),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 l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},l=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},s={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],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function h(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,l=e.valueComp,s=void 0===l?"0":l;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(s,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),m=g(1),h=x(c,f),v=x(d,m);return"".concat(a,"({1<").concat(h,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function w(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return l(t,"qHyperCubeDef.qDimensions",l(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(h(t));if(!r.showExcludedValues)return a;var l=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:m,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return m(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:h,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 l=C({properties:t,layout:r});return l>=o&&l<=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=s.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?s.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(s.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return s.EXPRESSIONS[r]&&n.includes(s.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 I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}var D=i().bind(null,!0),A={},P=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===I(e)}function q(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function k(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]=q(e[r||t])?i:e[t],e=e[r||t]}})),e}function L(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){L(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(!L(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?D({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);L(i,a)||T(t,o)||(q(a)?n.push({op:"add",path:l,value:i}):M(i)&&M(a)?n=n.concat(A.generate(a,i,l)):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]&&q(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(!q(t[0])&&q(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(A.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){q(t[o])&&!T(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=k(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,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(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]})),D(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=k(e,t.from);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return D({},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)):D(e,t)};const O=A,N=function(e,t,r){if(!e)return Promise.resolve();var n=O.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()};var _="accumulation";function z(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function j(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===_)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const H={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 s=i;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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=z(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=z(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(_))return!1;var i=z(t,e);return i&&!i.disabled}}}};var B="movingAverage";function $(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===B)return r[n]}function V(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===B)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const U={translationKey:"properties.modifier.movingAverage",needDimension: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,s=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=E.getNumDimensions({properties:o,layout:i}));var c=l(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var 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:s,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(V(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(V(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(V(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(V(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(V(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(V(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(B))return!1;var i=$(t,e);return i&&!i.disabled}}}};var G="timeSeriesDecomposition";function Y(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function K(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const J={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,X),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(K(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:s.OPTIONS},steps:{refFn:function(t){return"".concat(K(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=Y(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=Y(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=Y(t,e);return i&&!i.disabled}}}};var Z="difference";function Q(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===Z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var ee={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const te={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 s=i;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(ee).forEach((function(t){void 0===e[t]&&(e[t]=ee[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=function(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Z)return r[n]}(t,e);return i&&!i.disabled}}}},re=0,ne=1,oe=2,ie=0,ae=1,le=2;var se="normalization";function ue(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===se)return r[n]}function ce(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===se)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function de(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var pe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:le,selectionScope:oe};function fe(e){return 2===e?"{1}":""}function me(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function he(e,t){return 0===e&&t>1||2===e?"Total":""}function ge(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ve={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 s=i;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=l(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){var l=fe(t),s=me(t,r,n),u=""===l&&""===s?"":l||s,c=he(o,i),d=ge(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(pe).forEach((function(t){void 0===e[t]&&(e[t]=pe[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(ce(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:oe,options:function(r){return function(e,t,r){var n=[{value:re,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:ne,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:oe,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=de(t,0);t.splice(r,1)}return t}(ue(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ce(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 ue(t,e).selectionScope===ne}},value:{refFn:function(t){return"".concat(ce(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return ue(t,e).selectionScope===ne}},dimensionalScope:{refFn:function(t){return"".concat(ce(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:le,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:ie,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:ae,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:le,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=de(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=de(t,1);t.splice(r,1)}return t}(ue(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ce(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(ue(t,e).dimensionalScope||0)===ie&&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(se))return!1;var i=ue(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:fe,getFieldSelectionComp:me,getTotalComp:he,getSelectedDimComp:ge};var be="library id deleted",ye="qDef.qDef",xe="qDef.base.qDef",Se="qLibraryId",we="qDef.base.qLibraryId",Ce="qDef.qLabel",Ee="qDef.qLabelExpression",Re="qDef.base.qLabel",Ie="qDef.base.qLabelExpression",De="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe="qDef.base";const Me={getExpression:function(e){var t=l(e,xe);return void 0!==t?t:l(e,ye)},getExpressionRef:function(e){return void 0!==l(e,xe)?xe:ye},getLibraryIdRef:function(e){return l(e,we)?we:Se},getLibraryId:function(e){return l(e,we)||l(e,Se)},getLabelRef:function(e){return l(e,Pe)?Re:Ce},getLabelExpressionRef:function(e){return l(e,Pe)?Ie:Ee}};var qe={initBase:function(e,t){(t||qe.isValid(e))&&(a(e,xe,l(e,ye)),a(e,we,l(e,Se)),a(e,Re,l(e,Ce)),a(e,Ie,l(e,Ee)))},restoreBase:function(e){qe.isValid(e)&&(a(e,ye,l(e,xe)),a(e,Se,l(e,we)),a(e,Ce,l(e,Re)),a(e,Ee,l(e,Ie)),l(e,De)&&l(e,Ae)&&a(e,De,l(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=l(e,xe),r=l(e,we);return void 0!==t||void 0!==r}};const Te=qe;function ke(e){return ke="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},ke(e)}var Le={accumulation:H,movingAverage:U,difference:te,normalization:ve,timeSeriesDecomposition:J};const Oe={modifiers:Le,apply:_e,applyModifiers:ze,cleanUpMeasure:je,destroy:function(e){e&&Ne[e.id]&&Ne[e.id].masterItemSubscriber&&(Ne[e.id].masterItemSubscriber&&Ne[e.id].masterItemSubscriber.unsubscribe(),delete Ne[e.id])},hasActiveModifiers:Fe,getActiveModifier:He,initBase:Te.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Le[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Le[e]&&Le[e].isApplicable({properties:r,layout:n})}))},measureBase:Me,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Ve(e);Je({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||rt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Be};var Ne={};function _e(){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,s=!1;Ne[t.id]=Ne[t.id]||{isFirstTime:!0};var u=Ne[t.id].isFirstTime;if(Ne[t.id].isFirstTime=!1,r&&"object"===ke(r))return ze({model:t,properties:r});var c=t?t.layout:void 0,d=l(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(s);var p=l(c,"qHyperCube.qMeasureInfo"),f=Ne[t.id].lastReloadTime;if(Ne[t.id].lastReloadTime=l(t,"app.layout.qLastReloadTime"),Fe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return l(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 Xe({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Je({modifiers:Ve(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);Ue(r);var n=nt(r);return Ze({model:t}).then((function(o){return Qe({libraryIds:n,model:t}).then((function(n){return m&&function(e){var t=e.properties;$e(t).forEach((function(e){return function(e){var t=e.measure;if(Xe({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===ke(e)&&!e.disabled){if(r++,"object"!==ke(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ye(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),ze({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})}))})).catch((function(){return Promise.resolve(s)}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===ke(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=nt(r);return ot({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return $e(r).forEach((function(e){return je(e)})),tt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(s)}function ze(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,s=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?i()(!0,{},n):n),Ue(n);var p=nt(n);return ot({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=$e(r)),!t.length)return Promise.resolve();if(!o&&!Fe({measures:t,properties:r}))return t.forEach((function(e){return je(e)})),Promise.resolve();var s=o?void 0:nt(r);return Ze({model:n,dimensionAndFieldList:a}).then((function(e){return Qe({libraryIds:s,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Je({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Te.isValid(t)||Te.initBase(t,!0);var s=t.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===ke(e)&&!e.disabled){if(a++,"object"!==ke(Le[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)");Le[e.type].initModifier(e,t);var s=t.qLibraryId||c&&c.qLibraryId;s?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Le[r.type].generateExpression({expression:l,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.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=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:s,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Le[r.type].updateModifier&&Le[r.type].updateModifier(r,n.qHyperCubeDef);var a=Me.getExpression(t),l=""===a?a:Le[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=l(e,"qDef.qAggrFunc");"Expr"!==t||Be(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Be(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Ge(t)):je(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?tt({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function je(e){!function(e){var t=Ve(e);return Array.isArray(t)&&t.some((function(e){return"object"===ke(e)&&!e.disabled&&!Le[e.type]}))}(e)?Te.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ge(e)}function Fe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Je({modifiers:Ve(e),properties:r,layout:n})}))}function He(e){var t=Ve(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Le[n.type]&&!n.disabled)return n}}function Be(e){var t=He(e);return!t||Le[t.type].enableTotalsFunction(e)}function $e(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Ve(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Ue(e){$e(e).forEach((function(e){return function(e){var t=He(e);t&&(void 0!==t.outputExpression&&We(t)!==e.qDef.qDef?delete e.qDef.base:!Te.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Ge(e){var t=Ve(e);Array.isArray(t)&&t.forEach((function(t){"object"===ke(t)&&(t.disabled||!Le[t.type]&&We(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ye(e){return e.base||e.qDef&&e.qDef.base}function Ke(e){var t=Ye(e);return e.qLibraryId||t&&t.qLibraryId}function Xe(e){var t=e.measure,r=e.properties,n=e.layout;return!Ke(t)&&Je({modifiers:Ve(t),properties:r,layout:n})}function Je(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==ke(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ze(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 Qe(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a})).catch((function(){return null}))}function et(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function tt(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(l(t,"qHyperCubeDef.qMeasures"),et)!==JSON.stringify(l(r,"qHyperCubeDef.qMeasures"),et)||JSON.stringify(l(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),et)!==JSON.stringify(l(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),et);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&l(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):N(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function rt(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===ke(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function nt(e){var t=$e(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Ve(t);if(Je({modifiers:n,properties:e})){var i=Ke(t);i&&r.push(i),o=o||rt({modifiers:n,properties:e})}})),l(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function ot(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==be&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Ne[t.id].masterItemSubscriber=Ne[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=l(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=l(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){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(be),delete n[e],void c();var e})),enabled:!1,properties:s(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&l.push(p(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return _e({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ne[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}vg.default=n.default,Object.defineProperty(vg,"__esModule",{value:!0})})();var yg=Ct(bg);const xg={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},Sg={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}},wg=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!yg.hasActiveModifiers({measures:[e],properties:t.properties})||yg.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!==(n=e.anything.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},Cg={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:qh.Auto,translation:"Common.Auto"},{value:qh.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:qh.Pixels,translation:"Object.Table.Column.Pixels"},{value:qh.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:qh.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===qh.Pixels},change(e){e.qDef.columnWidth&&(e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(Mh.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===qh.Percentage},change(e){e.qDef.columnWidth&&(e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(Mh.PercentageMax,e.qDef.columnWidth.percentage)))}}},Eg=()=>({...xg,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}]},...Sg,...Cg}),Rg={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},Ig=e=>{var t,r;const n=null===(t=e.anything.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r?void 0:r.call(t,"modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var t;return n?!!e.qLibraryId:!!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},inlineMeasure:{component:"inline-measure",show:e=>{var t;return n?!e.qLibraryId:!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:wg(e)}},Dg=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:Rg},presentation:{type:"items",translation:"properties.presentation",items:{...Eg(),...hg(e)}}}}}),Ag=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:Ig(e)},presentation:{type:"items",translation:"properties.presentation",items:{...Eg(),...gg(e,{[cg.Image]:e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[cg.Indicator]:!0,[cg.MiniChart]:!0})}}}}}),Pg=e=>({...Dg(e),...Ag(e)}),Mg=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{...Pg(e)}}),qg=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...Pg(e)}},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}}}}}),Tg={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}},kg=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show(e){var t;return!(null!==(t=e.totals)&&void 0!==t&&t.show)}},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},Lg=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),Og=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},Ng=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Og(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...se(n).filter((e=>!s.includes(e))).map((e=>Og(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),_g=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],zg=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Og(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},..._g.filter((e=>!a.includes(e))).map((e=>Og(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),jg=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Ng({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:zg({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Lg(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Lg(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?Zm.WHITE:Zm.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),Fg=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Lg(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Lg(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),Hg=(e,t,r)=>{var n,o,i,a,l;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureValues":return null===(i=e.object)||void 0===i||null===(i=i.straightTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i[r];case"totalValues":return null===(a=e.object)||void 0===a||null===(a=a.straightTableV2)||void 0===a||null===(a=a.total)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"nullValues":return null===(l=e.object)||void 0===l||null===(l=l.straightTableV2)||void 0===l||null===(l=l.null)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];default:return}},Bg=e=>{var t;return null===(t=e.grid)||void 0===t||null===(t=t.zebraStripes)||void 0===t?void 0:t.show},$g={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){var t,r;null!==(null==e||null===(t=e.content)||void 0===t?void 0:t.rowHeight)&&void 0!==(null==e||null===(r=e.content)||void 0===r?void 0:r.rowHeight)&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==(null==e?void 0:e.content)&&(e.content.rowHeight=void 0)}},Vg=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),...$g},border:Lg("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Zm.BORDER_MEDIUM})),divider:Lg("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Zm.BORDER_HEAVY}))}}}}),Wg=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},Ug={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:Wg,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:Wg,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},Gg=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,Yg=({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,defaultValue:[],items:{headerSection:jg({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:Hg,disableNoneCallback:Gg}),dimensionValueSection:jg({section:"dimensionValues",translator:t,flags:e,getThemeValue:Hg}),measureValueSection:jg({section:"measureValues",translator:t,flags:e,getThemeValue:Hg}),totalRowSection:jg({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:Hg,disableNoneCallback:Gg}),nullValues:Fg({section:"nullValues",fallbackBackground:Zm.NULL_VALUE_BACKGROUND,getThemeValue:Hg}),grid:Vg(e),hoverEffectSection:Ug,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:Bg,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:Bg,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:Bg,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:Bg,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),Kg=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[Yg(e),kg(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",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:"-"}]},...Tg}}),Xg={uses:"sorting"},Jg={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Zg=e=>{var t;const{flags:r}=e;return{type:"items",component:"accordion",items:{data:(null===(t=r.isPreviewToggleEnabled)||void 0===t?void 0:t.call(r,"IM_7101_PREVIEW_SIMPLE_MODE_OFF"))||!1?qg(e):Mg(e),sorting:Xg,addOns:Jg,settings:Kg(e)}}};function Qg(e){var t,r;return{definition:Zg(e),exploration:og,data:ug(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return ng({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>Jh({propertyTree:e,hyperCubePath:t})}}const ev=(t,r)=>e((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{var i;const a=n?o:o-e.qDimensionInfo.length,l=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${a}/qDef/columnWidth`,s=null===(i=e[n?"qDimensionInfo":"qMeasureInfo"].at(a))||void 0===i?void 0:i.columnWidth,u=s?{qPath:l,qOp:"Replace",qValue:JSON.stringify({...s,...r})}:{qPath:l,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([u],!0)})(t,r)),[t,r]),tv=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),rv=[];for(let e=0;e<256;++e)rv.push((e+256).toString(16).slice(1));let nv;const ov=new Uint8Array(16);var iv={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function av(e,t,r){var n,o,i,a;if(iv.randomUUID&&!e)return iv.randomUUID();const l=null!==(n=null!==(o=(e=e||{}).random)&&void 0!==o?o:null===(i=(a=e).rng)||void 0===i?void 0:i.call(a))&&void 0!==n?n:function(){if(!nv){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");nv=crypto.getRandomValues.bind(crypto)}return nv(ov)}();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=15&l[6]|64,l[8]=63&l[8]|128,function(e,t=0){return(rv[e[t+0]]+rv[e[t+1]]+rv[e[t+2]]+rv[e[t+3]]+"-"+rv[e[t+4]]+rv[e[t+5]]+"-"+rv[e[t+6]]+rv[e[t+7]]+"-"+rv[e[t+8]]+rv[e[t+9]]+"-"+rv[e[t+10]]+rv[e[t+11]]+rv[e[t+12]]+rv[e[t+13]]+rv[e[t+14]]+rv[e[t+15]]).toLowerCase()}(l)}const lv=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:av()},sv=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:lv()},uv=e=>"number"==typeof e&&!Number.isNaN(+e),cv=e=>uv(e.qNum),dv=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);function pv(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 fv(e,t,r){return t=vv(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,yv()?Reflect.construct(t,r||[],vv(e).constructor):t.apply(e,r))}function mv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hv(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,wv(n.key),n)}}function gv(e,t,r){return t&&hv(e.prototype,t),r&&hv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vv(e){return vv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vv(e)}function bv(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xv(e,t)}function yv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yv=function(){return!!e})()}function xv(e,t){return xv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xv(e,t)}function Sv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pv(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)?pv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wv(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+""}function Cv(e){return Cv="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},Cv(e)}var Ev={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:Rv(e),value:Rv(t),useEqualSign:r}}(r,o,i))}})),t}};function Rv(e){try{return decodeURIComponent(e)}catch(t){return e}}function Iv(e){if(!(this instanceof Iv))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return Ev.fromSearchString(t.search)}}})}function Dv(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}Iv.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},Iv.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=Dv((t=e[n]).key),t.value?r+="=".concat(Dv(t.value)):r+=t.useEqualSign?"=":"";return r};var Av,Pv=function(){return gv((function e(t){mv(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),Mv=function(){return gv((function e(){mv(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new Pv(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),qv=function(e){return e>=0&&e<=1114111},Tv=function(e){return e.match(/[\s]/)},kv=function(){function e(){return mv(this,e),fv(this,e,arguments)}return bv(e,Mv),gv(e,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!Tv(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return qv(a)?String.fromCharCode(a):"�"}}])}(),Lv=function(){function e(t,r){mv(this,e),this._key=t,this._value=r}return gv(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}])}(),Ov=function(){function e(){mv(this,e)}return gv(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return Lv.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return Lv.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||Lv.newInstanceIfNeeded(e,t,this._value)}}])}(),Nv=function(){return gv((function e(){mv(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new Ov);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),_v=function(){var e,t,r,n=[],o=[],i=new Nv;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),zv=function(){function e(){return mv(this,e),fv(this,e,arguments)}return bv(e,Mv),gv(e,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,_v.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=_v.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&qv(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&qv(n)?String.fromCharCode(n):null}}])}(),jv=function(){function e(){return mv(this,e),fv(this,e,arguments)}return bv(e,Mv),gv(e,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),qv(o))?String.fromCharCode(o):(e.reset(),null)}}])}(),Fv=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(Av=document.createElement("div"));var Hv=Array.prototype.indexOf,Bv=[",",".","_"," "],$v=[",",".","-","_"," "],Vv={width:["%"],height:["%"]},Wv={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Uv={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Wv.image,"background-color":Wv.color,"border-color":Wv.color,"border-image":Wv.image,color:Wv.color,icon:Wv.image,"list-style-image":Wv.image,"outline-color":Wv.color},Gv={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Yv(e,t,r){var n;if(t){if(Hv)return Hv.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 Kv(e){if(null==e)return"";var t,r=document.createTextNode(e);return Av.appendChild(r),t=Av.innerHTML,Av.removeChild(r),t}function Xv(e,t,r){var n,o,i,a,l,s,u,c,d;for(e=Zv(e).toLowerCase(),t=Zv(t),i=0;i<Gv.attr_name.length;i++)if(e.match(Gv.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Gv.attr_val.length;i++)if(t.toLowerCase().match(Gv.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=Vv[e])||(n=$v),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Yv(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Jv(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=Zv(e).toLowerCase(),t=Zv(t),Yv(e,Gv.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Gv.css_val.length;n++)if(t.toLowerCase().indexOf(Gv.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Uv[e])||(o=Wv.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Yv(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Zv(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new zv,new jv,new kv];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var Qv=[],eb=0;eb<255;eb++)Qv[eb]=eb>=48&&eb<=57||eb>=65&&eb<=90||eb>=97&&eb<=122?null:eb.toString(16);var tb=function(e){return Kv(e.unsafe)},rb=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=Jv(t,r[t],!0),i+=Jv(t,r[t],!0),o[t]=n[t]);return e.map?o:i},nb=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=Xv(i,t[i],!0),o+=Xv(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function ob(e,t){throw new Error(t)}var ib={canonicalize:Zv,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===Cv(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?tb(e):"css"===e.context?(null!=e.map&&"object"!==Cv(e.map)&&ob(this,"Invalid parameter type"),rb(e)):"attr"===e.context?(null!=e.map&&"object"!==Cv(e.map)&&ob(this,"Invalid parameter type"),nb(e)):void ob(this,"Invalid parameter type")},encodeForAttr:Xv,encodeForAttr2:function(e){return Xv("nonsens",e,!0)},encodeForCSS:Jv,encodeForHref:function(e){Zv(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new Iv(e),r=Iv.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+Iv.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=Bv),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Yv(o,t)>=0||null==Qv[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:Kv,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Zv(t).toLowerCase():ob(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,r=Sv(null!==(t=Fv.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";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(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const ab=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},lb=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},sb=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&ib.isSafeDataURL(t)?{type:cg.Image,url:t,text:e,imageSize:r,resolvedImagePosition:lb(n,a),labelStructure:o,imageBox:i}:{type:cg.Text,url:void 0,text:e,labelStructure:o},ub=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:cg.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?r.qYMin:e.qMiniChart.qMin,s=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,r),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:cg.MiniChart,text:n,miniChart:a}},cb=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===dg.Attribute||null==r?void 0:r.urlLabel},db=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:cg.Link,url:ib.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:cg.Text,url:void 0,text:t,labelStructure:e}}},pb=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:l=e=>e.qText,direction:s,enabledFeatures:u})=>{var c,d,p,f,m,h;const g=pg(t),v=l(e);return g!==cg.Image||!u[cg.Image]||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"tableImages")?g===cg.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===dg.Attribute){var a;const i=cb(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return db({labelStructure:n,text:o||i||"",url:i})}if(i===dg.Dimension){var l,s;const i=cb(null!==(l=r.urlLabel)&&void 0!==l?l:-1,e,t)||o;return n&&(n.maskedValue=i),db({text:i,labelStructure:n,url:null!==(s=null==n?void 0:n.originalValue)&&void 0!==s?s:o})}return{type:cg.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,v):g!==cg.Indicator||!u[cg.Indicator]||null!==(p=n.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"tableIndicators")?g!==cg.MiniChart||!u[cg.MiniChart]||null!==(m=n.anything.sense)&&void 0!==m&&null!==(h=m.isUnsupportedFeature)&&void 0!==h&&h.call(m,"qMiniChartDef")?{type:cg.Text,url:void 0,text:v,labelStructure:a}:ub(e,t,i,v):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:cg.Indicator,url:void 0,text:r,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:t}})(t,o,v):((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:l,imageSetting:s,imageLabel:u,imageBox:c}=null!=t?t:{};if("url"===s){var d,p;const t=null===(d=ab(null!==(p=r.imageUrl)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText;return i&&(i.maskedValue=null!=t?t:""),sb({text:n,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o})}if("label"===s){var f,m,h;const t=i?i.originalValue:n;if(-1===r.imageLabel)return sb({text:u||t||"",url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o});const s=null!==(f=null===(m=ab(null!==(h=r.imageLabel)&&void 0!==h?h:-1,e))||void 0===m?void 0:m.qText)&&void 0!==f?f:n;return sb({text:s,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o})}return{type:cg.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,v,s,a)},fb=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,mb=(e,t,r)=>{var n,o,i;return null!==(n=null!==(o=e||null===(i=r.nullValueRepresentation)||void 0===i?void 0:i.text)&&void 0!==o?o:t.qText)&&void 0!==n?n:"-"},hb=1e4;function gb(e,t){return[...t].reverse().find((t=>t*e<=hb))||Math.floor(hb/e)}function vb(e,t){var r;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[n,o,i,a,l]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(i&&(n&&o||!a&&!n)){if(a||"top"===l)return{atTop:!0,atBottom:!1};if("bottom"===l)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function bb(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow.at(n))||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function yb(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return uv(null==r?void 0:r.qNum)}function xb(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 Sb=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const wb=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,l=n.length===a?n:Array.from(Array(a).keys()),{visibleColumnsOrder:s,visibleColumnIndexes:u}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<n,{qError:s}=l?t[e]:r[e-n],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(l,o,i);return s.map(((n,o)=>function(e,t,r,n,o,i){const{qDimensionInfo:a,qMeasureInfo:l,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,u=a.length,c=t<u,d=c?a[t]:l[t-u],p=c&&a[t].qGrouping===Lh.Cyclic,f=t===s[0];let m,h,g="",v=!1,b=-1,y=0,x=[];const{representation:S,conditionalColoring:w}=d;if(c){var C;const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles,v=null!==(C=e.qLocked)&&void 0!==C&&C,b=n,({qDimensionType:m}=e)}else({qMiniChart:h}=d);const{qFallbackTitle:E,textAlign:R,qAttrExprInfo:I,qSortIndicator:D,qReverseSort:A,qApprMaxGlyphCount:P,columnWidth:M,qLibraryId:q}=d;return{isDim:c,isCyclic:p,isLocked:v,fieldId:g,colIdx:t,qLibraryId:q,pageColIdx:r,qApprMaxGlyphCount:P,qReverseSort:A,columnWidth:null!=M?M:{type:qh.Auto},selectionColIdx:b,isActivelySorted:f,id:sv(d),label:E,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:I.map((e=>e.id)),qAttrExprInfoIndex:tv(d),sortDirection:D&&"N"!==D?D:"A",totalInfo:bb(e,c,r,n),...!c&&{isTotalNumeric:yb(e,n)},...xb(R,m,c,o,i),representation:S,conditionalColoring:c?void 0:w,qMiniChart:h}}(e,n,o,u[n],t,r)))};const Cb=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},Eb=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Cb(e,t)};var Rb={exports:{}};
102
+ `),ub.rippleVisible,gb,550,(({theme:e})=>e.transitions.easing.easeInOut),ub.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ub.child,ub.childLeaving,bb,550,(({theme:e})=>e.transitions.easing.easeInOut),ub.childPulsate,vb,(({theme:e})=>e.transitions.easing.easeInOut)),Sb=y.forwardRef((function(e,t){const r=Fg({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Cu(r,cb),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=Im(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,Dl.jsx(xb,{classes:{ripple:Ng(o.ripple,ub.ripple),rippleVisible:Ng(o.rippleVisible,ub.rippleVisible),ripplePulsate:Ng(o.ripplePulsate,ub.ripplePulsate),child:Ng(o.child,ub.child),childLeaving:Ng(o.childLeaving,ub.childLeaving),childPulsate:Ng(o.childPulsate,ub.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.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:m.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=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.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 y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Dl.jsx(yb,Eu({className:Ng(ub.root,o.root,i),ref:m},a,{children:Dl.jsx(rb,{component:null,exit:!0,children:s})}))}));function Eb(e){return Ff("MuiButtonBase",e)}const Cb=jf("MuiButtonBase",["root","disabled","focusVisible"]),wb=["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"],Rb=Mg("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"},[`&.${Cb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ab=y.forwardRef((function(e,t){const r=Fg({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:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:D,tabIndex:L=0,TouchRippleProps:I,touchRippleRef:q,type:P}=r,M=Cu(r,wb),_=y.useRef(null),k=y.useRef(null),T=Rm(k,q),{isFocusVisibleRef:O,onFocus:N,onBlur:F,ref:j}=Fm(),[z,H]=y.useState(!1);l&&z&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),_.current.focus()}})),[]);const[B,$]=y.useState(!1);y.useEffect((()=>{$(!0)}),[]);const V=B&&!u&&!l;function G(e,t,r=c){return wm((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}y.useEffect((()=>{z&&d&&!u&&B&&k.current.pulsate()}),[u,d,z,B]);const W=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=G("start",D),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===O.current&&H(!1),f&&f(e)}),!1),te=wm((e=>{_.current||(_.current=e.currentTarget),N(e),!0===O.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=_.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=wm((e=>{d&&!ne.current&&z&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=wm((e=>{d&&" "===e.key&&k.current&&z&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(M.href||M.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===P?"button":P,se.disabled=l):(M.href||M.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Rm(t,j,_),ue=Eu({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=zm({root:["root",t&&"disabled",r&&"focusVisible"]},Eb,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Dl.jsxs(Rb,Eu({as:ae,className:Ng(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:W,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:L,type:P},se,M,{children:[i,V?Dl.jsx(Sb,Eu({ref:T,center:o},I)):null]}))}));function Db(e){return Ff("MuiTypography",e)}jf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Lb=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ib=Mg("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${Ap(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Eu({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}))),qb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Pb={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Mb=y.forwardRef((function(e,t){const r=Fg({props:e,name:"MuiTypography"}),n=(e=>Pb[e]||e)(r.color),o=qf(Eu({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=qb}=o,f=Cu(o,Lb),m=Eu({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=s||(c?"p":p[d]||qb[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return zm({root:["root",i,"inherit"!==e.align&&`align${Ap(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Db,a)})(m);return Dl.jsx(Ib,Eu({as:h,ref:t,ownerState:m,className:Ng(g.root,a)},f))}));const _b=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=Rm(y.isValidElement(r)?Wm(r):null,t);if(cm((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),cm((()=>{if(i&&!o)return ym(t,i),()=>{ym(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return Dl.jsx(y.Fragment,{children:r})}return Dl.jsx(y.Fragment,{children:i?j.createPortal(r,i):i})})),kb=["onChange","maxRows","minRows","style","value"];function Tb(e){return parseInt(e,10)||0}const Ob={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Nb(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Fb=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Cu(e,kb),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=Rm(t,u),d=y.useRef(null),p=y.useRef(null),f=y.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=vm(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=Tb(i.paddingBottom)+Tb(i.paddingTop),l=Tb(i.borderBottomWidth)+Tb(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]),m=wm((()=>{const e=u.current,t=f();if(!e||!t||Nb(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),h=y.useCallback((()=>{const e=u.current,t=f();if(!e||!t||Nb(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=y.useRef(-1);cm((()=>{const e=gm(h),t=null==u?void 0:u.current;if(!t)return;const r=vm(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{m()&&(n.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[f,h,m]),cm((()=>{h()}));return Dl.jsxs(y.Fragment,{children:[Dl.jsx("textarea",Eu({value:a,onChange:e=>{l||h(),r&&r(e)},ref:c,rows:o,style:i},s)),Dl.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Eu({},Ob,i,{paddingTop:0,paddingBottom:0})})]})}));function jb({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 zb=y.createContext(void 0);function Hb(){return y.useContext(zb)}function Bb(e){return Dl.jsx(Lf,Eu({},e,{defaultTheme:Jh,themeId:Su}))}function $b(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Vb(e,t=!1){return e&&($b(e.value)&&""!==e.value||t&&$b(e.defaultValue)&&""!==e.defaultValue)}function Gb(e){return Ff("MuiInputBase",e)}const Wb=jf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ub=["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"],Yb=(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${Ap(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Kb=(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]},Xb=Mg("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Yb})((({theme:e,ownerState:t})=>Eu({},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",[`&.${Wb.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Eu({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Jb=Mg("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Kb})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Eu({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 Eu({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] + .${Wb.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},[`&.${Wb.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"})})),Zb=Dl.jsx(Bb,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Qb=y.forwardRef((function(e,t){var r;const n=Fg({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:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:D,onKeyDown:L,onKeyUp:I,placeholder:q,readOnly:P,renderSuffix:M,rows:_,slotProps:k={},slots:T={},startAdornment:O,type:N="text",value:F}=n,j=Cu(n,Ub),z=null!=b.value?b.value:F,{current:H}=y.useRef(null!=z),B=y.useRef(),$=y.useCallback((e=>{}),[]),V=Rm(B,v,b.ref,$),[G,W]=y.useState(!1),U=Hb(),Y=jb({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:G,y.useEffect((()=>{!U&&d&&G&&(W(!1),w&&w())}),[U,d,G,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{Vb(e)?K&&K():X&&X()}),[K,X]);cm((()=>{H&&J({value:z})}),[z,J,H]);y.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=Eu(_?{type:void 0,minRows:_,maxRows:_}:{type:void 0,maxRows:x,minRows:S},Q),Z=Fb);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(O))}),[U,O]);const ee=Eu({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:O,type:N}),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:m}=e;return zm({root:["root",`color${Ap(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Ap(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Gb,t)})(ee),re=T.root||l.Root||Xb,ne=k.root||u.root||{},oe=T.input||l.Input||Jb;return Q=Eu({},Q,null!=(r=k.input)?r:u.input),Dl.jsxs(y.Fragment,{children:[!p&&Zb,Dl.jsxs(re,Eu({},ne,!Hm(re)&&{ownerState:Eu({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},j,{className:Ng(te.root,ne.className,s,P&&"MuiInputBase-readOnly"),children:[O,Dl.jsx(zb.Provider,{value:null,children:Dl.jsx(oe,Eu({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:q,readOnly:P,required:Y.required,rows:_,value:z,onKeyDown:L,onKeyUp:I,type:N},Q,!Hm(oe)&&{as:Z,ownerState:Eu({},ee,Q.ownerState)},{ref:V,className:Ng(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||B.current;if(null==t)throw new Error(yu(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(D&&D(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):W(!0))}}))}),f,M?M(Eu({},Y,{startAdornment:O})):null]}))]})}));function ev(e){return Ff("MuiInput",e)}const tv=Eu({},Wb,jf("MuiInput",["root","underline","input"]));function rv(e){return Ff("MuiOutlinedInput",e)}const nv=Eu({},Wb,jf("MuiOutlinedInput",["root","notchedOutline","input"]));function ov(e){return Ff("MuiFilledInput",e)}const iv=Eu({},Wb,jf("MuiFilledInput",["root","underline","input"]));var av=function(e,t){function r(r,n){return Dl.jsx(Bg,Eu({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Bg.muiName,y.memo(y.forwardRef(r))}(Dl.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const sv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],lv={entering:{opacity:1},entered:{opacity:1}},uv=y.forwardRef((function(e,t){const r=Zh(),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:m,style:h,timeout:g=n,TransitionComponent:b=Xg}=e,v=Cu(e,sv),x=y.useRef(null),S=Rm(x,Wm(a),t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{nb(e);const n=ob({style:h,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=E(c),A=E(m),D=E((e=>{const t=ob({style:h,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)})),L=E(f);return Dl.jsx(b,Eu({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:D,onExited:L,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Eu({style:Eu({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},lv[e],h,a.props.style),ref:S},t))}))}));function cv(e){return Ff("MuiBackdrop",e)}jf("MuiBackdrop",["root","invisible"]);const dv=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],pv=Mg("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Eu({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"}))),fv=y.forwardRef((function(e,t){var r,n,o;const i=Fg({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=uv,transitionDuration:g}=i,b=Cu(i,dv),v=Eu({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return zm({root:["root",r&&"invisible"]},cv,t)})(v),x=null!=(r=f.root)?r:c.root;return Dl.jsx(h,Eu({in:p,timeout:g},b,{children:Dl.jsx(pv,Eu({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:l,className:Ng(y.root,s,null==x?void 0:x.className),ownerState:Eu({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),mv=jf("MuiBox",["root"]),hv=Xh(),gv=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=pp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(xf);return y.forwardRef((function(e,a){const s=Df(r),l=qf(e),{className:u,component:c="div"}=l,d=Sr(l,Of);return Dl.jsx(i,St({as:c,ref:a,className:Tf(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Su,defaultTheme:hv,defaultClassName:mv.root,generateClassName:_f.generate});function bv(e){return Ff("MuiButton",e)}const vv=jf("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"]),yv=y.createContext({}),xv=y.createContext(void 0),Sv=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ev=e=>Eu({},"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}}),Cv=Mg(Ab,{shouldForwardProp:e=>Pg(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ap(r.color)}`],t[`size${Ap(r.size)}`],t[`${r.variant}Size${Ap(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 Eu({},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":Eu({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mh(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})`:mh(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})`:mh(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":Eu({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${vv.focusVisible}`]:Eu({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${vv.disabled}`]:Eu({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 ${mh(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"},[`&.${vv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vv.disabled}`]:{boxShadow:"none"}})),wv=Mg("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Ap(r.size)}`]]}})((({ownerState:e})=>Eu({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ev(e)))),Rv=Mg("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Ap(r.size)}`]]}})((({ownerState:e})=>Eu({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ev(e)))),Av=y.forwardRef((function(e,t){const r=y.useContext(yv),n=y.useContext(xv),o=Fg({props:um(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:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=Cu(o,Sv),S=Eu({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Eu({},a,zm({root:["root",i,`${i}${Ap(t)}`,`size${Ap(o)}`,`${i}Size${Ap(o)}`,`color${Ap(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ap(o)}`],endIcon:["icon","endIcon",`iconSize${Ap(o)}`]},bv,a))})(S),C=g&&Dl.jsx(wv,{className:E.startIcon,ownerState:S,children:g}),w=p&&Dl.jsx(Rv,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return Dl.jsxs(Cv,Eu({ownerState:S,className:Ng(r.className,E.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Ng(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));function Dv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Lv(e){return parseInt(vm(e).getComputedStyle(e).paddingRight,10)||0}function Iv(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&&Dv(e,o)}))}function qv(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Pv(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=bm(e);return t.body===e?vm(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=jm(bm(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Lv(n)+e}px`;const t=bm(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Lv(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=bm(n).body;else{const t=n.parentElement,r=vm(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 Mv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _v(e){const t=[],r=[];return Array.from(e.querySelectorAll(Mv)).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 kv(){return!0}function Tv(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=_v,isEnabled:a=kv,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=Rm(Wm(t),m),g=y.useRef(null);y.useEffect((()=>{s&&m.current&&(f.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!m.current)return;const e=bm(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),y.useEffect((()=>{if(!s||!m.current)return;const e=bm(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.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(m.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 Dl.jsxs(y.Fragment,{children:[Dl.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Dl.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Ov=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&&Dv(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);Iv(t,e.mount,e.modalRef,n,!0);const o=qv(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=qv(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Pv(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=qv(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&&Dv(e.modalRef,t),Iv(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&&Dv(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Nv(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Ov,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=Rm(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=wm((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||bm(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=wm((e=>{f.current=e,e&&(c&&w()?E():m.current&&Dv(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const D=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=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=Bm(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Eu({},r,t);return Eu({role:"presentation"},n,{onKeyDown:D(n),ref:h})},getBackdropProps:(e={})=>Eu({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:hm((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:hm((()=>{b(!0),s&&s(),i&&A()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}function Fv(e){return Ff("MuiModal",e)}jf("MuiModal",["root","hidden","backdrop"]);const jv=["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"],zv=Mg("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})=>Eu({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Hv=Mg(fv,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Bv=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=Fg({name:"MuiModal",props:e}),{BackdropComponent:u=Hv,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:D,open:L,slotProps:I,slots:q}=l,P=Cu(l,jv),M=Eu({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:_,getBackdropProps:k,getTransitionProps:T,portalRef:O,isTopModal:N,exited:F,hasTransition:j}=Nv(Eu({},M,{rootRef:t})),z=Eu({},M,{exited:F}),H=(e=>{const{open:t,exited:r,classes:n}=e;return zm({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Fv,n)})(z),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=T();B.onEnter=e,B.onExited=t}const $=null!=(r=null!=(n=null==q?void 0:q.root)?n:g.Root)?r:zv,V=null!=(o=null!=(i=null==q?void 0:q.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==I?void 0:I.root)?a:b.root,W=null!=(s=null==I?void 0:I.backdrop)?s:b.backdrop,U=Gm({elementType:$,externalSlotProps:G,externalForwardedProps:P,getSlotProps:_,additionalProps:{ref:t,as:h},ownerState:z,className:Ng(d,null==G?void 0:G.className,null==H?void 0:H.root,!z.open&&z.exited&&(null==H?void 0:H.hidden))}),Y=Gm({elementType:V,externalSlotProps:W,additionalProps:c,getSlotProps:e=>k(Eu({},e,{onClick:t=>{D&&D(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ng(null==W?void 0:W.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:z});return A||L||j&&!F?Dl.jsx(_b,{ref:O,container:m,disablePortal:E,children:Dl.jsxs($,Eu({},U,{children:[!R&&u?Dl.jsx(V,Eu({},Y)):null,Dl.jsx(Tv,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:L,children:y.cloneElement(f,B)})]}))}):null}));function $v(e){return Ff("MuiDivider",e)}const Vv=jf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Gv=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Wv=Mg("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})=>Eu({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)`:mh(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})=>Eu({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Eu({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>Eu({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>Eu({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Uv=Mg("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Eu({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)`}))),Yv=y.forwardRef((function(e,t){const r=Fg({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=Cu(r,Gv),m=Eu({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return zm({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"]},$v,n)})(m);return Dl.jsx(Wv,Eu({as:a,className:Ng(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Dl.jsx(Uv,{className:h.wrapper,ownerState:m,children:o}):null}))}));Yv.muiSkipListHighlight=!0;const Kv=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Xv=Mg(Xb,{shouldForwardProp:e=>Pg(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Yb(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 Eu({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}},[`&.${iv.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${iv.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"},[`&.${iv.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${iv.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(.${iv.disabled}, .${iv.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${iv.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Eu({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}))})),Jv=Mg(Jb,{name:"MuiFilledInput",slot:"Input",overridesResolver:Kb})((({theme:e,ownerState:t})=>Eu({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}))),Zv=y.forwardRef((function(e,t){var r,n,o,i;const a=Fg({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Cu(a,Kv),g=Eu({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Eu({},t,zm({root:["root",!r&&"underline"],input:["input"]},ov,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?bp(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Xv,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Jv;return Dl.jsx(Qb,Eu({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Zv.muiName="Input";const Qv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ey(e){return`scale(${e}, ${e**2})`}const ty={entering:{opacity:1,transform:ey(1)},entered:{opacity:1,transform:"none"}},ry="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ny=y.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:m="auto",TransitionComponent:h=Xg}=e,g=Cu(e,Qv),b=Im(),v=y.useRef(),x=Zh(),S=y.useRef(null),E=Rm(S,Wm(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{nb(e);const{duration:r,delay:n,easing:o}=ob({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:ry?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),A=C(l),D=C(p),L=C((e=>{const{duration:t,delay:r,easing:n}=ob({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:ry?o:.666*o,delay:ry?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=ey(.75),c&&c(e)})),I=C(d);return Dl.jsx(h,Eu({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:L,onExited:I,onExiting:D,addEndListener:e=>{"auto"===m&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,Eu({style:Eu({opacity:0,transform:ey(.75),visibility:"exited"!==e||a?void 0:"hidden"},ty[e],f,o.props.style),ref:E},t))}))}));ny.muiSupportAuto=!0;const oy=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],iy=Mg(Xb,{shouldForwardProp:e=>Pg(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Yb(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})`),Eu({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"},[`&.${tv.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${tv.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(.${tv.disabled}, .${tv.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${tv.disabled}:before`]:{borderBottomStyle:"dotted"}})})),ay=Mg(Jb,{name:"MuiInput",slot:"Input",overridesResolver:Kb})({}),sy=y.forwardRef((function(e,t){var r,n,o,i;const a=Fg({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Cu(a,oy),b=(e=>{const{classes:t,disableUnderline:r}=e;return Eu({},t,zm({root:["root",!r&&"underline"],input:["input"]},ev,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?bp(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:l.Root)?r:iy,S=null!=(o=null!=(i=m.input)?i:l.Input)?o:ay;return Dl.jsx(Qb,Eu({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));function ly(e){return Ff("MuiLink",e)}sy.muiName="Input";const uy=jf("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),cy={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},dy=({theme:e,ownerState:t})=>{const r=(e=>cy[e]||e)(t.color),n=Lp(e,`palette.${r}`,!1)||t.color,o=Lp(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:mh(n,.4)},py=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],fy=Mg(Mb,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ap(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Eu({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Eu({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:dy({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"},[`&.${uy.focusVisible}`]:{outline:"auto"}}))),my=y.forwardRef((function(e,t){const r=Fg({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=Cu(r,py),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Fm(),[b,v]=y.useState(!1),x=Rm(t,g),S=Eu({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return zm({root:["root",`underline${Ap(o)}`,"button"===r&&"button",n&&"focusVisible"]},ly,t)})(S);return Dl.jsx(fy,Eu({color:o,className:Ng(E.root,n),classes:l,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),s&&s(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(cy).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),hy=y.createContext({});function gy(e){return Ff("MuiList",e)}jf("MuiList",["root","padding","dense","subheader"]);const by=["children","className","component","dense","disablePadding","subheader"],vy=Mg("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})=>Eu({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),yy=y.forwardRef((function(e,t){const r=Fg({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Cu(r,by),c=y.useMemo((()=>({dense:a})),[a]),d=Eu({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return zm({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},gy,t)})(d);return Dl.jsx(hy.Provider,{value:c,children:Dl.jsxs(vy,Eu({as:i,className:Ng(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function xy(e){return Ff("MuiListItemIcon",e)}const Sy=jf("MuiListItemIcon",["root","alignItemsFlexStart"]),Ey=["className"],Cy=Mg("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})=>Eu({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),wy=y.forwardRef((function(e,t){const r=Fg({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Cu(r,Ey),i=Eu({},r,{alignItems:y.useContext(hy).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return zm({root:["root","flex-start"===t&&"alignItemsFlexStart"]},xy,r)})(i);return Dl.jsx(Cy,Eu({className:Ng(a.root,n),ownerState:i,ref:t},o))})),Ry=jf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ay=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Dy(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ly(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Iy(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 qy(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")&&Iy(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Py=y.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=Cu(e,Ay),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});cm((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${jm(bm(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=Rm(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Dl.jsx(yy,Eu({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=bm(t).activeElement;if("ArrowDown"===r)e.preventDefault(),qy(t,n,l,s,Dy);else if("ArrowUp"===r)e.preventDefault(),qy(t,n,l,s,Ly);else if("Home"===r)e.preventDefault(),qy(t,null,l,s,Dy);else if("End"===r)e.preventDefault(),qy(t,null,l,s,Ly);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&&Iy(n,o);o.previousKeyMatched&&(l||qy(t,n,!1,s,Dy,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function My(e){return Ff("MuiPopover",e)}jf("MuiPopover",["root","paper"]);const _y=["onEntering"],ky=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ty=["slotProps"];function Oy(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ny(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Fy(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function jy(e){return"function"==typeof e?e():e}const zy=Mg(Bv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hy=Mg(lb,{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}),By=y.forwardRef((function(e,t){var r,n,o;const i=Fg({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:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=ny,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=Cu(i.TransitionProps,_y),D=Cu(i,ky),L=null!=(r=null==x?void 0:x.paper)?r:b,I=y.useRef(),q=Rm(I,L.ref),P=Eu({},i,{anchorOrigin:l,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:L,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),M=(e=>{const{classes:t}=e;return zm({root:["root"],paper:["paper"]},My,t)})(P),_=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=jy(s),t=(e&&1===e.nodeType?e:bm(I.current).body).getBoundingClientRect();return{top:t.top+Oy(t,l.vertical),left:t.left+Ny(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),k=y.useCallback((e=>({vertical:Oy(e,S.vertical),horizontal:Ny(e,S.horizontal)})),[S.horizontal,S.vertical]),T=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:Fy(r)};const n=_();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=vm(jy(s)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Fy(r)}}),[s,c,_,k,h]),[O,N]=y.useState(g),F=y.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=gm((()=>{F()})),t=vm(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=f||(s?bm(jy(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:zy,B=null!=(o=null==v?void 0:v.paper)?o:Hy,$=Gm({elementType:B,externalSlotProps:Eu({},L,{style:O?L.style:Eu({},L.style,{opacity:0})}),additionalProps:{elevation:m,ref:q},ownerState:P,className:Ng(M.paper,null==L?void 0:L.className)}),V=Gm({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:D,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:P,className:Ng(M.root,p)}),{slotProps:G}=V,W=Cu(V,Ty);return Dl.jsx(H,Eu({},W,!Hm(H)&&{slotProps:G,disableScrollLock:R},{children:Dl.jsx(E,Eu({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},A,{children:Dl.jsx(B,Eu({},$,{children:d}))}))}))}));function $y(e){return Ff("MuiMenu",e)}jf("MuiMenu",["root","paper","list"]);const Vy=["onEntering"],Gy=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Wy={vertical:"top",horizontal:"right"},Uy={vertical:"top",horizontal:"left"},Yy=Mg(By,{shouldForwardProp:e=>Pg(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ky=Mg(Hy,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Xy=Mg(Py,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Jy=y.forwardRef((function(e,t){var r,n;const o=Fg({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:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Cu(o.TransitionProps,Vy),S=Cu(o,Gy),E=(()=>{const e=y.useContext(Zm);return null!=e&&e})(),C=Eu({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),w=(e=>{const{classes:t}=e;return zm({root:["root"],paper:["paper"],list:["list"]},$y,t)})(C),R=i&&!l&&d,A=y.useRef(null);let D=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=t))}));const L=null!=(r=b.paper)?r:Ky,I=null!=(n=v.paper)?n:p,q=Gm({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,s]}),P=Gm({elementType:L,externalSlotProps:I,ownerState:C,className:w.paper});return Dl.jsx(Yy,Eu({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Wy:Uy,slots:{paper:L,root:b.root},slotProps:{root:q,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Eu({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),h&&h(e,t)}},x),ownerState:C},S,{classes:f,children:Dl.jsx(Xy,Eu({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===D||l),autoFocusItem:R,variant:g},u,{className:Ng(w.list,u.className),children:a}))}))}));function Zy(e){return Ff("MuiMenuItem",e)}const Qy=jf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ex=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],tx=Mg(Ab,{shouldForwardProp:e=>Pg(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})=>Eu({},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"}},[`&.${Qy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mh(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mh(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qy.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mh(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})`:mh(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Vv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Vv.inset}`]:{marginLeft:52},[`& .${Ry.root}`]:{marginTop:0,marginBottom:0},[`& .${Ry.inset}`]:{paddingLeft:36},[`& .${Sy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Eu({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Sy.root} svg`]:{fontSize:"1.25rem"}})))),rx=y.forwardRef((function(e,t){const r=Fg({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=Cu(r,ex),f=y.useContext(hy),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=y.useRef(null);cm((()=>{n&&h.current&&h.current.focus()}),[n]);const g=Eu({},r,{dense:m.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Eu({},a,zm({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Zy,a))})(r),v=Rm(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),Dl.jsx(hy.Provider,{value:m,children:Dl.jsx(tx,Eu({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Ng(b.focusVisible,l),className:Ng(b.root,d)},p,{ownerState:g,classes:b}))})}));function nx(e){return Ff("MuiNativeSelect",e)}const ox=jf("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ix=["className","disabled","error","IconComponent","inputRef","variant"],ax=({ownerState:e,theme:t})=>Eu({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Eu({},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"},[`&.${ox.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}}),sx=Mg("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Pg,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${ox.multiple}`]:t.multiple}]}})(ax),lx=({ownerState:e,theme:t})=>Eu({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ox.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ux=Mg("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ap(r.variant)}`],r.open&&t.iconOpen]}})(lx),cx=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Cu(e,ix),u=Eu({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return zm({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ap(r)}`,i&&"iconOpen",n&&"disabled"]},nx,t)})(u);return Dl.jsxs(y.Fragment,{children:[Dl.jsx(sx,Eu({ownerState:u,className:Ng(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:Dl.jsx(ux,{as:i,ownerState:u,className:c.icon})]})}));var dx;const px=["children","classes","className","label","notched"],fx=Mg("fieldset",{shouldForwardProp:Pg})({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%"}),mx=Mg("legend",{shouldForwardProp:Pg})((({ownerState:e,theme:t})=>Eu({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&&Eu({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 hx=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],gx=Mg(Xb,{shouldForwardProp:e=>Pg(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Yb})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Eu({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${nv.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${nv.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${nv.focused} .${nv.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${nv.error} .${nv.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${nv.disabled} .${nv.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Eu({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),bx=Mg((function(e){const{className:t,label:r,notched:n}=e,o=Cu(e,px),i=null!=r&&""!==r,a=Eu({},e,{notched:n,withLabel:i});return Dl.jsx(fx,Eu({"aria-hidden":!0,className:t,ownerState:a},o,{children:Dl.jsx(mx,{ownerState:a,children:i?Dl.jsx("span",{children:r}):dx||(dx=Dl.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}})),vx=Mg(Jb,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Kb})((({theme:e,ownerState:t})=>Eu({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}))),yx=y.forwardRef((function(e,t){var r,n,o,i,a;const s=Fg({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=s,g=Cu(s,hx),b=(e=>{const{classes:t}=e;return Eu({},t,zm({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rv,t))})(s),v=Hb(),x=jb({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Eu({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(r=null!=(n=m.root)?n:l.Root)?r:gx,C=null!=(o=null!=(i=m.input)?i:l.Input)?o:vx;return Dl.jsx(Qb,Eu({slots:{root:E,input:C},renderSuffix:e=>Dl.jsx(bx,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Dl.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Eu({},b,{notchedOutline:null})}))}));function xx(e){return Ff("MuiSelect",e)}yx.muiName="Input";const Sx=jf("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ex;const Cx=["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"],wx=Mg("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Sx.select}`]:t.select},{[`&.${Sx.select}`]:t[r.variant]},{[`&.${Sx.error}`]:t.error},{[`&.${Sx.multiple}`]:t.multiple}]}})(ax,{[`&.${Sx.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Rx=Mg("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ap(r.variant)}`],r.open&&t.iconOpen]}})(lx),Ax=Mg("input",{shouldForwardProp:e=>qg(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 Dx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Lx(e){return null==e||"string"==typeof e&&!e.trim()}const Ix=y.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:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:D,renderValue:L,SelectDisplayProps:I={},tabIndex:q,value:P,variant:M="standard"}=e,_=Cu(e,Cx),[k,T]=Cm({controlled:P,default:c,name:"Select"}),[O,N]=Cm({controlled:A,default:u,name:"Select"}),F=y.useRef(null),j=y.useRef(null),[z,H]=y.useState(null),{current:B}=y.useRef(null!=A),[$,V]=y.useState(),G=Rm(t,h),W=y.useCallback((e=>{j.current=e,e&&H(e)}),[]),U=null==z?void 0:z.parentNode;y.useImperativeHandle(G,(()=>({focus:()=>{j.current.focus()},node:F.current,value:k})),[k]),y.useEffect((()=>{u&&O&&z&&!B&&(V(a?null:U.clientWidth),j.current.focus())}),[z,a]),y.useEffect((()=>{i&&j.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=bm(j.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),B||(V(a?null:U.clientWidth),N(e))},K=y.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(k)?k.slice():[];const t=k.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),k!==r&&(T(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}v||Y(!1,t)}},J=null!==z&&O;let Z,Q;delete _["aria-invalid"];const ee=[];let te=!1;(Vb({value:k})||p)&&(L?Z=L(k):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(yu(2));t=k.some((t=>Dx(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Dx(k,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=$;!a&&B&&z&&(oe=U.clientWidth),ne=void 0!==q?q:d?null:0;const ie=I.id||(x?`mui-component-select-${x}`:void 0),ae=Eu({},e,{variant:M,value:k,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return zm({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ap(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},xx,t)})(ae),le=Eu({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Em();return Dl.jsxs(y.Fragment,{children:[Dl.jsx(wx,Eu({ref:W,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(!D){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||D?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:x}}),S(e))},onFocus:w},I,{ownerState:ae,className:Ng(I.className,se.select,l),id:ie,children:Lx(Z)?Ex||(Ex=Dl.jsx("span",{className:"notranslate",children:"​"})):Z})),Dl.jsx(Ax,Eu({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},_)),Dl.jsx(Rx,{as:m,className:se.icon,ownerState:ae}),Dl.jsx(Jy,Eu({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Eu({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Eu({},b.slotProps,{paper:Eu({},le,{style:Eu({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),qx=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Px=["root"],Mx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Pg(e)&&"variant"!==e,slot:"Root"},_x=Mg(sy,Mx)(""),kx=Mg(yx,Mx)(""),Tx=Mg(Zv,Mx)(""),Ox=y.forwardRef((function(e,t){const r=Fg({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=av,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=Cu(r,qx),A=b?cx:Ix,D=jb({props:r,muiFormControl:Hb(),states:["variant","error"]}),L=D.variant||w,I=Eu({},r,{variant:L,classes:i}),q=(e=>{const{classes:t}=e;return t})(I),P=Cu(q,Px),M=d||{standard:Dl.jsx(_x,{ownerState:I}),outlined:Dl.jsx(kx,{label:f,ownerState:I}),filled:Dl.jsx(Tx,{ownerState:I})}[L],_=Rm(t,Wm(M));return Dl.jsx(y.Fragment,{children:y.cloneElement(M,Eu({inputComponent:A,inputProps:Eu({children:o,error:D.error,IconComponent:u,variant:L,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:Eu({id:c},C)},p,{classes:p?bp(P,p.classes):P},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===L?{notched:!0}:{},{ref:_,className:Ng(M.props.className,a,q.root)},!d&&{variant:L},R))})}));Ox.muiName="Select";const Nx=y.createContext();function Fx(e){return Ff("MuiTable",e)}jf("MuiTable",["root","stickyHeader"]);const jx=["className","component","padding","size","stickyHeader"],zx=Mg("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Eu({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Eu({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Hx="table",Bx=y.forwardRef((function(e,t){const r=Fg({props:e,name:"MuiTable"}),{className:n,component:o=Hx,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Cu(r,jx),u=Eu({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return zm({root:["root",r&&"stickyHeader"]},Fx,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return Dl.jsx(Nx.Provider,{value:d,children:Dl.jsx(zx,Eu({as:o,role:o===Hx?null:"table",ref:t,className:Ng(c.root,n),ownerState:u},l))})})),$x=y.createContext();function Vx(e){return Ff("MuiTableBody",e)}jf("MuiTableBody",["root"]);const Gx=["className","component"],Wx=Mg("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ux={variant:"body"},Yx="tbody",Kx=y.forwardRef((function(e,t){const r=Fg({props:e,name:"MuiTableBody"}),{className:n,component:o=Yx}=r,i=Cu(r,Gx),a=Eu({},r,{component:o}),s=(e=>{const{classes:t}=e;return zm({root:["root"]},Vx,t)})(a);return Dl.jsx($x.Provider,{value:Ux,children:Dl.jsx(Wx,Eu({className:Ng(s.root,n),as:o,ref:t,role:o===Yx?null:"rowgroup",ownerState:a},i))})}));function Xx(e){return Ff("MuiTableCell",e)}const Jx=jf("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Zx=["align","className","component","padding","scope","size","sortDirection","variant"],Qx=Mg("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ap(r.size)}`],"normal"!==r.padding&&t[`padding${Ap(r.padding)}`],"inherit"!==r.align&&t[`align${Ap(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Eu({},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?bh(mh(e.palette.divider,1),.88):hh(mh(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",[`&.${Jx.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}))),eS=y.forwardRef((function(e,t){const r=Fg({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Cu(r,Zx),p=y.useContext(Nx),f=y.useContext($x),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=s;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=Eu({},r,{align:n,component:h,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}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return zm({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Ap(n)}`,"normal"!==o&&`padding${Ap(o)}`,`size${Ap(i)}`]},Xx,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Dl.jsx(Qx,Eu({as:h,ref:t,className:Ng(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function tS(e){return Ff("MuiTableContainer",e)}jf("MuiTableContainer",["root"]);const rS=["className","component"],nS=Mg("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),oS=y.forwardRef((function(e,t){const r=Fg({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Cu(r,rS),a=Eu({},r,{component:o}),s=(e=>{const{classes:t}=e;return zm({root:["root"]},tS,t)})(a);return Dl.jsx(nS,Eu({ref:t,as:o,className:Ng(s.root,n),ownerState:a},i))}));function iS(e){return Ff("MuiTableHead",e)}jf("MuiTableHead",["root"]);const aS=["className","component"],sS=Mg("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),lS={variant:"head"},uS="thead",cS=y.forwardRef((function(e,t){const r=Fg({props:e,name:"MuiTableHead"}),{className:n,component:o=uS}=r,i=Cu(r,aS),a=Eu({},r,{component:o}),s=(e=>{const{classes:t}=e;return zm({root:["root"]},iS,t)})(a);return Dl.jsx($x.Provider,{value:lS,children:Dl.jsx(sS,Eu({as:o,className:Ng(s.root,n),ref:t,role:o===uS?null:"rowgroup",ownerState:a},i))})}));function dS(e){return Ff("MuiTableRow",e)}const pS=jf("MuiTableRow",["root","selected","hover","head","footer"]),fS=["className","component","hover","selected"],mS=Mg("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,[`&.${pS.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${pS.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mh(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}))`:mh(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),hS="tr",gS=y.forwardRef((function(e,t){const r=Fg({props:e,name:"MuiTableRow"}),{className:n,component:o=hS,hover:i=!1,selected:a=!1}=r,s=Cu(r,fS),l=y.useContext($x),u=Eu({},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 zm({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},dS,t)})(u);return Dl.jsx(mS,Eu({as:o,ref:t,className:Ng(c.root,n),role:o===hS?null:"row",ownerState:u},s))}));function bS(e={}){return Dl.jsx(_l,{...e,children:Dl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Dl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Dl.jsx("rect",{stroke:al.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const vS={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:dl,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},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:[]}};var yS=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:al.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:al.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Dl.jsx(ql,{"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 ${al.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:al.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${al.MISC_FOCUS_BORDER}`,borderRadius:dl,backgroundColor:al.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 ${al.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:al.WHITE,color:al.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:dl},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${al.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:al.GREYSCALE_0_15,backgroundColor:al.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:al.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${al.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:al.GREEN_PALE},"&:active":{backgroundColor:al.GREEN_DARK},"&.Mui-focusVisible":{borderColor:al.GREEN_PALE,boxShadow:`0 0 0 3px ${mm(al.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:al.BLUE_PALE},"&:active":{backgroundColor:al.BLUE_DARK},"&.Mui-focusVisible":{borderColor:al.BLUE_PALE,boxShadow:`0 0 0 3px ${mm(al.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:dl,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:al.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${al.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:al.GREYSCALE_0_15,backgroundColor:al.GREYSCALE_100_60,"&:active":{backgroundColor:al.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:al.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${al.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:al.PURPLE,"&.Mui-focusVisible":{borderColor:al.PURPLE,boxShadow:`0 0 0 3px ${mm(al.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:al.GREEN,"&.Mui-focusVisible":{borderColor:al.GREEN,boxShadow:`0 0 0 3px ${mm(al.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:al.BLUE,"&.Mui-focusVisible":{borderColor:al.BLUE,boxShadow:`0 0 0 3px ${mm(al.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:al.ORANGE,"&.Mui-focusVisible":{borderColor:al.ORANGE,boxShadow:`0 0 0 3px ${mm(al.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:al.RED,"&.Mui-focusVisible":{borderColor:al.RED,boxShadow:`0 0 0 3px ${mm(al.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:al.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:al.PURPLE_PALE},"&:active":{backgroundColor:al.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:al.PURPLE_PALE,boxShadow:`0 0 0 3px ${mm(al.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:al.GREEN_PALE},"&:active":{backgroundColor:al.GREEN_DARK},"&.Mui-focusVisible":{borderColor:al.GREEN_PALE,boxShadow:`0 0 0 3px ${mm(al.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:al.BLUE_PALE},"&:active":{backgroundColor:al.BLUE_DARK},"&.Mui-focusVisible":{borderColor:al.BLUE_PALE,boxShadow:`0 0 0 3px ${mm(al.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:al.ORANGE_PALE},"&:active":{backgroundColor:al.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:al.ORANGE_PALE,boxShadow:`0 0 0 3px ${mm(al.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:al.RED_PALE},"&:active":{backgroundColor:al.RED_DARK},"&.Mui-focusVisible":{borderColor:al.RED_PALE,boxShadow:`0 0 0 3px ${mm(al.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:al.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:al.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:dl,boxShadow:`inset 0 0 0 2px ${al.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Dl.jsx(Ml,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:sl,borderRadius:dl,color:al.TEXT_PRIMARY,backgroundColor:al.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:al.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${al.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:al.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:al.GREYSCALE_0_05,color:al.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:al.GREEN,borderColor:al.GREEN},"&.MuiChip-outlinedInfo":{color:al.BLUE,borderColor:al.BLUE},"&.MuiChip-outlinedWarning":{color:al.ORANGE,borderColor:al.ORANGE},"&.MuiChip-outlinedError":{color:al.RED,borderColor:al.RED}},outlined:{border:`solid 1px ${al.GREYSCALE_0_15}`,backgroundColor:al.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:dl,boxShadow:"none",backgroundColor:al.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:al.GREEN,borderColor:al.GREEN},outlinedSecondary:{color:al.BLUE,borderColor:al.BLUE},label:{fontFamily:gl.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Dl.jsx(Ml,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Dl.jsx(ql,{"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:dl},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:dl,fontSize:ll,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:al.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${al.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:al.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:al.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:al.GREYSCALE_0_05}}},popupIndicator:{borderRadius:dl,border:`solid 1px ${al.GREYSCALE_0_15}`,color:al.GREYSCALE_0_60,marginRight:0,width:cl,height:cl},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${al.GREYSCALE_0_15}`},clearIndicator:{borderRadius:dl,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:al.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:ll}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:sl,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:al.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:al.GREYSCALE_25,fontSize:sl,fontFamily:gl.FONT_FAMILY,fontWeight:ml,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:al.TEXT_PRIMARY},"&.Mui-error":{color:al.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:al.TEXT_SECONDARY,content:"'(optional)'",fontWeight:fl,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:al.TEXT_SECONDARY,content:"'(required)'",fontWeight:fl,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:ll,lineHeight:"16px",backgroundColor:al.WHITE,borderRadius:dl,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${al.GREYSCALE_0_05}`,borderColor:al.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${al.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${al.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${al.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${al.RED}`,boxShadow:`0px 0px 0px 1px ${al.RED}, inset 0 2px 0 0 ${al.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${al.GREYSCALE_0_10}`,borderColor:al.GREYSCALE_0_10,backgroundColor:al.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:al.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:al.GREYSCALE_0_15,borderRadius:dl,boxShadow:`inset 0 2px 0 0 ${al.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Dl.jsx(ql,{...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:al.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:al.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:al.GREYSCALE_0_03},"&:active":{backgroundColor:al.GREYSCALE_0_10},"&:focus":{backgroundColor:al.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${al.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${al.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:al.GREYSCALE_0_30,"&:hover":{backgroundColor:al.GREYSCALE_0_0,borderColor:al.GREYSCALE_0_15},"& ~svg":{color:al.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${al.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:dl}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:al.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${al.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:al.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:ll,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:sl,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:sl,fontWeight:ml,color:al.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:ml}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${al.GREYSCALE_0_15}, 0px 0px 0px 1px ${al.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Dl.jsx(Ol,{}),checkedIcon:Dl.jsx(Nl,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:al.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${al.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:al.GREEN_PALE,boxShadow:`0 0 0 3px ${mm(al.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:al.BLUE_PALE,boxShadow:`0 0 0 3px ${mm(al.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:al.GREYSCALE_0_20}},"&.Mui-disabled":{fill:al.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Dl.jsx(bS,{}),checkedIcon:Dl.jsx(kl,{}),indeterminateIcon:Dl.jsx(Tl,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:dl,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:al.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:al.GREYSCALE_0_55,color:al.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:al.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:al.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:al.GREYSCALE_0_55,"&:hover":{color:al.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:al.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:al.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:ll,color:al.TEXT_PRIMARY,lineHeight:"16px",fontWeight:ml},secondary:{fontSize:sl,color:al.GREYSCALE_45,fontWeight:fl,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:ll,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:ll,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:al.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:sl,borderBottom:`solid 1px ${al.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:ll,color:al.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:al.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:al.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:al.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:al.RED}}},"&.Mui-focusVisible":{backgroundColor:al.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:al.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:al.GREEN,height:"24px","&.Mui-disabled":{color:al.GREYSCALE_0_15}},rail:{backgroundColor:al.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${al.GREYSCALE_0_05}`,borderRadius:dl,boxShadow:`inset 0px 0px 0px 1px ${al.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${al.GREYSCALE_0_05}`,borderRadius:dl},thumb:{height:"16px",width:"16px",borderRadius:dl,backgroundColor:al.WHITE,boxShadow:`0px 1px 2px 0px ${al.GREYSCALE_0_15}, 0px 0px 0px 1px ${al.GREYSCALE_0_05}`,"&:hover":{borderRadius:dl,boxShadow:`0 2px 4px 0 ${al.GREYSCALE_0_30}, 0 0 0 1px ${al.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${al.GREYSCALE_0_15}, 0 0 0 1px ${al.GREYSCALE_0_06}, 0 0 0 2px ${al.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${al.GREYSCALE_0_15}, 0 0 0 1px ${al.GREYSCALE_0_06}, 0 0 0 2px ${al.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:al.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:al.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:al.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:al.GREYSCALE_0_15},markLabel:{color:al.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:al.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:al.WHITE,color:al.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:al.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:al.GREEN_PALE,boxShadow:`0 0 0 3px ${mm(al.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:al.BLUE_PALE,boxShadow:`0 0 0 3px ${mm(al.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:al.GREYSCALE_0_15,borderRadius:dl},thumb:{height:"16px",width:"16px",borderRadius:dl,backgroundColor:al.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:ll,fontWeight:ml,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${al.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${al.MISC_FOCUS_BORDER}`,backgroundColor:al.GREYSCALE_0_03,borderRadius:dl},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:al.GREYSCALE_25,"&.Mui-selected":{color:al.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:ll,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:dl,"&:hover":{backgroundColor:al.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 ${al.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${al.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:dl,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:al.GREYSCALE_0_05},"&:hover":{backgroundColor:al.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${al.GREYSCALE_85}`,borderRight:`1px solid ${al.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ml,backgroundColor:al.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:al.GREYSCALE_98,borderBottom:`1px solid ${al.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${al.GREYSCALE_85}`,borderTop:`1px solid ${al.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:al.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:al.GREYSCALE_0_05,"&:hover":{backgroundColor:al.GREYSCALE_0_03}},"&&:hover":{backgroundColor:al.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Dl.jsx(Fl,{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 ${al.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:ll,borderRadius:dl,padding:"7px 16px",border:`1px solid ${al.GREYSCALE_0_15}`,backgroundColor:al.GREYSCALE_100_60,color:al.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:al.GREYSCALE_0_10,border:`1px solid ${al.GREYSCALE_0_30}`},"&:hover":{backgroundColor:al.GREYSCALE_0_03,border:`1px solid ${al.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:al.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${al.MISC_FOCUS_BORDER}`,border:`1px solid ${al.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:al.GREYSCALE_25,backgroundColor:al.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:al.GREYSCALE_0_10,border:`1px solid ${al.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:sl,height:24,width:24,padding:7},sizeLarge:{fontSize:ul,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:ll,borderRadius:dl}}},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:al.GREYSCALE_20},tooltip:{backgroundColor:al.GREYSCALE_20,fontSize:sl,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...vS}:{}}))(t);const xS=e=>({mode:"light",primary:{ultraLight:al.GREEN_ULTRA_LIGHT,light:al.GREEN_PALE,main:al.GREEN,dark:al.GREEN_DARK,extraDark:al.GREEN_EXTRA_DARK,contrastText:al.WHITE},secondary:{ultraLight:al.BLUE_ULTRA_LIGHT,light:al.BLUE_PALE,main:al.BLUE,dark:al.BLUE_DARK,extraDark:al.BLUE_EXTRA_DARK,contrastText:al.WHITE},error:{ultraLight:al.RED_ULTRA_LIGHT,light:al.RED_PALE,main:al.RED,dark:al.RED_DARK,extraDark:al.RED_EXTRA_DARK,contrastText:al.WHITE},warning:{ultraLight:al.ORANGE_ULTRA_LIGHT,light:al.ORANGE_PALE,main:al.ORANGE,dark:al.ORANGE_DARK,extraDark:al.ORANGE_EXTRA_DARK,contrastText:al.WHITE},success:{ultraLight:al.GREEN_ULTRA_LIGHT,light:al.GREEN_PALE,main:al.GREEN,dark:al.GREEN_DARK,extraDark:al.GREEN_EXTRA_DARK,contrastText:al.WHITE},info:{ultraLight:al.BLUE_ULTRA_LIGHT,light:al.BLUE_PALE,main:al.BLUE,dark:al.BLUE_DARK,extraDark:al.BLUE_EXTRA_DARK,contrastText:al.WHITE},text:{primary:al.TEXT_PRIMARY,secondary:al.TEXT_SECONDARY,disabled:al.GREYSCALE_0_30},action:{hover:al.GREYSCALE_0_03,hoverOpacity:.03,selected:al.GREYSCALE_0_05,selectedOpacity:.05,focus:al.MISC_FOCUS_BORDER},amethyst:{ultraLight:al.WHITE,main:al.PURPLE,light:al.PURPLE_PALE,dark:al.PURPLE_DARK,extraDark:al.GREYSCALE_0_0,contrastText:al.WHITE},background:{paper:al.WHITE,default:al.GREYSCALE_95},divider:al.GREYSCALE_0_15}),SS={...il},ES=((e="light",t=!1)=>((e,t=!1)=>({components:yS(0,t),palette:xS(),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:ll,fontWeightLight:pl,fontWeightRegular:fl,fontWeightMedium:ml,fontWeightBold:hl,htmlFontSize:ll,fontFamily:gl.FONT_FAMILY,button:{fontWeight:ml,fontSize:ll,textTransform:"none"},body1:{fontSize:ul,lineHeight:"24px"},body2:{fontSize:ll,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:cl,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ul,fontWeight:ml,lineHeight:"16px"},h6:{fontSize:ll,fontWeight:ml,lineHeight:"16px"},caption:{color:al.TEXT_SECONDARY},subtitle1:{fontSize:ll,color:al.TEXT_SECONDARY},subtitle2:{fontSize:sl,color:al.TEXT_SECONDARY}},shape:{borderRadius:dl}}))(0,t))().palette,CS={TEXT:ES.text.primary,DISABLED:ES.text.disabled,HOVER:ES.action.hover,WHITE:SS.GREYSCALE_100,BORDER_LIGHT:SS.GREYSCALE_90,BORDER_MEDIUM:SS.GREYSCALE_85,BORDER_HEAVY:SS.GREYSCALE_50,DARK_MODE_TEXT:SS.GREYSCALE_95,DARK_MODE_BORDER:SS.GREYSCALE_95,DARK_MODE_DISABLED:SS.GREYSCALE_70,DARK_MODE_BACKGROUND:SS.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:SS.GREYSCALE_95,SELECTED:ES.primary.main},wS=(e,t=CS.TEXT,r=CS.WHITE)=>{const n=ee(e),o=ee(t),i=ee(r);return n.isInvalid()?t:function(e,t,r){const n=te(e,t),o=te(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},RS=e=>{const t=e.getStyle("","","dataColors.selected")||CS.SELECTED,r=function(e,t){const r=ee("#FFFFFF"),n=ee(e),o=ee(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=te(r,n),a=te(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,CS.TEXT);return{background:t,color:r}},AS=(e,t)=>{const r=ee(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},DS=e=>!!e&&0===ee(e).a,LS=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},IS=e=>{const t=ee(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},qS=(e,t,r)=>{var n,o,i,a;const s=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;s?s.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)},PS=e=>{e.stopPropagation(),e.preventDefault()},MS="#grid",_S=(e,t,r,n=CS.WHITE)=>e&&!DS(e)?e:DS(t)?r&&!DS(r)?r:n:t,kS=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},TS=(e,t,r,n,o)=>{const i=kS(".qv-object .qv-inner-object",r),a=kS(".qv-panel-sheet",r),s=kS(MS,r),l=null!=s?s:a,u=(e=>{var t,r,n,o,i,a;const s=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),l=null==s||null===(r=s.bgColor)||void 0===r?void 0:r.colorExpression,u=null==s||null===(n=s.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==s||null===(o=s.bgColor)||void 0===o?void 0:o.useColorExpression)&&l)return IS(l);if("none"===u)return"transparent";if(void 0===u)return;const c=ee(u);return c.setAlpha(null!==(i=null==s||null===(a=s.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=DS(p),m=!DS(h=f?l:p)&&wS(h,CS.TEXT,CS.DARK_MODE_TEXT)===K(CS.DARK_MODE_TEXT);var h;return{color:p,headerColor:_S(u,p,l),isDark:m}},OS=(t,r,a,s)=>{const l=i(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o((()=>{let r;return e&&(r=new MutationObserver((e=>{i(e)})),r.observe(e,t)),()=>{var e;null===(e=r)||void 0===e||e.disconnect()}}),[e,t]),r})(r.closest(MS),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e((()=>({...l,background:TS(t,l,r,a,s)})),[l.name(),r,a,s,t,u])};function NS(t,n){const o=e((()=>({isLoading:!0})),n),[i,a]=r((async()=>{try{return await t()}finally{o.isLoading=!1}}),n);return[i,o.isLoading,a]}const FS=3;function jS(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),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}function zS({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=FS}=null!=o?o:{},{estimateWidth:a,measureText:s,estimateLineCount:l}=C((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=lt(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=lt((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=jS(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var HS,BS=z;HS=BS.createRoot,BS.hydrateRoot;const $S="Source Sans Pro, sans-serif";function VS(e,t){const[r,n]=E(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var GS={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 WS=({translator:e})=>(C((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(GS).forEach((t=>{e.add(GS[t])}))}}(e)}),[e]),e),US="12px",YS="nebula-table-utils-head-menu-button",KS="nebula-table-utils-head-menu-wrapper",XS="nebula-table-utils-head-menu",JS="nebula-table-utils-head-menu-list-id",ZS="sn-copy-cell";let QS=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const eE="nebula-table-utils-column-adjuster";let tE=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}({}),rE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const nE={darker:.15,brighter:.3,opacity:.03},oE={darker:.3,brighter:.5,opacity:.05};let iE=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({});const aE=document.createElement("textarea");function sE(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 lE=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>{sE(r)})):sE(r))};var uE={exports:{}};self,uE.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,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&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(m,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,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&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(m,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:()=>Pe});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 m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,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),m(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=m(0),h=m(1),g=v(d,f),b=v(p,h);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 E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(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:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(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:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},D=Array.isArray;function L(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function q(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(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 M(e,t){var r=!0;if(L(e)&&L(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){M(e[n],t[n])||(r=!1)})),r);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!M(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);M(i,a)||q(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):L(i)&&L(a)?n=n.concat(A.generate(a,i,s)):D(i)&&D(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&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(M(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])&&!q(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=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var l,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(L(a)&&L(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!q(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=P(e,t.from);D(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(D(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 _=A,k=function(e,r,n){if(!e)return Promise.resolve();var o=_.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function O(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),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 m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=O(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=O(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=O(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const 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,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var G="timeSeriesDecomposition";function W(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=W(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=W(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=W(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),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),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function 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,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.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]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",De={initBase:function(e,t){(t||De.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){De.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Le=De;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 qe={accumulation:j,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:qe,apply:_e,applyModifiers:ke,cleanUpMeasure:Te,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[e.id])},hasActiveModifiers:Oe,getActiveModifier:Ne,initBase:Le.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return qe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return qe[e]&&qe[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Me={};function _e(){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;Me[r.id]=Me[r.id]||{isFirstTime:!0};var u=Me[r.id].isFirstTime;if(Me[r.id].isFirstTime=!1,n&&"object"===Ie(n))return ke({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=Me[r.id].lastReloadTime;if(Me[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(We({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(qe[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=qe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),ke({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 je(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function ke(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),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!Oe({measures:r,properties:n}))return r.forEach((function(e){return Te(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){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Le.isValid(r)||Le.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(qe[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)");qe[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:qe[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 qe[n.type].updateModifier&&qe[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:qe[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||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),$e(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!qe[e.type]}))}(e)?Le.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(qe[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||qe[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Le.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!qe[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,r=e.properties,n=e.layout;return!Ge(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ie(e)||e.disabled||!qe[e.type])&&(void 0===o[e.type]&&(o[e.type]=qe[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):k(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&&qe[e.type]&&qe[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=Ge(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Me[t.id].masterItemSubscriber=Me[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 _e({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Me[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var 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 m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},h=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),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function D(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,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},q=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},M=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}}},_=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=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)}},T=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=w(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=w(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},O=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}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,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=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(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 D(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)?D(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)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return L(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 L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}(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)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:l}),h({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,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=O({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=l.defaultDimension,R=void 0===w?M():w,A=l.defaultMeasure,D=void 0===A?_():A;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:D}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),q("qMaxStackedCells",b,v),q("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),I(g,t,n),h.qProperty=g;var L=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:L}),p&&V(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var W={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!W[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(U(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},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),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=G.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",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&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?V(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,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]&&E()(s,r.properties.measureAxes[t[0].axis])):E()(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}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),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 we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,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",De="conditionalColoring",Le="measures",Ie="qDef.conditionalColoring";const qe={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:De,arrayName:Le,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Le,quarantineName:De})}};var Pe="qHyperCubeDef.qMeasures",Me="measures",_e="qHyperCubeDef.qDimensions",ke="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Oe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const He={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Me,itemPath:je}),we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:ke,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Me,itemPath:je}),Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:ke,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},Be={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:qe,conditionalShow:He}})(),n.default})();var cE=Rt(uE.exports),dE={exports:{}};self,dE.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},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,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&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(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},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,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&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(m,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:()=>Pe});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 m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,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),m(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=m(0),h=m(1),g=v(d,f),b=v(p,h);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 E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(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:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(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:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},D=Array.isArray;function L(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function q(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(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 M(e,t){var r=!0;if(L(e)&&L(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){M(e[n],t[n])||(r=!1)})),r);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!M(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);M(i,a)||q(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):L(i)&&L(a)?n=n.concat(A.generate(a,i,s)):D(i)&&D(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&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(M(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])&&!q(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=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var l,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(L(a)&&L(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!q(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=P(e,t.from);D(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(D(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 _=A,k=function(e,r,n){if(!e)return Promise.resolve();var o=_.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function O(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),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 m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=O(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=O(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=O(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const 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,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var G="timeSeriesDecomposition";function W(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=W(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=W(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=W(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),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),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function 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,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.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]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",De={initBase:function(e,t){(t||De.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){De.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Le=De;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 qe={accumulation:j,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:qe,apply:_e,applyModifiers:ke,cleanUpMeasure:Te,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[e.id])},hasActiveModifiers:Oe,getActiveModifier:Ne,initBase:Le.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return qe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return qe[e]&&qe[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Me={};function _e(){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;Me[r.id]=Me[r.id]||{isFirstTime:!0};var u=Me[r.id].isFirstTime;if(Me[r.id].isFirstTime=!1,n&&"object"===Ie(n))return ke({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=Me[r.id].lastReloadTime;if(Me[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(We({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(qe[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=qe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),ke({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 je(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function ke(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),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!Oe({measures:r,properties:n}))return r.forEach((function(e){return Te(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){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Le.isValid(r)||Le.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(qe[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)");qe[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:qe[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 qe[n.type].updateModifier&&qe[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:qe[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||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),$e(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!qe[e.type]}))}(e)?Le.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(qe[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||qe[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Le.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!qe[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,r=e.properties,n=e.layout;return!Ge(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ie(e)||e.disabled||!qe[e.type])&&(void 0===o[e.type]&&(o[e.type]=qe[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):k(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&&qe[e.type]&&qe[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=Ge(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Me[t.id].masterItemSubscriber=Me[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 _e({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Me[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var 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(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},h=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=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var s=i.getValue(e,"qLayoutExclude.quarantine");s[r]||(s[r]={}),s[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function D(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,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},q=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},M=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}}},_=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=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)}},T=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=w(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=w(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},O=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}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,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=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(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 D(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)?D(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)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return L(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 L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}(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)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:l}),h({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"),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,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=O({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=l.defaultDimension,R=void 0===w?M():w,A=l.defaultMeasure,D=void 0===A?_():A;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:D}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),q("qMaxStackedCells",b,v),q("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),I(g,t,n),h.qProperty=g;var L=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:L}),p&&V(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var W={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!W[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(U(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},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),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=G.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",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&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?V(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,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]&&E()(s,r.properties.measureAxes[t[0].axis])):E()(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}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),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 we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,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",De="conditionalColoring",Le="measures",Ie="qDef.conditionalColoring";const qe={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:De,arrayName:Le,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Le,quarantineName:De})}};var Pe="qHyperCubeDef.qMeasures",Me="measures",_e="qHyperCubeDef.qDimensions",ke="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Oe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const He={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Me,itemPath:je}),we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:ke,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Me,itemPath:je}),Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:ke,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},Be={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:qe,conditionalShow:He}})(),n.default})();var pE=Rt(dE.exports);const fE="qHyperCubeDef.qMeasures",mE="measures",hE="qHyperCubeDef.qDimensions",gE="dimensions",bE="qDef.representation",vE="tableRepresentation",yE="qDef.conditionalColoring",xE="conditionalColoring",SE="qMiniChartDef",EE="miniChartDef",CE=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:tE.PixelsDefault:-1})(r,e,t)));return o},wE=({propertyTree:e,hyperCubePath:t})=>{const r=cE.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=CE(o,i,n);return st(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),cE.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),cE.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),cE.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{pE.quarantineArrayProp({properties:e,arrayPath:hE,itemPath:bE,arrayName:gE,quarantineName:vE}),pE.quarantineArrayProp({properties:e,arrayPath:fE,itemPath:bE,arrayName:mE,quarantineName:vE}),pE.quarantineArrayProp({properties:e,arrayPath:fE,itemPath:yE,arrayName:mE,quarantineName:xE}),pE.quarantineArrayProp({properties:e,arrayPath:fE,itemPath:SE,arrayName:mE,quarantineName:EE})})(r.properties),r};const RE=/^q[A-Z]/,AE=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],DE=e=>"object"==typeof e&&null!==e,LE=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!RE.test(e)&&!AE.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>DE(e)?LE(e,`${o}.${t}`):e)):DE(n)&&(e[r]=LE(n,o))})),e),IE=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:rE.Pixels,pixels:e}:{type:rE.FitToContent}}return i},qE=({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)}LE(e.properties)}const a=cE.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(cE.conditionalShow.unquarantine(a.qProperty),i)st(a,"qProperty.totals.show",!1),st(a,"qProperty.usePagination",!0);else{cE.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{pE.unquarantineArrayProp({properties:e,arrayPath:hE,itemPath:bE,arrayName:gE,quarantineName:vE}),pE.unquarantineArrayProp({properties:e,arrayPath:fE,itemPath:bE,arrayName:mE,quarantineName:vE}),pE.unquarantineArrayProp({properties:e,arrayPath:fE,itemPath:yE,arrayName:mE,quarantineName:xE}),pE.unquarantineArrayProp({properties:e,arrayPath:fE,itemPath:SE,arrayName:mE,quarantineName:EE})})(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=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>IE(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>IE(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(st(a,"qProperty.qHyperCubeDef.qDimensions",o),st(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var PE={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function ME(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function _E(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function kE(e){return e>0?0:1}function TE(e){return e.translator.get("Visualizations.Descriptions.Column")}function OE(e){return{measures:{min:kE,max:1e3,description:()=>TE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;ME(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;_E(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:kE,max:1e3,description:()=>TE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return ME(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;_E(o,n)}}}}let NE=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}({}),FE=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const jE=e=>{switch(null==e?void 0:e.type){case"url":return NE.Link;case"image":return NE.Image;case"indicator":return NE.Indicator;case"miniChart":return NE.MiniChart;default:return NE.Text}},zE=({isImagesEnabled:e,supportedFeaturesInIndentMode:t})=>{const{isImagesSupportedInIndentMode:r}=null!=t?t:{};return{uses:"dimensionRepresentationItems.representationType",options(t,n,o){const{qIndentMode:i}=o.properties.qHyperCubeDef,a=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!i&&e||i&&r)&&a.push({value:"image",translation:"Object.Table.Representation.Image"}),a}}},HE=(e,t)=>{if(e||t)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>jE(e.qDef.representation)===NE.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"}]},...t&&{imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{var n,o;if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:i,qNoOfLeftDims:a,qDimensions:s,qIndentMode:l}=r.properties.qHyperCubeDef;let u=!1;null==i||i.indexOf(-1);const c=null!==(n=null==s?void 0:s.indexOf(e))&&void 0!==n?n:1/0;return(null!==(o=null==i?void 0:i.slice(0,a))&&void 0!==o?o:[]).indexOf(c)>-1&&(u=!0),u&&l}}}}}}},BE=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:zE({isImagesEnabled:a,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:i}}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>jE(e.qDef.representation)===NE.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>{var t;return jE(e.qDef.representation)===NE.Link&&(null===(t=e.qDef.representation)||void 0===t?void 0:t.urlPosition)===FE.Dimension}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>{var t;return jE(e.qDef.representation)===NE.Link&&(null===(t=e.qDef.representation)||void 0===t?void 0:t.urlPosition)===FE.Attribute}},...HE(a,i)}},$E=(e,t)=>{var r;const{anything:n}=e,o=null===(r=n.sense)||void 0===r?void 0:r.isUnsupportedFeature,i=!(null!=o&&o("tableImages"))&&t[NE.Image],a=!(null!=o&&o("qMiniChartDef"))&&t[NE.MiniChart],s=!(null!=o&&o("tableIndicators"))&&t[NE.Indicator],l=i&&t[NE.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{var t;const{qIndentMode:r}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!r&&i||r&&l)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),s&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),a&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(r)},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:e=>jE(e.qDef.representation)===NE.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:s?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:a?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var VE,GE={};VE=GE,(()=>{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,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&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(m,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:()=>Te});var o=r(909),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 m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function h(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),m=g(1),h=x(c,f),b=x(d,m);return"".concat(a,"({1<").concat(h,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function E(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 w={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(h(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:m,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return m(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:E,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return E(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:h,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 D=i().bind(null,!0),L={},I=Array.isArray;function q(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function P(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function _(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=P(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(e,t){var r=!0;if(q(e)&&q(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){k(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?D({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);k(i,a)||M(t,o)||(P(a)?n.push({op:"add",path:s,value:i}):q(i)&&q(a)?n=n.concat(L.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&P(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,o))return n;if(!P(t[0])&&P(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var 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(L.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){P(t[o])&&!M(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=_(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,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(q(a)&&q(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!M(r,e)&&delete r[e]})),D(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=_(e,t.from);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])}))},L.clone=function(e){return D({},e)},L.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},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):D(e,t)};const T=L,O=function(e,t,r){if(!e)return Promise.resolve();var n=T.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()};var N="accumulation";function F(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 H={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,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),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 m=w.getDimComp(u,1),h=w.getDimComp(u,0),g=w.getAggrComp(f,m,h);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.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!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=F(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=F(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(N))return!1;var i=F(t,e);return i&&!i.disabled}}}};var B="movingAverage";function $(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===B)return r[n]}function V(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===B)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var G={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const 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,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=w.getNumDimensions({properties:o,layout:i}));var c=s(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),m=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",m);else{var h=w.getRangeComp("RangeSum",m),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(h," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:i})){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,G)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(V(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(V(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(V(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(V(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(V(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(V(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(B))return!1;var i=$(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function Y(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function K(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const J={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,X),""===e.decomposition&&t&&(e.decomposition=w.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!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(K(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:l.OPTIONS},steps:{refFn:function(t){return"".concat(K(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=Y(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=Y(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(U))return!1;var i=Y(t,e);return i&&!i.disabled}}}};var Z="difference";function Q(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===Z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var ee={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const te={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,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),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),m=w.getDimComp(u,0),h=w.getAggrComp(p,f,m);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(ee).forEach((function(t){void 0===e[t]&&(e[t]=ee[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Z)return r[n]}(t,e);return i&&!i.disabled}}}},re=0,ne=1,oe=2,ie=0,ae=1,se=2;var le="normalization";function ue(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===le)return r[n]}function ce(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===le)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function de(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var pe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:se,selectionScope:oe};function fe(e){return 2===e?"{1}":""}function me(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function he(e,t){return 0===e&&t>1||2===e?"Total":""}function ge(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const be={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,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=fe(t),l=me(t,r,n),u=""===s&&""===l?"":s||l,c=he(o,i),d=ge(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(pe).forEach((function(t){void 0===e[t]&&(e[t]=pe[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!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ce(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:oe,options:function(r){return function(e,t,r){var n=[{value:re,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:ne,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:oe,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=de(t,0);t.splice(r,1)}return t}(ue(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ce(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 ue(t,e).selectionScope===ne}},value:{refFn:function(t){return"".concat(ce(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return ue(t,e).selectionScope===ne}},dimensionalScope:{refFn:function(t){return"".concat(ce(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:se,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:ie,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:ae,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:se,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=de(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=de(t,1);t.splice(r,1)}return t}(ue(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ce(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(ue(t,e).dimensionalScope||0)===ie&&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(le))return!1;var i=ue(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:fe,getFieldSelectionComp:me,getTotalComp:he,getSelectedDimComp:ge};var ve="library id deleted",ye="qDef.qDef",xe="qDef.base.qDef",Se="qLibraryId",Ee="qDef.base.qLibraryId",Ce="qDef.qLabel",we="qDef.qLabelExpression",Re="qDef.base.qLabel",Ae="qDef.base.qLabelExpression",De="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",Ie="qDef.base";const qe={getExpression:function(e){var t=s(e,xe);return void 0!==t?t:s(e,ye)},getExpressionRef:function(e){return void 0!==s(e,xe)?xe:ye},getLibraryIdRef:function(e){return s(e,Ee)?Ee:Se},getLibraryId:function(e){return s(e,Ee)||s(e,Se)},getLabelRef:function(e){return s(e,Ie)?Re:Ce},getLabelExpressionRef:function(e){return s(e,Ie)?Ae:we}};var Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(a(e,xe,s(e,ye)),a(e,Ee,s(e,Se)),a(e,Re,s(e,Ce)),a(e,Ae,s(e,we)))},restoreBase:function(e){Pe.isValid(e)&&(a(e,ye,s(e,xe)),a(e,Se,s(e,Ee)),a(e,Ce,s(e,Re)),a(e,we,s(e,Ae)),s(e,De)&&s(e,Le)&&a(e,De,s(e,Le)),delete e.qDef.base)},isValid:function(e){var t=s(e,xe),r=s(e,Ee);return void 0!==t||void 0!==r}};const Me=Pe;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 ke={accumulation:H,movingAverage:W,difference:te,normalization:be,timeSeriesDecomposition:J};const Te={modifiers:ke,apply:Ne,applyModifiers:Fe,cleanUpMeasure:je,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:ze,getActiveModifier:He,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:qe,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Ve(e);Je({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||rt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Be};var Oe={};function Ne(){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;Oe[t.id]=Oe[t.id]||{isFirstTime:!0};var u=Oe[t.id].isFirstTime;if(Oe[t.id].isFirstTime=!1,r&&"object"===_e(r))return Fe({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=Oe[t.id].lastReloadTime;if(Oe[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),ze({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Xe({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Je({modifiers:Ve(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);We(r);var n=nt(r);return Ze({model:t}).then((function(o){return Qe({libraryIds:n,model:t}).then((function(n){return m&&function(e){var t=e.properties;$e(t).forEach((function(e){return function(e){var t=e.measure;if(Xe({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(r++,"object"!==_e(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&&Ye(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),Fe({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"===_e(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=nt(r);return ot({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return $e(r).forEach((function(e){return je(e)})),tt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function Fe(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),We(n);var p=nt(n);return ot({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=$e(r)),!t.length)return Promise.resolve();if(!o&&!ze({measures:t,properties:r}))return t.forEach((function(e){return je(e)})),Promise.resolve();var l=o?void 0:nt(r);return Ze({model:n,dimensionAndFieldList:a}).then((function(e){return Qe({libraryIds:l,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Je({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Me.isValid(t)||Me.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(a++,"object"!==_e(ke[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)");ke[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:ke[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=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=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 ke[r.type].updateModifier&&ke[r.type].updateModifier(r,n.qHyperCubeDef);var a=qe.getExpression(t),s=""===a?a:ke[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||Be(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Be(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Ue(t)):je(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?tt({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function je(e){!function(e){var t=Ve(e);return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&!ke[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ue(e)}function ze(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Je({modifiers:Ve(e),properties:r,layout:n})}))}function He(e){var t=Ve(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 Be(e){var t=He(e);return!t||ke[t.type].enableTotalsFunction(e)}function $e(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Ve(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ge(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function We(e){$e(e).forEach((function(e){return function(e){var t=He(e);t&&(void 0!==t.outputExpression&&Ge(t)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Ue(e){var t=Ve(e);Array.isArray(t)&&t.forEach((function(t){"object"===_e(t)&&(t.disabled||!ke[t.type]&&Ge(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ye(e){return e.base||e.qDef&&e.qDef.base}function Ke(e){var t=Ye(e);return e.qLibraryId||t&&t.qLibraryId}function Xe(e){var t=e.measure,r=e.properties,n=e.layout;return!Ke(t)&&Je({modifiers:Ve(t),properties:r,layout:n})}function Je(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==_e(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ze(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 Qe(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 et(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function tt(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),et)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),et)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),et)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),et);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):O(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function rt(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function nt(e){var t=$e(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Ve(t);if(Je({modifiers:n,properties:e})){var i=Ke(t);i&&r.push(i),o=o||rt({modifiers:n,properties:e})}})),s(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function ot(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==ve&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[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(ve),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 Ne({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}VE.default=n.default,Object.defineProperty(VE,"__esModule",{value:!0})})();var WE=Rt(GE);const UE={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},YE={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}},KE=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!WE.hasActiveModifiers({measures:[e],properties:t.properties})||WE.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!==(n=e.anything.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},XE={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:rE.Auto,translation:"Common.Auto"},{value:rE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:rE.Pixels,translation:"Object.Table.Column.Pixels"},{value:rE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rE.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rE.Pixels},change(e){e.qDef.columnWidth&&(e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(tE.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rE.Percentage},change(e){e.qDef.columnWidth&&(e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(tE.PercentageMax,e.qDef.columnWidth.percentage)))}}},JE=()=>({...UE,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}]},...YE,...XE}),ZE={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"}},QE=e=>{var t,r;const n=null===(t=e.anything.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r?void 0:r.call(t,"modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var t;return n?!!e.qLibraryId:!!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},inlineMeasure:{component:"inline-measure",show:e=>{var t;return n?!e.qLibraryId:!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:KE(e)}},eC=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:ZE},presentation:{type:"items",translation:"properties.presentation",items:{...JE(),...BE(e)}}}}}),tC=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:QE(e)},presentation:{type:"items",translation:"properties.presentation",items:{...JE(),...$E(e,{[NE.Image]:e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[NE.Indicator]:!0,[NE.MiniChart]:!0})}}}}}),rC=e=>({...eC(e),...tC(e)}),nC=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{...rC(e)}}),oC=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...rC(e)}},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}}}}}),iC={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}},aC=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show(e){var t;return!(null!==(t=e.totals)&&void 0!==t&&t.show)}},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},sC=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,s=o.theme.current(),l=r(s,a);return{color:"transparent"===l?"none":l}}}),lC=(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},uC=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",s=null!==(i=t.fontFamilies)&&void 0!==i?i:[],l=Array.from(new Set([e,a,...s])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...l.sort().map((e=>lC(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ae(n).filter((e=>!l.includes(e))).map((e=>lC(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),cC=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],dC=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>lC(e,!1)))],l=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...cC.filter((e=>!a.includes(e))).map((e=>lC(e,!1)))];return[...s,...l.length>1?l:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),pC=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:uC({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:dC({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:sC(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:sC(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?CS.WHITE:CS.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),fC=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:sC(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:sC(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),mC=(e,t,r)=>{var n,o,i,a,s;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureValues":return null===(i=e.object)||void 0===i||null===(i=i.straightTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i[r];case"totalValues":return null===(a=e.object)||void 0===a||null===(a=a.straightTableV2)||void 0===a||null===(a=a.total)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"nullValues":return null===(s=e.object)||void 0===s||null===(s=s.straightTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},hC=e=>{var t;return null===(t=e.grid)||void 0===t||null===(t=t.zebraStripes)||void 0===t?void 0:t.show},gC={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){var t,r;null!==(null==e||null===(t=e.content)||void 0===t?void 0:t.rowHeight)&&void 0!==(null==e||null===(r=e.content)||void 0===r?void 0:r.rowHeight)&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==(null==e?void 0:e.content)&&(e.content.rowHeight=void 0)}},bC=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),...gC},border:sC("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:CS.BORDER_MEDIUM})),divider:sC("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:CS.BORDER_HEAVY}))}}}}),vC=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},yC={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:vC,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:vC,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},xC=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,SC=({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,defaultValue:[],items:{headerSection:pC({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:mC,disableNoneCallback:xC}),dimensionValueSection:pC({section:"dimensionValues",translator:t,flags:e,getThemeValue:mC}),measureValueSection:pC({section:"measureValues",translator:t,flags:e,getThemeValue:mC}),totalRowSection:pC({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:mC,disableNoneCallback:xC}),nullValues:fC({section:"nullValues",fallbackBackground:CS.NULL_VALUE_BACKGROUND,getThemeValue:mC}),grid:bC(e),hoverEffectSection:yC,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:hC,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:hC,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:hC,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:hC,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),EC=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[SC(e),aC(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",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:"-"}]},...iC}}),CC={uses:"sorting"},wC={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},RC=e=>{var t;const{flags:r}=e;return{type:"items",component:"accordion",items:{data:(null===(t=r.isPreviewToggleEnabled)||void 0===t?void 0:t.call(r,"IM_7101_PREVIEW_SIMPLE_MODE_OFF"))||!1?oC(e):nC(e),sorting:CC,addOns:wC,settings:EC(e)}}};function AC(e){var t,r;return{definition:RC(e),exploration:PE,data:OE(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return qE({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>wE({propertyTree:e,hyperCubePath:t})}}const DC=(t,r)=>e((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{var i;const a=n?o:o-e.qDimensionInfo.length,s=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${a}/qDef/columnWidth`,l=null===(i=e[n?"qDimensionInfo":"qMeasureInfo"].at(a))||void 0===i?void 0:i.columnWidth,u=l?{qPath:s,qOp:"Replace",qValue:JSON.stringify({...l,...r})}:{qPath:s,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([u],!0)})(t,r)),[t,r]),LC=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),IC=[];for(let e=0;e<256;++e)IC.push((e+256).toString(16).slice(1));let qC;const PC=new Uint8Array(16);var MC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _C(e,t,r){var n,o,i,a;if(MC.randomUUID&&!e)return MC.randomUUID();const s=null!==(n=null!==(o=(e=e||{}).random)&&void 0!==o?o:null===(i=(a=e).rng)||void 0===i?void 0:i.call(a))&&void 0!==n?n:function(){if(!qC){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");qC=crypto.getRandomValues.bind(crypto)}return qC(PC)}();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=15&s[6]|64,s[8]=63&s[8]|128,function(e,t=0){return(IC[e[t+0]]+IC[e[t+1]]+IC[e[t+2]]+IC[e[t+3]]+"-"+IC[e[t+4]]+IC[e[t+5]]+"-"+IC[e[t+6]]+IC[e[t+7]]+"-"+IC[e[t+8]]+IC[e[t+9]]+"-"+IC[e[t+10]]+IC[e[t+11]]+IC[e[t+12]]+IC[e[t+13]]+IC[e[t+14]]+IC[e[t+15]]).toLowerCase()}(s)}const kC=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:_C()},TC=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:kC()},OC=e=>"number"==typeof e&&!Number.isNaN(+e),NC=e=>OC(e.qNum),FC=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);function jC(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 zC(e,t,r){return t=VC(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WC()?Reflect.construct(t,r||[],VC(e).constructor):t.apply(e,r))}function HC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BC(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,KC(n.key),n)}}function $C(e,t,r){return t&&BC(e.prototype,t),r&&BC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function VC(e){return VC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VC(e)}function GC(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UC(e,t)}function WC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WC=function(){return!!e})()}function UC(e,t){return UC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UC(e,t)}function YC(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)||function(e,t){if(e){if("string"==typeof e)return jC(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)?jC(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KC(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+""}function XC(e){return XC="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},XC(e)}var JC={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:ZC(e),value:ZC(t),useEqualSign:r}}(r,o,i))}})),t}};function ZC(e){try{return decodeURIComponent(e)}catch(t){return e}}function QC(e){if(!(this instanceof QC))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return JC.fromSearchString(t.search)}}})}function ew(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}QC.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},QC.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=ew((t=e[n]).key),t.value?r+="=".concat(ew(t.value)):r+=t.useEqualSign?"=":"";return r};var tw,rw=function(){return $C((function e(t){HC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),nw=function(){return $C((function e(){HC(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new rw(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),ow=function(e){return e>=0&&e<=1114111},iw=function(e){return e.match(/[\s]/)},aw=function(){function e(){return HC(this,e),zC(this,e,arguments)}return GC(e,nw),$C(e,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!iw(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return ow(a)?String.fromCharCode(a):"�"}}])}(),sw=function(){function e(t,r){HC(this,e),this._key=t,this._value=r}return $C(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}])}(),lw=function(){function e(){HC(this,e)}return $C(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return sw.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return sw.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||sw.newInstanceIfNeeded(e,t,this._value)}}])}(),uw=function(){return $C((function e(){HC(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new lw);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),cw=function(){var e,t,r,n=[],o=[],i=new uw;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),dw=function(){function e(){return HC(this,e),zC(this,e,arguments)}return GC(e,nw),$C(e,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,cw.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=cw.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&ow(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&ow(n)?String.fromCharCode(n):null}}])}(),pw=function(){function e(){return HC(this,e),zC(this,e,arguments)}return GC(e,nw),$C(e,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),ow(o))?String.fromCharCode(o):(e.reset(),null)}}])}(),fw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(tw=document.createElement("div"));var mw=Array.prototype.indexOf,hw=[",",".","_"," "],gw=[",",".","-","_"," "],bw={width:["%"],height:["%"]},vw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},yw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":vw.image,"background-color":vw.color,"border-color":vw.color,"border-image":vw.image,color:vw.color,icon:vw.image,"list-style-image":vw.image,"outline-color":vw.color},xw={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Sw(e,t,r){var n;if(t){if(mw)return mw.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 Ew(e){if(null==e)return"";var t,r=document.createTextNode(e);return tw.appendChild(r),t=tw.innerHTML,tw.removeChild(r),t}function Cw(e,t,r){var n,o,i,a,s,l,u,c,d;for(e=Rw(e).toLowerCase(),t=Rw(t),i=0;i<xw.attr_name.length;i++)if(e.match(xw.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<xw.attr_val.length;i++)if(t.toLowerCase().match(xw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=bw[e])||(n=gw),o="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).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]/)&&Sw(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function ww(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=Rw(e).toLowerCase(),t=Rw(t),Sw(e,xw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<xw.css_val.length;n++)if(t.toLowerCase().indexOf(xw.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=yw[e])||(o=vw.default),i="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).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]/)&&Sw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Rw(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new dw,new pw,new aw];!a;){n=r;for(var l=0;l<s.length;l++)(i=s[l].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var Aw=[],Dw=0;Dw<255;Dw++)Aw[Dw]=Dw>=48&&Dw<=57||Dw>=65&&Dw<=90||Dw>=97&&Dw<=122?null:Dw.toString(16);var Lw=function(e){return Ew(e.unsafe)},Iw=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=ww(t,r[t],!0),i+=ww(t,r[t],!0),o[t]=n[t]);return e.map?o:i},qw=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=Cw(i,t[i],!0),o+=Cw(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function Pw(e,t){throw new Error(t)}var Mw={canonicalize:Rw,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===XC(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Lw(e):"css"===e.context?(null!=e.map&&"object"!==XC(e.map)&&Pw(this,"Invalid parameter type"),Iw(e)):"attr"===e.context?(null!=e.map&&"object"!==XC(e.map)&&Pw(this,"Invalid parameter type"),qw(e)):void Pw(this,"Invalid parameter type")},encodeForAttr:Cw,encodeForAttr2:function(e){return Cw("nonsens",e,!0)},encodeForCSS:ww,encodeForHref:function(e){Rw(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new QC(e),r=QC.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+QC.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,s;for(t||(t=hw),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Sw(o,t)>=0||null==Aw[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),s+="\\u".concat(a).concat(n.toUpperCase())));return s},encodeForHTML:Ew,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Rw(t).toLowerCase():Pw(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,s=function(e){var t,r=YC(null!==(t=fw.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),l=s.mimeType,u=s.encoding,c=s.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(l,u,c);return"image/svg+xml"===l?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";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(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const _w=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},kw=(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"}}},Tw=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Mw.isSafeDataURL(t)?{type:NE.Image,url:t,text:e,imageSize:r,resolvedImagePosition:kw(n,a),labelStructure:o,imageBox:i}:{type:NE.Text,url:void 0,text:e,labelStructure:o},Ow=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:NE.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),s=i?r.qYMin:e.qMiniChart.qMin,l=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(s),Math.abs(l));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,s),maxY:Math.max(0,l)}:{minY:s,maxY:l}})(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:NE.MiniChart,text:n,miniChart:a}},Nw=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===FE.Attribute||null==r?void 0:r.urlLabel},Fw=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:NE.Link,url:Mw.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:NE.Text,url:void 0,text:t,labelStructure:e}}},jw=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{var c,d,p,f,m,h;const g=jE(t),b=s(e);return g!==NE.Image||!u[NE.Image]||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"tableImages")?g===NE.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===FE.Attribute){var a;const i=Nw(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return Fw({labelStructure:n,text:o||i||"",url:i})}if(i===FE.Dimension){var s,l;const i=Nw(null!==(s=r.urlLabel)&&void 0!==s?s:-1,e,t)||o;return n&&(n.maskedValue=i),Fw({text:i,labelStructure:n,url:null!==(l=null==n?void 0:n.originalValue)&&void 0!==l?l:o})}return{type:NE.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,b):g!==NE.Indicator||!u[NE.Indicator]||null!==(p=n.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"tableIndicators")?g!==NE.MiniChart||!u[NE.MiniChart]||null!==(m=n.anything.sense)&&void 0!==m&&null!==(h=m.isUnsupportedFeature)&&void 0!==h&&h.call(m,"qMiniChartDef")?{type:NE.Text,url:void 0,text:b,labelStructure:a}:Ow(e,t,i,b):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:NE.Indicator,url:void 0,text:r,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:t}})(t,o,b):((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=null!=t?t:{};if("url"===l){var d,p;const t=null===(d=_w(null!==(p=r.imageUrl)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText;return i&&(i.maskedValue=null!=t?t:""),Tw({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){var f,m,h;const t=i?i.originalValue:n;if(-1===r.imageLabel)return Tw({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=null!==(f=null===(m=_w(null!==(h=r.imageLabel)&&void 0!==h?h:-1,e))||void 0===m?void 0:m.qText)&&void 0!==f?f:n;return Tw({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:NE.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,b,l,a)},zw=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,Hw=(e,t,r)=>{var n,o,i;return null!==(n=null!==(o=e||null===(i=r.nullValueRepresentation)||void 0===i?void 0:i.text)&&void 0!==o?o:t.qText)&&void 0!==n?n:"-"},Bw=1e4;function $w(e,t){return[...t].reverse().find((t=>t*e<=Bw))||Math.floor(Bw/e)}function Vw(e,t){var r;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[n,o,i,a,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(i&&(n&&o||!a&&!n)){if(a||"top"===s)return{atTop:!0,atBottom:!1};if("bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function Gw(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow.at(n))||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function Ww(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return OC(null==r?void 0:r.qNum)}function Uw(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 Yw=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const Kw=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=n.length===a?n:Array.from(Array(a).keys()),{visibleColumnsOrder:l,visibleColumnIndexes:u}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const s=e<n,{qError:l}=s?t[e]:r[e-n],u=7005===(null==l?void 0:l.qErrorCode);return u?s?i++:a++:o[e]=s?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(s,o,i);return l.map(((n,o)=>function(e,t,r,n,o,i){const{qDimensionInfo:a,qMeasureInfo:s,qEffectiveInterColumnSortOrder:l}=e.qHyperCube,u=a.length,c=t<u,d=c?a[t]:s[t-u],p=c&&a[t].qGrouping===iE.Cyclic,f=t===l[0];let m,h,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:E}=d;if(c){var C;const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles,b=null!==(C=e.qLocked)&&void 0!==C&&C,v=n,({qDimensionType:m}=e)}else({qMiniChart:h}=d);const{qFallbackTitle:w,textAlign:R,qAttrExprInfo:A,qSortIndicator:D,qReverseSort:L,qApprMaxGlyphCount:I,columnWidth:q,qLibraryId:P}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:P,pageColIdx:r,qApprMaxGlyphCount:I,qReverseSort:L,columnWidth:null!=q?q:{type:rE.Auto},selectionColIdx:v,isActivelySorted:f,id:TC(d),label:w,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:A.map((e=>e.id)),qAttrExprInfoIndex:LC(d),sortDirection:D&&"N"!==D?D:"A",totalInfo:Gw(e,c,r,n),...!c&&{isTotalNumeric:Ww(e,n)},...Uw(R,m,c,o,i),representation:S,conditionalColoring:c?void 0:E,qMiniChart:h}}(e,n,o,u[n],t,r)))};const Xw=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},Jw=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Xw(e,t)};var Zw={exports:{}};
91
103
  /*!
92
104
  * CSSJanus. https://github.com/cssjanus/cssjanus
93
105
  *
@@ -106,4 +118,4 @@ function $i(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldFo
106
118
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
107
119
  * See the License for the specific language governing permissions and
108
120
  * limitations under the License.
109
- */!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",l="(^|[^a-zA-Z])",s="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+r+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",v="(?!"+m+a+"\\))",b="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),w=new RegExp("("+s+g+"[^;}]+;?)","gi"),C=new RegExp("("+s+"[^\\}]*?})","gi"),E=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),I=new RegExp(l+"(left)"+h+v+g,"gi"),D=new RegExp(l+"(right)"+h+v+g,"gi"),A=new RegExp(l+"(left)"+b,"gi"),P=new RegExp(l+"(right)"+b,"gi"),M=new RegExp(l+"(ltr)"+b,"gi"),q=new RegExp(l+"(rtl)"+b,"gi"),T=new RegExp(l+"([ns]?)e-resize","gi"),k=new RegExp(l+"([ns]?)w-resize","gi"),L=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),O=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),N=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),_=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),z=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),j=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),F=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),$=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),V=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function W(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 U(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 G(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?U(n)+" / "+U(o):U(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(w,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),l=new n(S,t);return r=l.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(M,"$1"+e).replace(q,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(A,"$1"+e).replace(P,"$1left").replace(x,"right")),r=r.replace(E,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(I,"$1"+e).replace(D,"$1left").replace(x,"right").replace(T,"$1$2"+e).replace(k,"$1$2e-resize").replace(x,"w-resize").replace(z,G).replace(j,K).replace(F,J).replace(H,J).replace(B,K).replace($,X).replace(V,X).replace(L,"$1$2$3$8$5$6$7$4$9").replace(O,"$1$2$3$8$5$6$7$4$9").replace(N,W).replace(_,W),r=i.detokenize(a.detokenize(l.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(Rb,Rb.exports);var Ib=Ct(Rb.exports),Db="comm",Ab="rule",Pb="decl",Mb=Math.abs,qb=String.fromCharCode;function Tb(e){return e.trim()}function kb(e,t,r){return e.replace(t,r)}function Lb(e,t,r){return e.indexOf(t,r)}function Ob(e,t){return 0|e.charCodeAt(t)}function Nb(e,t,r){return e.slice(t,r)}function _b(e){return e.length}function zb(e,t){return t.push(e),e}var jb,Fb,Hb,Bb,$b=1,Vb=1,Wb=0,Ub=0,Gb=0,Yb="";function Kb(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:$b,column:Vb,length:a,return:"",siblings:l}}function Xb(){return Gb=Ub>0?Ob(Yb,--Ub):0,Vb--,10===Gb&&(Vb=1,$b--),Gb}function Jb(){return Gb=Ub<Wb?Ob(Yb,Ub++):0,Vb++,10===Gb&&(Vb=1,$b++),Gb}function Zb(){return Ob(Yb,Ub)}function Qb(){return Ub}function ey(e,t){return Nb(Yb,e,t)}function ty(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 ry(e){return Tb(ey(Ub-1,iy(91===e?e+2:40===e?e+1:e)))}function ny(e){for(;(Gb=Zb())&&Gb<33;)Jb();return ty(e)>2||ty(Gb)>3?"":" "}function oy(e,t){for(;--t&&Jb()&&!(Gb<48||Gb>102||Gb>57&&Gb<65||Gb>70&&Gb<97););return ey(e,Qb()+(t<6&&32==Zb()&&32==Jb()))}function iy(e){for(;Jb();)switch(Gb){case e:return Ub;case 34:case 39:34!==e&&39!==e&&iy(Gb);break;case 40:41===e&&iy(e);break;case 92:Jb()}return Ub}function ay(e,t){for(;Jb()&&e+Gb!==57&&(e+Gb!==84||47!==Zb()););return"/*"+ey(t,Ub-1)+"*"+qb(47===e?e:Jb())}function ly(e){for(;!ty(Zb());)Jb();return ey(e,Ub)}function sy(e){return function(e){return Yb="",e}(uy("",null,null,null,[""],e=function(e){return $b=Vb=1,Wb=_b(Yb=e),Ub=0,[]}(e),0,[0],e))}function uy(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,w=n,C=y;g;)switch(m=b,b=Jb()){case 40:if(108!=m&&58==Ob(C,d-1)){-1!=Lb(C+=kb(ry(b),"&","&\f"),"&\f",Mb(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=ry(b);break;case 9:case 10:case 13:case 32:C+=ny(m);break;case 92:C+=oy(Qb()-1,7);continue;case 47:switch(Zb()){case 42:case 47:zb(dy(ay(Jb(),Qb()),t,r,s),s),5!=ty(m||1)&&5!=ty(Zb()||1)||!_b(C)||" "===Nb(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*h:l[u++]=_b(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=kb(C,/\f/g,"")),f>0&&(_b(C)-d||0===h&&47===m)&&zb(f>32?py(C+";",n,r,d-1,s):py(kb(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(zb(w=cy(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)uy(C,t,w,w,x,i,d,l,S);else{switch(p){case 99:if(110===Ob(C,3))break;case 108:if(97===Ob(C,2))break;default:c=0;case 100:case 109:case 115:}c?uy(e,w,w,n&&zb(cy(e,w,w,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S):uy(C,w,w,w,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+_b(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Xb())continue;switch(C+=qb(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(_b(C)-1)*v,v=1;break;case 64:45===Zb()&&(C+=ry(Jb())),p=Zb(),c=d=_b(y=C+=ly(Qb())),b++;break;case 45:45===m&&2==_b(C)&&(h=0)}}return i}function cy(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=function(e){return e.length}(f),h=0,g=0,v=0;h<n;++h)for(var b=0,y=Nb(e,p+1,p=Mb(g=a[h])),x=e;b<m;++b)(x=Tb(g>0?f[b]+" "+y:kb(y,/&\f/g,f[b])))&&(s[v++]=x);return Kb(e,t,r,0===o?Ab:l,s,u,c,d)}function dy(e,t,r,n){return Kb(e,t,r,Db,qb(Gb),Nb(e,2,-2),0,n)}function py(e,t,r,n,o){return Kb(e,t,r,Pb,Nb(e,0,n),Nb(e,n+1,-1),n,o)}function fy(e,t,r){switch(e.type){case"@import":case Pb:case Db:return e.return=e.return||e.value;case Ab:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Db&&(e.children=e.value)}))}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),fy);return _b(n)?e.return=e.value+"{"+n+"}":""}function my(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===Ab&&(!e.parent||"@media"===e.parent.type||e.parent.type===Ab)){var o=Ib.transform(fy(e));e.children=o?sy(o)[0].children:[],e.return=""}}Object.defineProperty(my,"name",{value:"stylisRTLPlugin"}),function(e){e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive"}(jb||(jb={})),function(e){e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows"}(Fb||(Fb={})),function(e){e.A="ascending",e.D="descending"}(Hb||(Hb={})),function(e){e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2"}(Bb||(Bb={}));const hy=[0,0],gy=Xm().palette,vy=(gy.primary.light,jb.Selected,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),by=4/3,yy="12px",xy="600",Sy="Source Sans Pro, sans-serif",wy={height:"auto",fontSize:yy,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"}},Cy={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:xy},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},Ey=25e4,Ry=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var l;const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(Mh.PixelsMax,Math.max(Mh.PixelsMin,m)),i-=n[a]};switch(s){case qh.Pixels:m=u||Mh.PixelsDefault,h();break;case qh.Percentage:m=(c||Mh.PercentageDefault)/100*t,h();break;case qh.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===cg.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case qh.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(Mh.AutoMinTable,e)}))}return n},Iy=(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"]})},Dy=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},Ay=e=>e.ctrlKey||e.metaKey,Py=e=>e.shiftKey&&Ay(e),My=e=>[Ah.Left,Ah.Right,Ah.Up,Ah.Down].includes(e),qy=e=>e.shiftKey&&My(e.key),Ty=e=>{return t=e.key,(My(t)||[Ah.Home,Ah.End,Ah.PageUp,Ah.PageDown].includes(t))&&!Py(e);var t},ky=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s=new Map;if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s=new Map(n)}return s=((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))})(s,i,l),Iy(a,n,s),s.size?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(s.values()),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:s,colIdx:-1})},Ly=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;if(!(l||"key"in c&&qy(c)))return e;-1===i&&(null==n||n.begin(["/qHyperCubeDef"]));const d=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&qy(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===Ah.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),l=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=l;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(a,o,s,c,l);return Iy(u,o,d),{...e,rows:d,colIdx:null!==(r=null==l?void 0:l.selectionColIdx)&&void 0!==r?r:s.selectionColIdx,isSelectMultiValues:!0}},Oy=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},Ny=(e,t)=>{var r;switch(t.type){case Fb.Select:return ky(e,t.payload);case Fb.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 Fb.SelectMouseUp:return((e,t)=>Oy(e.isSelectMultiValues||e.firstCell!==t.cell?e:ky(e,t)))(e,t.payload);case Fb.SelectMultiAdd:return Ly(e,t.payload);case Fb.SelectMultiEnd:return Oy(e);case Fb.Reset:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:new Map,colIdx:-1};case Fb.Clear:return e.rows.size?{...e,rows:new Map}:e;case Fb.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},_y=4/3,zy=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function jy(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const Fy=(e,t)=>e?{borderBottomColor:Zm.DARK_MODE_BORDER,borderRightColor:Zm.DARK_MODE_BORDER,borderLeftColor:Zm.DARK_MODE_BORDER,borderTopColor:Zm.DARK_MODE_BORDER}:{borderLeftColor:Zm.BORDER_MEDIUM,borderRightColor:Zm.BORDER_MEDIUM,borderTopColor:Zm.BORDER_HEAVY,borderBottomColor:t?Zm.BORDER_HEAVY:Zm.BORDER_LIGHT},Hy=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*_y+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},By=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},$y=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:zy(null==r?void 0:r.fontColor)?jy(Zm.TEXT,t,null==r?void 0:r.fontColor):i||Zm.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...Fy(t.background.isDark,n)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function Vy(e,t,r){var n,o,i;const a=null===(n=By(e))||void 0===n?void 0:n.header,l=$y("header",t,a,r);return l.background=(e=>{if(void 0===e)return;const t=re(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),l.hoverBackground=th(null!==(o=l.background)&&void 0!==o?o:Zm.WHITE,Th),l.activeBackground=th(null!==(i=l.background)&&void 0!==i?i:Zm.WHITE,kh),l}const Wy=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>e in Cy&&Object.assign(t,Cy[e]))),t};function Uy(e,t,r){var n;const o={};let i={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText,a=n&&oh(n);a&&"none"!==a&&(o[r[t]]=a),i=n?Wy(n,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=Qm(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const Gy=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},Yy=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=Gy(e,null==t?void 0:t.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},Ky=(e,t,r,n=Zm.WHITE)=>{var o;const{backgroundColor:i,backgroundFromStyling:a,sheetColorFromCSS:l}=Yy(e,t,r);return null!==(o=sh(a,i,l,n))&&void 0!==o?o:n},Xy=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return yy}},Jy=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",Zy=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?xy:"normal",Qy=e=>!1===e?1:3,ex=e=>parseInt(null!=e?e:wy.fontSize,10)*by,tx=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",rx=(e,t,r,n,o)=>{var i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,w,C,E,R,I,D,A,P,M,q,T,k,L,O,N,_,z,j,F,H,B,$,V,W,U,G,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,le,se,ue,ce,de,pe,fe,me,he,ge,ve,be,ye;const{header:xe,dimensionValues:Se,measureValues:we,totalValues:Ce,nullValues:Ee,grid:Re,content:Ie}=null!==(i=By(t))&&void 0!==i?i:{},De=!0===t.usePagination?Zm.WHITE:Zm.TRANSPARENT,Ae=Ky(n,xe,"object.straightTableV2.dimension.label.name.backgroundColor",De),Pe=null!==(a=null!==(l=null===(s=o.viewState)||void 0===s?void 0:s.maxLineCount)&&void 0!==l?l:null==Ie?void 0:Ie.rowHeight)&&void 0!==a?a:n.getStyle("object.straightTableV2","grid","lineClamp"),Me={header:{fontFamily:null!==(u=null!==(c=null!==(d=null==xe?void 0:xe.fontFamily)&&void 0!==d?d:n.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==c?c:r.head.fontFamily)&&void 0!==u?u:Sy,fontSize:Xy(null!==(p=null!==(f=null==xe?void 0:xe.fontSize)&&void 0!==f?f:n.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==p?p:r.head.fontSize),fontStyle:Jy(null==xe?void 0:xe.fontStyle),fontWeight:Zy(null==xe?void 0:xe.fontStyle,xy),textDecoration:tx(null==xe?void 0:xe.fontStyle),color:null!==(m=null!==(h=null!==(g=Gy(n,null==xe?void 0:xe.fontColor))&&void 0!==g?g:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==h?h:r.head.color)&&void 0!==m?m:Zm.TEXT,background:Ae},headerMenuHoverBackground:th(Ae,Th),headerMenuActiveBackground:th(Ae,kh),dimension:{values:{fontFamily:null!==(v=null!==(b=null!==(y=null==Se?void 0:Se.fontFamily)&&void 0!==y?y:n.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==b?b:r.body.fontFamily)&&void 0!==v?v:Sy,fontSize:Xy(null!==(x=null!==(S=null!==(w=null==Se?void 0:Se.fontSize)&&void 0!==w?w:null==Ie?void 0:Ie.fontSize)&&void 0!==S?S:n.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==x?x:r.body.fontSize),fontStyle:Jy(null==Se?void 0:Se.fontStyle),fontWeight:Zy(null==Se?void 0:Se.fontStyle,"normal"),textDecoration:tx(null==Se?void 0:Se.fontStyle),color:null!==(C=null!==(E=null!==(R=null!==(I=Gy(n,null==Se?void 0:Se.fontColor))&&void 0!==I?I:Gy(n,null==Ie?void 0:Ie.fontColor))&&void 0!==R?R:n.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==E?E:r.body.color)&&void 0!==C?C:Zm.TEXT,background:null!==(D=null!==(A=Yy(n,Se,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==A?A:r.body.background)&&void 0!==D?D:Zm.TRANSPARENT}},measure:{values:{fontFamily:null!==(P=null!==(M=null!==(q=null==we?void 0:we.fontFamily)&&void 0!==q?q:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==M?M:r.body.fontFamily)&&void 0!==P?P:Sy,fontSize:Xy(null!==(T=null!==(k=null!==(L=null==we?void 0:we.fontSize)&&void 0!==L?L:null==Ie?void 0:Ie.fontSize)&&void 0!==k?k:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==T?T:r.body.fontSize),fontStyle:Jy(null==we?void 0:we.fontStyle),fontWeight:Zy(null==we?void 0:we.fontStyle,"normal"),textDecoration:tx(null==we?void 0:we.fontStyle),color:null!==(O=null!==(N=null!==(_=null!==(z=Gy(n,null==we?void 0:we.fontColor))&&void 0!==z?z:Gy(n,null==Ie?void 0:Ie.fontColor))&&void 0!==_?_:n.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==N?N:r.body.color)&&void 0!==O?O:Zm.TEXT,background:null!==(j=null!==(F=Yy(n,we,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==F?F:r.body.background)&&void 0!==j?j:Zm.TRANSPARENT}},totalRow:{fontFamily:null!==(H=null!==(B=null!==($=null==Ce?void 0:Ce.fontFamily)&&void 0!==$?$:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==B?B:r.totals.fontFamily)&&void 0!==H?H:Sy,fontSize:Xy(null!==(V=null!==(W=null!==(U=null==Ce?void 0:Ce.fontSize)&&void 0!==U?U:null==Ie?void 0:Ie.fontSize)&&void 0!==W?W:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==V?V:r.totals.fontSize),fontStyle:Jy(null==Ce?void 0:Ce.fontStyle),fontWeight:Zy(null==Ce?void 0:Ce.fontStyle,xy),textDecoration:tx(null==Ce?void 0:Ce.fontStyle),color:null!==(G=null!==(Y=null!==(K=null!==(X=Gy(n,null==Ce?void 0:Ce.fontColor))&&void 0!==X?X:Gy(n,null==Ie?void 0:Ie.fontColor))&&void 0!==K?K:n.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==Y?Y:r.totals.color)&&void 0!==G?G:Zm.TEXT,background:Ky(n,Ce,"object.straightTableV2.total.label.value.backgroundColor",De)},nullValues:{fontStyle:Jy(null==Ee?void 0:Ee.fontStyle),fontWeight:Zy(null==Ee?void 0:Ee.fontStyle,"normal"),textDecoration:tx(null==Ee?void 0:Ee.fontStyle),color:null!==(J=null!==(Z=null!==(Q=null!==(ee=Gy(n,null==Ee?void 0:Ee.fontColor))&&void 0!==ee?ee:Gy(n,null==Ie?void 0:Ie.fontColor))&&void 0!==Q?Q:n.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Z?Z:r.body.color)&&void 0!==J?J:Zm.TEXT,background:null!==(te=null!==(re=Gy(n,null==Ee?void 0:Ee.background))&&void 0!==re?re:n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:Zm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=Pe?Pe:Qy(null===(ne=t.multiline)||void 0===ne?void 0:ne.wrapTextInCells),headerLineClamp:Qy(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders),border:null!==(ie=null!==(ae=Gy(n,null==Re?void 0:Re.border))&&void 0!==ae?ae:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:n.background.isDark?Zm.DARK_MODE_BORDER:Zm.BORDER_MEDIUM,divider:null!==(le=null!==(se=Gy(n,null==Re?void 0:Re.divider))&&void 0!==se?se:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==le?le:Zm.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=Gy(n,null==Ie?void 0:Ie.hoverFontColor))&&void 0!==ce?ce:n.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ue?ue:null===(de=r.body.hoverColors)||void 0===de?void 0:de.color,background:null!==(pe=null!==(fe=Gy(n,null==Ie?void 0:Ie.hoverColor))&&void 0!==fe?fe:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(me=r.body.hoverColors)||void 0===me?void 0:me.background},zebraStripes:{show:!(null==Re||null===(he=Re.zebraStripes)||void 0===he||!he.show),odd:{color:Gy(n,null==Re||null===(ge=Re.zebraStripes)||void 0===ge||null===(ge=ge.color)||void 0===ge?void 0:ge.odd),background:Gy(n,null==Re||null===(ve=Re.zebraStripes)||void 0===ve||null===(ve=ve.background)||void 0===ve?void 0:ve.odd)},even:{color:Gy(n,null==Re||null===(be=Re.zebraStripes)||void 0===be||null===(be=be.color)||void 0===be?void 0:be.even),background:Gy(n,null==Re||null===(ye=Re.zebraStripes)||void 0===ye||null===(ye=ye.background)||void 0===ye?void 0:ye.even)},overrideNullValueBackground:void 0===Gy(n,null==Ee?void 0:Ee.background),overrideNullValueColor:void 0===Gy(n,null==Ee?void 0:Ee.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:eh(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:Pe},{headerMinRowHeight:qe,totalRowLineHeight:Te,totalRowMinHeight:ke,contentLineHeight:Le,contentMinRowHeight:Oe}=(e=>{const t=Math.max(ex(e.header.fontSize)+8,32),r=ex(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(ex(e.dimension.values.fontSize),ex(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)}})(Me);return Me.headerMinRowHeight=qe,Me.totalRowLineHeight=Te,Me.totalRowMinHeight=ke,Me.contentLineHeight=Le,Me.contentMinRowHeight=Oe,Me},nx=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){var o;const i=null===(o=By(e))||void 0===o?void 0:o.content,a=$y("content",t,i);a.background=t.background.color;const l=Hy(a.fontSize,r,n),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=zy(u)||!!d,f=zy(s)||!!c,m=p||f;let h;h=zy(s)?jy(Zm.HOVER,t,s):c||(p?"":Zm.HOVER);const g=m?jy(Qm(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}(e,t,r.rows.length,n),a=Vy(e,t,!o),l=function(e,t,r){var n;const o=null===(n=By(e))||void 0===n?void 0:n.content,i=$y("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=Vy(e,t,r);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,r,n]);return o},ox=new Map;const ix=M({}),ax=function(e){const t=M([()=>{},new Set]);return ox.set(e,t),({children:r,value:n})=>{const o=q(n),i=q(new Set);E((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=T((()=>o.current),[o]),l=C((()=>[a,i.current]),[a]);return nr.jsx(e.Provider,{value:n,children:nr.jsx(t.Provider,{value:l,children:r})})}}(ix),lx={rows:[],columns:[],totalsPosition:{}},sx=({app:e,children:t,tableData:r=lx,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:v,rect:b,viewService:y,downloadService:x,env:S,direction:E})=>{const[R,I]=w(0),[D,A]=w(o||hy),[M,q]=((e,t)=>{const[r,n]=P(Ny,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[T,k]=w(-1),L=nx(i,u,r,d),O=((e,t,r,n,o)=>C((()=>rx(0,t,r,n,o)),[t,r,e,n,o]))(S,i,L,u,y),[N,_,z,j]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=hh({...n.header,fontWeight:xy},{maxNbrLinesOfText:3}).measureText,a=hh({...n.totalRow,fontWeight:xy},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=hh(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=hh(n.measure.values,{maxNbrLinesOfText:3}),u=C((()=>(e,t,r,n,u,c)=>{let d=25;d+=28,n&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(r))}),[l,s,i,a,o]),[c,d]=w(0),[p,f]=w((()=>Ry(e,r,u)));yh((()=>{f(Ry(e,r-c,u))}),[e,r,c,u]);const m=C((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,b.width,O),F=C((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:b,viewService:y,styleService:O,direction:E,downloadService:x})),[e,n,i,a,l,s,u,c.active,d,p,f,m,b,y,O,E,x]);return nr.jsx(ax,{value:{headRowHeight:R,setHeadRowHeight:I,focusedCellCoord:D,setFocusedCellCoord:A,selectionState:M,selectionDispatch:q,hoverIndex:T,setHoverIndex:k,columnWidths:N,setColumnWidths:_,baseProps:F,tableData:r,setYScrollbarWidth:z,setPage:h,pageInfo:g,initialDataPages:v,showRightBorder:j,env:S},children:t})};function ux(e,t){const r=function(e){return ox.get(e)}(e),[n,o]=S(r),[,i]=P((e=>e+1),0),a=q(t),l=q(),s=n();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=C((()=>t(s)),[s,t]);return E((()=>{a.current=t,l.current=u}),[s,u,t]),E((()=>{const e=e=>{a.current(e)!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function cx(e){var t;const r=Xm();return null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),Ru({...r,direction:e})}const dx={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},px={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},fx=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":{...dx},"&::-moz-range-track":{...dx},"&::-ms-track":{...dx},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...px},"&::-moz-range-thumb":{...px},"&::-ms-thumb":{...px},"&: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"}}))),mx=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=Sh({translator:c.translator}),f=q({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,h=n&&!u,g=()=>h?f.current.columnWidth-m:"100%",v={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},b=t=>{f.current={initWidth:e,columnWidth:e,initX:null!=t?t:f.current.initX}};yh((()=>{h&&b()}),[e]);const y=e=>{const t=Math.max(e,Mh.PixelsMin);f.current.columnWidth=t,i(t)},S=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:qh.Pixels,pixels:f.current.columnWidth};a(e)}else null==s||s(!1)},w=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},C=e=>{ah(e),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),S()},E=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)},R=e=>{ah(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",R),S()},I=!n&&l?e=>{if(e.key===Ah.Left||e.key===Ah.Right){ah(e);const t=5,r=e.key===Ah.Left?t:-5,n="rtl"===d?r:-r;y(f.current.columnWidth+n)}else e.key===Ah.Space||e.key===Ah.Enter?(ah(e),l(e),S()):e.key===Ah.Esc&&(ah(e),l(e),y(f.current.initWidth))}:void 0,D=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return x.createElement(fx,{style:v,key:t,hoverColor:o,isLastColumn:r,className:Ph,"data-testid":Ph,onMouseDown:e=>{ah(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),null==s||s(!0),b(e.clientX)},onDoubleClick:()=>{a({type:qh.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(ah(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",R),null==s||s(!0),b(e.touches[0].clientX))},onKeyDown:I,onBlur:l,onFocus:()=>{b()},type:"range",tabIndex:-1,max:Mh.PixelsMax,"aria-label":D,"aria-valuemin":Mh.PixelsMin,"aria-valuemax":Mh.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d})},hx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})));function gx(){return gx=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},gx.apply(null,arguments)}const vx=ic($d,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),bx=ic(hx,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),yx=ic(Rf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),xx=ic(Sp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),Sx=ic(Mf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),wx=ic(Mf,{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"}))),Cx=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"}))),Ex=ic("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),Rx=ic(id)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),Ix=ic(Jp,{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}))),Dx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),Ax=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?Ax(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},Px=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?Px(t):t},Mx=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===Ah.Down||r===Ah.Up){const t=e=>r===Ah.Down?Ax(e):Px(e);e.preventDefault(),e.stopPropagation();let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}};let qx={};const Tx=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,direction:u,isPagination:c})=>{const[d,p]=w(!1),f=q(null),m=T((e=>{e.stopPropagation(),p(!1)}),[p]);return x.createElement(x.Fragment,null,x.createElement(wx,{ref:a?f:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),qx={}),null!=a&&a.length&&(p(!0),qx[n]=p))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:Mx},s?x.createElement(Cx,{direction:u,isPagination:c}):null,x.createElement(Ex,null,x.createElement(Ix,{direction:u,isPagination:c},x.createElement(o,null)),x.createElement(Rx,{variant:"body2"},n)),null!=a&&a.length?x.createElement(Dx,null):null),null!=a&&a.length?x.createElement(Ox,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:m,menuGroups:(h=a,g=qx,h.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(g).forEach((([,e])=>{e(!1)})),await e(t)}}:{}})))})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null);var h,g},kx=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&x.createElement(Sx,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>x.createElement(Tx,gx({key:e.id},e,{isSubMenu:t,direction:r,isPagination:n}))))].filter(Boolean)])),Lx={appear:0,enter:0,exit:0},Ox=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:l,isPagination:s})=>n.length?x.createElement(yx,gx({className:Rh,open:t,anchorEl:e,onClose:r,transitionDuration:Lx,MenuListProps:{id:Ih}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{},{dir:l}),(({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[kx({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?x.createElement(xx,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:n,isSubMenu:a,direction:l,isPagination:s})):null,Nx=(e,t)=>e.some((e=>t[e]>0)),_x={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},zx=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=w(null),[a,l]=w(_x);return yh((()=>{e||(l(_x),i(null))}),[e]),E((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?s():(i(p),m&&l((e=>({canSelectAll:Nx(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Nx(["qSelected"],e),canSelectPossible:Nx(["qOption"],e),canSelectAlternative:Nx(["qAlternative"],e),canSelectExcluded:Nx(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},jx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),Fx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})}))),Hx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),Bx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),$x=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})}))),Vx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),Wx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),Ux=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),Gx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),Yx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),Kx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),Xx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),Jx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),Zx=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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 Qx=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const eS="/qListObjectDef",tS=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[Qx.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:jx,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:Bx,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:Ux,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:$x,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[Qx.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:Gx,enabled:!0}]}]),r[Qx.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Zx,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(eS))},icon:Yx,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(eS))},icon:Jx,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(eS))},icon:Kx,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(eS))},icon:Xx,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(eS))},icon:Fx,enabled:s.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:Wx,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:Vx,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[Qx.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:Hx,enabled:!0}]}]),f},rS=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:l=!0,sortRelatedArgs:s,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:m="ltr",isPagination:h})=>{var g;const v=Sh({translator:o}),{qLibraryId:b,fieldId:y,headTextAlign:S}=n,w=null==c?void 0:c.app,{fieldInstance:C,selectionActionsEnabledStatus:E}=zx({open:e,headerData:n,app:w,qStateName:null==c?void 0:c.qStateName});let R=null;if(f&&"setActiveField"in f&&void 0!==n.dimensionInfoIndex){const e=n.dimensionInfoIndex;R=async t=>{try{await f.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const I=T((()=>{const e=b?{qLibraryId:b,type:"dimension"}:y;if(null!=u&&u.embed){const{embed:t,listboxRef:r}=u;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===m?"right":"left"},sortCriteria:u.sortCriteria,stateName:null==c?void 0:c.qStateName,direction:m})}}),[b,y,u,null==c?void 0:c.qStateName,m]),D=T((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(vx,{rightAligned:"right"===S,shouldShowMenuIcon:l,className:Eh},l?x.createElement(bx,{height:wh,className:Ch,"data-testid":Ch,isInteractionsActive:null!==(g=i.active)&&void 0!==g&&g},x.createElement(hx,null)):null,x.createElement(Ox,{open:e,anchorEl:r.current,onClose:D,menuGroups:tS({headerData:n,translator:v,menuAvailabilityFlags:a,setOpen:t,...s,embedListbox:I,interactions:i,fieldInstance:C,selectionActionsEnabledStatus:E,anchorRef:r,focusColumnAdjuster:null==d?void 0:d.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:p}),direction:m,isPagination:h})):null},nS=e=>e.isDark?{background:e.color,borderColor:Zm.DARK_MODE_BORDER,color:Zm.DARK_MODE_TEXT,disabledColor:Zm.DARK_MODE_DISABLED,iconColor:Zm.DARK_MODE_TEXT}:{background:e.color,borderColor:Zm.BORDER_MEDIUM,color:Zm.TEXT,disabledColor:Zm.DISABLED},oS=ic($d,{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}`}))),iS=ic(cm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),aS=ic(Qd,{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)}))),lS=ic(id)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),sS=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>nS(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(oS,{footerStyle:i},e):null;return t?F.createPortal(e,t):a},uS=M({}),cS=()=>S(uS),dS=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=C((()=>nS(p.background)),[p]),b=o?o.getBoundingClientRect().width:m.width,y=Sh({translator:d}),S=C((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:v,tabIndex:g,width:b})),[t,r,n,o,i,a,l,s,u,c,y,p,f,m,h,v,g,b]);return x.createElement(uS.Provider,{value:S},e)};let pS=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),fS=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 mS=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),hS=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),gS=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),vS={FirstPage:hS,PreviousPage:mS,NextPage:Dx,LastPage:gS,FirstPageRTL:gS,PreviousPageRTL:Dx,NextPageRTL:mS,LastPageRTL:hS},bS=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=cS(),u=r.concat("rtl"===n?"RTL":""),c=vS[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:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},yS=()=>{const{pageInfo:e,width:t}=cS(),r=0===e.page,{IconComponent:n,styledProps:o}=bS({type:pS.FirstPage,disabledCondition:r,pageNumber:0});return t<=fS.FirstPage?null:x.createElement(aS,o,x.createElement(n,{height:wh}))},xS=(e,t,r=!1)=>{r&&e.key===Ah.Tab&&!e.shiftKey&&(ah(e),ih(e.target,t,!1))},SS=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=cS(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=bS({type:pS.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>{xS(e,t,n)}:void 0;return o<=fS.LastPage?null:x.createElement(aS,gx({},l,{onKeyDown:s}),x.createElement(a,{height:wh}))},wS=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=cS(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=bS({type:pS.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>fS.FirstPage&&o>fS.LastPage)&&t.enabled?e=>{xS(e,t,n)}:void 0;return x.createElement(aS,gx({},l,{onKeyDown:s}),x.createElement(a,{height:wh}))},CS=()=>{const{pageInfo:e}=cS(),t=0===e.page,{IconComponent:r,styledProps:n}=bS({type:pS.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(aS,n,x.createElement(r,{height:wh}))},ES=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=cS(),{page:o,rowsPerPage:i}=r;if(t<=fS.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(lS,{variant:"caption",dir:"ltr"},a)},RS=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=cS(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(lS,{variant:"caption",id:d},u,":"),x.createElement(iS,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},IS=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=cS();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>fS.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(RS,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},DS=1e3,AS="…",PS=({totalPages:e,page:t})=>{const r=Math.min(e,DS),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-DS):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:AS,disabled:!0},AS)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:AS,disabled:!0},AS)),x.createElement(x.Fragment,null,a)},MS=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=cS(),{page:o}=e;if(t<=fS.SelectPage)return null;const i=x.createElement(PS,{totalPages:r,page:o});return x.createElement(RS,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var qS=L((e=>x.createElement(dS,e,x.createElement(IS,null),x.createElement(MS,null),x.createElement(ES,null),x.createElement(yS,null),x.createElement(CS,null),x.createElement(wS,null),x.createElement(SS,null))));const TS=e=>x.createElement(sS,e,x.createElement(qS,e)),kS={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},LS=ic($d,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),OS=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?{...kS,whiteSpace:"nowrap",display:r?"block":void 0}:{...kS,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}));function NS(e,t){const r=q(!1);E((()=>{r.current?e():r.current=!0}),t)}const _S=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),zS=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),jS=e=>e.atTop?2:1,FS=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},HS=e=>null==e?void 0:e.setAttribute("tabIndex","0"),BS=e=>null==e?void 0:e.setAttribute("tabIndex","-1"),$S=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(BS)},VS=e=>{null==e||e.focus(),HS(e)},WS=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${Ph}`);VS(r)}),0)},US=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{$S(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,l=t.getElementsByClassName("sn-table-row").length-1-o.bottom,s=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case Ah.Down:u<l&&u++;break;case Ah.Up:u>a&&u--;break;case Ah.Right:if(i)break;[u,c]="rtl"===n?_S({colIdx:c,rowIdx:u,lastColIdx:s,firstColIdx:0}):zS({colIdx:c,rowIdx:u,lastColIdx:s,lastRowIdx:l,firstColIdx:0});break;case Ah.Left:if(i)break;[u,c]="rtl"===n?zS({colIdx:c,rowIdx:u,lastColIdx:s,lastRowIdx:l,firstColIdx:0}):_S({colIdx:c,rowIdx:u,lastColIdx:s,firstColIdx:0});break;case Ah.Home:(Ay(e)||i)&&(u=a),i||(c=0);break;case Ah.End:(Ay(e)||i)&&(u=l),i||(c=s);break;case Ah.PageDown:u=Math.min(l,u+10);break;case Ah.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),l=FS(t,a);return VS(l),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{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:l,nextCellCoord:a}},GS=(e,t,r,n)=>{var o;($S(t),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):VS(FS(t,e))},YS=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${Rh}`);var l;!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${Bb.First}`),r=e.querySelector(`.${Bb.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),null===(l=r.blur)||void 0===l||l.call(r,!1))},KS=()=>{const{downloadService:e}=ux(ix,(e=>e.baseProps));E((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},XS=(e,t,r)=>{const{rootElement:n,keyboard:o}=ux(ix,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:l,totalsPosition:s}=ux(ix,(e=>e.tableData)),u=ux(ix,(e=>e.focusedCellCoord)),c=ux(ix,(e=>e.setFocusedCellCoord)),d=ux(ix,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()}));NS((()=>{const r=((e,t,r=!1)=>{const n=[jS(t),e[1]];return r?n:hy})(u,s,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if($S(t),o(e),!(e=>!e.enabled||e.active)(i))return;const l=FS(t,e);var s;r.current?(VS(l),r.current=!1):HS(l),n&&(a({keys:[null!==(s=null==l?void 0:l.textContent)&&void 0!==s?s:""]}),Dy(a,l,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[l.length,a,i,r])},JS=(e,t,r)=>{E((()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},ZS=e=>{ah(e),Ay(e)&&_h(e.currentTarget)},QS=e=>{Ty(e.evt)&&(ah(e.evt),US(e))},ew=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!Ty(t))return;ah(t);const i=((e,t)=>[e.pageRowIdx+jS(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?jS(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:l,nextCellCoord:s}=US({...e,cellCoord:i,allowedRows:a});s[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:Fb.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):Dy(o,a,i)})({...e,nextCell:l})},tw=e=>{const{evt:t}=e;Py(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{ah(e);const a=Math.ceil(t/r)-1;e.key===Ah.Right&&n<a?(o(),i(n+1)):e.key===Ah.Left&&n>0&&(o(),i(n-1))})(e):t.key===Ah.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{var n;t.enabled&&!r&&(ah(e),null===(n=t.blur)||void 0===n||n.call(t,!0))})(e):My(t.key)&&ah(t)},rw=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(jb.Disabled))return void ah(t);const n={...e,isSelectionMode:!(null==r||!r.isModal())};switch(t.key){case Ah.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{ah(e),t.isSelectable&&r&&n({type:Fb.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case Ah.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{ah(r),e&&(null==t||t.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case Ah.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(ah(r),null==t||t.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case Ah.C:ZS(t);break;case Ah.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(ah(e),ih(e.currentTarget,t,e.shiftKey))})(n);break;default:ew(n)}},nw=e=>{const{layout:t,rect:r,theme:n}=ux(ix,(e=>e.baseProps)),[o,i]=w(0),[a,l]=w(0);return O((()=>{if(e.current){const{offsetWidth:t=0,offsetHeight:r=0,clientWidth:n=0,clientHeight:o=0}=e.current,a=r-o;l(t-n),i(a)}}),[e,t,r,n]),{xScrollbarWidth:o,yScrollbarWidth:a}},ow=ic("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),iw=ic(Tm,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),aw=ic(gm,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),lw=()=>nr.jsxs(nr.Fragment,{children:[nr.jsx(ow,{className:Bb.First,"data-testid":Bb.First,"aria-live":"polite","aria-atomic":"true"}),nr.jsx(ow,{className:Bb.Second,"data-testid":Bb.Second,"aria-live":"polite","aria-atomic":"true"})]}),sw=e=>{const t=q(new Map),r=q(null);E((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{var n;null===(n=r.current)||void 0===n||n.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=T(((e,n)=>{var o;t.current.set(e,n),null===(o=r.current)||void 0===o||o.observe(e)}),[t,r]),o=T((e=>{var n;t.current.delete(e),null===(n=r.current)||void 0===n||n.unobserve(e)}),[r,t]);return C((()=>({addTask:n,removeTask:o})),[n,o])},uw=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);null==r||r(t)}))})),cw=()=>sw(uw),dw=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{E((()=>{const i=()=>{t({type:Fb.Reset})},a=()=>{t({type:Fb.Clear})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},pw=e=>{e.stopPropagation()},fw=({href:e,text:t,interactions:r,color:n})=>x.createElement(Hp,(({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:pw,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}))({href:e,text:t,interactions:r,color:n}),t);var mw,hw;const gw=null!==(mw=window.requestIdleCallback)&&void 0!==mw?mw:e=>setTimeout((()=>{e({})}),0),vw=null!==(hw=window.cancelIdleCallback)&&void 0!==hw?hw:e=>{clearTimeout(e)},bw="qDimensionInfo/0",yw="qMeasureInfo/0",xw="x",Sw="y",ww=e=>({key:"bars",type:"box",data:{extract:{field:bw,props:{start:0,end:{field:yw}}}},settings:{major:{scale:xw},minor:{scale:Sw},box:{maxWidthPx:8,fill:{fn:e}}}}),Cw=e=>({key:"p",type:"point",data:{extract:{field:bw,props:{y:{field:yw}}}},settings:{x:{scale:xw},y:{scale:Sw},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),Ew=({qNum:e})=>void 0===e?0:Math.sign(e),Rw=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=nh(e,null==t?void 0:t.negative,r),a=nh(e,null==t?void 0:t.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:bw,props:{start:0,end:{field:yw,value:Ew}}}},settings:{major:{scale:xw},minor:{scale:Sw},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}}}}},Iw=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),l=nh(e,null==t?void 0:t.main,o),s=nh(e,null==t?void 0:t.max,l),u=nh(e,null==t?void 0:t.min,l),c=nh(e,null==t?void 0:t.first,l),d=nh(e,null==t?void 0:t.last,l);return e=>{const t=Sw in e.datum?Sw:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?s:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:l}})(e,n,o,i);switch(t){case"bars":return[ww(a)];case"dots":return[Cw(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:bw,props:{v:{field:yw}}}},settings:{coordinates:{major:{scale:xw},minor:{scale:Sw,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(nh(e,null==n?void 0:n.main,e.getDataColorSpecials().primary));return r?[t,Cw(a)]:[t]}case"posNeg":return[Rw(e,n)];default:return[]}},Dw=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"}),Aw=(e,t,r,n)=>({y:{data:{field:yw},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:bw}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),Pw=B();Pw.use(H),Pw.renderer.prio(["canvas"]);const Mw={resolve:()=>{},promise:{}},qw=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:l})=>{const{resolveChartPromise:s,addChartPromiseToQueue:u}=(e=>{const t=q(e.isDownloadedAsPDForImage?bt():Mw);return{addChartPromiseToQueue:T((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(l);return{renderChartWithRequestIdleCallback:T((()=>{if(null===t.current||null!==e.current)return;u();r.current=gw((()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:l,minY:s,maxY:u}=n;return Pw.chart({element:e,data:{type:"q",key:"qHyperCube",data:Dw(l)},settings:{scales:Aw(a,s,u,i),components:Iw(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:s}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,s]),safeCancelIdleCallback:T((()=>{null!==r.current&&vw(r.current),r.current=null,s()}),[r,s])}},Tw=e=>{const t=q(null),r=q(!1);return T((n=>{var o,i;const a=null!==(o=null===(i=n.contentBoxSize.at(0))||void 0===i?void 0:i.inlineSize)&&void 0!==o?o:0;(e=>{e.current&&(vw(e.current),e.current=null)})(t),r.current?0!==a?null!==e.current&&(t.current=gw((()=>{var t;null===(t=e.current)||void 0===t||t.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},kw=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const l=q(null),s=q(null),u=q(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=qw({element:l,chart:s,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=T((e=>{e.isIntersecting?n():r()}),[n,r]);E((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{var e;t.removeTask(n),r(),null===(e=o.current)||void 0===e||e.destroy(),o.current=null}}),[o,e,t,r,i])})({element:l,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:s}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{E((()=>n?()=>{}:(e(),()=>{var e;t(),null===(e=r.current)||void 0===e||e.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:s}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=Tw(t);E((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:l,chart:s,resizeObserverTaskScheduler:t}),l},Lw=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:l})=>{const s=kw({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:l});return x.createElement("div",{"data-testid":"picasso-container",ref:s,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},Ow="cell-text",Nw=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=ux(ix,(e=>e.baseProps));return o?nr.jsx(OS,{"data-testid":Ow,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,children:e}):nr.jsx(OS,{"data-testid":Ow,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:null!=i?i:a.grid.contentLineClamp,isPagination:n,children:e})},_w=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),zw=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},jw=(e,t)=>{const r=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),n=r.some((e=>!uv(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||!uv(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)},Fw=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),l=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:l,nextColor:s}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:l.color,t:.5-u}:{color:s.color,t:u-.5}:a.gradient?{color:l.color,t:1-(.5+u/2)}:i.gradient?{color:s.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return l&&re(e.localPaletteColors[t].color).blend(re(l.color),l.t)},Hw=(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:_w(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:zw(n,t,r)})))),n},Bw=(e,t,r,n)=>{const o=Hw(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=Fw(e,a,t);break}n=i}return r})(o,t);return a},$w=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=jw(e,t),o=Math.abs(t);return{min:null!=r?r:t-o,max:null!=n?n:t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!uv(t))return 0;let a=r&&uv(r)?Math.min(r,t):0;const l=n.sort(((e,t)=>e.value-t.value)),s=o||i;for(let e=0;e<s.length;e++){if(e===s.length-1||t<l[e].value&&t>=a)return e;a=l[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},Vw=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=$w(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(null==i||!i.length||!((e,t)=>{var r,n,o;return!(!e||0===e.length||!(null!==(r=null===(n=e[t])||void 0===n?void 0:n.gradient)&&void 0!==r?r:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,r.limitPaletteColorIndex))return zw(o,r.limitPaletteColorIndex,n);const a=_w(r.limitRange,t);return Bw(o,a,r.limitRange,n)})(o,t,i,n),l=o.segments.paletteColors[(null==i?void 0:i.limitPaletteColorIndex)||0].icon,{indicator:s}=e;let u=(null==s?void 0:s.position)||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:l,position:u}},Ww=(e,t)=>{var r,n,o,i;return"rtl"===e&&"center"!==(null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.horizontal)?(null===(o=t.resolvedImagePosition)||void 0===o?void 0:o.horizontal)&&(e=>"flex-start"===e?"flex-end":"flex-start")(null===(i=t.resolvedImagePosition)||void 0===i?void 0:i.horizontal):null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.horizontal},Uw=(e,t)=>e.representation.type===cg.Image&&"fitHeight"===e.representation.imageSize?Ww(t,e.representation):e.align,Gw=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",Yw=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},Kw=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,Xw=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",Jw=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",Zw=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},Qw=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},eC=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=ux(ix,(e=>e.baseProps)),{url:i,text:a,imageSize:l,resolvedImagePosition:s}=e,u="fitHeight"===l,c=nr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:Qw(l),objectPosition:Zw(s),overflow:"hidden"}});return n?nr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?Ww(o,e):void 0},children:c}):c},tC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),rC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),nC=k(((e,t)=>nr.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:[nr.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"}),nr.jsx("use",{fillRule:"evenodd"})]}))),oC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),iC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),aC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),lC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M2 7h12v2H2z"})}))),sC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),uC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),cC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),dC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),pC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),fC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),mC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),hC=k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),gC={m:pC,"ï":cC,R:k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),S:fC,T:mC,U:hC,P:uC,Q:aC,"è":k(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})}))),"¢":oC,"©":nC,"23F4":iC,2013:dC,"&":sC,add:tC,"minus-2":lC,dot:rC},vC=({size:e,iconKey:t,color:r,pvStyle:n})=>{var o;const i=null!==(o=t&&gC[t])&&void 0!==o?o:gC.dot;return i&&x.createElement("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n}},x.createElement(i,{style:{height:e}}))},bC=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=ux(ix,(e=>e.baseProps)),{text:a,indicator:l}=e,{showTextValues:s,applySegmentColors:u}=null!=l?l:{},c=Vw(e,t,i,o),d=(p=n.measure.values.fontSize,parseInt(p||yy,10));var p;const{color:f,iconKey:m,position:h}=c||{};return s?nr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:null!=r?r:"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?f:void 0},children:["left"===h&&vC({size:d,iconKey:m,color:f}),nr.jsx(Nw,{isNumeric:!0,children:a}),"right"===h&&vC({size:d,iconKey:m,color:f})]}):vC({size:d,iconKey:m,color:f})},yC=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(null!=t?t:e.grid.contentLineClamp):e.contentLineHeight,xC=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:l})=>{const{interactions:s,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=ux(ix,(e=>e.baseProps)),m=ux(ix,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let h=t.representation.text;if(t.representation.type!==cg.Link||m||(h=nr.jsx(fw,{href:t.representation.url,text:t.representation.text,interactions:s,color:r.cellForegroundColor})),t.representation.type===cg.Image)return nr.jsx(eC,{representation:t.representation,textStyle:r,maxImageHeight:yC(u,o),wrapInContainer:!n});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!==cg.Indicator||Number.isNaN(g)?t.representation.type===cg.MiniChart&&t.representation.miniChart&&!t.isNull?nr.jsx(Lw,{height:yC(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):nr.jsx(Nw,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:h}):nr.jsx(bC,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:l})},SC=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:Fb.SelectMultiEnd})};r({type:Fb.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:Fb.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:Fb.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),wC=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=ux(ix,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:l,direction:s}=ux(ix,(e=>e.baseProps)),u=ux(ix,(e=>e.setFocusedCellCoord)),c=ux(ix,(e=>e.selectionDispatch)),d=!!l.active&&!!l.select,p=l=>{rw({evt:l,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:s})},f=e=>{((e,t)=>{e.key===Ah.Shift&&t({type:Fb.SelectMultiEnd})})(e,c)},m=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;GS([l,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:m};const{handleMouseDown:h,handleMouseOver:g,handleMouseUp:v}=SC(m,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:h,onMouseUp:v,onMouseOver:g}},CC=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=jb.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?jb.Disabled:n.has(e.qElemNumber)?jb.Selected:jb.Possible),i},EC=(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},RC=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},IC=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return RC(t,e,n?"even":"odd")}return e},DC=(e,t)=>{const{styleService:r}=ux(ix,(e=>e.baseProps)),n=ux(ix,(t=>CC(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=IC(o,r,e),o=EC(o,r,e);const i=Uy(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===jb.Selected?{...e,...r}:t===jb.Disabled?{...e,background:`${vy}, ${e.background}`}:e}(C((()=>e.isNull?o:Uy(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}},AC=ic(Cm,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),PC=ic(Vm,{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}}}))),MC=ic(Am,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...wy,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),qC=ic(Am,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...wy,...e,fontWeight:xy,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",zIndex:t?1:void 0}))),TC=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:l}=ux(ix,(e=>e.baseProps)),{onKeyDown:s,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=wC(e,t),{cellStyle:f,representationStyle:m,cellSelectionState:h}=DC(e,r);return nr.jsx(MC,{cellStyle:f,scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${Dh}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:nr.jsx(xC,{cell:e,style:m,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:Kw(l,e.align)})})},kC=(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}),LC=()=>{const{columns:e,totalsPosition:t,rows:r}=ux(ix,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:l,direction:s}=ux(ix,(e=>e.baseProps)),u=ux(ix,(e=>e.headRowHeight)),c=ux(ix,(e=>e.setFocusedCellCoord)),d=!(null==o||!o.isModal()),p=!!l.active;return nr.jsx(Vm,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return nr.jsx(qC,{totalsStyle:{...a.totalRow,...kC(a,t,!1)},headRowHeight:u,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Dh}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case Ah.C:ZS(r);break;case Ah.Space:r.preventDefault();break;default:QS(e)}else ah(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:s})},onMouseDown:()=>{GS(f,n,c,i)},children:nr.jsx(Nw,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var OC=L(LC);const NC=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,totalsPosition:a}=ux(ix,(e=>e.tableData)),{selectionsAPI:l,keyboard:s,layout:u,styleService:c}=ux(ix,(e=>e.baseProps)),d=ux(ix,(e=>e.selectionDispatch)),p=!(null===(n=By(u))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect);dw({keyboard:s,selectionDispatch:d,selectionsAPI:l,updateShouldRefocus:e,tableWrapperRef:t});const f=(e=>{const t=T((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);null==r||r(e)}))}),{root:e.current})),[e]);return sw(t)})(t),m=cw();return nr.jsxs(AC,{lastRowBottomBorder:c.grid.lastRowBottomBorder,children:[a.atTop?nr.jsx(OC,{}):void 0,o.map(((e,t)=>nr.jsx(PC,{hoverColors:c.grid.hoverColors,hover:p,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:c.contentMinRowHeight,children:i.map(((t,n)=>{const{id:o}=t,i=e[n];return nr.jsx(TC,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:f,resizeObserverTaskScheduler:m},o)}))},`row-${t}`))),a.atBottom?nr.jsx(OC,{}):void 0]})};var _C=L(NC);const zC=(e,t)=>{var r;return!(null===(r=e.viewState)||void 0===r||!r.skipHeader)||!!t.hideHeader},jC=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s,direction:u}=ux(ix,(e=>e.baseProps)),c=ux(ix,(e=>e.columnWidths)),d=ux(ix,(e=>e.setColumnWidths));if(!l.active)return null;return nr.jsx(mx,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{BS(e);const t=e.closest(".sn-table-cell");VS(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:s,columnLabel:i},direction:u})},FC=k(((e,t)=>nr.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:[nr.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),nr.jsx("use",{fillRule:"evenodd"})]}))),HC=ic("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),BC=ic($d,{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?Gw(e,n):void 0})));ic("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const $C=ic($d,{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},[`& .${Eh}`]:{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"},[`& .${Eh}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),VC=ic($d,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));ic($d,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),ic(Mf)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),ic("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),ic(Jp)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),ic("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const WC=ic(Am,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...wy,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));ic("div")({display:"flex",alignItems:"center"});const UC=ic("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:yy,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),GC=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i,forwardRef:a})=>{const{translator:l,changeSortOrder:s,interactions:u,embed:c,app:d,styleService:p,layout:f,direction:m}=ux(ix,(e=>e.baseProps)),h=ux(ix,(t=>t.columnWidths[e.pageColIdx])),g=ux(ix,(e=>e.baseProps.model)),v=q(null),b=q(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=hh({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:xy});return T((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=r-25,u=a?20:0,c=l?20:0;let d=n(t.label);return a&&d+u<=s&&(i=!0,d+=u,l&&d+c<=s&&(o=!0,d+=c)),!a&&l&&d+c<=s&&(o=!0,d+=c),d+24<=s&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n])})({styleService:p,column:e,columnWidth:h}),x=y(),{StartIcon:S,EndIcon:w,LockIcon:C}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?nr.jsx(jx,{height:yy,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(Bx,{height:yy,"data-testid":"head-cell-sort-descending-icon"}),a=r?nr.jsx(UC,{align:t,dir:o,children:i}):void 0,l=n?nr.jsx(VC,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:nr.jsx(FC,{height:yy,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:l}:{EndIcon:a,LockIcon:l}})(e,x,m);o&&(o.current[e.pageColIdx]=x);return nr.jsxs($C,{shouldShowMenuIcon:x.shouldShowMenuIcon,shouldShowLockIcon:x.shouldShowLockIcon,alignment:Yw(e,i,m),children:[C,nr.jsxs(BC,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:m,isPagination:i,children:[S,nr.jsx(Nw,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),w]}),t?nr.jsxs(nr.Fragment,{children:[nr.jsx(rS,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:l,anchorRef:v,menuAvailabilityFlags:{[Qx.Sorting]:!0,[Qx.Searching]:!0,[Qx.Selections]:!0,[Qx.AdjusterHeaderSize]:!0},open:r,setOpen:n,interactions:u,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:c,listboxRef:b},selectionRelatedArgs:{app:d,qStateName:f.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:WS},shouldShowMenuIcon:x.shouldShowMenuIcon,model:g,direction:m,isPagination:i}),nr.jsx(HC,{ref:b,direction:m,isPagination:i}),nr.jsx(HC,{ref:v,direction:m})]}):null]})},YC=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=w(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=w(!1);return yh((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Ph)})(t)||o||n(!0)},setIsAdjustingWidth:i}},KC=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:l}=ux(ix,(e=>e.baseProps)),{columns:s,totalsPosition:u}=ux(ix,(e=>e.tableData)),c=ux(ix,(e=>e.columnWidths[t])),d=ux(ix,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),p=ux(ix,(e=>e.setFocusedCellCoord)),f=ux(ix,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),m=!!n.active&&!d,{open:h,setOpen:g,handleOpenMenu:v,setIsAdjustingWidth:b}=YC({isInteractionEnabled:m,columnsData:s}),y=e.isActivelySorted?Hb[e.sortDirection]:void 0,x=h?Ih:void 0,S=h?"true":void 0,w=t===r-1,C=[0,e.pageColIdx],E={width:c-(w?8:9),zIndex:s.length-t},R=f&&0===t&&!i.enabled&&m?0:-1;return nr.jsxs(WC,{headerStyle:{...a.header,...kC(a,u,!0)},background:h?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:E,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Dh}`,tabIndex:R,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case Ah.C:ZS(r);break;case Ah.Enter:case Ah.Space:null==n||n(r);break;default:QS(e)}else ah(r)})({evt:e,rootElement:o,cellCoord:C,setFocusedCellCoord:p,isInteractionEnabled:m,handleOpenMenu:v,direction:l})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&GS(r,t,n,o)})({evt:e,rootElement:o,cellCoord:C,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:m})},onClick:v,"aria-sort":y,"aria-controls":x,"aria-expanded":S,"aria-haspopup":"true",children:[nr.jsx(GC,{column:e,isInteractionEnabled:m,open:h,setOpen:g,isPagination:!0}),nr.jsx(jC,{column:e,isLastColumn:w,setIsAdjustingWidth:b})]},e.id)},XC=()=>{const{columns:e}=ux(ix,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=ux(ix,(e=>e.baseProps)),o=ux(ix,(e=>e.setHeadRowHeight)),i=ux(ix,(e=>e.columnWidths)),a=q(null),l=zC(r,n);return E((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,l]),nr.jsx(zm,{style:{visibility:l?"collapse":void 0},children:nr.jsx(Vm,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>nr.jsx(KC,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var JC=L(XC);const ZC=e=>{var t,r;const{pageInfo:n,setPageInfo:o,footerContainer:i,announce:a}=e,{page:l,rowsPerPage:s}=n,{totalColumnCount:u,totalRowCount:c,totalPages:d,paginationNeeded:p,rows:f,columns:m}=ux(ix,(e=>e.tableData)),{rootElement:h,keyboard:g,translator:v,theme:b,interactions:y,styleService:x,viewService:S,layout:w,rect:C,direction:R}=ux(ix,(e=>e.baseProps)),I=ux(ix,(e=>e.setYScrollbarWidth)),D=ux(ix,(e=>e.showRightBorder)),A=ux(ix,(e=>e.selectionDispatch)),P=ux(ix,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),M=q(!1),k=q(null),L=q(null),{yScrollbarWidth:O}=nw(k),N=`${v.get("SNTable.Accessibility.RowsAndColumns",[String(f.length),String(m.length)])} ${v.get("SNTable.Accessibility.NavigationInstructions")}`,_=Cb(w,S),z=_&&null!==(t=S.scrollLeft)&&void 0!==t?t:0,j=_&&null!==(r=S.rowPartialHeight)&&void 0!==r?r:0,F=T((()=>{M.current=h.getElementsByTagName("table")[0].contains(document.activeElement)}),[h]),H=T((e=>{o({...n,page:e}),a({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),d.toString()]],politeness:"assertive"})}),[n,o,d,a]),B=T((e=>{o({...n,page:0,rowsPerPage:e}),a({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[a,n,o]);return JS(k,R,S),((e,t)=>{const{keyboard:r}=ux(ix,(e=>e.baseProps));E((()=>{const n=e.current;if(!n)return;const o=e=>{YS(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(L,M),(()=>{const{rootElement:e,keyboard:t}=ux(ix,(e=>e.baseProps)),r=ux(ix,(e=>e.focusedCellCoord));yh((()=>{const n=FS(e,r);t.active?VS(n):(null==n||n.blur(),$S(e))}),[t.active,e])})(),XS(M,a,l),E((()=>{const e=k.current;e&&(e.scrollLeft=z,e.scrollTop=j)}),[n,c,z,j]),NS((()=>{I(O)}),[O]),NS((()=>{A({type:Fb.UpdatePageRows,payload:{pageRows:f}})}),[f]),KS(),nr.jsxs(LS,{ref:L,background:b.background,dir:R,onKeyDown:e=>{tw({evt:e,totalRowCount:c,page:l,rowsPerPage:s,handleChangePage:H,updateShouldRefocus:F,keyboard:g,isSelectionMode:P})},"data-testid":"sn-table",children:[nr.jsx(lw,{}),nr.jsx(iw,{ref:k,className:"sn-table-container",fullHeight:!!i||!y.active||!p,interactions:y,tabIndex:-1,role:"application","data-testid":"table-container",children:nr.jsxs(aw,{stickyHeader:!0,"aria-label":N,borderRight:D?`1px solid ${x.grid.border}`:void 0,children:[nr.jsx(JC,{}),nr.jsx(_C,{...e,updateShouldRefocus:F,tableWrapperRef:L})]})}),nr.jsx(TS,{footerContainer:i,pageInfo:n,paginationNeeded:p,theme:b,totalRowCount:c,totalColumnCount:u,totalPages:d,keyboard:g,translator:v,interactions:y,rect:C,layout:w,handleChangePage:H,handleChangeRowsPerPage:B,isSelectionMode:P,direction:R})]})};var QC=L(ZC),eE=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function tE(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||eE(n)&&eE(o)))return!1;var n,o;return!0}function rE(e,t){var r;void 0===t&&(t=tE);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var nE="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function oE(e){cancelAnimationFrame(e.id)}function iE(e,t){var r=nE();var n={id:requestAnimationFrame((function o(){nE()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var aE=-1;function lE(e){if(void 0===e&&(e=!1),-1===aE||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),aE=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return aE}var sE=null;function uE(e){if(void 0===e&&(e=!1),null===sE||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?sE="positive-descending":(t.scrollLeft=1,sE=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),sE}return sE}var cE=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function dE(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Lt(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Lt(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=rE((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=rE((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=rE((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(uE()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&oE(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=iE(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}kt(t,e),t.getDerivedStateFromProps=function(e,t){return pE(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,m=this.state,h=m.scrollLeft,g=m.scrollTop,v=lE();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=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},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(uE()){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&&oE(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?cE:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],C=S[1],E=this._getVerticalRangeToRender(),I=E[0],D=E[1],A=[];if(n>0&&g)for(var P=I;P<=D;P++)for(var M=w;M<=C;M++)A.push(R(t,{columnIndex:M,data:d,isScrolling:b?x:void 0,key:f({columnIndex:M,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,M)}));var q=a(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:wt({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},R(u||c||"div",{children:A,ref:s,style:{height:q,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],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,v=h.scrollLeft,b=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.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,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},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,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var pE=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},fE=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},mE=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},hE=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},gE=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?vE(e,t,r,i,0,n):bE(e,t,r,Math.max(0,i),n)},vE=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=hE(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},bE=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&hE(e,t,n,r).offset<o;)n+=a,a*=2;return vE(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},yE=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=hE(e,t,r,i),u="column"===e?mE(t,i):fE(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},xE=dE({getColumnOffset:function(e,t,r){return hE("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return gE("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=hE("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=hE("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:fE,getEstimatedTotalWidth:mE,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return yE("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return yE("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return hE("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return gE("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=hE("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=hE("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}}),SE=function(e,t){return e};function wE(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,Lt(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Lt(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=rE((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=rE((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=rE((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(uE()){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&&oE(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=iE(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}kt(t,e),t.getDerivedStateFromProps=function(e,t){return CE(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?lE():0:s.scrollHeight>s.clientHeight?lE():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(uE()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&oE(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?SE:d,f=e.layout,m=e.outerElementType,h=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(),C=w[0],E=w[1],I=[];if(u>0)for(var D=C;D<=E;D++)I.push(R(t,{data:c,key:p(D,c),index:D,isScrolling:v?y:void 0,style:this._getItemStyle(D)}));var A=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:wt({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:I,ref:a,style:{height:x?"100%":A,pointerEvents:y?"none":void 0,width:x?A:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var CE=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},EE=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},RE=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=EE(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},IE=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&EE(e,r,t).offset<n;)r+=i,i*=2;return RE(e,t,Math.min(r,o-1),Math.floor(r/2),n)},DE=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},AE=wE({getItemOffset:function(e,t,r){return EE(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:DE,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=EE(e,t,o),p=DE(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?RE(e,t,o,0,r):IE(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=EE(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=EE(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 PE(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 ME=["style"],qE=["style"];function TE(e,t){var r=e.style,n=qt(e,ME),o=t.style,i=qt(t,qE);return!PE(r,o)&&!PE(n,i)}const kE=({style:e})=>nr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var LE=x.memo(kE,TE);const OE=e=>{var t;return null===(t=e.at(0))||void 0===t||null===(t=t.contentBoxSize.at(0))||void 0===t?void 0:t.blockSize},NE=(e,t,r)=>{E((()=>{const r=e.current;if(!r)return()=>{};const n=new ResizeObserver(t);return n.observe(r),()=>{n.disconnect()}}),[e,t,r])},_E=()=>{},zE=e=>{e.preventDefault()};const jE=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,setMeasuredCellHeight:u,lineClamp:c,resizeObserverTaskScheduler:d}=n,p=ux(ix,(e=>e.hoverIndex===t)),f=ux(ix,(e=>e.setHoverIndex)),{interactions:m,styleService:h,direction:g}=ux(ix,(e=>e.baseProps)),v=ux(ix,(e=>e.showRightBorder)),b=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:y,handleMouseOver:x,handleMouseUp:S,cellSelectionState:w}=function(e){const{interactions:t}=ux(ix,(e=>e.baseProps)),r=ux(ix,(e=>e.selectionDispatch)),n="object"==typeof e,o=ux(ix,(t=>n?CC(e,t.selectionState):jb.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=SC(zE,e,r,_E);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(b),C=((e,t,r,n)=>{const o=q(null),i=r&&!r.isNumeric,a=T((r=>{const o=OE(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return NE(o,a),o})(t,e,b,u),E=null!==(i=l[e])&&void 0!==i&&i.isDim?h.dimension.values:h.measure.values;if("object"==typeof b){const n=((e,t,r,n,o,i)=>{let a=IC(o,i,e);a=EC(a,i,e);const l=!e.isNull&&t.qAttrExprInfoIDs.length?Uy(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===jb.Selected?{...l,...i.selectedColors}:n===jb.Disabled?{...l,color:r?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.color:l.color,background:`${vy}, ${r?null===(u=i.grid.hoverColors)||void 0===u?void 0:u.background:l.background}`}:r?{...l,...i.grid.hoverColors}:l;var s,u})(b,l[e],s&&p,w,E,h),o={rowindex:t,columnindex:e};return nr.jsx("div",{className:`sn-table-cell ${w} ${Dh}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:h.grid.border,borderTop:"0px",borderBottomWidth:b.isLastRow?"0px":"1px",borderRightWidth:Xw(g,b.isLastColumn,v),borderLeftWidth:Jw(g,b.isLastColumn,v),justifyContent:Uw(b,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:b.align},onMouseDown:y,onMouseUp:S,onMouseOver:x,onMouseEnter:s?()=>{f(t)}:void 0,onMouseLeave:s?()=>{f(-1)}:void 0,title:m.passive?b.representation.text:void 0,...o,children:nr.jsx(xC,{forwardRef:h.contentStaticLineCount||1===c?void 0:C,cell:b,style:n,lineClamp:c,virtualizedCell:!0,resizeObserverTaskScheduler:d})})}return nr.jsx(LE,{style:{...r,...E,borderColor:h.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var FE=L(jE,TE);const HE=e=>{const t=q(e);return t.current=e,t},BE=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,$E=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},VE=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},WE=(e,t,r,n,o,i,a,l)=>{e.forEach((e=>{e.qMatrix.forEach(((s,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,l,s,u)=>{var c;const{qSize:d}=a.qHyperCube,p=n.qTop+r,f=o+r,m=null!==(c=e[f])&&void 0!==c?c:[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(m.at(r))return;const{colIdx:o,isDim:c,isLocked:h,bodyTextAlign:g,selectionColIdx:v,qAttrExprInfoIndex:b,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=mb(c,e,a),C=!c&&e.qIsNull,E=C?dv(w):cv(e);m[r]={id:lv(),...e,align:Sb(E,g,u),rowIdx:p,colIdx:o,isSelectable:c&&!h,pageRowIdx:f,pageColIdx:r,selectionColIdx:v,isLastRow:p===d.qcy-1,isLastColumn:r===d.qcx-1,isNumeric:E,isNull:(!C||!E)&&fb(e,c),representation:pb({cell:e,representationProperties:y,attrExprInfoIndex:b,env:l,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[cg.Image]:l.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[cg.Indicator]:!0,[cg.MiniChart]:!0}})},s(m[r],p,r)})),{row:m,pageRowIdx:f}})(r,s,u,e.qArea,c,n,o,i,a,l);r[p]=d}))}))},UE=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,gridState:u,setEstimatedCellHeight:c})=>{const d=ux(ix,(e=>e.env)),{direction:p}=ux(ix,(e=>e.baseProps)),f=q([]),m=T(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return WE(t,o,n,s,e,d,c,p),f.current=n,n}),[i,o,s,e,d,c,p]),[h,g]=w((()=>m(null!=n?n:[])));yh((()=>{g(m(null!=n?n:[]))}),[n,p]);const v=((e,t)=>{const r=q(new Set),n=q(new Set),o=q(new Set),i=HE(e),a=HE(t),l=C((()=>({enqueue:e=>{const t=BE(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(BE(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 l})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>m(e,t)))})),b=T(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(VE(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};v.enqueue(e)}}),[f,v]),y=T(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if($E(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};v.enqueue(t)}}}),[f,v,o]);return E((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,s=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,l+5),f=Math.min(100,d,r,a+25);return y(i,s,p,f),()=>{v.clear()}}),[e,a,l,o,v,y,u,r]),{rowsInPage:h,loadRows:y,loadColumns:b}},GE=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},YE=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,KE=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=ux(ix,(e=>e.baseProps.styleService)),i=ux(ix,(e=>e.columnWidths)),{estimateLineCount:a}=hh(o.dimension.values),l=ex(o.dimension.values.fontSize),s=e||t||1===r;return T(((e,t,o)=>{if(s||e.representation.type===cg.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*l,t,o)}),[s,i,a,r,l,n])},XE=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>C((()=>{const{estimatedRowHeight:a,totalRowHeight:l}=e?{totalRowHeight:n*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(r),totalRowHeight:t}})(r.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(n*t,l)}),[e,t,n,r,o,i]),JE=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=ux(ix,(e=>e.baseProps)),[a,l]=w({rowHeights:new Map,cellHeightsInGrid:new Map}),s=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/s))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:s,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{var n,o;const{layout:i}=ux(ix,(e=>e.baseProps)),a=ux(ix,(e=>e.columnWidths)),l=null===(n=i.multiline)||void 0===n?void 0:n.wrapTextInCells,s=null===(o=i.nullValueRepresentation)||void 0===o?void 0:o.text;yh((()=>{var r;null===(r=e.current)||void 0===r||r.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[i.qHyperCube.qSize.qcx,i.qHyperCube.qSize.qcy,r.page,l,s]),yh((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[a])})({gridRef:n,setState:l,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>T(((o,i,a)=>{_((()=>{e((e=>{var l,s;const u=Math.max(r,o+9),c=Math.min(t,u),d=null!==(l=e.cellHeightsInGrid.get(i))&&void 0!==l?l:e.cellHeightsInGrid.set(i,new Map).get(i);if(!YE(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,GE(d)),null===(s=n.current)||void 0===s||s.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:l,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>T(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:KE({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:T((e=>{var t;return c?m:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,m]),totalRowHeight:XE({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:r}),lineClamp:f}},ZE=(e,t)=>{O((()=>()=>{t(0)}),[e,t]);const r=T((e=>{const r=OE(e);void 0!==r&&t(r)}),[t]);NE(e,r)};var QE;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(QE||(QE={}));const eR=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>T((({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=QE.None,i=QE.None;return o=n>t?QE.Down:n<t?QE.Up:QE.None,i=r>e?QE.Right:r<e?QE.Left:QE.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,l,u);if(i.current.overscanColumnStartIndex=l,i.current.overscanColumnStopIndex=s,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const v=l,b=u+o.page*o.rowsPerPage,y=s-l+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===QE.Down){const e=x+25;t(v,b,y,u+e>n?n-u:e)}else if(h===QE.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,b-25);t(v,n,y,e)}if(g===QE.Right){const t=e.qHyperCube.qSize.qcx-v,n=y+5,o=Math.min(t,n);r(v,b,o,x)}else if(g===QE.Left){const t=Math.max(0,v-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,b,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),tR={enabled:!1},rR=()=>{},nR={current:null};const oR=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),l=C((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},iR=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},aR={overflow:"hidden",willChange:"auto"};var lR=L(k(((e,t)=>{var r;const{rect:n,columns:o,pageInfo:i,headerAndTotalsHeight:a,setInnerBodyHeight:l}=e,{layout:s,model:u,theme:c,viewService:d,styleService:p,direction:f}=ux(ix,(e=>e.baseProps)),m=ux(ix,(e=>e.columnWidths)),h=ux(ix,(e=>e.initialDataPages)),g=q(null),v=q(null),b=q({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),y=q(0),x=!(null===(r=By(s))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:S,visibleRowCount:w,visibleColumnCount:R}=oR(s,i,n,m,p.contentMinRowHeight),{setMeasuredCellHeight:I,setEstimatedCellHeight:D,getRowHeight:A,lineClamp:P,totalRowHeight:M}=JE({rowCount:S,isSnapshot:!!s.snapshotData,viewService:d,gridRef:g,pageInfo:i}),{rowsInPage:T,loadRows:k,loadColumns:L}=UE({layout:s,model:u,theme:c,initialDataPages:h,pageInfo:i,rowCount:S,visibleRowCount:w,visibleColumnCount:R,columns:o,gridState:b,setEstimatedCellHeight:D}),N=eR({layout:s,loadRows:k,loadColumns:L,rowCount:S,pageInfo:i,gridState:b,viewService:d}),_=cw(),j=C((()=>({rowsInPage:T,columns:o,isHoverEnabled:x,lineClamp:P,setMeasuredCellHeight:I,resizeObserverTaskScheduler:_})),[T,o,x,P,I,_]),F=((e,t,r)=>Math.min(e.height-t,r))(n,a,M);return O((()=>{var e;1===y.current&&(null===(e=g.current)||void 0===e||e.scrollToItem({rowIndex:S-1,align:"start"}))})),function(e){const{selectionsAPI:t}=ux(ix,(e=>e.baseProps)),r=ux(ix,(e=>e.selectionDispatch));E((()=>{r({type:Fb.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),dw({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:rR,keyboard:tR,tableWrapperRef:nR})}(T),z(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=v.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:F)-F,i=Math.round(o*e);var a,l,s;(y.current=e,1===y.current)?(null===(a=g.current)||void 0===a||a.scrollToItem({rowIndex:S-1,align:"start"}),null===(l=g.current)||void 0===l||l.scrollTo({scrollLeft:t})):null===(s=g.current)||void 0===s||s.scrollTo({scrollTop:i,scrollLeft:t})}})),[v,F,S]),ZE(v,l),nr.jsx(xE,{"data-key":"body",ref:g,innerRef:v,style:aR,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>m[e],height:F,rowCount:S,rowHeight:A,estimatedRowHeight:d.estimatedRowHeight,width:n.width,itemData:j,onItemsRendered:N,itemKey:iR,className:"sn-table-body",direction:f,children:FE})})));const sR=({width:e,height:t,children:r})=>nr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),uR=(e,t)=>{const r=q(null),n=ux(ix,(e=>e.columnWidths));O((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=T((r=>{const n=OE(r);n&&t(n+9,e)}),[e,t]);return NE(r,o),r},cR=ic("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:void 0}}))),dR=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=r,{interactions:l,styleService:s,direction:u}=ux(ix,(e=>e.baseProps)),c=ux(ix,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=ux(ix,(e=>e.showRightBorder)),p=ux(ix,(e=>e.tableData.totalsPosition)),f=!!l.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:v}=YC({isInteractionEnabled:f,columnsData:n}),b=uR(e,a),y=n[e],x=n.length-1===e;return nr.jsxs(cR,{className:`sn-table-cell ${Dh}`,title:l.passive?y.label:void 0,onClick:g,applicableStyle:{...s.header,...kC(s,p,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:Xw(u,x,d),borderLeftWidth:Jw(u,x,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:y.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===y.headTextAlign?"row-reverse":"row",userSelect:"none"},interactions:l,hoverBackground:s.headerMenuHoverBackground,background:m?s.headerMenuActiveBackground:s.header.background,children:[nr.jsx(GC,{forwardRef:b,column:y,isInteractionEnabled:f,open:m,setOpen:h,allColumnsIconVisibilityStatusRef:i}),nr.jsx(jC,{column:y,isLastColumn:x,onColumnResize:o,setIsAdjustingWidth:v})]})},pR=e=>{const[t,r]=w(new Map);yh((()=>{r(new Map)}),[e.length]);const n=T(((e,t)=>{r((r=>YE(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>GE(t)),[t]),setMeasuredCellHeight:n}},fR=(e,t)=>{z(e,(()=>({scrollTo:e=>{var r;return null===(r=t.current)||void 0===r?void 0:r.scrollTo(e)}})),[t])},mR=(e,t,r,n,o)=>{yh((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,r,e,n,o])},hR={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},gR=k(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setHeaderRowHeight:l}=e,s=q(null),u=q(null),{layout:c,theme:d,styleService:p,direction:f,viewService:m}=ux(ix,(e=>e.baseProps)),h=ux(ix,(e=>e.columnWidths)),{rowHeight:g,setMeasuredCellHeight:v}=pR(n),b=zC(m,c);return fR(t,s),mR(s,c,o,h,d),ZE(u,l),nr.jsx(AE,{ref:s,outerRef:u,layout:"horizontal",style:{...hR,...b?{display:"none"}:void 0},itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(g+8,p.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:v},direction:f,children:dR})}));var vR=L(gR);const bR=k(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:l}=ux(ix,(e=>e.baseProps));return nr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:l,children:r})})),yR=({children:e,rect:t})=>{const{direction:r}=ux(ix,(e=>e.baseProps));return nr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},xR=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:l,styleService:s,direction:u}=ux(ix,(e=>e.baseProps)),c=ux(ix,(e=>e.showRightBorder)),d=uR(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:m}=n[e],h=a.qHyperCube.qSize.qcx-1===e;return nr.jsx("div",{className:`sn-table-cell ${Dh}`,title:l.passive?p:void 0,style:{...t,...s.totalRow,...kC(s,o,!1),background:s.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:Xw(u,h,c),borderLeftWidth:Jw(u,h,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default"},children:nr.jsx(Nw,{forwardRef:m?void 0:d,isNumeric:m,children:p})})},SR=k(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,l=q(null),s=q(null),{layout:u,theme:c,styleService:d,direction:p}=ux(ix,(e=>e.baseProps)),f=ux(ix,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:h}=pR(i);return fR(t,l),mR(l,u,n,f,c),ZE(s,a),nr.jsx(AE,{ref:l,outerRef:s,layout:"horizontal",style:hR,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(m,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:h},direction:p,children:xR})}));var wR=L(SR);const CR=(e,t,r,n,o)=>T((i=>{var a,l,s;const{scrollHeight:u,clientHeight:c,scrollTop:d}=i.currentTarget,p=((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,o),f=Math.max(0,Math.min(1,d/(u-c)));n.scrollTopRatio=f,n.scrollLeft=p,null===(a=r.current)||void 0===a||a.interpolatedScrollTo(Number.isNaN(f)?0:f,p),null===(l=e.current)||void 0===l||l.scrollTo(p),null===(s=t.current)||void 0===s||s.scrollTo(p)}),[n,r,e,t,o]),ER=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=ux(ix,(e=>e.tableData)),{layout:i,theme:a,rect:l,viewService:s,direction:u}=ux(ix,(e=>e.baseProps)),c=ux(ix,(e=>e.columnWidths)),d=ux(ix,(e=>e.setYScrollbarWidth)),p=q(null),f=q(null),m=q(null),h=q(null),{xScrollbarWidth:g,yScrollbarWidth:v}=nw(p),b=q([]),y=C((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(l,o)),[l,o]),x=C((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(y,g,v)),[y,g,v]),{rowCount:S}=oR(i,t,x,c,0),{headerAndTotalsHeight:E,innerBodyHeight:R,setHeaderRowHeight:I,setTotalsRowHeight:D,setInnerBodyHeight:A}=(()=>{const[e,t]=w(0),[r,n]=w(0),[o,i]=w(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:P,height:M}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=ux(ix,(e=>e.baseProps)),a=e+t,l=r*i.contentMinRowHeight+t;let s=l;return l<n.height&&a>n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:R,headerAndTotalsHeight:E,rowCount:S,stickyContainerRect:x,columnWidths:c}),k=CR(f,m,h,s,u),L=T((()=>{p.current&&(p.current.scrollTop=0)}),[p]);KS(),O((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),O((()=>{p.current&&(p.current.scrollTop=0)}),[t,S,a]),NS((()=>{d(v)}),[v]);const N=nr.jsx(wR,{rect:x,pageInfo:t,columns:n,ref:m,totals:r,setTotalsRowHeight:D},"totals");return nr.jsx(bR,{ref:p,width:y.width,height:y.height,onScroll:k,children:nr.jsx(sR,{width:P,height:M,children:nr.jsxs(yR,{rect:x,children:[nr.jsx(vR,{rect:x,pageInfo:t,columns:n,ref:f,columResizeHandler:L,allColumnsIconVisibilityStatusRef:b,setHeaderRowHeight:I}),r.atTop?N:null,nr.jsx(lR,{ref:h,rect:x,pageInfo:t,columns:n,headerAndTotalsHeight:E,setInnerBodyHeight:A}),r.atBottom?N:null]})})})};var RR=L(ER);const IR=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=ux(ix,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=ux(ix,(e=>e.tableData)),c=ux(ix,(e=>e.pageInfo)),d=ux(ix,(e=>e.setPage));return nr.jsxs(LS,{"data-testid":"sn-table",background:e.background,children:[nr.jsx(RR,{pageInfo:c}),nr.jsx(TS,{paginationNeeded:a,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var DR=L(IR);var AR={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 PR=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(AR).forEach((t=>{e.add(AR[t])}))}(r),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${Bb.First}`),l=e.querySelector(`.${Bb.Second}`);if(!a||!l)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let s;r===Bb.First?(s=l,r=Bb.Second):(s=a,r=Bb.First),s.innerHTML=s.innerHTML.endsWith(" ­")?i:`${i} ­`,s.setAttribute("aria-live",o)}})(t,r))),[t,r.language()]),MR={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},qR=e=>{const{app:r,model:i,rootElement:a,layout:l,translator:s,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:m}=t(),h=Eb(l,d),g=PR(a,s),[v,b]=n(((e,t)=>Cb(e,t)?{page:t.page||MR.page,rowsPerPage:t.rowsPerPage||MR.rowsPerPage,rowsPerPageOptions:MR.rowsPerPageOptions}:MR)(l,d)),[y,x]=n(!0);y||x(!0);const[S,w]=ph((async()=>h?async function(e,t,r,n,o,i,a,l){var s,u,c,d;const{page:p,rowsPerPage:f,rowsPerPageOptions:m}=r,h=t.qHyperCube.qSize.qcx,g=t.qHyperCube.qSize.qcy,v=Math.ceil(g/f),b=null!==(s=o.visibleTop)&&void 0!==s?s:p*f,y=null!==(u=o.visibleHeight)&&void 0!==u?u:Math.min(f,g-b);if(p>0&&b>=g)return n({...r,page:0}),null;if(y*h>hb)return n({...r,rowsPerPage:gb(h,m),page:0}),null;const x=g>10,S=vb(t,o),w=wb(t,a,l),C=!!t.snapshotData,E=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=null==n?void 0:n.qArea;return n&&(null==o?void 0: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]):[]})(e,t,{qLeft:0,qTop:b,qHeight:y,qWidth:h});C||(o.qTop=b,o.qHeight=y,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const R=null!==(c=null===(d=E.at(0))||void 0===d?void 0:d.qMatrix.map(((e,r)=>{const n=[];return w.forEach(((o,s)=>{const u=e[s],c=mb(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?dv(c):cv(u);n[s]={id:lv(),...u,align:Sb(p,o.bodyTextAlign,l,a),rowIdx:r+b,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:s,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===y-1,isNumeric:p,isNull:(!d||!p)&&fb(u,o.isDim),representation:pb({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:l,enabledFeatures:{[cg.Image]:i.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[cg.Indicator]:!0,[cg.MiniChart]:!0}})}})),n})))&&void 0!==c?c:[];return{totalColumnCount:h,totalRowCount:g,totalPages:v,paginationNeeded:x,totalsPosition:S,columns:w,rows:R}}(i,l,v,b,d,p,y,f):null),[l,v,i,h,f]);o((()=>{h&&e.model&&e.changeSortOrder&&S&&c&&!w&&function(e,t){const{direction:r,...n}=e,o=cx(r);t.render(nr.jsx(xi,{stylisPlugins:"rtl"===r?[my]:void 0,children:nr.jsx(lc,{theme:o,children:nr.jsx(sx,{...e,children:nr.jsx(QC,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:S,pageInfo:v,setPageInfo:b,direction:f,footerContainer:m,announce:g},u)}),[g,r,f,m,c,v,u,e,h,S,w])},TR=(t,r)=>e((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==l||s;if(!o){var m;const e=null===(m=c.qHyperCubeDef.qMeasures.at(u))||void 0===m?void 0:m.qSortBy;void 0===(null==e?void 0:e.qSortByNumeric)&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===l?1:-1})})}s||(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()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const kR=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=ph((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(Ey,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return n})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},LR=t=>{const{layout:r,model:i,keyboard:a,interactions:l,reactRoot:s,isFontLoaded:u,viewService:c,direction:d}=t,p=!Eb(r,c),[f,m]=n(!1);f&&m(!1);const h=e((()=>function(e,t,r,n,o){const i=wb(e,o,n),a=vb(e,r),l=e.qHyperCube.qSize.qcy,s=Math.min(Ey,l),u=l>Ey&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:l,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/s),paginationNeeded:u}}(r,l,c,d,f)),[r,l,c,d,f]),{pageInfo:g,setPage:v}=((t,r)=>{const[o,i]=n(0),a=Math.min(Ey,t.qHyperCube.qSize.qcy),l=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/Ey);e<o&&i(e)}return{pageInfo:l,setPage:i}})(r,p),{initialDataPages:b,isLoading:y}=kR({model:i,layout:r,page:g.page,shouldRender:p});o((()=>{var e;p&&a.active&&(null===(e=a.blur)||void 0===e||e.call(a,!1))}),[a,p]),o((()=>{p&&t.model&&t.changeSortOrder&&b&&!y&&u&&function(e,t){const{direction:r}=e,n=cx(r);t.render(nr.jsx(x.StrictMode,{children:nr.jsx(lc,{theme:n,children:nr.jsx(sx,{...e,children:nr.jsx(DR,{})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:h,pageInfo:g,setPage:v,initialDataPages:b},s)}),[b,u,y,g,s,t,v,p,h])},OR={version:JSON.stringify("4.8.1"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function NR(e,t){var r,n;const o=e.getElementsByClassName("sn-table-container")[0];if(!o)return{};const i=o.getBoundingClientRect(),a=e.getElementsByClassName("sn-table-head-row")[0],l=null!==(r=null==a?void 0:a.getBoundingClientRect())&&void 0!==r?r:{height:0},s=e.getElementsByClassName("sn-table-totals-row")[0],u=null!==(n=null==s?void 0:s.getBoundingClientRect())&&void 0!==n?n:{height:0},c=e.getElementsByClassName("sn-table-data-row"),d={top:i.y+l.height+(t.atTop?u.height:0),bottom:i.y+i.height-(t.atBottom?u.height:0)},p=((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})(c,d),f=((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})(c,d),m=((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)})(c,d,p);return{visibleRowStartIndex:p,visibleRowEndIndex:f,rowPartialHeight:m}}const _R=(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]}},zR=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const jR=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||MR.rowsPerPage,l=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},FR=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=vb(e,t);if(Eb(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=NR(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:jR(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=_R(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,v=(zR(m,h,g)?d:d+1)+c;let b=p+c;const y=_R(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(zR(x,h,g)||(b=p-1+c)),{visibleRowStartIndex:v,visibleRowEndIndex:b}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:jR(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},HR=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),BR=e=>e.getStyle("object","straightTableV2","backgroundColor");function $R(r){return{qae:{properties:{initial:OR},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>ng({...e}),exportProperties:Jh,exploration:og},ext:Qg(r),component(){var n;const i=c(),y=(t=>{const r=e((()=>gh(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(i),x=d(),S=p(),w=f(),C=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!x.snapshotData),E=m(),R=h(),I=g(),D=t(),{freeResize:A}=D,P=v(),M=e((()=>{var e;return null!==(e=x.snapshotData)&&void 0!==e&&e.content&&!A?{...P,...x.snapshotData.content.size}:P}),[P,A,null===(n=x.snapshotData)||void 0===n?void 0:n.content]),q=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(v=null==t||null===(b=t.content)||void 0===b?void 0:b.estimatedRowHeight)&&void 0!==v?v:0}})(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(x),T=b(),k=dh(x,i,HR,BR),L=r.flags.isEnabled("CLIENT_IM_7150_TABLE_RTL")?D.direction:"ltr",O=TR(x.qHyperCube,w),N=ev(x.qHyperCube,w),_=((e,t,r)=>{const[,n,o]=ph((async()=>{var t;const n=se(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...l,o,i,a,bh].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(k,x,r),z=St(),j={app:S,layout:x,model:w,rect:M,theme:k,keyboard:I,translator:E,interactions:C,selectionsAPI:R,changeSortOrder:O,rootElement:i,embed:T,reactRoot:y,applyColumnWidths:N,isFontLoaded:_,downloadService:z,viewService:q,direction:L,env:r};null==l||l(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${Dh}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{_h(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{s((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=FR(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),u((()=>({getViewState:()=>FR(e,t,n)})),[e,t,n])})({layout:x,viewService:q,model:w,rootElement:i,contentRect:P}),LR(j),qR(j)}}}export{$R as default};
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="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+r+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=new RegExp("("+l+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(s+"(left)"+h+b+g,"gi"),D=new RegExp(s+"(right)"+h+b+g,"gi"),L=new RegExp(s+"(left)"+v,"gi"),I=new RegExp(s+"(right)"+v,"gi"),q=new RegExp(s+"(ltr)"+v,"gi"),P=new RegExp(s+"(rtl)"+v,"gi"),M=new RegExp(s+"([ns]?)e-resize","gi"),_=new RegExp(s+"([ns]?)w-resize","gi"),k=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),T=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),O=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),j=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),$=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),V=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function G(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function W(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?W(n)+" / "+W(o):W(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(E,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(q,"$1"+e).replace(P,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(L,"$1"+e).replace(I,"$1left").replace(x,"right")),r=r.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(D,"$1left").replace(x,"right").replace(M,"$1$2"+e).replace(_,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(j,K).replace(z,J).replace(H,J).replace(B,K).replace($,X).replace(V,X).replace(k,"$1$2$3$8$5$6$7$4$9").replace(T,"$1$2$3$8$5$6$7$4$9").replace(O,G).replace(N,G),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)}(Zw,Zw.exports);var Qw=Rt(Zw.exports),eR="comm",tR="rule",rR="decl",nR=Math.abs,oR=String.fromCharCode;function iR(e){return e.trim()}function aR(e,t,r){return e.replace(t,r)}function sR(e,t,r){return e.indexOf(t,r)}function lR(e,t){return 0|e.charCodeAt(t)}function uR(e,t,r){return e.slice(t,r)}function cR(e){return e.length}function dR(e,t){return t.push(e),e}var pR,fR,mR,hR,gR=1,bR=1,vR=0,yR=0,xR=0,SR="";function ER(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:gR,column:bR,length:a,return:"",siblings:s}}function CR(){return xR=yR>0?lR(SR,--yR):0,bR--,10===xR&&(bR=1,gR--),xR}function wR(){return xR=yR<vR?lR(SR,yR++):0,bR++,10===xR&&(bR=1,gR++),xR}function RR(){return lR(SR,yR)}function AR(){return yR}function DR(e,t){return uR(SR,e,t)}function LR(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 IR(e){return iR(DR(yR-1,MR(91===e?e+2:40===e?e+1:e)))}function qR(e){for(;(xR=RR())&&xR<33;)wR();return LR(e)>2||LR(xR)>3?"":" "}function PR(e,t){for(;--t&&wR()&&!(xR<48||xR>102||xR>57&&xR<65||xR>70&&xR<97););return DR(e,AR()+(t<6&&32==RR()&&32==wR()))}function MR(e){for(;wR();)switch(xR){case e:return yR;case 34:case 39:34!==e&&39!==e&&MR(xR);break;case 40:41===e&&MR(e);break;case 92:wR()}return yR}function _R(e,t){for(;wR()&&e+xR!==57&&(e+xR!==84||47!==RR()););return"/*"+DR(t,yR-1)+"*"+oR(47===e?e:wR())}function kR(e){for(;!LR(RR());)wR();return DR(e,yR)}function TR(e){return function(e){return SR="",e}(OR("",null,null,null,[""],e=function(e){return gR=bR=1,vR=cR(SR=e),yR=0,[]}(e),0,[0],e))}function OR(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=wR()){case 40:if(108!=m&&58==lR(C,d-1)){-1!=sR(C+=aR(IR(v),"&","&\f"),"&\f",nR(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=IR(v);break;case 9:case 10:case 13:case 32:C+=qR(m);break;case 92:C+=PR(AR()-1,7);continue;case 47:switch(RR()){case 42:case 47:dR(FR(_R(wR(),AR()),t,r,l),l),5!=LR(m||1)&&5!=LR(RR()||1)||!cR(C)||" "===uR(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*h:s[u++]=cR(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=aR(C,/\f/g,"")),f>0&&(cR(C)-d||0===h&&47===m)&&dR(f>32?jR(C+";",n,r,d-1,l):jR(aR(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(dR(E=NR(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)OR(C,t,E,E,x,i,d,s,S);else{switch(p){case 99:if(110===lR(C,3))break;case 108:if(97===lR(C,2))break;default:c=0;case 100:case 109:case 115:}c?OR(e,E,E,n&&dR(NR(e,E,E,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):OR(C,E,E,E,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+cR(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==CR())continue;switch(C+=oR(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(cR(C)-1)*b,b=1;break;case 64:45===RR()&&(C+=IR(wR())),p=RR(),c=d=cR(y=C+=kR(AR())),v++;break;case 45:45===m&&2==cR(C)&&(h=0)}}return i}function NR(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=function(e){return e.length}(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=uR(e,p+1,p=nR(g=a[h])),x=e;v<m;++v)(x=iR(g>0?f[v]+" "+y:aR(y,/&\f/g,f[v])))&&(l[b++]=x);return ER(e,t,r,0===o?tR:s,l,u,c,d)}function FR(e,t,r,n){return ER(e,t,r,eR,oR(xR),uR(e,2,-2),0,n)}function jR(e,t,r,n,o){return ER(e,t,r,rR,uR(e,0,n),uR(e,n+1,-1),n,o)}function zR(e,t,r){switch(e.type){case"@import":case rR:case eR:return e.return=e.return||e.value;case tR:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===eR&&(e.children=e.value)}))}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),zR);return cR(n)?e.return=e.value+"{"+n+"}":""}function HR(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===tR&&(!e.parent||"@media"===e.parent.type||e.parent.type===tR)){var o=Qw.transform(zR(e));e.children=o?TR(o)[0].children:[],e.return=""}}Object.defineProperty(HR,"name",{value:"stylisRTLPlugin"}),function(e){e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive"}(pR||(pR={})),function(e){e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows"}(fR||(fR={})),function(e){e.A="ascending",e.D="descending"}(mR||(mR={})),function(e){e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2"}(hR||(hR={}));const BR=[0,0],$R={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",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",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_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)"},VR=12,GR=14,WR=16,UR=24,YR=3,KR=300,XR=400,JR=600,ZR=700,QR={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var eA='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';function tA(e){return Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Dl.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function rA(e){return Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Dl.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"})})}var nA=function({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Dl.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function oA(e={}){return Dl.jsx(nA,{...e,children:Dl.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Dl.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Dl.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 iA(e={}){return Dl.jsx(nA,{...e,children:Dl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Dl.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Dl.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Dl.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function aA(e={}){return Dl.jsx(nA,{fontSize:"medium",...e,children:Dl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Dl.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Dl.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function sA(e={}){return Dl.jsx(nA,{fontSize:"medium",...e,children:Dl.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Dl.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Dl.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 lA({className:e}){return Dl.jsx(nA,{fontSize:"small",className:e,children:Dl.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Dl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Dl.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Dl.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Dl.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"}),Dl.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 uA(e={}){return Dl.jsx(nA,{...e,children:Dl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Dl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Dl.jsx("rect",{stroke:$R.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const cA={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:YR,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},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:[]}};var dA=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:$R.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:$R.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Dl.jsx(tA,{"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 ${$R.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:$R.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${$R.MISC_FOCUS_BORDER}`,borderRadius:YR,backgroundColor:$R.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 ${$R.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:$R.WHITE,color:$R.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:YR},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${$R.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:$R.GREYSCALE_0_15,backgroundColor:$R.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:$R.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$R.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:$R.GREEN_PALE},"&:active":{backgroundColor:$R.GREEN_DARK},"&.Mui-focusVisible":{borderColor:$R.GREEN_PALE,boxShadow:`0 0 0 3px ${mm($R.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:$R.BLUE_PALE},"&:active":{backgroundColor:$R.BLUE_DARK},"&.Mui-focusVisible":{borderColor:$R.BLUE_PALE,boxShadow:`0 0 0 3px ${mm($R.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:YR,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:$R.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${$R.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:$R.GREYSCALE_0_15,backgroundColor:$R.GREYSCALE_100_60,"&:active":{backgroundColor:$R.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:$R.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$R.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:$R.PURPLE,"&.Mui-focusVisible":{borderColor:$R.PURPLE,boxShadow:`0 0 0 3px ${mm($R.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:$R.GREEN,"&.Mui-focusVisible":{borderColor:$R.GREEN,boxShadow:`0 0 0 3px ${mm($R.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:$R.BLUE,"&.Mui-focusVisible":{borderColor:$R.BLUE,boxShadow:`0 0 0 3px ${mm($R.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:$R.ORANGE,"&.Mui-focusVisible":{borderColor:$R.ORANGE,boxShadow:`0 0 0 3px ${mm($R.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:$R.RED,"&.Mui-focusVisible":{borderColor:$R.RED,boxShadow:`0 0 0 3px ${mm($R.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:$R.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:$R.PURPLE_PALE},"&:active":{backgroundColor:$R.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:$R.PURPLE_PALE,boxShadow:`0 0 0 3px ${mm($R.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:$R.GREEN_PALE},"&:active":{backgroundColor:$R.GREEN_DARK},"&.Mui-focusVisible":{borderColor:$R.GREEN_PALE,boxShadow:`0 0 0 3px ${mm($R.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:$R.BLUE_PALE},"&:active":{backgroundColor:$R.BLUE_DARK},"&.Mui-focusVisible":{borderColor:$R.BLUE_PALE,boxShadow:`0 0 0 3px ${mm($R.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:$R.ORANGE_PALE},"&:active":{backgroundColor:$R.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:$R.ORANGE_PALE,boxShadow:`0 0 0 3px ${mm($R.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:$R.RED_PALE},"&:active":{backgroundColor:$R.RED_DARK},"&.Mui-focusVisible":{borderColor:$R.RED_PALE,boxShadow:`0 0 0 3px ${mm($R.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:$R.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:$R.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:YR,boxShadow:`inset 0 0 0 2px ${$R.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Dl.jsx(rA,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:VR,borderRadius:YR,color:$R.TEXT_PRIMARY,backgroundColor:$R.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:$R.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${$R.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:$R.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:$R.GREYSCALE_0_05,color:$R.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:$R.GREEN,borderColor:$R.GREEN},"&.MuiChip-outlinedInfo":{color:$R.BLUE,borderColor:$R.BLUE},"&.MuiChip-outlinedWarning":{color:$R.ORANGE,borderColor:$R.ORANGE},"&.MuiChip-outlinedError":{color:$R.RED,borderColor:$R.RED}},outlined:{border:`solid 1px ${$R.GREYSCALE_0_15}`,backgroundColor:$R.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:YR,boxShadow:"none",backgroundColor:$R.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:$R.GREEN,borderColor:$R.GREEN},outlinedSecondary:{color:$R.BLUE,borderColor:$R.BLUE},label:{fontFamily:QR.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Dl.jsx(rA,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Dl.jsx(tA,{"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:YR},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:YR,fontSize:GR,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:$R.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${$R.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:$R.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:$R.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:$R.GREYSCALE_0_05}}},popupIndicator:{borderRadius:YR,border:`solid 1px ${$R.GREYSCALE_0_15}`,color:$R.GREYSCALE_0_60,marginRight:0,width:UR,height:UR},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${$R.GREYSCALE_0_15}`},clearIndicator:{borderRadius:YR,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:$R.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:GR}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:VR,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:$R.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:$R.GREYSCALE_25,fontSize:VR,fontFamily:QR.FONT_FAMILY,fontWeight:JR,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:$R.TEXT_PRIMARY},"&.Mui-error":{color:$R.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:$R.TEXT_SECONDARY,content:"'(optional)'",fontWeight:XR,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:$R.TEXT_SECONDARY,content:"'(required)'",fontWeight:XR,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:GR,lineHeight:"16px",backgroundColor:$R.WHITE,borderRadius:YR,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$R.GREYSCALE_0_05}`,borderColor:$R.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$R.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${$R.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${$R.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$R.RED}`,boxShadow:`0px 0px 0px 1px ${$R.RED}, inset 0 2px 0 0 ${$R.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$R.GREYSCALE_0_10}`,borderColor:$R.GREYSCALE_0_10,backgroundColor:$R.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:$R.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:$R.GREYSCALE_0_15,borderRadius:YR,boxShadow:`inset 0 2px 0 0 ${$R.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Dl.jsx(tA,{...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:$R.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:$R.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:$R.GREYSCALE_0_03},"&:active":{backgroundColor:$R.GREYSCALE_0_10},"&:focus":{backgroundColor:$R.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${$R.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${$R.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:$R.GREYSCALE_0_30,"&:hover":{backgroundColor:$R.GREYSCALE_0_0,borderColor:$R.GREYSCALE_0_15},"& ~svg":{color:$R.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${$R.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:YR}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:$R.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${$R.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:$R.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:GR,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:VR,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:VR,fontWeight:JR,color:$R.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:JR}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${$R.GREYSCALE_0_15}, 0px 0px 0px 1px ${$R.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Dl.jsx(aA,{}),checkedIcon:Dl.jsx(sA,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:$R.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${$R.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:$R.GREEN_PALE,boxShadow:`0 0 0 3px ${mm($R.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:$R.BLUE_PALE,boxShadow:`0 0 0 3px ${mm($R.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:$R.GREYSCALE_0_20}},"&.Mui-disabled":{fill:$R.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Dl.jsx(uA,{}),checkedIcon:Dl.jsx(oA,{}),indeterminateIcon:Dl.jsx(iA,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:YR,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:$R.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:$R.GREYSCALE_0_55,color:$R.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:$R.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:$R.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:$R.GREYSCALE_0_55,"&:hover":{color:$R.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:$R.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:$R.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:GR,color:$R.TEXT_PRIMARY,lineHeight:"16px",fontWeight:JR},secondary:{fontSize:VR,color:$R.GREYSCALE_45,fontWeight:XR,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:GR,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:GR,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:$R.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:VR,borderBottom:`solid 1px ${$R.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:GR,color:$R.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:$R.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:$R.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:$R.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:`url('${eA}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:$R.RED}}},"&.Mui-focusVisible":{backgroundColor:$R.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:$R.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:$R.GREEN,height:"24px","&.Mui-disabled":{color:$R.GREYSCALE_0_15}},rail:{backgroundColor:$R.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${$R.GREYSCALE_0_05}`,borderRadius:YR,boxShadow:`inset 0px 0px 0px 1px ${$R.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${$R.GREYSCALE_0_05}`,borderRadius:YR},thumb:{height:"16px",width:"16px",borderRadius:YR,backgroundColor:$R.WHITE,boxShadow:`0px 1px 2px 0px ${$R.GREYSCALE_0_15}, 0px 0px 0px 1px ${$R.GREYSCALE_0_05}`,"&:hover":{borderRadius:YR,boxShadow:`0 2px 4px 0 ${$R.GREYSCALE_0_30}, 0 0 0 1px ${$R.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${$R.GREYSCALE_0_15}, 0 0 0 1px ${$R.GREYSCALE_0_06}, 0 0 0 2px ${$R.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${$R.GREYSCALE_0_15}, 0 0 0 1px ${$R.GREYSCALE_0_06}, 0 0 0 2px ${$R.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:$R.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:$R.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:$R.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:$R.GREYSCALE_0_15},markLabel:{color:$R.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:$R.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:$R.WHITE,color:$R.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:$R.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:$R.GREEN_PALE,boxShadow:`0 0 0 3px ${mm($R.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:$R.BLUE_PALE,boxShadow:`0 0 0 3px ${mm($R.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:$R.GREYSCALE_0_15,borderRadius:YR},thumb:{height:"16px",width:"16px",borderRadius:YR,backgroundColor:$R.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:GR,fontWeight:JR,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${$R.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${$R.MISC_FOCUS_BORDER}`,backgroundColor:$R.GREYSCALE_0_03,borderRadius:YR},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:$R.GREYSCALE_25,"&.Mui-selected":{color:$R.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:GR,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:YR,"&:hover":{backgroundColor:$R.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 ${$R.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${$R.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:YR,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:$R.GREYSCALE_0_05},"&:hover":{backgroundColor:$R.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${$R.GREYSCALE_85}`,borderRight:`1px solid ${$R.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:JR,backgroundColor:$R.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:$R.GREYSCALE_98,borderBottom:`1px solid ${$R.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${$R.GREYSCALE_85}`,borderTop:`1px solid ${$R.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:$R.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:$R.GREYSCALE_0_05,"&:hover":{backgroundColor:$R.GREYSCALE_0_03}},"&&:hover":{backgroundColor:$R.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Dl.jsx(lA,{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 ${$R.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:GR,borderRadius:YR,padding:"7px 16px",border:`1px solid ${$R.GREYSCALE_0_15}`,backgroundColor:$R.GREYSCALE_100_60,color:$R.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:$R.GREYSCALE_0_10,border:`1px solid ${$R.GREYSCALE_0_30}`},"&:hover":{backgroundColor:$R.GREYSCALE_0_03,border:`1px solid ${$R.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:$R.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${$R.MISC_FOCUS_BORDER}`,border:`1px solid ${$R.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:$R.GREYSCALE_25,backgroundColor:$R.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:$R.GREYSCALE_0_10,border:`1px solid ${$R.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:VR,height:24,width:24,padding:7},sizeLarge:{fontSize:WR,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:GR,borderRadius:YR}}},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:$R.GREYSCALE_20},tooltip:{backgroundColor:$R.GREYSCALE_20,fontSize:VR,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...cA}:{}});var pA=()=>({mode:"light",primary:{ultraLight:$R.GREEN_ULTRA_LIGHT,light:$R.GREEN_PALE,main:$R.GREEN,dark:$R.GREEN_DARK,extraDark:$R.GREEN_EXTRA_DARK,contrastText:$R.WHITE},secondary:{ultraLight:$R.BLUE_ULTRA_LIGHT,light:$R.BLUE_PALE,main:$R.BLUE,dark:$R.BLUE_DARK,extraDark:$R.BLUE_EXTRA_DARK,contrastText:$R.WHITE},error:{ultraLight:$R.RED_ULTRA_LIGHT,light:$R.RED_PALE,main:$R.RED,dark:$R.RED_DARK,extraDark:$R.RED_EXTRA_DARK,contrastText:$R.WHITE},warning:{ultraLight:$R.ORANGE_ULTRA_LIGHT,light:$R.ORANGE_PALE,main:$R.ORANGE,dark:$R.ORANGE_DARK,extraDark:$R.ORANGE_EXTRA_DARK,contrastText:$R.WHITE},success:{ultraLight:$R.GREEN_ULTRA_LIGHT,light:$R.GREEN_PALE,main:$R.GREEN,dark:$R.GREEN_DARK,extraDark:$R.GREEN_EXTRA_DARK,contrastText:$R.WHITE},info:{ultraLight:$R.BLUE_ULTRA_LIGHT,light:$R.BLUE_PALE,main:$R.BLUE,dark:$R.BLUE_DARK,extraDark:$R.BLUE_EXTRA_DARK,contrastText:$R.WHITE},text:{primary:$R.TEXT_PRIMARY,secondary:$R.TEXT_SECONDARY,disabled:$R.GREYSCALE_0_30},action:{hover:$R.GREYSCALE_0_03,hoverOpacity:.03,selected:$R.GREYSCALE_0_05,selectedOpacity:.05,focus:$R.MISC_FOCUS_BORDER},amethyst:{ultraLight:$R.WHITE,main:$R.PURPLE,light:$R.PURPLE_PALE,dark:$R.PURPLE_DARK,extraDark:$R.GREYSCALE_0_0,contrastText:$R.WHITE},background:{paper:$R.WHITE,default:$R.GREYSCALE_95},divider:$R.GREYSCALE_0_15});var fA=e=>pA();var mA=(e,t=!1)=>{const r=((e,t)=>dA(t))(0,t);return{components:r,palette:fA(e),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:GR,fontWeightLight:KR,fontWeightRegular:XR,fontWeightMedium:JR,fontWeightBold:ZR,htmlFontSize:GR,fontFamily:QR.FONT_FAMILY,button:{fontWeight:JR,fontSize:GR,textTransform:"none"},body1:{fontSize:WR,lineHeight:"24px"},body2:{fontSize:GR,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:UR,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:WR,fontWeight:JR,lineHeight:"16px"},h6:{fontSize:GR,fontWeight:JR,lineHeight:"16px"},caption:{color:$R.TEXT_SECONDARY},subtitle1:{fontSize:GR,color:$R.TEXT_SECONDARY},subtitle2:{fontSize:VR,color:$R.TEXT_SECONDARY}},shape:{borderRadius:YR}}},hA={},gA={exports:{}},bA={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}(bA);var vA=bA.exports;!function(e){var t=vA.default;function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}e.exports=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=t(e)&&"function"!=typeof e)return{default:e};var o=r(n);if(o&&o.has(e))return o.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=e[s]}return i.default=e,o&&o.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports}(gA);var yA=gA.exports,xA={},SA=At(vr);Object.defineProperty(xA,"__esModule",{value:!0}),xA.hexToRgb=wA,xA.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=AA(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(""))},xA.hslToRgb=RA,xA.decomposeColor=AA,xA.recomposeColor=DA,xA.getContrastRatio=function(e,t){var r=LA(e),n=LA(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},xA.getLuminance=LA,xA.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return LA(e)>.5?qA(e,t):PA(e,t)},xA.fade=function(e,t){return IA(e,t)},xA.alpha=IA,xA.darken=qA,xA.lighten=PA;var EA=SA;function CA(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 wA(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 RA(e){var t=(e=AA(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])),DA({type:s,values:l})}function AA(e){if(e.type)return e;if("#"===e.charAt(0))return AA(wA(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,EA.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 DA(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 LA(e){var t="hsl"===(e=AA(e)).type?AA(RA(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 IA(e,t){return e=AA(e),t=CA(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,DA(e)}function qA(e,t){if(e=AA(e),t=CA(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 DA(e)}function PA(e,t){if(e=AA(e),t=CA(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 DA(e)}var MA,_A,kA,TA={},OA={exports:{}},NA={exports:{}},FA={exports:{}};function jA(){return MA||(MA=1,function(e){var t=vA.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}(FA)),FA.exports}function zA(){return _A||(_A=1,function(e){var t=vA.default,r=jA();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(NA)),NA.exports}function HA(){return kA||(kA=1,function(e){var t=zA();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}(OA)),OA.exports}var BA,$A={exports:{}};function VA(){return BA||(BA=1,function(e){var t=ig();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],r.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}($A)),$A.exports}var GA,WA={};var UA,YA={};var KA,XA={},JA={};var ZA,QA={};var eD,tD={};var rD,nD={};var oD,iD={};var aD,sD={};var lD,uD={};var cD,dD,pD={};function fD(){if(dD)return XA;dD=1;var e=ch;Object.defineProperty(XA,"__esModule",{value:!0}),XA.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,E=e.warning,C=void 0===E?{light:u.default[300],main:u.default[500],dark:u.default[700]}:E,w=e.info,R=void 0===w?{light:c.default[300],main:c.default[500],dark:c.default[700]}:w,A=e.success,D=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,L=e.type,I=void 0===L?"light":L,q=e.contrastThreshold,P=void 0===q?3:q,M=e.tonalOffset,_=void 0===M?.2:M,k=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function T(e){return(0,p.getContrastRatio)(e,m.text.primary)>=P?m.text.primary:f.text.primary}var O=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 h(e,"light",o,_),h(e,"dark",i,_),e.contrastText||(e.contrastText=T(e.main)),e},N={dark:m,light:f},F=(0,n.deepmerge)((0,t.default)({common:o.default,type:I,primary:O(b),secondary:O(y,"A400","A200","A700"),error:O(S),warning:O(C),info:O(R),success:O(D),grey:i.default,contrastThreshold:P,getContrastText:T,augmentColor:O,tonalOffset:_},N[I]),k);return F},XA.dark=XA.light=void 0;var t=e(rg()),r=e(VA()),n=SA,o=e(function(){if(KA)return JA;KA=1,Object.defineProperty(JA,"__esModule",{value:!0}),JA.default=void 0;var e={black:"#000",white:"#fff"};return JA.default=e,JA}()),i=e(function(){if(ZA)return QA;ZA=1,Object.defineProperty(QA,"__esModule",{value:!0}),QA.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 QA.default=e,QA}()),a=e(function(){if(eD)return tD;eD=1,Object.defineProperty(tD,"__esModule",{value:!0}),tD.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 tD.default=e,tD}()),s=e(function(){if(rD)return nD;rD=1,Object.defineProperty(nD,"__esModule",{value:!0}),nD.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 nD.default=e,nD}()),l=e(function(){if(oD)return iD;oD=1,Object.defineProperty(iD,"__esModule",{value:!0}),iD.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 iD.default=e,iD}()),u=e(function(){if(aD)return sD;aD=1,Object.defineProperty(sD,"__esModule",{value:!0}),sD.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 sD.default=e,sD}()),c=e(function(){if(lD)return uD;lD=1,Object.defineProperty(uD,"__esModule",{value:!0}),uD.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 uD.default=e,uD}()),d=e(function(){if(cD)return pD;cD=1,Object.defineProperty(pD,"__esModule",{value:!0}),pD.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 pD.default=e,pD}()),p=xA,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}};XA.light=f;var m={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 h(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 XA.dark=m,XA}var mD,hD={};var gD,bD={};var vD,yD={};var xD,SD={},ED=At(oo);var CD,wD={};function RD(){if(CD)return wD;CD=1;var e=ch;Object.defineProperty(wD,"__esModule",{value:!0}),wD.default=wD.duration=wD.easing=void 0;var t=e(VA()),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)"};wD.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")}wD.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 wD.default=i,wD}var AD,DD,LD={};function ID(){if(DD)return TA;DD=1;var e=ch;Object.defineProperty(TA,"__esModule",{value:!0}),TA.createMuiTheme=function(){return p.apply(void 0,arguments)},TA.default=void 0,e(HA());var t=e(VA()),r=SA,n=e(function(){if(GA)return WA;GA=1;var e=ch;Object.defineProperty(WA,"__esModule",{value:!0}),WA.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)},WA.keys=void 0;var t=e(rg()),r=e(VA()),n=["xs","sm","md","lg","xl"];return WA.keys=n,WA}()),o=e(function(){if(UA)return YA;UA=1;var e=ch;Object.defineProperty(YA,"__esModule",{value:!0}),YA.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(HA()),r=e(rg());return YA}()),i=e(fD()),a=e(function(){if(mD)return hD;mD=1;var e=ch;Object.defineProperty(hD,"__esModule",{value:!0}),hD.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,m=u.fontWeightLight,h=void 0===m?300:m,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,E=u.htmlFontSize,C=void 0===E?16:E,w=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),D=f/14,L=R||function(e){return"".concat(e/C*D,"rem")},I=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:L(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,w)},q={h1:I(h,96,1.167,-1.5),h2:I(h,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:L,round:i,fontFamily:d,fontSize:f,fontWeightLight:h,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},q),A,{clone:!1})};var t=e(rg()),r=e(VA()),n=SA;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 hD}()),s=e(function(){if(gD)return bD;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(",")}gD=1,Object.defineProperty(bD,"__esModule",{value:!0}),bD.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 bD.default=t,bD}()),l=e(function(){if(vD)return yD;vD=1,Object.defineProperty(yD,"__esModule",{value:!0}),yD.default=void 0;var e={borderRadius:4};return yD.default=e,yD}()),u=e(function(){if(xD)return SD;xD=1,Object.defineProperty(SD,"__esModule",{value:!0}),SD.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=ED;return SD}()),c=e(RD()),d=e(function(){if(AD)return LD;AD=1,Object.defineProperty(LD,"__esModule",{value:!0}),LD.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return LD.default=e,LD}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,m=e.mixins,h=void 0===m?{}:m,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"]),E=(0,i.default)(b),C=(0,n.default)(f),w=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,w,h),overrides:{},palette:E,props:{},shadows:s.default,typography:(0,a.default)(E,x),spacing:w,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,D=new Array(A>1?A-1:0),L=1;L<A;L++)D[L-1]=arguments[L];return R=D.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return TA.default=f,TA}var qD,PD={};var MD,_D={},kD=At(ol);var TD,OD,ND={},FD={};function jD(){if(TD)return FD;TD=1;var e=ch;Object.defineProperty(FD,"__esModule",{value:!0}),FD.default=void 0;var t=(0,e(ID()).default)();return FD.default=t,FD}var zD,HD,BD={},$D={};function VD(){if(HD)return BD;HD=1;var e=ch;Object.defineProperty(BD,"__esModule",{value:!0}),BD.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 m=f.typography,h=(0,n.convertLength)(m.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=m[e],i=parseFloat(h(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(h(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:m.htmlFontSize})})}),m[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(rg()),r=SA,n=function(){if(zD)return $D;zD=1;var e=ch;Object.defineProperty($D,"__esModule",{value:!0}),$D.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},$D.getUnit=r,$D.toUnitless=n,$D.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}},$D.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},$D.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},$D.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(HA());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return $D}();return BD}var GD,WD={};var UD,YD={};var KD,XD={};var JD,ZD={};!function(e){var t=ch,r=yA;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 m.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return h.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return h.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return h.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return h.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return h.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return h.ThemeProvider}});var o=xA;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(ID()),a=t(function(){if(qD)return PD;qD=1;var e=ch;Object.defineProperty(PD,"__esModule",{value:!0}),PD.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=SA,r=e(ID());return PD}()),s=t(function(){if(MD)return _D;MD=1,Object.defineProperty(_D,"__esModule",{value:!0}),_D.default=function(t){return(0,e.createStyles)(t)};var e=kD;return _D}()),l=t(function(){if(OD)return ND;OD=1;var e=ch;Object.defineProperty(ND,"__esModule",{value:!0}),ND.default=void 0;var t=e(rg()),r=kD,n=e(jD()),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 ND.default=o,ND}()),u=t(VD()),c=t(function(){if(GD)return WD;GD=1;var e=ch;Object.defineProperty(WD,"__esModule",{value:!0}),WD.default=void 0;var t=e(rg()),r=kD,n=e(jD()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return WD.default=o,WD}()),d=RD();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(UD)return YD;UD=1;var e=ch;Object.defineProperty(YD,"__esModule",{value:!0}),YD.default=function(){return(0,t.useTheme)()||r.default};var t=kD;e(x);var r=e(jD());return YD}()),f=t(function(){if(KD)return XD;KD=1;var e=ch;Object.defineProperty(XD,"__esModule",{value:!0}),XD.default=void 0;var t=e(rg()),r=kD,n=e(jD()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return XD.default=o,XD}()),m=t(function(){if(JD)return ZD;JD=1;var e=ch;Object.defineProperty(ZD,"__esModule",{value:!0}),ZD.default=void 0;var t=kD,r=e(jD()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return ZD.default=n,ZD}()),h=kD}(hA);var QD=Object.defineProperty,eL=(e,t)=>{for(var r in t)QD(e,r,{get:t[r],enumerable:!0})};eL({},{light:()=>tL});const tL={root:{backgroundColor:$R.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&$expanded":{margin:"0px"}}};eL({},{light:()=>rL});const rL={root:{backgroundColor:$R.WHITE}};eL({},{light:()=>nL});const nL={root:{padding:"0px 16px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${$R.GREYSCALE_0_15}`,"&$focused":{borderColor:$R.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${$R.MISC_FOCUS_BORDER}`,borderRadius:YR,backgroundColor:$R.GREYSCALE_0_03},"&$expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis"}};eL({},{light:()=>oL});const oL={root:{flex:"0 0 48px",flexDirection:"row",boxShadow:`inset 0 -1px 0 0 ${$R.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:$R.WHITE,color:$R.TEXT_PRIMARY}};eL({},{light:()=>iL});const iL={inputRoot:{boxSizing:"border-box",borderRadius:YR,"&&":{padding:0},"&&& input":{padding:"8px 4px"},"&&& $endAdornment":{right:4}},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:GR,height:"32px",'&[data-focus="true"]':{backgroundColor:$R.GREYSCALE_0_03}},endAdornment:{top:"auto",bottom:"4px",position:"absolute"},popupIndicator:{borderRadius:YR,border:`solid 1px ${$R.GREYSCALE_0_15}`,color:$R.GREYSCALE_0_60,marginRight:0,width:UR,height:UR,"& svg":{fontSize:"0.7em"},"& i":{lineHeight:"1 !important"}},paper:{marginTop:"5px",boxShadow:`0px 2px 4px 0px ${$R.GREYSCALE_0_15}`},clearIndicator:{"& svg":{fontSize:"0.5em",position:"absolute"},color:$R.GREYSCALE_25,width:WR,height:UR,borderRadius:YR,backgroundColor:"unset",marginRight:"4px","&&&&:hover":{backgroundColor:hA.alpha($R.GREYSCALE_0,.05)}},popupIndicatorOpen:{backgroundColor:$R.GREYSCALE_0_10}};eL({},{light:()=>aL});const aL={badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}};eL({},{light:()=>sL});const sL={root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:YR,"& > $label > i:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:$R.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${$R.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:$R.GREYSCALE_0_15,backgroundColor:$R.GREYSCALE_100_60,"&:active":{backgroundColor:$R.GREYSCALE_0_10},"&$focusVisible":{borderColor:$R.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$R.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},containedPrimary:{"&:hover":{backgroundColor:$R.GREEN_PALE},"&:active":{backgroundColor:$R.GREEN_DARK},"&$focusVisible":{borderColor:$R.GREEN_PALE,boxShadow:`0 0 0 3px ${hA.alpha($R.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:$R.BLUE_PALE},"&:active":{backgroundColor:$R.BLUE_DARK},"&$focusVisible":{borderColor:$R.BLUE_PALE,boxShadow:`0 0 0 3px ${hA.alpha($R.BLUE_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > $label > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > $label > i:only-child":{marginLeft:"-10px",marginRight:"-10px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}};eL({},{light:()=>lL});const lL={root:{height:32,lineHeight:16,width:32,fontSize:GR,borderRadius:YR,padding:"7px 16px",border:`1px solid ${$R.GREYSCALE_0_15}`,backgroundColor:$R.GREYSCALE_100_60,color:$R.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:$R.GREYSCALE_0_10,border:`1px solid ${$R.GREYSCALE_0_30}`},"&:hover":{backgroundColor:$R.GREYSCALE_0_03,border:`1px solid ${$R.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:$R.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${$R.MISC_FOCUS_BORDER}`,border:`1px solid ${$R.MISC_FOCUS_BORDER}`,zIndex:2},"&$selected":{color:$R.GREYSCALE_25,backgroundColor:$R.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:$R.GREYSCALE_0_10,border:`1px solid ${$R.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:VR,height:24,width:24,padding:7},sizeLarge:{fontSize:WR,height:40,width:40,lineHeight:20}};eL({},{light:()=>uL});const uL={root:{height:"32px",lineHeight:"16px",fontSize:GR,borderRadius:YR}};eL({},{light:()=>cL});const cL={root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:YR},groupedText:{padding:"8px 16px","&:active":{backgroundColor:$R.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${$R.MISC_FOCUS_BORDER}`}},groupedOutlined:{padding:"7px 16px",borderColor:$R.GREYSCALE_0_15,backgroundColor:$R.GREYSCALE_100_60,"&:active":{backgroundColor:$R.GREYSCALE_0_10},"&$focusVisible":{borderColor:$R.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$R.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:$R.GREEN_PALE},"&:active":{backgroundColor:$R.GREEN_DARK},"&$focusVisible":{borderColor:$R.GREEN_PALE,boxShadow:`0 0 0 3px ${hA.alpha($R.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:$R.BLUE_PALE},"&:active":{backgroundColor:$R.BLUE_DARK},"&$focusVisible":{borderColor:$R.BLUE_PALE,boxShadow:`0 0 0 3px ${hA.alpha($R.BLUE_PALE,.5)}`}}};eL({},{light:()=>dL});const dL={root:{borderWidth:1,"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:3},"&:not($disabled)":{"&:not($checked)":{"&:not($indeterminate)":{"& span":{color:$R.WHITE}}}},"&$disabled":{"& span":{pointerEvents:"auto",cursor:"not-allowed",color:$R.GREYSCALE_0_25}}},colorPrimary:{"&.sprout-focus-visible i":{borderColor:$R.GREEN_PALE,boxShadow:`0 0 0 3px ${hA.alpha($R.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible i":{borderColor:$R.BLUE_PALE,boxShadow:`0 0 0 3px ${hA.alpha($R.BLUE_PALE,.5)}`}}};eL({},{light:()=>pL});const pL={root:{height:"24px",fontSize:VR,borderRadius:YR,color:$R.TEXT_PRIMARY,backgroundColor:$R.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:$R.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${$R.MISC_FOCUS_BORDER}`},"&$disabled":{backgroundColor:$R.GREYSCALE_0_05,color:$R.GREYSCALE_0_30,border:"none",opacity:1}},outlined:{border:`solid 1px ${$R.GREYSCALE_0_15}`,backgroundColor:$R.GREYSCALE_100_15,"$clickable&:active ":{boxSizing:"border-box",borderRadius:YR,boxShadow:"none",backgroundColor:$R.GREYSCALE_0_10},"& $deleteIconSmall":{height:13,color:"inherit"}},label:{fontFamily:QR.FONT_FAMILY,lineHeight:"16px"}};eL({},{light:()=>fL});const fL={root:{padding:"8px",backgroundColor:$R.GREYSCALE_98,borderTop:`1px ${$R.GREYSCALE_0_15} solid`}};eL({},{light:()=>mL});const mL={root:{padding:"24px"}};eL({},{light:()=>hL});const hL={root:{marginBottom:0}};eL({},{light:()=>gL});const gL={root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",height:"24px",padding:"12px 8px 12px 24px",fontSize:"16px",lineHeight:"24px",backgroundColor:$R.GREYSCALE_98,borderBottom:`1px ${$R.GREYSCALE_0_15} solid`}};eL({},{light:()=>bL});const bL={middle:{margin:"4px 8px"}};eL({},{light:()=>vL});const vL={root:{marginLeft:"-10px"},label:{fontSize:GR}};eL({},{light:()=>yL});const yL={root:{color:$R.GREYSCALE_25,fontSize:VR,fontFamily:QR.FONT_FAMILY,fontWeight:JR,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&$focused":{color:$R.TEXT_PRIMARY},"&$error":{color:$R.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:$R.TEXT_SECONDARY,position:"absolute",content:"'(optional)'",fontWeight:XR,marginLeft:"4px"}}},asterisk:{visibility:"hidden",display:"inline-flex","&::after":{visibility:"visible",color:$R.TEXT_SECONDARY,position:"absolute",content:"'(required)'",fontWeight:XR,marginLeft:"4px"}}};eL({},{light:()=>xL});const xL={root:{fontSize:VR,lineHeight:"16px",margin:"4px 0 0 0","&$error":{color:$R.RED}},contained:{marginLeft:0,marginRight:0}};eL({},{light:()=>SL});const SL={root:{padding:7,borderRadius:YR,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:$R.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$R.MISC_FOCUS_BORDER}`},"&&&:hover":{backgroundColor:"transparent"}}};eL({},{light:()=>EL});const EL={root:{padding:"4px 8px",color:$R.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}};eL({},{light:()=>CL});const CL={input:{padding:"8px 12px",lineHeight:"16px"}};eL({},{light:()=>wL});const wL={outlined:{fontSize:`${VR}px`,fontWeight:JR,color:$R.GREYSCALE_25,"&$shrink":{transform:"translate(0px, -8px)",fontWeight:JR}}};eL({},{light:()=>RL});const RL={root:{color:$R.MISC_FOCUS_BORDER}};eL({},{light:()=>AL});const AL={padding:{paddingTop:"0px",paddingBottom:"0px"}};eL({},{light:()=>DL});const DL={root:{minHeight:"32px",fontSize:GR,"&$selected":{backgroundColor:"unset","&:not($disabled)":{"&::after":{content:`url('${eA}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:$R.RED}}}},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:$R.GREYSCALE_0_03},"&:active":{backgroundColor:$R.GREYSCALE_0_05}}};eL({},{light:()=>LL});const LL={root:{color:$R.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}};eL({},{light:()=>IL});const IL={root:{fontSize:"12px"},primary:{fontSize:GR,color:$R.TEXT_PRIMARY,lineHeight:"16px"},secondary:{fontSize:VR,fontWeight:KR,lineHeight:"16px",color:$R.TEXT_SECONDARY}};eL({},{light:()=>qL});const qL={list:{paddingTop:4,paddingBottom:4},paper:{marginTop:4,marginBottom:4,background:$R.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15)",borderRadius:"2px"}};eL({},{light:()=>PL});const PL={root:{fontSize:GR,height:"32px",'[class*="MuiListSubheader-root"] ~ &[role="option"]':{paddingLeft:"20px"},"& div i":{color:$R.GREYSCALE_25}}};eL({},{light:()=>ML});const ML={root:{fontSize:GR,lineHeight:"16px",backgroundColor:$R.WHITE,borderRadius:YR,"&:not($focused):not($error):not($disabled):hover $notchedOutline":{border:`solid 1px ${$R.GREYSCALE_0_05}`,borderColor:$R.GREYSCALE_0_30},"&$focused:not($error) $notchedOutline":{border:`solid 1px ${$R.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${$R.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${$R.GREYSCALE_0_05}`},"&$focused$error $notchedOutline":{border:`solid 1px ${$R.RED}`,boxShadow:`0px 0px 0px 1px ${$R.RED}, inset 0 2px 0 0 ${$R.GREYSCALE_0_05}`},"&$disabled":{backgroundColor:"transparent"},"&$disabled $notchedOutline":{border:`solid 1px ${$R.GREYSCALE_0_10}`,borderColor:$R.GREYSCALE_0_10,backgroundColor:$R.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:$R.TEXT_PRIMARY,padding:"8px 12px","&$disabled":{opacity:.45}},notchedOutline:{borderColor:$R.GREYSCALE_0_15,borderRadius:YR,boxShadow:`inset 0 2px 0 0 ${$R.GREYSCALE_0_05}`},multiline:{padding:"8px 12px"}};eL({},{light:()=>_L});const _L={day:{"&&&:hover":{backgroundColor:$R.GREYSCALE_0_03}},daySelected:{"&&&:hover":{backgroundColor:$R.GREEN}}};eL({},{light:()=>kL});const kL={paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${$R.GREYSCALE_0_15}, 0px 0px 0px 1px ${$R.GREYSCALE_0_05}`}};eL({},{light:()=>TL});const TL={root:{fill:$R.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${$R.MISC_FOCUS_BORDER}`},"&$checked":{"&$colorPrimary":{"&.sprout-focus-visible i":{borderColor:$R.GREEN_PALE,boxShadow:`0 0 0 3px ${hA.alpha($R.GREEN_PALE,.5)}`}},"&$colorSecondary":{"&.sprout-focus-visible i":{borderColor:$R.BLUE_PALE,boxShadow:`0 0 0 3px ${hA.alpha($R.BLUE_PALE,.5)}`}},"&$disabled":{color:$R.GREYSCALE_0_20}},"&$disabled":{fill:$R.GREYSCALE_0_20,stroke:"none"}}};eL({},{light:()=>OL});const OL={root:{height:"32px",zIndex:1,borderRadius:"3px !important","& em":{color:$R.TEXT_SECONDARY,WebkitFontSmoothing:"antialiased","&::after":{content:""}},"& ~svg":{position:"absolute",top:"unset",right:"12px"},"&[aria-expanded=true]":{backgroundColor:$R.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:$R.GREYSCALE_0_03},"&:active":{backgroundColor:$R.GREYSCALE_0_10},"&:focus":{backgroundColor:$R.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${$R.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${$R.MISC_FOCUS_BORDER}`},"&$disabled":{opacity:"unset",color:$R.GREYSCALE_0_30,"&:hover":{backgroundColor:$R.GREYSCALE_0_0,borderColor:$R.GREYSCALE_0_15},"& ~svg":{color:$R.GREYSCALE_0_30}}},selectMenu:{height:"14px"},outlined:{border:`solid 1px ${$R.GREYSCALE_0_15}`}};eL({},{light:()=>NL});const NL={root:{color:$R.GREEN,height:"24px","&$disabled":{color:$R.GREYSCALE_0_15}},rail:{backgroundColor:$R.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${$R.GREYSCALE_0_05}`,borderRadius:YR,boxShadow:`inset 0px 0px 0px 1px ${$R.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${$R.GREYSCALE_0_05}`,borderRadius:YR},thumb:{height:"16px",width:"16px",borderRadius:YR,backgroundColor:$R.WHITE,boxShadow:`0px 1px 2px 0px ${$R.GREYSCALE_0_15}, 0px 0px 0px 1px ${$R.GREYSCALE_0_05}`,"&:hover":{borderRadius:YR,boxShadow:`0 2px 4px 0 ${$R.GREYSCALE_0_30}, 0 0 0 1px ${$R.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${$R.GREYSCALE_0_15}, 0 0 0 1px ${$R.GREYSCALE_0_06}, 0 0 0 2px ${$R.MISC_FOCUS_BORDER}`},"&$disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:$R.GREYSCALE_90},"& .bar":{height:"8px",width:"1px",backgroundColor:$R.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:$R.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:$R.GREYSCALE_0_15},markLabel:{color:$R.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:$R.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},active:{}};eL({},{light:()=>FL});const FL={root:{backgroundColor:$R.WHITE,color:$R.GREYSCALE_25}};eL({},{light:()=>jL});const jL={root:{padding:"10px",width:"60px",height:"40px"},switchBase:{padding:"11px","&$disabled":{"& $thumb":{backgroundColor:$R.GREYSCALE_100_50}},"&$checked + $track":{opacity:1},"&$disabled + $track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + $track":{borderColor:$R.GREEN_PALE,boxShadow:`0 0 0 3px ${hA.alpha($R.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + $track":{borderColor:$R.BLUE_PALE,boxShadow:`0 0 0 3px ${hA.alpha($R.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:$R.GREYSCALE_0_15,borderRadius:YR},thumb:{height:"16px",width:"16px",borderRadius:YR,backgroundColor:$R.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& $thumb":{height:"12px",width:"12px"},"& $switchBase":{padding:"9px 11px"}}};eL({},{light:()=>zL});const zL={root:{fontSize:GR,fontWeight:JR,textTransform:"none",minWidth:"auto",boxSizing:"border-box","&:hover":{borderBottom:`2px solid ${$R.GREYSCALE_80}`,paddingBottom:"4px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${$R.MISC_FOCUS_BORDER}`,paddingTop:"4px",backgroundColor:$R.GREYSCALE_0_03,borderRadius:YR,minHeight:"44px",paddingBottom:"4px",border:"none"},"&$disabled":{opacity:.3}},textColorPrimary:{color:$R.GREYSCALE_25,"&$selected":{color:$R.GREYSCALE_25}},textColorInherit:{opacity:"unset"},fullWidth:{"&.sprout-focus-visible":{paddingRight:12,paddingLeft:12}},wrapper:{alignItems:"initial"},labelIcon:{minWidth:"40px",minHeight:"48px","&.sprout-focus-visible":{minHeight:"auto",height:"30px",marginTop:9,marginBottom:9,flexDirection:"column",paddingRight:"12px",paddingBottom:"2px"},"& $wrapper":{display:"block"}}};eL({},{light:()=>HL});const HL={scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},root:{fontSize:GR,fontWeight:"bold"},indicator:{height:2}};eL({},{light:()=>BL});const BL={root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}};eL({},{light:()=>$L});const $L={arrow:{color:$R.GREYSCALE_20},tooltip:{backgroundColor:$R.GREYSCALE_20,fontSize:VR,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}};eL({},{light:()=>VL});const VL={root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${$R.GREYSCALE_85}`,borderRight:`1px solid ${$R.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:JR,backgroundColor:$R.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&$head":{height:"31px"},"&$paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:$R.GREYSCALE_98,borderBottom:`1px solid ${$R.GREYSCALE_85}`}};eL({},{light:()=>GL});const GL={root:{borderBottom:`1px solid ${$R.GREYSCALE_85}`,borderTop:`1px solid ${$R.GREYSCALE_85}`}};eL({},{light:()=>WL});const WL={root:{backgroundColor:$R.GREYSCALE_98}};eL({},{light:()=>UL});const UL={hover:{"&$selected":{backgroundColor:$R.GREYSCALE_0_05,"&:hover":{backgroundColor:$R.GREYSCALE_0_03}},"&&:hover":{backgroundColor:$R.GREYSCALE_0_03}}};eL({},{light:()=>YL});const YL={root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&$active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}};eL({},{light:()=>KL});const KL={root:{borderLeft:`1px solid ${$R.GREYSCALE_85}`}};eL({},{light:()=>XL});const XL={root:{height:"100%","& $focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:$R.GREYSCALE_0_03,"& $focusHighlight":{opacity:0}},"&:active":{backgroundColor:$R.GREYSCALE_95,boxShadow:"none"},"&$focusVisible":{borderRadius:YR,boxShadow:`inset 0 0 0 2px ${$R.MISC_FOCUS_BORDER}`,"& $focusHighlight":{opacity:0}}}};eL({},{light:()=>JL});const JL={root:{'&[role="option"]':{color:$R.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:VR,borderBottom:`solid 1px ${$R.GREYSCALE_0_15}`,pointerEvents:"none"}}},ZL=(e="light",t=!1)=>mA(e,t),QL=(ZL().palette.primary.light,pR.Selected,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),eI=4/3,tI="12px",rI="600",nI="Source Sans Pro, sans-serif",oI={height:"auto",fontSize:tI,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"}},iI={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:rI},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},aI=25e4,sI=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var s;const{columnWidth:{type:l,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(tE.PixelsMax,Math.max(tE.PixelsMin,m)),i-=n[a]};switch(l){case rE.Pixels:m=u||tE.PixelsDefault,h();break;case rE.Percentage:m=(c||tE.PercentageDefault)/100*t,h();break;case rE.FitToContent:(null===(s=e.representation)||void 0===s?void 0:s.type)===NE.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case rE.Auto:o.push(a);break;default:throw new Error(`${l} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(tE.AutoMinTable,e)}))}return n},lI=(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"]})},uI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},cI=e=>e.ctrlKey||e.metaKey,dI=e=>e.shiftKey&&cI(e),pI=e=>[QS.Left,QS.Right,QS.Up,QS.Down].includes(e),fI=e=>e.shiftKey&&pI(e.key),mI=e=>(e=>pI(e)||[QS.Home,QS.End,QS.PageUp,QS.PageDown].includes(e))(e.key)&&!dI(e),hI=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)null==r||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),lI(a,n,l),l.size?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:l,colIdx:-1})},gI=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:s}=e,{cell:l,announce:u,evt:c}=t;if(!(s||"key"in c&&fI(c)))return e;-1===i&&(null==n||n.begin(["/qHyperCubeDef"]));const d=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&fI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===QS.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})(a,o,l,c,s);return lI(u,o,d),{...e,rows:d,colIdx:null!==(r=null==s?void 0:s.selectionColIdx)&&void 0!==r?r:l.selectionColIdx,isSelectMultiValues:!0}},bI=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},vI=(e,t)=>{var r;switch(t.type){case fR.Select:return hI(e,t.payload);case fR.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 fR.SelectMouseUp:return((e,t)=>bI(e.isSelectMultiValues||e.firstCell!==t.cell?e:hI(e,t)))(e,t.payload);case fR.SelectMultiAdd:return gI(e,t.payload);case fR.SelectMultiEnd:return bI(e);case fR.Reset:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:new Map,colIdx:-1};case fR.Clear:return e.rows.size?{...e,rows:new Map}:e;case fR.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},yI=4/3,xI=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function SI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const EI=(e,t)=>e?{borderBottomColor:CS.DARK_MODE_BORDER,borderRightColor:CS.DARK_MODE_BORDER,borderLeftColor:CS.DARK_MODE_BORDER,borderTopColor:CS.DARK_MODE_BORDER}:{borderLeftColor:CS.BORDER_MEDIUM,borderRightColor:CS.BORDER_MEDIUM,borderTopColor:CS.BORDER_HEAVY,borderBottomColor:t?CS.BORDER_HEAVY:CS.BORDER_LIGHT},CI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*yI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},wI=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},RI=(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:xI(null==r?void 0:r.fontColor)?SI(CS.TEXT,t,null==r?void 0:r.fontColor):i||CS.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...EI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function AI(e,t,r){var n,o,i;const a=null===(n=wI(e))||void 0===n?void 0:n.header,s=RI("header",t,a,r);return s.background=(e=>{if(void 0===e)return;const t=ee(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),s.hoverBackground=AS(null!==(o=s.background)&&void 0!==o?o:CS.WHITE,nE),s.activeBackground=AS(null!==(i=s.background)&&void 0!==i?i:CS.WHITE,oE),s}const DI=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>(e=>e in iI)(e)&&Object.assign(t,iI[e]))),t};function LI(e,t,r){var n;const o={};let i={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText,a=n&&IS(n);a&&"none"!==a&&(o[r[t]]=a),i=n?DI(n,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=wS(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const II=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},qI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=II(e,null==t?void 0:t.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},PI=(e,t,r,n=CS.WHITE)=>{var o;const{backgroundColor:i,backgroundFromStyling:a,sheetColorFromCSS:s}=qI(e,t,r);return null!==(o=_S(a,i,s,n))&&void 0!==o?o:n},MI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return tI}},_I=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",kI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?rI:"normal",TI=e=>!1===e?1:3,OI=e=>parseInt(null!=e?e:oI.fontSize,10)*eI,NI=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",FI=(e,t,r,n,o)=>{var i,a,s,l,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,D,L,I,q,P,M,_,k,T,O,N,F,j,z,H,B,$,V,G,W,U,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,se,le,ue,ce,de,pe,fe,me,he,ge,be,ve,ye;const{header:xe,dimensionValues:Se,measureValues:Ee,totalValues:Ce,nullValues:we,grid:Re,content:Ae}=null!==(i=wI(t))&&void 0!==i?i:{},De=!0===t.usePagination?CS.WHITE:CS.TRANSPARENT,Le=PI(n,xe,"object.straightTableV2.dimension.label.name.backgroundColor",De),Ie=null!==(a=null!==(s=null===(l=o.viewState)||void 0===l?void 0:l.maxLineCount)&&void 0!==s?s:null==Ae?void 0:Ae.rowHeight)&&void 0!==a?a:n.getStyle("object.straightTableV2","grid","lineClamp"),qe={header:{fontFamily:null!==(u=null!==(c=null!==(d=null==xe?void 0:xe.fontFamily)&&void 0!==d?d:n.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==c?c:r.head.fontFamily)&&void 0!==u?u:nI,fontSize:MI(null!==(p=null!==(f=null==xe?void 0:xe.fontSize)&&void 0!==f?f:n.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==p?p:r.head.fontSize),fontStyle:_I(null==xe?void 0:xe.fontStyle),fontWeight:kI(null==xe?void 0:xe.fontStyle,rI),textDecoration:NI(null==xe?void 0:xe.fontStyle),color:null!==(m=null!==(h=null!==(g=II(n,null==xe?void 0:xe.fontColor))&&void 0!==g?g:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==h?h:r.head.color)&&void 0!==m?m:CS.TEXT,background:Le},headerMenuHoverBackground:AS(Le,nE),headerMenuActiveBackground:AS(Le,oE),dimension:{values:{fontFamily:null!==(b=null!==(v=null!==(y=null==Se?void 0:Se.fontFamily)&&void 0!==y?y:n.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==v?v:r.body.fontFamily)&&void 0!==b?b:nI,fontSize:MI(null!==(x=null!==(S=null!==(E=null==Se?void 0:Se.fontSize)&&void 0!==E?E:null==Ae?void 0:Ae.fontSize)&&void 0!==S?S:n.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==x?x:r.body.fontSize),fontStyle:_I(null==Se?void 0:Se.fontStyle),fontWeight:kI(null==Se?void 0:Se.fontStyle,"normal"),textDecoration:NI(null==Se?void 0:Se.fontStyle),color:null!==(C=null!==(w=null!==(R=null!==(A=II(n,null==Se?void 0:Se.fontColor))&&void 0!==A?A:II(n,null==Ae?void 0:Ae.fontColor))&&void 0!==R?R:n.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==w?w:r.body.color)&&void 0!==C?C:CS.TEXT,background:null!==(D=null!==(L=qI(n,Se,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==L?L:r.body.background)&&void 0!==D?D:CS.TRANSPARENT}},measure:{values:{fontFamily:null!==(I=null!==(q=null!==(P=null==Ee?void 0:Ee.fontFamily)&&void 0!==P?P:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==q?q:r.body.fontFamily)&&void 0!==I?I:nI,fontSize:MI(null!==(M=null!==(_=null!==(k=null==Ee?void 0:Ee.fontSize)&&void 0!==k?k:null==Ae?void 0:Ae.fontSize)&&void 0!==_?_:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==M?M:r.body.fontSize),fontStyle:_I(null==Ee?void 0:Ee.fontStyle),fontWeight:kI(null==Ee?void 0:Ee.fontStyle,"normal"),textDecoration:NI(null==Ee?void 0:Ee.fontStyle),color:null!==(T=null!==(O=null!==(N=null!==(F=II(n,null==Ee?void 0:Ee.fontColor))&&void 0!==F?F:II(n,null==Ae?void 0:Ae.fontColor))&&void 0!==N?N:n.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==O?O:r.body.color)&&void 0!==T?T:CS.TEXT,background:null!==(j=null!==(z=qI(n,Ee,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==z?z:r.body.background)&&void 0!==j?j:CS.TRANSPARENT}},totalRow:{fontFamily:null!==(H=null!==(B=null!==($=null==Ce?void 0:Ce.fontFamily)&&void 0!==$?$:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==B?B:r.totals.fontFamily)&&void 0!==H?H:nI,fontSize:MI(null!==(V=null!==(G=null!==(W=null==Ce?void 0:Ce.fontSize)&&void 0!==W?W:null==Ae?void 0:Ae.fontSize)&&void 0!==G?G:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==V?V:r.totals.fontSize),fontStyle:_I(null==Ce?void 0:Ce.fontStyle),fontWeight:kI(null==Ce?void 0:Ce.fontStyle,rI),textDecoration:NI(null==Ce?void 0:Ce.fontStyle),color:null!==(U=null!==(Y=null!==(K=null!==(X=II(n,null==Ce?void 0:Ce.fontColor))&&void 0!==X?X:II(n,null==Ae?void 0:Ae.fontColor))&&void 0!==K?K:n.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==Y?Y:r.totals.color)&&void 0!==U?U:CS.TEXT,background:PI(n,Ce,"object.straightTableV2.total.label.value.backgroundColor",De)},nullValues:{fontStyle:_I(null==we?void 0:we.fontStyle),fontWeight:kI(null==we?void 0:we.fontStyle,"normal"),textDecoration:NI(null==we?void 0:we.fontStyle),color:null!==(J=null!==(Z=null!==(Q=null!==(ee=II(n,null==we?void 0:we.fontColor))&&void 0!==ee?ee:II(n,null==Ae?void 0:Ae.fontColor))&&void 0!==Q?Q:n.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Z?Z:r.body.color)&&void 0!==J?J:CS.TEXT,background:null!==(te=null!==(re=II(n,null==we?void 0:we.background))&&void 0!==re?re:n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:CS.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=Ie?Ie:TI(null===(ne=t.multiline)||void 0===ne?void 0:ne.wrapTextInCells),headerLineClamp:TI(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders),border:null!==(ie=null!==(ae=II(n,null==Re?void 0:Re.border))&&void 0!==ae?ae:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:n.background.isDark?CS.DARK_MODE_BORDER:CS.BORDER_MEDIUM,divider:null!==(se=null!==(le=II(n,null==Re?void 0:Re.divider))&&void 0!==le?le:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==se?se:CS.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=II(n,null==Ae?void 0:Ae.hoverFontColor))&&void 0!==ce?ce:n.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ue?ue:null===(de=r.body.hoverColors)||void 0===de?void 0:de.color,background:null!==(pe=null!==(fe=II(n,null==Ae?void 0:Ae.hoverColor))&&void 0!==fe?fe:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(me=r.body.hoverColors)||void 0===me?void 0:me.background},zebraStripes:{show:!(null==Re||null===(he=Re.zebraStripes)||void 0===he||!he.show),odd:{color:II(n,null==Re||null===(ge=Re.zebraStripes)||void 0===ge||null===(ge=ge.color)||void 0===ge?void 0:ge.odd),background:II(n,null==Re||null===(be=Re.zebraStripes)||void 0===be||null===(be=be.background)||void 0===be?void 0:be.odd)},even:{color:II(n,null==Re||null===(ve=Re.zebraStripes)||void 0===ve||null===(ve=ve.color)||void 0===ve?void 0:ve.even),background:II(n,null==Re||null===(ye=Re.zebraStripes)||void 0===ye||null===(ye=ye.background)||void 0===ye?void 0:ye.even)},overrideNullValueBackground:void 0===II(n,null==we?void 0:we.background),overrideNullValueColor:void 0===II(n,null==we?void 0:we.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:RS(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:Ie},{headerMinRowHeight:Pe,totalRowLineHeight:Me,totalRowMinHeight:_e,contentLineHeight:ke,contentMinRowHeight:Te}=(e=>{const t=Math.max(OI(e.header.fontSize)+8,32),r=OI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(OI(e.dimension.values.fontSize),OI(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)}})(qe);return qe.headerMinRowHeight=Pe,qe.totalRowLineHeight=Me,qe.totalRowMinHeight=_e,qe.contentLineHeight=ke,qe.contentMinRowHeight=Te,qe},jI=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){var o;const i=null===(o=wI(e))||void 0===o?void 0:o.content,a=RI("content",t,i);a.background=t.background.color;const s=CI(a.fontSize,r,n),l=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=xI(u)||!!d,f=xI(l)||!!c,m=p||f;let h;h=xI(l)?SI(CS.HOVER,t,l):c||(p?"":CS.HOVER);const g=m?SI(wS(h),t,u):"";return{...a,lastRowBottomBorder:s,hoverColors:{background:h,color:g}}}(e,t,r.rows.length,n),a=AI(e,t,!o),s=function(e,t,r){var n;const o=null===(n=wI(e))||void 0===n?void 0:n.content,i=RI("content",t,o),{borderBottomColor:a,borderTopColor:s,background:l}=AI(e,t,r);return{...i,borderBottomColor:a,background:l,borderTopColor:s}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},zI=new Map;const HI=q({}),BI=function(e){const t=q([()=>{},new Set]);return zI.set(e,t),({children:r,value:n})=>{const o=P(n),i=P(new Set);w((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=M((()=>o.current),[o]),s=C((()=>[a,i.current]),[a]);return Dl.jsx(e.Provider,{value:n,children:Dl.jsx(t.Provider,{value:s,children:r})})}}(HI),$I={rows:[],columns:[],totalsPosition:{}},VI=({app:e,children:t,tableData:r=$I,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:w})=>{const[R,A]=E(0),[D,L]=E(o||BR),[q,P]=((e,t)=>{const[r,n]=I(vI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[M,_]=E(-1),k=jI(i,u,r,d),T=((e,t,r,n,o)=>C((()=>FI(0,t,r,n,o)),[t,r,e,n,o]))(S,i,k,u,y),[O,N,F,j]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=zS({...n.header,fontWeight:rI},{maxNbrLinesOfText:3}).measureText,a=zS({...n.totalRow,fontWeight:rI},{maxNbrLinesOfText:3}).measureText,{estimateWidth:s}=zS(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:l}=zS(n.measure.values,{maxNbrLinesOfText:3}),u=C((()=>(e,t,r,n,u,c)=>{let d=25;d+=28,n&&(d+=24),u&&(d+=20);const p=c?s:l;return Math.max(i(e)+d,o?a(t)+24+1:0,p(r))}),[s,l,i,a,o]),[c,d]=E(0),[p,f]=E((()=>sI(e,r,u)));VS((()=>{f(sI(e,r-c,u))}),[e,r,c,u]);const m=C((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,T),z=C((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:v,viewService:y,styleService:T,direction:w,downloadService:x})),[e,n,i,a,s,l,u,c.active,d,p,f,m,v,y,T,w,x]);return Dl.jsx(BI,{value:{headRowHeight:R,setHeadRowHeight:A,focusedCellCoord:D,setFocusedCellCoord:L,selectionState:q,selectionDispatch:P,hoverIndex:M,setHoverIndex:_,columnWidths:O,setColumnWidths:N,baseProps:z,tableData:r,setYScrollbarWidth:F,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:j,env:S},children:t})};function GI(e,t){const r=function(e){return zI.get(e)}(e),[n,o]=S(r),[,i]=I((e=>e+1),0),a=P(t),s=P(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=C((()=>t(l)),[l,t]);return w((()=>{a.current=t,s.current=u}),[l,u,t]),w((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function WI(e){var t;const r=ZL();return null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),Xh({...r,direction:e})}const UI={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},YI={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},KI=Mg("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":{...UI},"&::-moz-range-track":{...UI},"&::-ms-track":{...UI},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...YI},"&::-moz-range-thumb":{...YI},"&::-ms-thumb":{...YI},"&: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"}}))),XI=({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=WS({translator:c.translator}),f=P({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,h=n&&!u,g=()=>h?f.current.columnWidth-m:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:null!=t?t:f.current.initX}};VS((()=>{h&&v()}),[e]);const y=e=>{const t=Math.max(e,tE.PixelsMin);f.current.columnWidth=t,i(t)},S=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:rE.Pixels,pixels:f.current.columnWidth};a(e)}else null==l||l(!1)},E=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},C=e=>{PS(e),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",C),S()},w=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)},R=e=>{PS(e),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",R),S()},A=!n&&s?e=>{if(e.key===QS.Left||e.key===QS.Right){PS(e);const t=5,r=e.key===QS.Left?t:-5,n="rtl"===d?r:-r;y(f.current.columnWidth+n)}else e.key===QS.Space||e.key===QS.Enter?(PS(e),s(e),S()):e.key===QS.Esc&&(PS(e),s(e),y(f.current.initWidth))}:void 0,D=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return x.createElement(KI,{style:b,key:t,hoverColor:o,isLastColumn:r,className:eE,"data-testid":eE,onMouseDown:e=>{PS(e),document.addEventListener("mousemove",E),document.addEventListener("mouseup",C),null==l||l(!0),v(e.clientX)},onDoubleClick:()=>{a({type:rE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(PS(e),document.addEventListener("touchmove",w),document.addEventListener("touchend",R),null==l||l(!0),v(e.touches[0].clientX))},onKeyDown:A,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,max:tE.PixelsMax,"aria-label":D,"aria-valuemin":tE.PixelsMin,"aria-valuemax":tE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d})},JI=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})));function ZI(){return ZI=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},ZI.apply(null,arguments)}const QI=Mg(gv,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),eq=Mg(JI,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),tq=Mg(Jy)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),rq=Mg(Yv)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),nq=Mg(rx)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),oq=Mg(rx,{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"}))),iq=Mg("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"}))),aq=Mg("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),sq=Mg(Mb)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),lq=Mg(wy,{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}))),uq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),cq=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?cq(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},dq=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?dq(t):t},pq=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===QS.Down||r===QS.Up){const t=e=>r===QS.Down?cq(e):dq(e);e.preventDefault(),e.stopPropagation();let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},fq=(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 mq={};const hq=({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]=E(!1),f=P(null),m=M((e=>{e.stopPropagation(),p(!1)}),[p]);return x.createElement(x.Fragment,null,x.createElement(oq,{ref:a?f:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),mq={}),null!=a&&a.length&&(p(!0),mq[n]=p))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:pq},l?x.createElement(iq,{direction:u,isPagination:c}):null,x.createElement(aq,null,x.createElement(lq,{direction:u,isPagination:c},x.createElement(o,null)),x.createElement(sq,{variant:"body2"},n)),null!=a&&a.length?x.createElement(uq,null):null),null!=a&&a.length?x.createElement(vq,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:m,menuGroups:fq(a,mq),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null)},gq=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&x.createElement(nq,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>x.createElement(hq,ZI({key:e.id},e,{isSubMenu:t,direction:r,isPagination:n}))))].filter(Boolean)])),bq={appear:0,enter:0,exit:0},vq=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?x.createElement(tq,ZI({className:XS,open:t,anchorEl:e,onClose:r,transitionDuration:bq,MenuListProps:{id:JS}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{},{dir:s}),(({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[gq({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?x.createElement(rq,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})):null,yq=(e,t)=>e.some((e=>t[e]>0)),xq={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Sq=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=E(null),[a,s]=E(xq);return VS((()=>{e||(s(xq),i(null))}),[e]),w((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?l():(i(p),m&&s((e=>({canSelectAll:yq(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:yq(["qSelected"],e),canSelectPossible:yq(["qOption"],e),canSelectAlternative:yq(["qAlternative"],e),canSelectExcluded:yq(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Eq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),Cq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})}))),wq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),Rq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),Aq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})}))),Dq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),Lq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),Iq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),qq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),Pq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),Mq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),_q=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),kq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),Tq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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 Oq=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const Nq="/qListObjectDef",Fq=({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[Oq.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(null==o?void 0:o(e,"A")),n(!1)},icon:Eq,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:Rq,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:Iq,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Aq,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[Oq.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:qq,enabled:!0}]}]),r[Oq.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Tq,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectListObjectAll(Nq))},icon:Pq,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectListObjectPossible(Nq))},icon:kq,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectListObjectAlternative(Nq))},icon:Mq,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectListObjectExcluded(Nq))},icon:_q,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.clearSelections(Nq))},icon:Cq,enabled:l.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:Lq,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:Dq,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[Oq.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:wq,enabled:!0}]}]),f},jq=({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:m="ltr",isPagination:h})=>{var g;const b=WS({translator:o}),{qLibraryId:v,fieldId:y,headTextAlign:S}=n,E=null==c?void 0:c.app,{fieldInstance:C,selectionActionsEnabledStatus:w}=Sq({open:e,headerData:n,app:E,qStateName:null==c?void 0:c.qStateName});let R=null;if(f&&"setActiveField"in f&&void 0!==n.dimensionInfoIndex){const e=n.dimensionInfoIndex;R=async t=>{try{await f.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const A=M((()=>{const e=v?{qLibraryId:v,type:"dimension"}:y;if(null!=u&&u.embed){const{embed:t,listboxRef:r}=u;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===m?"right":"left"},sortCriteria:u.sortCriteria,stateName:null==c?void 0:c.qStateName,direction:m})}}),[v,y,u,null==c?void 0:c.qStateName,m]),D=M((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(QI,{rightAligned:"right"===S,shouldShowMenuIcon:s,className:KS},s?x.createElement(eq,{height:US,className:YS,"data-testid":YS,isInteractionsActive:null!==(g=i.active)&&void 0!==g&&g},x.createElement(JI,null)):null,x.createElement(vq,{open:e,anchorEl:r.current,onClose:D,menuGroups:Fq({headerData:n,translator:b,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:C,selectionActionsEnabledStatus:w,anchorRef:r,focusColumnAdjuster:null==d?void 0:d.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:p}),direction:m,isPagination:h})):null},zq=e=>e.isDark?{background:e.color,borderColor:CS.DARK_MODE_BORDER,color:CS.DARK_MODE_TEXT,disabledColor:CS.DARK_MODE_DISABLED,iconColor:CS.DARK_MODE_TEXT}:{background:e.color,borderColor:CS.BORDER_MEDIUM,color:CS.TEXT,disabledColor:CS.DISABLED},Hq=Mg(gv,{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}`}))),Bq=Mg(Ox,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),$q=Mg(Av,{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)}))),Vq=Mg(Mb)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Gq=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>zq(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(Hq,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},Wq=q({}),Uq=()=>S(Wq),Yq=({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:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=C((()=>zq(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=WS({translator:d}),S=C((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,s,l,u,c,y,p,f,m,h,b,g,v]);return x.createElement(Wq.Provider,{value:S},e)};let Kq=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Xq=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 Jq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),Zq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),Qq=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),eP={FirstPage:Zq,PreviousPage:Jq,NextPage:uq,LastPage:Qq,FirstPageRTL:Qq,PreviousPageRTL:uq,NextPageRTL:Jq,LastPageRTL:Zq},tP=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=Uq(),u=r.concat("rtl"===n?"RTL":""),c=eP[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}},rP=()=>{const{pageInfo:e,width:t}=Uq(),r=0===e.page,{IconComponent:n,styledProps:o}=tP({type:Kq.FirstPage,disabledCondition:r,pageNumber:0});return t<=Xq.FirstPage?null:x.createElement($q,o,x.createElement(n,{height:US}))},nP=(e,t,r=!1)=>{r&&e.key===QS.Tab&&!e.shiftKey&&(PS(e),qS(e.target,t,!1))},oP=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=Uq(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=tP({type:Kq.LastPage,disabledCondition:i,pageNumber:r-1}),l=t.enabled?e=>{nP(e,t,n)}:void 0;return o<=Xq.LastPage?null:x.createElement($q,ZI({},s,{onKeyDown:l}),x.createElement(a,{height:US}))},iP=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=Uq(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=tP({type:Kq.NextPage,disabledCondition:i,pageNumber:e.page+1}),l=!(o>Xq.FirstPage&&o>Xq.LastPage)&&t.enabled?e=>{nP(e,t,n)}:void 0;return x.createElement($q,ZI({},s,{onKeyDown:l}),x.createElement(a,{height:US}))},aP=()=>{const{pageInfo:e}=Uq(),t=0===e.page,{IconComponent:r,styledProps:n}=tP({type:Kq.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement($q,n,x.createElement(r,{height:US}))},sP=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=Uq(),{page:o,rowsPerPage:i}=r;if(t<=Xq.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(Vq,{variant:"caption",dir:"ltr"},a)},lP=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s}=Uq(),l=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${l}`,p={tabIndex:s,id:`${c}-${l}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(Vq,{variant:"caption",id:d},u,":"),x.createElement(Bq,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},uP=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=Uq();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>Xq.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(lP,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},cP=1e3,dP="…",pP=({totalPages:e,page:t})=>{const r=Math.min(e,cP),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-cP):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:dP,disabled:!0},dP)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:dP,disabled:!0},dP)),x.createElement(x.Fragment,null,a)},fP=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=Uq(),{page:o}=e;if(t<=Xq.SelectPage)return null;const i=x.createElement(pP,{totalPages:r,page:o});return x.createElement(lP,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var mP=k((e=>x.createElement(Yq,e,x.createElement(uP,null),x.createElement(fP,null),x.createElement(sP,null),x.createElement(rP,null),x.createElement(aP,null),x.createElement(iP,null),x.createElement(oP,null))));const hP=e=>x.createElement(Gq,e,x.createElement(mP,e)),gP={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},bP=Mg(gv,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),vP=Mg("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?{...gP,whiteSpace:"nowrap",display:r?"block":void 0}:{...gP,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}));function yP(e,t){const r=P(!1);w((()=>{r.current?e():r.current=!0}),t)}const xP=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),SP=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),EP=e=>e.atTop?2:1,CP=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},wP=e=>null==e?void 0:e.setAttribute("tabIndex","0"),RP=e=>null==e?void 0:e.setAttribute("tabIndex","-1"),AP=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(RP)},DP=e=>{null==e||e.focus(),wP(e)},LP=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${eE}`);DP(r)}),0)},IP=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{AP(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 QS.Down:u<s&&u++;break;case QS.Up:u>a&&u--;break;case QS.Right:if(i)break;[u,c]="rtl"===n?xP({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):SP({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case QS.Left:if(i)break;[u,c]="rtl"===n?SP({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):xP({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case QS.Home:(cI(e)||i)&&(u=a),i||(c=0);break;case QS.End:(cI(e)||i)&&(u=s),i||(c=l);break;case QS.PageDown:u=Math.min(s,u+10);break;case QS.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=CP(t,a);return DP(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{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}},qP=(e,t,r,n)=>{var o;(AP(t),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):DP(CP(t,e))},PP=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${XS}`);var s;!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${hR.First}`),r=e.querySelector(`.${hR.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),null===(s=r.blur)||void 0===s||s.call(r,!1))},MP=()=>{const{downloadService:e}=GI(HI,(e=>e.baseProps));w((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},_P=(e,t,r)=>{const{rootElement:n,keyboard:o}=GI(HI,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=GI(HI,(e=>e.tableData)),u=GI(HI,(e=>e.focusedCellCoord)),c=GI(HI,(e=>e.setFocusedCellCoord)),d=GI(HI,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()}));yP((()=>{const r=((e,t,r=!1)=>{const n=[EP(t),e[1]];return r?n:BR})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(AP(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=CP(t,e);var l;r.current?(DP(s),r.current=!1):wP(s),n&&(a({keys:[null!==(l=null==s?void 0:s.textContent)&&void 0!==l?l:""]}),uI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},kP=(e,t,r)=>{w((()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},TP=e=>{PS(e),cI(e)&&lE(e.currentTarget)},OP=e=>{mI(e.evt)&&(PS(e.evt),IP(e))},NP=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!mI(t))return;PS(t);const i=((e,t)=>[e.pageRowIdx+EP(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?EP(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=IP({...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:fR.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):uI(o,a,i)})({...e,nextCell:s})},FP=e=>{const{evt:t}=e;dI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{PS(e);const a=Math.ceil(t/r)-1;e.key===QS.Right&&n<a?(o(),i(n+1)):e.key===QS.Left&&n>0&&(o(),i(n-1))})(e):t.key===QS.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{var n;t.enabled&&!r&&(PS(e),null===(n=t.blur)||void 0===n||n.call(t,!0))})(e):pI(t.key)&&PS(t)},jP=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(pR.Disabled))return void PS(t);const n={...e,isSelectionMode:!(null==r||!r.isModal())};switch(t.key){case QS.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{PS(e),t.isSelectable&&r&&n({type:fR.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case QS.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{PS(r),e&&(null==t||t.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case QS.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(PS(r),null==t||t.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case QS.C:TP(t);break;case QS.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(PS(e),qS(e.currentTarget,t,e.shiftKey))})(n);break;default:NP(n)}},zP=e=>{const{layout:t,rect:r,theme:n}=GI(HI,(e=>e.baseProps)),[o,i]=E(0),[a,s]=E(0);return T((()=>{if(e.current){const{offsetWidth:t=0,offsetHeight:r=0,clientWidth:n=0,clientHeight:o=0}=e.current,a=r-o;s(t-n),i(a)}}),[e,t,r,n]),{xScrollbarWidth:o,yScrollbarWidth:a}},HP=Mg("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),BP=Mg(oS,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),$P=Mg(Bx,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),VP=()=>Dl.jsxs(Dl.Fragment,{children:[Dl.jsx(HP,{className:hR.First,"data-testid":hR.First,"aria-live":"polite","aria-atomic":"true"}),Dl.jsx(HP,{className:hR.Second,"data-testid":hR.Second,"aria-live":"polite","aria-atomic":"true"})]}),GP=e=>{const t=P(new Map),r=P(null);w((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{var n;null===(n=r.current)||void 0===n||n.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=M(((e,n)=>{var o;t.current.set(e,n),null===(o=r.current)||void 0===o||o.observe(e)}),[t,r]),o=M((e=>{var n;t.current.delete(e),null===(n=r.current)||void 0===n||n.unobserve(e)}),[r,t]);return C((()=>({addTask:n,removeTask:o})),[n,o])},WP=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);null==r||r(t)}))})),UP=()=>GP(WP),YP=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{w((()=>{const i=()=>{t({type:fR.Reset})},a=()=>{t({type:fR.Clear})},s=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",s),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",s),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},KP=e=>{e.stopPropagation()},XP=({href:e,text:t,interactions:r,color:n})=>x.createElement(my,(({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:KP,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}))({href:e,text:t,interactions:r,color:n}),t);var JP,ZP;const QP=null!==(JP=window.requestIdleCallback)&&void 0!==JP?JP:e=>setTimeout((()=>{e({})}),0),eM=null!==(ZP=window.cancelIdleCallback)&&void 0!==ZP?ZP:e=>{clearTimeout(e)},tM="qDimensionInfo/0",rM="qMeasureInfo/0",nM="x",oM="y",iM=e=>({key:"bars",type:"box",data:{extract:{field:tM,props:{start:0,end:{field:rM}}}},settings:{major:{scale:nM},minor:{scale:oM},box:{maxWidthPx:8,fill:{fn:e}}}}),aM=e=>({key:"p",type:"point",data:{extract:{field:tM,props:{y:{field:rM}}}},settings:{x:{scale:nM},y:{scale:oM},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),sM=({qNum:e})=>void 0===e?0:Math.sign(e),lM=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=LS(e,null==t?void 0:t.negative,r),a=LS(e,null==t?void 0:t.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:tM,props:{start:0,end:{field:rM,value:sM}}}},settings:{major:{scale:nM},minor:{scale:oM},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}}}}},uM=(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=LS(e,null==t?void 0:t.main,o),l=LS(e,null==t?void 0:t.max,s),u=LS(e,null==t?void 0:t.min,s),c=LS(e,null==t?void 0:t.first,s),d=LS(e,null==t?void 0:t.last,s);return e=>{const t=oM in e.datum?oM:"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[iM(a)];case"dots":return[aM(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:tM,props:{v:{field:rM}}}},settings:{coordinates:{major:{scale:nM},minor:{scale:oM,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(LS(e,null==n?void 0:n.main,e.getDataColorSpecials().primary));return r?[t,aM(a)]:[t]}case"posNeg":return[lM(e,n)];default:return[]}},cM=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"}),dM=(e,t,r,n)=>({y:{data:{field:rM},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:tM}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),pM=B();pM.use(H),pM.renderer.prio(["canvas"]);const fM={resolve:()=>{},promise:{}},mM=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=P(e.isDownloadedAsPDForImage?gt():fM);return{addChartPromiseToQueue:M((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:M((()=>{if(null===t.current||null!==e.current)return;u();r.current=QP((()=>{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 pM.chart({element:e,data:{type:"q",key:"qHyperCube",data:cM(s)},settings:{scales:dM(a,l,u,i),components:uM(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:M((()=>{null!==r.current&&eM(r.current),r.current=null,l()}),[r,l])}},hM=e=>{const t=P(null),r=P(!1);return M((n=>{var o,i;const a=null!==(o=null===(i=n.contentBoxSize.at(0))||void 0===i?void 0:i.inlineSize)&&void 0!==o?o:0;(e=>{e.current&&(eM(e.current),e.current=null)})(t),r.current?0!==a?null!==e.current&&(t.current=QP((()=>{var t;null===(t=e.current)||void 0===t||t.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},gM=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=P(null),l=P(null),u=P(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=mM({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=M((e=>{e.isIntersecting?n():r()}),[n,r]);w((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{var e;t.removeTask(n),r(),null===(e=o.current)||void 0===e||e.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})=>{w((()=>n?()=>{}:(e(),()=>{var e;t(),null===(e=r.current)||void 0===e||e.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=hM(t);w((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},bM=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=gM({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return x.createElement("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},vM="cell-text",yM=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=GI(HI,(e=>e.baseProps));return o?Dl.jsx(vP,{"data-testid":vM,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,children:e}):Dl.jsx(vP,{"data-testid":vM,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:null!=i?i:a.grid.contentLineClamp,isPagination:n,children:e})},xM=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),SM=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},EM=(e,t)=>{const r=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),n=r.some((e=>!OC(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||!OC(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},CM=(e,t,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 s&&ee(e.localPaletteColors[t].color).blend(ee(s.color),s.t)},wM=(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:xM(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:SM(n,t,r)})))),n},RM=(e,t,r,n)=>{const o=wM(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=CM(e,a,t);break}n=i}return r})(o,t);return a},AM=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=EM(e,t),o=Math.abs(t);return{min:null!=r?r:t-o,max:null!=n?n:t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!OC(t))return 0;let a=r&&OC(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}},DM=(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(null==i||!i.length||!((e,t)=>{var r,n,o;return!(!e||0===e.length||!(null!==(r=null===(n=e[t])||void 0===n?void 0:n.gradient)&&void 0!==r?r:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,r.limitPaletteColorIndex))return SM(o,r.limitPaletteColorIndex,n);const a=xM(r.limitRange,t);return RM(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[(null==i?void 0:i.limitPaletteColorIndex)||0].icon,{indicator:l}=e;let u=(null==l?void 0:l.position)||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},LM=(e,t)=>{var r,n,o,i;return"rtl"===e&&"center"!==(null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.horizontal)?(null===(o=t.resolvedImagePosition)||void 0===o?void 0:o.horizontal)&&(e=>"flex-start"===e?"flex-end":"flex-start")(null===(i=t.resolvedImagePosition)||void 0===i?void 0:i.horizontal):null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.horizontal},IM=(e,t)=>e.representation.type===NE.Image&&"fitHeight"===e.representation.imageSize?LM(t,e.representation):e.align,qM=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",PM=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},MM=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,_M=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",kM=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",TM=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},OM=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},NM=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=GI(HI,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=Dl.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:OM(s),objectPosition:TM(l),overflow:"hidden"}});return n?Dl.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?LM(o,e):void 0},children:c}):c},FM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),jM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),zM=_(((e,t)=>Dl.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:[Dl.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"}),Dl.jsx("use",{fillRule:"evenodd"})]}))),HM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),BM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),$M=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),VM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.jsx("path",{d:"M2 7h12v2H2z"})}))),GM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),WM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),UM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),YM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),KM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),XM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),JM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),ZM=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),QM={m:KM,"ï":UM,R:_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),S:XM,T:JM,U:ZM,P:WM,Q:$M,"è":_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),"¢":HM,"©":zM,"23F4":BM,2013:YM,"&":GM,add:FM,"minus-2":VM,dot:jM},e_=({size:e,iconKey:t,color:r,pvStyle:n})=>{var o;const i=null!==(o=t&&QM[t])&&void 0!==o?o:QM.dot;return i&&x.createElement("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n}},x.createElement(i,{style:{height:e}}))},t_=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=GI(HI,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=null!=s?s:{},c=DM(e,t,i,o),d=(e=>parseInt(e||tI,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:m}=c||{};return l?Dl.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:null!=r?r:"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===m&&e_({size:d,iconKey:f,color:p}),Dl.jsx(yM,{isNumeric:!0,children:a}),"right"===m&&e_({size:d,iconKey:f,color:p})]}):e_({size:d,iconKey:f,color:p})},r_=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(null!=t?t:e.grid.contentLineClamp):e.contentLineHeight,n_=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const{interactions:l,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=GI(HI,(e=>e.baseProps)),m=GI(HI,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let h=t.representation.text;if(t.representation.type!==NE.Link||m||(h=Dl.jsx(XP,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===NE.Image)return Dl.jsx(NM,{representation:t.representation,textStyle:r,maxImageHeight:r_(u,o),wrapInContainer:!n});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!==NE.Indicator||Number.isNaN(g)?t.representation.type===NE.MiniChart&&t.representation.miniChart&&!t.isNull?Dl.jsx(bM,{height:r_(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):Dl.jsx(yM,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:h}):Dl.jsx(t_,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},o_=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:fR.SelectMultiEnd})};r({type:fR.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:fR.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:fR.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),i_=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=GI(HI,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=GI(HI,(e=>e.baseProps)),u=GI(HI,(e=>e.setFocusedCellCoord)),c=GI(HI,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{jP({evt:s,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:l})},f=e=>{((e,t)=>{e.key===QS.Shift&&t({type:fR.SelectMultiEnd})})(e,c)},m=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;qP([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:m};const{handleMouseDown:h,handleMouseOver:g,handleMouseUp:b}=o_(m,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:h,onMouseUp:b,onMouseOver:g}},a_=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=pR.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?pR.Disabled:n.has(e.qElemNumber)?pR.Selected:pR.Possible),i},s_=(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},l_=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},u_=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return l_(t,e,n?"even":"odd")}return e},c_=(e,t)=>{const{styleService:r}=GI(HI,(e=>e.baseProps)),n=GI(HI,(t=>a_(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=u_(o,r,e),o=s_(o,r,e);const i=LI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===pR.Selected?{...e,...r}:t===pR.Disabled?{...e,background:`${QL}, ${e.background}`}:e}(C((()=>e.isNull?o:LI(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}},d_=Mg(Kx,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),p_=Mg(gS,{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}}}))),f_=Mg(eS,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...oI,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),m_=Mg(eS,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...oI,...e,fontWeight:rI,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",zIndex:t?1:void 0}))),h_=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=GI(HI,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=i_(e,t),{cellStyle:f,representationStyle:m,cellSelectionState:h}=c_(e,r);return Dl.jsx(f_,{cellStyle:f,scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${ZS}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:Dl.jsx(n_,{cell:e,style:m,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:MM(s,e.align)})})},g_=(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}),b_=()=>{const{columns:e,totalsPosition:t,rows:r}=GI(HI,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:s,direction:l}=GI(HI,(e=>e.baseProps)),u=GI(HI,(e=>e.headRowHeight)),c=GI(HI,(e=>e.setFocusedCellCoord)),d=!(null==o||!o.isModal()),p=!!s.active;return Dl.jsx(gS,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return Dl.jsx(m_,{totalsStyle:{...a.totalRow,...g_(a,t,!1)},headRowHeight:u,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${ZS}`,tabIndex:-1,title:s.passive?e.totalInfo:void 0,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case QS.C:TP(r);break;case QS.Space:r.preventDefault();break;default:OP(e)}else PS(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:l})},onMouseDown:()=>{qP(f,n,c,i)},children:Dl.jsx(yM,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var v_=k(b_);const y_=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,totalsPosition:a}=GI(HI,(e=>e.tableData)),{selectionsAPI:s,keyboard:l,layout:u,styleService:c}=GI(HI,(e=>e.baseProps)),d=GI(HI,(e=>e.selectionDispatch)),p=!(null===(n=wI(u))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect);YP({keyboard:l,selectionDispatch:d,selectionsAPI:s,updateShouldRefocus:e,tableWrapperRef:t});const f=(e=>{const t=M((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);null==r||r(e)}))}),{root:e.current})),[e]);return GP(t)})(t),m=UP();return Dl.jsxs(d_,{lastRowBottomBorder:c.grid.lastRowBottomBorder,children:[a.atTop?Dl.jsx(v_,{}):void 0,o.map(((e,t)=>Dl.jsx(p_,{hoverColors:c.grid.hoverColors,hover:p,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:c.contentMinRowHeight,children:i.map(((t,n)=>{const{id:o}=t,i=e[n];return Dl.jsx(h_,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:f,resizeObserverTaskScheduler:m},o)}))},`row-${t}`))),a.atBottom?Dl.jsx(v_,{}):void 0]})};var x_=k(y_);const S_=(e,t)=>{var r;return!(null===(r=e.viewState)||void 0===r||!r.skipHeader)||!!t.hideHeader},E_=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=GI(HI,(e=>e.baseProps)),c=GI(HI,(e=>e.columnWidths)),d=GI(HI,(e=>e.setColumnWidths));if(!s.active)return null;return Dl.jsx(XI,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{RP(e);const t=e.closest(".sn-table-cell");DP(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},C_=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),w_=_(((e,t)=>Dl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Dl.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"})}))),R_=_(((e,t)=>Dl.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:[Dl.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),Dl.jsx("use",{fillRule:"evenodd"})]}))),A_=Mg("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),D_=Mg(gv,{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?qM(e,n):void 0})));Mg("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const L_=Mg(gv,{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},[`& .${KS}`]:{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"},[`& .${KS}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),I_=Mg(gv,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));Mg(gv,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),Mg(rx)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),Mg("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Mg(wy)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),Mg("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const q_=Mg(eS,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...oI,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));Mg("div")({display:"flex",alignItems:"center"});const P_=Mg("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:tI,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),M_=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i,forwardRef:a})=>{const{translator:s,changeSortOrder:l,interactions:u,embed:c,app:d,styleService:p,layout:f,direction:m}=GI(HI,(e=>e.baseProps)),h=GI(HI,(t=>t.columnWidths[e.pageColIdx])),g=GI(HI,(e=>e.baseProps.model)),b=P(null),v=P(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=zS({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:rI});return M((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,s=t.isActivelySorted,l=r-25,u=a?20:0,c=s?20:0;let d=n(t.label);return a&&d+u<=l&&(i=!0,d+=u,s&&d+c<=l&&(o=!0,d+=c)),!a&&s&&d+c<=l&&(o=!0,d+=c),d+24<=l&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n])})({styleService:p,column:e,columnWidth:h}),x=y(),{StartIcon:S,EndIcon:E,LockIcon:C}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?Dl.jsx(C_,{height:tI,"data-testid":"head-cell-sort-ascending-icon"}):Dl.jsx(w_,{height:tI,"data-testid":"head-cell-sort-descending-icon"}),a=r?Dl.jsx(P_,{align:t,dir:o,children:i}):void 0,s=n?Dl.jsx(I_,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Dl.jsx(R_,{height:tI,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(e,x,m);o&&(o.current[e.pageColIdx]=x);return Dl.jsxs(L_,{shouldShowMenuIcon:x.shouldShowMenuIcon,shouldShowLockIcon:x.shouldShowLockIcon,alignment:PM(e,i,m),children:[C,Dl.jsxs(D_,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:m,isPagination:i,children:[S,Dl.jsx(yM,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),E]}),t?Dl.jsxs(Dl.Fragment,{children:[Dl.jsx(jq,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:s,anchorRef:b,menuAvailabilityFlags:{[Oq.Sorting]:!0,[Oq.Searching]:!0,[Oq.Selections]:!0,[Oq.AdjusterHeaderSize]:!0},open:r,setOpen:n,interactions:u,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),l(e,r))},searchRelatedArgs:{embed:c,listboxRef:v},selectionRelatedArgs:{app:d,qStateName:f.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:LP},shouldShowMenuIcon:x.shouldShowMenuIcon,model:g,direction:m,isPagination:i}),Dl.jsx(A_,{ref:v,direction:m,isPagination:i}),Dl.jsx(A_,{ref:b,direction:m})]}):null]})},__=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=E(!1);return VS((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(eE)})(t)||o||n(!0)},setIsAdjustingWidth:i}},k_=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=GI(HI,(e=>e.baseProps)),{columns:l,totalsPosition:u}=GI(HI,(e=>e.tableData)),c=GI(HI,(e=>e.columnWidths[t])),d=GI(HI,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),p=GI(HI,(e=>e.setFocusedCellCoord)),f=GI(HI,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),m=!!n.active&&!d,{open:h,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v}=__({isInteractionEnabled:m,columnsData:l}),y=e.isActivelySorted?mR[e.sortDirection]:void 0,x=h?JS:void 0,S=h?"true":void 0,E=t===r-1,C=[0,e.pageColIdx],w={width:c-(E?8:9),zIndex:l.length-t},R=f&&0===t&&!i.enabled&&m?0:-1;return Dl.jsxs(q_,{headerStyle:{...a.header,...g_(a,u,!0)},background:h?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:w,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${ZS}`,tabIndex:R,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case QS.C:TP(r);break;case QS.Enter:case QS.Space:null==n||n(r);break;default:OP(e)}else PS(r)})({evt:e,rootElement:o,cellCoord:C,setFocusedCellCoord:p,isInteractionEnabled:m,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&qP(r,t,n,o)})({evt:e,rootElement:o,cellCoord:C,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:m})},onClick:b,"aria-sort":y,"aria-controls":x,"aria-expanded":S,"aria-haspopup":"true",children:[Dl.jsx(M_,{column:e,isInteractionEnabled:m,open:h,setOpen:g,isPagination:!0}),Dl.jsx(E_,{column:e,isLastColumn:E,setIsAdjustingWidth:v})]},e.id)},T_=()=>{const{columns:e}=GI(HI,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=GI(HI,(e=>e.baseProps)),o=GI(HI,(e=>e.setHeadRowHeight)),i=GI(HI,(e=>e.columnWidths)),a=P(null),s=S_(r,n);return w((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),Dl.jsx(cS,{style:{visibility:s?"collapse":void 0},children:Dl.jsx(gS,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>Dl.jsx(k_,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var O_=k(T_);const N_=e=>{var t,r;const{pageInfo:n,setPageInfo:o,footerContainer:i,announce:a}=e,{page:s,rowsPerPage:l}=n,{totalColumnCount:u,totalRowCount:c,totalPages:d,paginationNeeded:p,rows:f,columns:m}=GI(HI,(e=>e.tableData)),{rootElement:h,keyboard:g,translator:b,theme:v,interactions:y,styleService:x,viewService:S,layout:E,rect:C,direction:R}=GI(HI,(e=>e.baseProps)),A=GI(HI,(e=>e.setYScrollbarWidth)),D=GI(HI,(e=>e.showRightBorder)),L=GI(HI,(e=>e.selectionDispatch)),I=GI(HI,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),q=P(!1),_=P(null),k=P(null),{yScrollbarWidth:T}=zP(_),O=`${b.get("SNTable.Accessibility.RowsAndColumns",[String(f.length),String(m.length)])} ${b.get("SNTable.Accessibility.NavigationInstructions")}`,N=Xw(E,S),F=N&&null!==(t=S.scrollLeft)&&void 0!==t?t:0,j=N&&null!==(r=S.rowPartialHeight)&&void 0!==r?r:0,z=M((()=>{q.current=h.getElementsByTagName("table")[0].contains(document.activeElement)}),[h]),H=M((e=>{o({...n,page:e}),a({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),d.toString()]],politeness:"assertive"})}),[n,o,d,a]),B=M((e=>{o({...n,page:0,rowsPerPage:e}),a({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[a,n,o]);return kP(_,R,S),((e,t)=>{const{keyboard:r}=GI(HI,(e=>e.baseProps));w((()=>{const n=e.current;if(!n)return;const o=e=>{PP(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(k,q),(()=>{const{rootElement:e,keyboard:t}=GI(HI,(e=>e.baseProps)),r=GI(HI,(e=>e.focusedCellCoord));VS((()=>{const n=CP(e,r);t.active?DP(n):(null==n||n.blur(),AP(e))}),[t.active,e])})(),_P(q,a,s),w((()=>{const e=_.current;e&&(e.scrollLeft=F,e.scrollTop=j)}),[n,c,F,j]),yP((()=>{A(T)}),[T]),yP((()=>{L({type:fR.UpdatePageRows,payload:{pageRows:f}})}),[f]),MP(),Dl.jsxs(bP,{ref:k,background:v.background,dir:R,onKeyDown:e=>{FP({evt:e,totalRowCount:c,page:s,rowsPerPage:l,handleChangePage:H,updateShouldRefocus:z,keyboard:g,isSelectionMode:I})},"data-testid":"sn-table",children:[Dl.jsx(VP,{}),Dl.jsx(BP,{ref:_,className:"sn-table-container",fullHeight:!!i||!y.active||!p,interactions:y,tabIndex:-1,role:"application","data-testid":"table-container",children:Dl.jsxs($P,{stickyHeader:!0,"aria-label":O,borderRight:D?`1px solid ${x.grid.border}`:void 0,children:[Dl.jsx(O_,{}),Dl.jsx(x_,{...e,updateShouldRefocus:z,tableWrapperRef:k})]})}),Dl.jsx(hP,{footerContainer:i,pageInfo:n,paginationNeeded:p,theme:v,totalRowCount:c,totalColumnCount:u,totalPages:d,keyboard:g,translator:b,interactions:y,rect:C,layout:E,handleChangePage:H,handleChangeRowsPerPage:B,isSelectionMode:I,direction:R})]})};var F_=k(N_),j_=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function z_(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||j_(n)&&j_(o)))return!1;var n,o;return!0}function H_(e,t){var r;void 0===t&&(t=z_);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 B_="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function $_(e){cancelAnimationFrame(e.id)}function V_(e,t){var r=B_();var n={id:requestAnimationFrame((function o(){B_()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var G_=-1;function W_(e){if(void 0===e&&(e=!1),-1===G_||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),G_=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return G_}var U_=null;function Y_(e){if(void 0===e&&(e=!1),null===U_||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?U_="positive-descending":(t.scrollLeft=1,U_=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),U_}return U_}var K_=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function X_(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,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,ho(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:ho(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=H_((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=H_((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(h&&s,h&&l,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=H_((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(Y_()){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&&$_(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=V_(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}mo(t,e),t.getDerivedStateFromProps=function(e,t){return J_(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=W_();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,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Y_()){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&&$_(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?K_:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],D=w[1],L=[];if(n>0&&g)for(var I=A;I<=D;I++)for(var q=E;q<=C;q++)L.push(R(t,{columnIndex:q,data:d,isScrolling:v?x:void 0,key:f({columnIndex:q,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,q)}));var P=a(this.props,this._instanceProps),M=s(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:St({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:L,ref:l,style:{height:P,pointerEvents:x?"none":void 0,width:M}}))},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],m=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,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),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,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),m=f(this.props,d,u,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(O),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var J_=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Z_=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},Q_=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},ek=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]},tk=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?rk(e,t,r,i,0,n):nk(e,t,r,Math.max(0,i),n)},rk=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=ek(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},nk=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&ek(e,t,n,r).offset<o;)n+=a,a*=2;return rk(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},ok=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=ek(e,t,r,i),u="column"===e?Q_(t,i):Z_(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}},ik=X_({getColumnOffset:function(e,t,r){return ek("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return tk("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=ek("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ek("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:Z_,getEstimatedTotalWidth:Q_,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return ok("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return ok("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return ek("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return tk("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=ek("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ek("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}}),ak=function(e,t){return e};function sk(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,ho(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:ho(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=H_((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=H_((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,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=H_((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(Y_()){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&&$_(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=V_(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}mo(t,e),t.getDerivedStateFromProps=function(e,t){return lk(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?W_():0:l.scrollHeight>l.clientHeight?W_():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(Y_()){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&&$_(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?ak:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var D=C;D<=w;D++)A.push(R(t,{data:c,key:p(D,c),index:D,isScrolling:b?y:void 0,style:this._getItemStyle(D)}));var L=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:St({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(s||l||"div",{children:A,ref:a,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"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}(O),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var lk=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},uk=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]},ck=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=uk(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},dk=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&uk(e,r,t).offset<n;)r+=i,i*=2;return ck(e,t,Math.min(r,o-1),Math.floor(r/2),n)},pk=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},fk=sk({getItemOffset:function(e,t,r){return uk(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:pk,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=uk(e,t,o),p=pk(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?ck(e,t,o,0,r):dk(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=uk(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=uk(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 mk(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 hk=["style"],gk=["style"];function bk(e,t){var r=e.style,n=Sr(e,hk),o=t.style,i=Sr(t,gk);return!mk(r,o)&&!mk(n,i)}const vk=({style:e})=>Dl.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var yk=x.memo(vk,bk);const xk=e=>{var t;return null===(t=e.at(0))||void 0===t||null===(t=t.contentBoxSize.at(0))||void 0===t?void 0:t.blockSize},Sk=(e,t,r)=>{w((()=>{const r=e.current;if(!r)return()=>{};const n=new ResizeObserver(t);return n.observe(r),()=>{n.disconnect()}}),[e,t,r])},Ek=()=>{},Ck=e=>{e.preventDefault()};const wk=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:s,isHoverEnabled:l,setMeasuredCellHeight:u,lineClamp:c,resizeObserverTaskScheduler:d}=n,p=GI(HI,(e=>e.hoverIndex===t)),f=GI(HI,(e=>e.setHoverIndex)),{interactions:m,styleService:h,direction:g}=GI(HI,(e=>e.baseProps)),b=GI(HI,(e=>e.showRightBorder)),v=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:y,handleMouseOver:x,handleMouseUp:S,cellSelectionState:E}=function(e){const{interactions:t}=GI(HI,(e=>e.baseProps)),r=GI(HI,(e=>e.selectionDispatch)),n="object"==typeof e,o=GI(HI,(t=>n?a_(e,t.selectionState):pR.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=o_(Ck,e,r,Ek);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(v),C=((e,t,r,n)=>{const o=P(null),i=r&&!r.isNumeric,a=M((r=>{const o=xk(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return Sk(o,a),o})(t,e,v,u),w=null!==(i=s[e])&&void 0!==i&&i.isDim?h.dimension.values:h.measure.values;if("object"==typeof v){const n=((e,t,r,n,o,i)=>{let a=u_(o,i,e);a=s_(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?LI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===pR.Selected?{...s,...i.selectedColors}:n===pR.Disabled?{...s,color:r?null===(l=i.grid.hoverColors)||void 0===l?void 0:l.color:s.color,background:`${QL}, ${r?null===(u=i.grid.hoverColors)||void 0===u?void 0:u.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s;var l,u})(v,s[e],l&&p,E,w,h),o={rowindex:t,columnindex:e};return Dl.jsx("div",{className:`sn-table-cell ${E} ${ZS}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:h.grid.border,borderTop:"0px",borderBottomWidth:v.isLastRow?"0px":"1px",borderRightWidth:_M(g,v.isLastColumn,b),borderLeftWidth:kM(g,v.isLastColumn,b),justifyContent:IM(v,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:v.align},onMouseDown:y,onMouseUp:S,onMouseOver:x,onMouseEnter:l?()=>{f(t)}:void 0,onMouseLeave:l?()=>{f(-1)}:void 0,title:m.passive?v.representation.text:void 0,...o,children:Dl.jsx(n_,{forwardRef:h.contentStaticLineCount||1===c?void 0:C,cell:v,style:n,lineClamp:c,virtualizedCell:!0,resizeObserverTaskScheduler:d})})}return Dl.jsx(yk,{style:{...r,...w,borderColor:h.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var Rk=k(wk,bk);const Ak=e=>{const t=P(e);return t.current=e,t},Dk=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,Lk=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},Ik=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},qk=(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)=>{var c;const{qSize:d}=a.qHyperCube,p=n.qTop+r,f=o+r,m=null!==(c=e[f])&&void 0!==c?c:[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(m.at(r))return;const{colIdx:o,isDim:c,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],E=Hw(c,e,a),C=!c&&e.qIsNull,w=C?FC(E):NC(e);m[r]={id:kC(),...e,align:Yw(w,g,u),rowIdx:p,colIdx:o,isSelectable:c&&!h,pageRowIdx:f,pageColIdx:r,selectionColIdx:b,isLastRow:p===d.qcy-1,isLastColumn:r===d.qcx-1,isNumeric:w,isNull:(!C||!w)&&zw(e,c),representation:jw({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?E:e.qText,direction:u,enabledFeatures:{[NE.Image]:s.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[NE.Indicator]:!0,[NE.MiniChart]:!0}})},l(m[r],p,r)})),{row:m,pageRowIdx:f}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},Pk=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=GI(HI,(e=>e.env)),{direction:p}=GI(HI,(e=>e.baseProps)),f=P([]),m=M(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return qk(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[h,g]=E((()=>m(null!=n?n:[])));VS((()=>{g(m(null!=n?n:[]))}),[n,p]);const b=((e,t)=>{const r=P(new Set),n=P(new Set),o=P(new Set),i=Ak(e),a=Ak(t),s=C((()=>({enqueue:e=>{const t=Dk(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(Dk(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=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>m(e,t)))})),v=M(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(Ik(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=M(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(Lk(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return w((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,u,r]),{rowsInPage:h,loadRows:y,loadColumns:v}},Mk=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},_k=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,kk=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=GI(HI,(e=>e.baseProps.styleService)),i=GI(HI,(e=>e.columnWidths)),{estimateLineCount:a}=zS(o.dimension.values),s=OI(o.dimension.values.fontSize),l=e||t||1===r;return M(((e,t,o)=>{if(l||e.representation.type===NE.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])},Tk=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>C((()=>{const{estimatedRowHeight:a,totalRowHeight:s}=e?{totalRowHeight:n*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(r),totalRowHeight:t}})(r.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(n*t,s)}),[e,t,n,r,o,i]),Ok=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=GI(HI,(e=>e.baseProps)),[a,s]=E({rowHeights:new Map,cellHeightsInGrid:new Map}),l=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/l))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:l,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{var n,o;const{layout:i}=GI(HI,(e=>e.baseProps)),a=GI(HI,(e=>e.columnWidths)),s=null===(n=i.multiline)||void 0===n?void 0:n.wrapTextInCells,l=null===(o=i.nullValueRepresentation)||void 0===o?void 0:o.text;VS((()=>{var r;null===(r=e.current)||void 0===r||r.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[i.qHyperCube.qSize.qcx,i.qHyperCube.qSize.qcy,r.page,s,l]),VS((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[a])})({gridRef:n,setState:s,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>M(((o,i,a)=>{N((()=>{e((e=>{var s,l;const u=Math.max(r,o+9),c=Math.min(t,u),d=null!==(s=e.cellHeightsInGrid.get(i))&&void 0!==s?s:e.cellHeightsInGrid.set(i,new Map).get(i);if(!_k(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,Mk(d)),null===(l=n.current)||void 0===l||l.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>M(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:kk({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:M((e=>{var t;return c?m:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,m]),totalRowHeight:Tk({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:r}),lineClamp:f}},Nk=(e,t)=>{T((()=>()=>{t(0)}),[e,t]);const r=M((e=>{const r=xk(e);void 0!==r&&t(r)}),[t]);Sk(e,r)};var Fk;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(Fk||(Fk={}));const jk=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>M((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=Fk.None,i=Fk.None;return o=n>t?Fk.Down:n<t?Fk.Up:Fk.None,i=r>e?Fk.Right:r<e?Fk.Left:Fk.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,s,u);if(i.current.overscanColumnStartIndex=s,i.current.overscanColumnStopIndex=l,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=s,v=u+o.page*o.rowsPerPage,y=l-s+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===Fk.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===Fk.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===Fk.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===Fk.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),zk={enabled:!1},Hk=()=>{},Bk={current:null};const $k=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=C((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},Vk=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},Gk={overflow:"hidden",willChange:"auto"};var Wk=k(_(((e,t)=>{var r;const{rect:n,columns:o,pageInfo:i,headerAndTotalsHeight:a,setInnerBodyHeight:s}=e,{layout:l,model:u,theme:c,viewService:d,styleService:p,direction:f}=GI(HI,(e=>e.baseProps)),m=GI(HI,(e=>e.columnWidths)),h=GI(HI,(e=>e.initialDataPages)),g=P(null),b=P(null),v=P({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),y=P(0),x=!(null===(r=wI(l))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:S,visibleRowCount:E,visibleColumnCount:R}=$k(l,i,n,m,p.contentMinRowHeight),{setMeasuredCellHeight:A,setEstimatedCellHeight:D,getRowHeight:L,lineClamp:I,totalRowHeight:q}=Ok({rowCount:S,isSnapshot:!!l.snapshotData,viewService:d,gridRef:g,pageInfo:i}),{rowsInPage:M,loadRows:_,loadColumns:k}=Pk({layout:l,model:u,theme:c,initialDataPages:h,pageInfo:i,rowCount:S,visibleRowCount:E,visibleColumnCount:R,columns:o,gridState:v,setEstimatedCellHeight:D}),O=jk({layout:l,loadRows:_,loadColumns:k,rowCount:S,pageInfo:i,gridState:v,viewService:d}),N=UP(),j=C((()=>({rowsInPage:M,columns:o,isHoverEnabled:x,lineClamp:I,setMeasuredCellHeight:A,resizeObserverTaskScheduler:N})),[M,o,x,I,A,N]),z=((e,t,r)=>Math.min(e.height-t,r))(n,a,q);return T((()=>{var e;1===y.current&&(null===(e=g.current)||void 0===e||e.scrollToItem({rowIndex:S-1,align:"start"}))})),function(e){const{selectionsAPI:t}=GI(HI,(e=>e.baseProps)),r=GI(HI,(e=>e.selectionDispatch));w((()=>{r({type:fR.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),YP({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:Hk,keyboard:zk,tableWrapperRef:Bk})}(M),F(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=b.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:z)-z,i=Math.round(o*e);var a,s,l;(y.current=e,1===y.current)?(null===(a=g.current)||void 0===a||a.scrollToItem({rowIndex:S-1,align:"start"}),null===(s=g.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(l=g.current)||void 0===l||l.scrollTo({scrollTop:i,scrollLeft:t})}})),[b,z,S]),Nk(b,s),Dl.jsx(ik,{"data-key":"body",ref:g,innerRef:b,style:Gk,columnCount:l.qHyperCube.qSize.qcx,columnWidth:e=>m[e],height:z,rowCount:S,rowHeight:L,estimatedRowHeight:d.estimatedRowHeight,width:n.width,itemData:j,onItemsRendered:O,itemKey:Vk,className:"sn-table-body",direction:f,children:Rk})})));const Uk=({width:e,height:t,children:r})=>Dl.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),Yk=(e,t)=>{const r=P(null),n=GI(HI,(e=>e.columnWidths));T((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=M((r=>{const n=xk(r);n&&t(n+9,e)}),[e,t]);return Sk(r,o),r},Kk=Mg("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:void 0}}))),Xk=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=r,{interactions:s,styleService:l,direction:u}=GI(HI,(e=>e.baseProps)),c=GI(HI,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=GI(HI,(e=>e.showRightBorder)),p=GI(HI,(e=>e.tableData.totalsPosition)),f=!!s.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=__({isInteractionEnabled:f,columnsData:n}),v=Yk(e,a),y=n[e],x=n.length-1===e;return Dl.jsxs(Kk,{className:`sn-table-cell ${ZS}`,title:s.passive?y.label:void 0,onClick:g,applicableStyle:{...l.header,...g_(l,p,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:_M(u,x,d),borderLeftWidth:kM(u,x,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:y.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===y.headTextAlign?"row-reverse":"row",userSelect:"none"},interactions:s,hoverBackground:l.headerMenuHoverBackground,background:m?l.headerMenuActiveBackground:l.header.background,children:[Dl.jsx(M_,{forwardRef:v,column:y,isInteractionEnabled:f,open:m,setOpen:h,allColumnsIconVisibilityStatusRef:i}),Dl.jsx(E_,{column:y,isLastColumn:x,onColumnResize:o,setIsAdjustingWidth:b})]})},Jk=e=>{const[t,r]=E(new Map);VS((()=>{r(new Map)}),[e.length]);const n=M(((e,t)=>{r((r=>_k(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>Mk(t)),[t]),setMeasuredCellHeight:n}},Zk=(e,t)=>{F(e,(()=>({scrollTo:e=>{var r;return null===(r=t.current)||void 0===r?void 0:r.scrollTo(e)}})),[t])},Qk=(e,t,r,n,o)=>{VS((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,r,e,n,o])},eT={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},tT=_(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setHeaderRowHeight:s}=e,l=P(null),u=P(null),{layout:c,theme:d,styleService:p,direction:f,viewService:m}=GI(HI,(e=>e.baseProps)),h=GI(HI,(e=>e.columnWidths)),{rowHeight:g,setMeasuredCellHeight:b}=Jk(n),v=S_(m,c);return Zk(t,l),Qk(l,c,o,h,d),Nk(u,s),Dl.jsx(fk,{ref:l,outerRef:u,layout:"horizontal",style:{...eT,...v?{display:"none"}:void 0},itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(g+8,p.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:b},direction:f,children:Xk})}));var rT=k(tT);const nT=_(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=GI(HI,(e=>e.baseProps));return Dl.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,children:r})})),oT=({children:e,rect:t})=>{const{direction:r}=GI(HI,(e=>e.baseProps));return Dl.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},iT=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=GI(HI,(e=>e.baseProps)),c=GI(HI,(e=>e.showRightBorder)),d=Yk(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:m}=n[e],h=a.qHyperCube.qSize.qcx-1===e;return Dl.jsx("div",{className:`sn-table-cell ${ZS}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...g_(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:_M(u,h,c),borderLeftWidth:kM(u,h,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default"},children:Dl.jsx(yM,{forwardRef:m?void 0:d,isNumeric:m,children:p})})},aT=_(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=P(null),l=P(null),{layout:u,theme:c,styleService:d,direction:p}=GI(HI,(e=>e.baseProps)),f=GI(HI,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:h}=Jk(i);return Zk(t,s),Qk(s,u,n,f,c),Nk(l,a),Dl.jsx(fk,{ref:s,outerRef:l,layout:"horizontal",style:eT,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(m,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:h},direction:p,children:iT})}));var sT=k(aT);const lT=(e,t,r,n,o)=>M((i=>{var a,s,l;const{scrollHeight:u,clientHeight:c,scrollTop:d}=i.currentTarget,p=((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,o),f=Math.max(0,Math.min(1,d/(u-c)));n.scrollTopRatio=f,n.scrollLeft=p,null===(a=r.current)||void 0===a||a.interpolatedScrollTo(Number.isNaN(f)?0:f,p),null===(s=e.current)||void 0===s||s.scrollTo(p),null===(l=t.current)||void 0===l||l.scrollTo(p)}),[n,r,e,t,o]),uT=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=GI(HI,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=GI(HI,(e=>e.baseProps)),c=GI(HI,(e=>e.columnWidths)),d=GI(HI,(e=>e.setYScrollbarWidth)),p=P(null),f=P(null),m=P(null),h=P(null),{xScrollbarWidth:g,yScrollbarWidth:b}=zP(p),v=P([]),y=C((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),x=C((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=$k(i,t,x,c,0),{headerAndTotalsHeight:w,innerBodyHeight:R,setHeaderRowHeight:A,setTotalsRowHeight:D,setInnerBodyHeight:L}=(()=>{const[e,t]=E(0),[r,n]=E(0),[o,i]=E(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:I,height:q}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=GI(HI,(e=>e.baseProps)),a=e+t,s=r*i.contentMinRowHeight+t;let l=s;return s<n.height&&a>n.height&&(l=a),{width:o.reduce(((e,t)=>e+t),0),height:l}})({innerBodyHeight:R,headerAndTotalsHeight:w,rowCount:S,stickyContainerRect:x,columnWidths:c}),_=lT(f,m,h,l,u),k=M((()=>{p.current&&(p.current.scrollTop=0)}),[p]);MP(),T((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),T((()=>{p.current&&(p.current.scrollTop=0)}),[t,S,a]),yP((()=>{d(b)}),[b]);const O=Dl.jsx(sT,{rect:x,pageInfo:t,columns:n,ref:m,totals:r,setTotalsRowHeight:D},"totals");return Dl.jsx(nT,{ref:p,width:y.width,height:y.height,onScroll:_,children:Dl.jsx(Uk,{width:I,height:q,children:Dl.jsxs(oT,{rect:x,children:[Dl.jsx(rT,{rect:x,pageInfo:t,columns:n,ref:f,columResizeHandler:k,allColumnsIconVisibilityStatusRef:v,setHeaderRowHeight:A}),r.atTop?O:null,Dl.jsx(Wk,{ref:h,rect:x,pageInfo:t,columns:n,headerAndTotalsHeight:w,setInnerBodyHeight:L}),r.atBottom?O:null]})})})};var cT=k(uT);const dT=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=GI(HI,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=GI(HI,(e=>e.tableData)),c=GI(HI,(e=>e.pageInfo)),d=GI(HI,(e=>e.setPage));return Dl.jsxs(bP,{"data-testid":"sn-table",background:e.background,children:[Dl.jsx(cT,{pageInfo:c}),Dl.jsx(hP,{paginationNeeded:a,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var pT=k(dT);var fT={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 mT=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(fT).forEach((t=>{e.add(fT[t])}))}(r),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${hR.First}`),s=e.querySelector(`.${hR.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===hR.First?(l=s,r=hR.Second):(l=a,r=hR.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}})(t,r))),[t,r.language()]),hT={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},gT=e=>{const{app:r,model:i,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:m}=t(),h=Jw(s,d),g=mT(a,l),[b,v]=n(((e,t)=>Xw(e,t)?{page:t.page||hT.page,rowsPerPage:t.rowsPerPage||hT.rowsPerPage,rowsPerPageOptions:hT.rowsPerPageOptions}:hT)(s,d)),[y,x]=n(!0);y||x(!0);const[S,E]=NS((async()=>h?async function(e,t,r,n,o,i,a,s){var l,u,c,d;const{page:p,rowsPerPage:f,rowsPerPageOptions:m}=r,h=t.qHyperCube.qSize.qcx,g=t.qHyperCube.qSize.qcy,b=Math.ceil(g/f),v=null!==(l=o.visibleTop)&&void 0!==l?l:p*f,y=null!==(u=o.visibleHeight)&&void 0!==u?u:Math.min(f,g-v);if(p>0&&v>=g)return n({...r,page:0}),null;if(y*h>Bw)return n({...r,rowsPerPage:$w(h,m),page:0}),null;const x=g>10,S=Vw(t,o),E=Kw(t,a,s),C=!!t.snapshotData,w=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=null==n?void 0:n.qArea;return n&&(null==o?void 0: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]):[]})(e,t,{qLeft:0,qTop:v,qHeight:y,qWidth:h});C||(o.qTop=v,o.qHeight=y,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const R=null!==(c=null===(d=w.at(0))||void 0===d?void 0:d.qMatrix.map(((e,r)=>{const n=[];return E.forEach(((o,l)=>{const u=e[l],c=Hw(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?FC(c):NC(u);n[l]={id:kC(),...u,align:Yw(p,o.bodyTextAlign,s,a),rowIdx:r+v,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===y-1,isNumeric:p,isNull:(!d||!p)&&zw(u,o.isDim),representation:jw({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[NE.Image]:i.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[NE.Indicator]:!0,[NE.MiniChart]:!0}})}})),n})))&&void 0!==c?c:[];return{totalColumnCount:h,totalRowCount:g,totalPages:b,paginationNeeded:x,totalsPosition:S,columns:E,rows:R}}(i,s,b,v,d,p,y,f):null),[s,b,i,h,f]);o((()=>{h&&e.model&&e.changeSortOrder&&S&&c&&!E&&function(e,t){const{direction:r,...n}=e,o=WI(r);t.render(Dl.jsx($d,{stylisPlugins:"rtl"===r?[HR]:void 0,children:Dl.jsx(kg,{theme:o,children:Dl.jsx(VI,{...e,children:Dl.jsx(F_,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:S,pageInfo:b,setPageInfo:v,direction:f,footerContainer:m,announce:g},u)}),[g,r,f,m,c,b,u,e,h,S,E])},bT=(t,r)=>e((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){var m;const e=null===(m=c.qHyperCubeDef.qMeasures.at(u))||void 0===m?void 0:m.qSortBy;void 0===(null==e?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()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const vT=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=NS((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(aI,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return n})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},yT=t=>{const{layout:r,model:i,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=t,p=!Jw(r,c),[f,m]=n(!1);f&&m(!1);const h=e((()=>function(e,t,r,n,o){const i=Kw(e,o,n),a=Vw(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(aI,s),u=s>aI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(r,s,c,d,f)),[r,s,c,d,f]),{pageInfo:g,setPage:b}=((t,r)=>{const[o,i]=n(0),a=Math.min(aI,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/aI);e<o&&i(e)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=vT({model:i,layout:r,page:g.page,shouldRender:p});o((()=>{var e;p&&a.active&&(null===(e=a.blur)||void 0===e||e.call(a,!1))}),[a,p]),o((()=>{p&&t.model&&t.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=WI(r);t.render(Dl.jsx(x.StrictMode,{children:Dl.jsx(kg,{theme:n,children:Dl.jsx(VI,{...e,children:Dl.jsx(pT,{})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:h,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,t,b,p,h])},xT={version:JSON.stringify("4.8.2"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function ST(e,t){var r,n;const o=e.getElementsByClassName("sn-table-container")[0];if(!o)return{};const i=o.getBoundingClientRect(),a=e.getElementsByClassName("sn-table-head-row")[0],s=null!==(r=null==a?void 0:a.getBoundingClientRect())&&void 0!==r?r:{height:0},l=e.getElementsByClassName("sn-table-totals-row")[0],u=null!==(n=null==l?void 0:l.getBoundingClientRect())&&void 0!==n?n:{height:0},c=e.getElementsByClassName("sn-table-data-row"),d={top:i.y+s.height+(t.atTop?u.height:0),bottom:i.y+i.height-(t.atBottom?u.height:0)},p=((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})(c,d),f=((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})(c,d),m=((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)})(c,d,p);return{visibleRowStartIndex:p,visibleRowEndIndex:f,rowPartialHeight:m}}const ET=(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]}},CT=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const wT=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||hT.rowsPerPage,s=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},RT=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=Vw(e,t);if(Jw(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=ST(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:wT(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=ET(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(CT(m,h,g)?d:d+1)+c;let v=p+c;const y=ET(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(CT(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:wT(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},AT=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),DT=e=>e.getStyle("object","straightTableV2","backgroundColor");function LT(r){return{qae:{properties:{initial:xT},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>qE({...e}),exportProperties:wE,exploration:PE},ext:AC(r),component(){var n;const i=c(),y=(t=>{const r=e((()=>HS(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(i),x=d(),S=p(),E=f(),C=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!x.snapshotData),w=m(),R=h(),A=g(),D=t(),{freeResize:L}=D,I=b(),q=e((()=>{var e;return null!==(e=x.snapshotData)&&void 0!==e&&e.content&&!L?{...I,...x.snapshotData.content.size}:I}),[I,L,null===(n=x.snapshotData)||void 0===n?void 0:n.content]),P=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>{var r,n,o,i,a,s,l,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(s=t.content)||void 0===s?void 0:s.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(l=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==l?l:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(x),M=v(),_=OS(x,i,AT,DT),k=r.flags.isEnabled("CLIENT_IM_7150_TABLE_RTL")?D.direction:"ltr",T=bT(x.qHyperCube,E),O=DC(x.qHyperCube,E),N=((e,t,r)=>{const[,n,o]=NS((async()=>{var t;const n=ae(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),s=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...s,o,i,a,$S].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(_,x,r),F=yt(),j={app:S,layout:x,model:E,rect:q,theme:_,keyboard:A,translator:w,interactions:C,selectionsAPI:R,changeSortOrder:T,rootElement:i,embed:M,reactRoot:y,applyColumnWidths:O,isFontLoaded:N,downloadService:F,viewService:P,direction:k,env:r};null==s||s(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${ZS}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{lE(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=RT(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),u((()=>({getViewState:()=>RT(e,t,n)})),[e,t,n])})({layout:x,viewService:P,model:E,rootElement:i,contentRect:I}),yT(j),gT(j)}}}export{LT as default};