@nebula.js/sn-table 6.0.12 → 6.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +11 -11
- package/dist/sn-table.js +14 -14
- package/dist/sn-table.systemjs.js +12 -12
- package/package.json +5 -5
- package/sn-table-ext/dist/sn-table.js +14 -14
- package/sn-table-ext/sn-table.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.0.
|
|
2
|
+
* @nebula.js/sn-table v6.0.13
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
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 h,useSelections as m,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 C,useMemo as E,useEffect as w,createElement as R,isValidElement as A,cloneElement as P,Children as k,useReducer as I,createContext as M,useRef as L,useCallback as D,forwardRef as T,memo as _,useLayoutEffect as O,PureComponent as q,startTransition as N,useImperativeHandle as z}from"react";import*as j from"react-dom";import F from"react-dom";import H from"picasso-plugin-q";import $ from"picasso.js";function B(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 W(e){if("object"==typeof e&&B(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 V={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 G(){const e={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let t=0,r=0,n=0,o=1;for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];if(null!==(l=a[0])&&"object"==typeof l&&"type"in l&&"qcm-color"===l.type)({r:t,g:r,b:n,a:o}=a[0]),e.invalid=a[0].invalid,e.spaces={...a[0].spaces};else if(B(a[0]))({r:t,g:r,b:n}=a[0]),"a"in a[0]&&({a:o}=a[0]);else if(a.length<3)if("string"==typeof a[0]){const i=a[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(i))t=parseInt(s[1],10),r=parseInt(s[2],10),n=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(i))t=parseInt(s[1],10),r=parseInt(s[2],10),n=parseInt(s[3],10),o=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(i))o=parseInt(s[1],10)/255,t=parseInt(s[2],10),r=parseInt(s[3],10),n=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(i))t=parseInt(s[1],16),r=parseInt(s[2],16),n=parseInt(s[3],16),o=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(i))t=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),n=parseInt(s[3]+s[3],16),o=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(i)){let e=parseFloat(s[1]),i=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,i/=100,a/=100,e=e<0?0:e>360?360:e,i=i<0?0:i>1?1:i,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*i:(2-2*a)*i;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;t=d[0]+p,r=d[1]+p,n=d[2]+p,t=Math.round(255*t),r=Math.round(255*r),n=Math.round(255*n),o=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(i)){let e=parseFloat(s[1]),i=parseFloat(s[3]),a=parseFloat(s[5]);o=parseFloat(s[7]),e%=360,i/=100,a/=100,e=e<0?0:e>360?360:e,i=i<0?0:i>1?1:i,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*i:(2-2*a)*i;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;t=d[0]+p,r=d[1]+p,n=d[2]+p,t=Math.round(255*t),r=Math.round(255*r),n=Math.round(255*n)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(i)){let e=parseFloat(s[1]),i=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,i/=100,a/=100,e=e<0?0:e>360?360:e,i=i<0?0:i>1?1:i,a=a<0?0:a>1?1:a;const l=a*i;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;t=d[0]+p,r=d[1]+p,n=d[2]+p,t=Math.round(255*t),r=Math.round(255*r),n=Math.round(255*n),o=1}else{const a=i.toLowerCase();if(function(e){return e in V}(a)){const e=V[a];({r:t,g:r,b:n}=e),o="a"in e?e.a:1}else e.invalid=!0}}else"number"==typeof a[0]&&a[0]>=0&&"argb"===a[1]?(o=(4278190080&a[0])>>>24,o/=255,t=(16711680&a[0])>>16,r=(65280&a[0])>>8,n=255&a[0]):"number"==typeof a[0]&&a[0]>=0?(t=(16711680&a[0])>>16,r=(65280&a[0])>>8,n=255&a[0]):e.invalid=!0;else 3===a.length||4===a.length?(t=a[0],r=a[1],n=a[2],o=4===a.length?a[3]:1):e.invalid=!0;var l;return Number.isNaN(+t+r+n+o)&&(e.invalid=!0),e.r=Math.floor(t),e.g=Math.floor(r),e.b=Math.floor(n),e.a=o,e}function U(e){let t,r,n=0;const o="string"==typeof e?G(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?G(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(B(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?W(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function X(e,t){return B(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:X(G(e))}function J(e){return B(e)?1===e.a?K(e):X(e):J(G(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(){const e=G(...arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=()=>(t.spaces.hslaObject||(t.spaces.hslaObject=U(t)),t.spaces.hslaObject),n=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return t.type},isInvalid:()=>t.invalid,get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:()=>t.r,getG:()=>t.g,getB:()=>t.b,getAlpha:()=>t.a,setAlpha:e=>{t.a=e,t.spaces={}},isEqualTo:e=>{let r;if("string"==typeof e)r=G(e);else{if(e.type!==t.type)return!1;r=e}return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:()=>function(){const e=G(...arguments);return e.invalid||Q(e)<.4}(t),getRGB:()=>(t.spaces.rgb||(t.spaces.rgb=K(t)),t.spaces.rgb),getRGBA:()=>(t.spaces.rgba||(t.spaces.rgba=X(t)),t.spaces.rgba),getString:()=>(t.spaces.string||(t.spaces.string=J(t)),t.spaces.string),getHex:()=>(t.spaces.hex||(t.spaces.hex=function(e){let t,r,n;if(B(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?W(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}`}(t)),t.spaces.hex),getHSL:()=>(t.spaces.hsl||(t.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?G(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})`}(t)),t.spaces.hsl),getHSLA:()=>(t.spaces.hsla||(t.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=U(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(t)),t.spaces.hsla),getHSLAObject:r,getShiftedHSLA:n,getHSV:()=>(t.spaces.hsv||(t.spaces.hsv=function(e){const{h:t,s:r,v:n}=Y(e);return`hsv(${t}, ${r}, ${n})`}(t)),t.spaces.hsv),getHSVObject:()=>(t.spaces.hsvObject||(t.spaces.hsvObject=Y(t)),t.spaces.hsvObject),blend:(e,r)=>`rgba(${Math.floor(t.r+(e.r-t.r)*r)}, ${Math.floor(t.g+(e.g-t.g)*r)}, ${Math.floor(t.b+(e.b-t.b)*r)}, ${Math.floor(t.a+(e.getAlpha()-t.a)*r)})`,getBrightenedColor:function(){return ee(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return ee(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}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,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},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*",he="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",me=/^#([0-9a-f]{3,8})$/,ge=new RegExp(`^rgb\\(${pe},${pe},${pe}\\)$`),be=new RegExp(`^rgb\\(${he},${he},${he}\\)$`),ve=new RegExp(`^rgba\\(${pe},${pe},${pe},${fe}\\)$`),ye=new RegExp(`^rgba\\(${he},${he},${he},${fe}\\)$`),xe=new RegExp(`^hsl\\(${fe},${he},${he}\\)$`),Se=new RegExp(`^hsla\\(${fe},${he},${he},${fe}\\)$`),Ce={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 Ee(){return this.rgb().formatHex()}function we(){return this.rgb().formatRgb()}function Re(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=me.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ae(t):3===r?new Me(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=ge.exec(e))?new Me(t[1],t[2],t[3],1):(t=be.exec(e))?new Me(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ve.exec(e))?Pe(t[1],t[2],t[3],t[4]):(t=ye.exec(e))?Pe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xe.exec(e))?qe(t[1],t[2]/100,t[3]/100,1):(t=Se.exec(e))?qe(t[1],t[2]/100,t[3]/100,t[4]):Ce.hasOwnProperty(e)?Ae(Ce[e]):"transparent"===e?new Me(NaN,NaN,NaN,0):null}function Ae(e){return new Me(e>>16&255,e>>8&255,255&e,1)}function Pe(e,t,r,n){return n<=0&&(e=t=r=NaN),new Me(e,t,r,n)}function ke(e){return e instanceof ce||(e=Re(e)),e?new Me((e=e.rgb()).r,e.g,e.b,e.opacity):new Me}function Ie(e,t,r,n){return 1===arguments.length?ke(e):new Me(e,t,r,null==n?1:n)}function Me(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Le(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function De(){const e=Te(this.opacity);return`${1===e?"rgb(":"rgba("}${_e(this.r)}, ${_e(this.g)}, ${_e(this.b)}${1===e?")":`, ${e})`}`}function Te(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _e(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=_e(e))<16?"0":"")+e.toString(16)}function qe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ze(e,t,r,n)}function Ne(e){if(e instanceof ze)return new ze(e.h,e.s,e.l,e.opacity);if(e instanceof ce||(e=Re(e)),!e)return new ze;if(e instanceof ze)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 ze(a,s,l,e.opacity)}function ze(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 Fe(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:Ee,formatHex:Ee,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ne(this).formatHsl()},formatRgb:we,toString:we}),le(Me,Ie,ue(ce,{brighter(e){return e=null==e?de:Math.pow(de,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Me(_e(this.r),_e(this.g),_e(this.b),Te(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:Le,formatHex:Le,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:De,toString:De})),le(ze,(function(e,t,r,n){return 1===arguments.length?Ne(e):new ze(e,t,r,null==n?1:n)}),ue(ce,{brighter(e){return e=null==e?de:Math.pow(de,e),new ze(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ze(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 Me(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 ze(je(this.h),Fe(this.s),Fe(this.l),Te(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=Te(this.opacity);return`${1===e?"hsl(":"hsla("}${je(this.h)}, ${100*Fe(this.s)}%, ${100*Fe(this.l)}%${1===e?")":`, ${e})`}`}}));const $e=Math.PI/180,Be=180/Math.PI,We=4/29,Ve=6/29,Ge=3*Ve*Ve;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 Me||(e=ke(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/Ge+We}function Xe(e){return e>Ve?e*e*e:Ge*(e-We)}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*$e;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 Me(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)*Be;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,ot="center",it="bottom";function at(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 st(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 lt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ct)):void 0===t&&(t=ut);for(var r,n,o,i,a,s=new ft(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 ft(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(pt)}function ut(e){return e.children}function ct(e){return Array.isArray(e)?e[1]:null}function dt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function pt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ft(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:ot,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:ot,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:ot,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:ot},{key:"DataRangeIncludingZero",alignment:it},{key:"LimitedData",alignment:it},{key:"NegativeOrZeroValues",alignment:it}].reduce((function(e,t){return e[t.key]=t,e}),{}),ft.prototype=lt.prototype={constructor:ft,count:function(){return this.eachAfter(st)},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 lt(this).eachBefore(dt)},[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)}},nt=function(e){
|
|
8
8
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},nt({exports:{}});const ht=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function mt(t,r){return e((()=>t),r)}const gt={},bt=()=>{const{viewState:n}=t(),o=(t=>{const r=e((()=>({current:gt})),[]);return r.current=r.current===gt?t:r.current,r})(new Set),i=void 0!==n,{promise:a,resolve:s}=e((()=>ht()),[]),l=mt((e=>{i&&o.current.add(e)}),[o]),u=mt(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 vt(e,t){return function(){return null}}function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yt.apply(null,arguments)}function xt(e){return xt="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},xt(e)}function St(e){return e&&"object"===xt(e)&&e.constructor===Object}function Ct(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?yt({},e):e;return St(e)&&St(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(St(t[o])&&o in e?n[o]=Ct(e[o],t[o],r):n[o]=t[o])})),n}function Et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wt(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 At(){}function Pt(){}Pt.resetWarningCache=At;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:Pt,resetWarningCache:At};return r.PropTypes=r,r}();var kt=Et(Rt.exports),It=(kt.element,function(){return null});It.isRequired=(kt.element.isRequired,function(){return null});var Mt=function(){return null};function Lt(e){var t=function(e,t){if("object"!=xt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==xt(t)?t:t+""}function Dt(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:{}},_t={},Ot=60103,qt=60106,Nt=60107,zt=60108,jt=60114,Ft=60109,Ht=60110,$t=60112,Bt=60113,Wt=60120,Vt=60115,Gt=60116,Ut=60121,Yt=60122,Kt=60117,Xt=60129,Jt=60131;if("function"==typeof Symbol&&Symbol.for){var Zt=Symbol.for;Ot=Zt("react.element"),qt=Zt("react.portal"),Nt=Zt("react.fragment"),zt=Zt("react.strict_mode"),jt=Zt("react.profiler"),Ft=Zt("react.provider"),Ht=Zt("react.context"),$t=Zt("react.forward_ref"),Bt=Zt("react.suspense"),Wt=Zt("react.suspense_list"),Vt=Zt("react.memo"),Gt=Zt("react.lazy"),Ut=Zt("react.block"),Yt=Zt("react.server.block"),Kt=Zt("react.fundamental"),Xt=Zt("react.debug_trace_mode"),Jt=Zt("react.legacy_hidden")}function Qt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ot:switch(e=e.type){case Nt:case jt:case zt:case Bt:case Wt:return e;default:switch(e=e&&e.$$typeof){case Ht:case $t:case Gt:case Vt:case Ft:return e;default:return t}}case qt:return t}}}var er=Ft,tr=Ot,rr=$t,nr=Nt,or=Gt,ir=Vt,ar=qt,sr=jt,lr=zt,ur=Bt;_t.ContextConsumer=Ht,_t.ContextProvider=er,_t.Element=tr,_t.ForwardRef=rr,_t.Fragment=nr,_t.Lazy=or,_t.Memo=ir,_t.Portal=ar,_t.Profiler=sr,_t.StrictMode=lr,_t.Suspense=ur,_t.isAsyncMode=function(){return!1},_t.isConcurrentMode=function(){return!1},_t.isContextConsumer=function(e){return Qt(e)===Ht},_t.isContextProvider=function(e){return Qt(e)===Ft},_t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ot},_t.isForwardRef=function(e){return Qt(e)===$t},_t.isFragment=function(e){return Qt(e)===Nt},_t.isLazy=function(e){return Qt(e)===Gt},_t.isMemo=function(e){return Qt(e)===Vt},_t.isPortal=function(e){return Qt(e)===qt},_t.isProfiler=function(e){return Qt(e)===jt},_t.isStrictMode=function(e){return Qt(e)===zt},_t.isSuspense=function(e){return Qt(e)===Bt},_t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Nt||e===jt||e===Xt||e===zt||e===Bt||e===Wt||e===Jt||"object"==typeof e&&null!==e&&(e.$$typeof===Gt||e.$$typeof===Vt||e.$$typeof===Ft||e.$$typeof===Ht||e.$$typeof===$t||e.$$typeof===Kt||e.$$typeof===Ut||e[0]===Yt)},_t.typeOf=Qt,Tt.exports=_t;var cr=Tt.exports,dr=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(dr);return t&&t[1]||""}(e)||t}function fr(e,t,r){var n=pr(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var hr="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),mr=kt.oneOfType([kt.func,kt.object]),gr=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:vt,deepmerge:Ct,elementAcceptingRef:It,elementTypeAcceptingRef:Mt,exactProp:function(e){return e},formatMuiErrorMessage:Dt,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return pr(e,"Component");if("object"===xt(e))switch(e.$$typeof){case cr.ForwardRef:return fr(e,e.render,"ForwardRef");case cr.Memo:return fr(e,e.type,"memo");default:return}}},ponyfillGlobal:hr,refType:mr});function br(e){if(e.type)return e;if("#"===e.charAt(0))return br(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(Dt(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 vr(e,t){return e=br(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 yr(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 xr(e,t){if(null==e)return{};var r,n,o=yr(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 Sr(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 Cr(e,t){if(e){if("string"==typeof e)return Sr(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)?Sr(e,t):void 0}}function Er(e){return function(e){if(Array.isArray(e))return Sr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cr(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 wr(e,t){return t?Ct(e,t,{clone:!1}):e}var Rr={xs:0,sm:600,md:960,lg:1280,xl:1920},Ar={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Rr[e],"px)")}};function Pr(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Ar;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===xt(t)){var o=e.theme.breakpoints||Ar;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function kr(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Ir(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=kr(e.theme,o)||{};return Pr(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=kr(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Lt(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?wr(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function Lr(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Dr=Ir({prop:"border",themeKey:"borders",transform:Lr}),Tr=Ir({prop:"borderTop",themeKey:"borders",transform:Lr}),_r=Ir({prop:"borderRight",themeKey:"borders",transform:Lr}),Or=Ir({prop:"borderBottom",themeKey:"borders",transform:Lr}),qr=Ir({prop:"borderLeft",themeKey:"borders",transform:Lr}),Nr=Ir({prop:"borderColor",themeKey:"palette"}),zr=Ir({prop:"borderRadius",themeKey:"shape"}),jr=Mr(Dr,Tr,_r,Or,qr,Nr,zr);function Fr(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Hr(e){var t=function(t){var r=e(t);return t.css?yt({},wr(r,e(yt({theme:t.theme},t.css))),Fr(t.css,[e.filterProps])):t.sx?yt({},wr(r,e(yt({theme:t.theme},t.sx))),Fr(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(Er(e.filterProps)),t}var $r=Mr(Ir({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Ir({prop:"display"}),Ir({prop:"overflow"}),Ir({prop:"textOverflow"}),Ir({prop:"visibility"}),Ir({prop:"whiteSpace"})),Br=Ir({prop:"flexBasis"}),Wr=Ir({prop:"flexDirection"}),Vr=Ir({prop:"flexWrap"}),Gr=Ir({prop:"justifyContent"}),Ur=Ir({prop:"alignItems"}),Yr=Ir({prop:"alignContent"}),Kr=Ir({prop:"order"}),Xr=Ir({prop:"flex"}),Jr=Ir({prop:"flexGrow"}),Zr=Ir({prop:"flexShrink"}),Qr=Ir({prop:"alignSelf"}),en=Ir({prop:"justifyItems"}),tn=Ir({prop:"justifySelf"}),rn=Mr(Br,Wr,Vr,Gr,Ur,Yr,Kr,Xr,Jr,Zr,Qr,en,tn),nn=Ir({prop:"gridGap"}),on=Ir({prop:"gridColumnGap"}),an=Ir({prop:"gridRowGap"}),sn=Ir({prop:"gridColumn"}),ln=Ir({prop:"gridRow"}),un=Ir({prop:"gridAutoFlow"}),cn=Ir({prop:"gridAutoColumns"}),dn=Ir({prop:"gridAutoRows"}),pn=Ir({prop:"gridTemplateColumns"}),fn=Ir({prop:"gridTemplateRows"}),hn=Ir({prop:"gridTemplateAreas"}),mn=Ir({prop:"gridArea"}),gn=Mr(nn,on,an,sn,ln,un,cn,dn,pn,fn,hn,mn),bn=Ir({prop:"color",themeKey:"palette"}),vn=Ir({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),yn=Mr(bn,vn),xn=Ir({prop:"position"}),Sn=Ir({prop:"zIndex",themeKey:"zIndex"}),Cn=Ir({prop:"top"}),En=Ir({prop:"right"}),wn=Ir({prop:"bottom"}),Rn=Ir({prop:"left"}),An=Mr(xn,Sn,Cn,En,wn,Rn),Pn=Ir({prop:"boxShadow",themeKey:"shadows"});function kn(e){return e<=1?"".concat(100*e,"%"):e}var In=Ir({prop:"width",transform:kn}),Mn=Ir({prop:"maxWidth",transform:kn}),Ln=Ir({prop:"minWidth",transform:kn}),Dn=Ir({prop:"height",transform:kn}),Tn=Ir({prop:"maxHeight",transform:kn}),_n=Ir({prop:"minHeight",transform:kn}),On=Ir({prop:"size",cssProperty:"width",transform:kn}),qn=Ir({prop:"size",cssProperty:"height",transform:kn}),Nn=Ir({prop:"boxSizing"}),zn=Mr(In,Mn,Ln,Dn,Tn,_n,Nn);function jn(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)||Cr(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 Fn={m:"margin",p:"padding"},Hn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$n={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Bn=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(!$n[e])return[e];e=$n[e]}var t=jn(e.split(""),2),r=t[0],n=t[1],o=Fn[r],i=Hn[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 Vn(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 Gn(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 Un(e){var t=Vn(e.theme);return Object.keys(e).map((function(r){if(-1===Wn.indexOf(r))return null;var n=Gn(Bn(r),t),o=e[r];return Pr(e,o,n)})).reduce(wr,{})}Un.propTypes={},Un.filterProps=Wn;var Yn=Ir({prop:"fontFamily",themeKey:"typography"}),Kn=Ir({prop:"fontSize",themeKey:"typography"}),Xn=Ir({prop:"fontStyle",themeKey:"typography"}),Jn=Ir({prop:"fontWeight",themeKey:"typography"}),Zn=Ir({prop:"letterSpacing"}),Qn=Ir({prop:"lineHeight"}),eo=Ir({prop:"textAlign"}),to=Mr(Yn,Kn,Xn,Jn,Zn,Qn,eo),ro=Object.freeze({__proto__:null,alignContent:Yr,alignItems:Ur,alignSelf:Qr,bgcolor:vn,border:Dr,borderBottom:Or,borderColor:Nr,borderLeft:qr,borderRadius:zr,borderRight:_r,borderTop:Tr,borders:jr,bottom:wn,boxSizing:Nn,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Ar,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(yt({theme:t.theme},t[o]))),r}),null);return wr(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Er(e.filterProps)),t},color:bn,compose:Mr,createUnarySpacing:Vn,css:function(e){return Hr(e)},display:$r,flex:Xr,flexBasis:Br,flexDirection:Wr,flexGrow:Jr,flexShrink:Zr,flexWrap:Vr,flexbox:rn,fontFamily:Yn,fontSize:Kn,fontStyle:Xn,fontWeight:Jn,grid:gn,gridArea:mn,gridAutoColumns:cn,gridAutoFlow:un,gridAutoRows:dn,gridColumn:sn,gridColumnGap:on,gridGap:nn,gridRow:ln,gridRowGap:an,gridTemplateAreas:hn,gridTemplateColumns:pn,gridTemplateRows:fn,height:Dn,justifyContent:Gr,justifyItems:en,justifySelf:tn,left:Rn,letterSpacing:Zn,lineHeight:Qn,maxHeight:Tn,maxWidth:Mn,minHeight:_n,minWidth:Ln,order:Kr,palette:yn,position:xn,positions:An,right:En,shadows:Pn,sizeHeight:qn,sizeWidth:On,sizing:zn,spacing:Un,style:Ir,styleFunctionSx:Hr,textAlign:eo,top:Cn,typography:to,width:In,zIndex:Sn}),no="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",oo=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function io(){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!==oo.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[no]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function ao(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 so="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},lo="object"===("undefined"==typeof window?"undefined":so(window))&&"object"===("undefined"==typeof document?"undefined":so(document))&&9===document.nodeType;function uo(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,Lt(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function co(e,t){return co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},co(e,t)}function po(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,co(e,t)}function fo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ho={}.constructor;function mo(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(mo);if(e.constructor!==ho)return e;var t={};for(var r in e)t[r]=mo(e[r]);return t}function go(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=mo(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var bo=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},vo=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+=bo(e[r]," ");else t=bo(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function yo(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function xo(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function So(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=yo(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+=xo(p+":"+u+vo(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=xo(h+":"+u+vo(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=xo(g+":"+u+vo(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),xo(""+e+u+"{"+n,--i)+xo("}",i)):n}var Co=/([[\].#*$><+~=|^:(),"'`\s])/g,Eo="undefined"!=typeof CSS&&CSS.escape,wo=function(e){return Eo?Eo(e):e.replace(Co,"\\$1")},Ro=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}(),Ao=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(fo(fo(o)),s),o.selectorText="."+wo(o.id)),o}po(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]=vo(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?yt({},e,{allowEmpty:!0}):e;return So(this.selectorText,this.style,r)},uo(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}(Ro),Po={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Ao(e,t,r)}},ko={indent:1,children:!0},Io=/@([\w-]+)/,Mo=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Io);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ei(yt({},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=ko);var t=yo(e).linebreak;if(null==e.indent&&(e.indent=ko.indent),null==e.children&&(e.children=ko.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Lo=/@container|@media|@supports\s+/,Do={onCreateRule:function(e,t,r){return Lo.test(e)?new Mo(e,t,r):null}},To={indent:1,children:!0},_o=/@keyframes\s+([\w-]+)/,Oo=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(_o);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:wo(a(this,i)),this.rules=new ei(yt({},r,{parent:this})),t)this.rules.add(s,t[s],yt({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=To);var t=yo(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}(),qo=/@keyframes\s+/,No=/\$([\w-]+)/g,zo=function(e,t){return"string"==typeof e?e.replace(No,(function(e,r){return r in t?t[r]:e})):e},jo=function(e,t,r){var n=e[t],o=zo(n,r);o!==n&&(e[t]=o)},Fo={onCreateRule:function(e,t,r){return"string"==typeof e&&qo.test(e)?new Oo(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&jo(e,"animation-name",r.keyframes),"animation"in e&&jo(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}}},Ho=function(e){function t(){return e.apply(this,arguments)||this}return po(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?yt({},e,{allowEmpty:!0}):e;return So(this.key,this.style,r)},t}(Ro),$o={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Ho(e,t,r):null}},Bo=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=yo(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=So(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return So(this.at,this.style,e)},e}(),Wo=/@font-face/,Vo={onCreateRule:function(e,t,r){return Wo.test(e)?new Bo(e,t,r):null}},Go=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 So(this.key,this.style,e)},e}(),Uo={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Go(e,t,r):null}},Yo=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}(),Ko={"@charset":!0,"@import":!0,"@namespace":!0},Xo={onCreateRule:function(e,t,r){return e in Ko?new Yo(e,t,r):null}},Jo=[Po,Do,Fo,$o,Vo,Uo,Xo],Zo={process:!0},Qo={force:!0,process:!0},ei=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=yt({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="."+wo(this.classes[d]));var p=go(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=yt({},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 Ao?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Oo&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ao?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Oo&&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=Zo);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,Qo)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Qo)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=yo(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}(),ti=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=yt({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ei(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}(),ri=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}(),ni=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=yr(t,["attached"]),o=yo(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},uo(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),oi=new ni,ii="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ai="2f1acc6c3a606b082e5eef5e54414ffb";null==ii[ai]&&(ii[ai]=0);var si=ii[ai]++,li=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")+si+o+t:i+r.key+"-"+si+(o?"-"+o:"")+"-"+t}},ui=function(e){var t;return function(){return t||(t=e()),t}},ci=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},di=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=vo(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},pi=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},fi=function(e,t){return e.selectorText=t,e.selectorText===t},hi=ui((function(){return document.querySelector("head")}));function mi(e){var t=oi.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=hi(),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 gi=ui((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),bi=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]},vi=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},yi=function(){function e(e){this.getPropertyValue=ci,this.setProperty=di,this.removeProperty=pi,this.setSelector=fi,this.hasInsertedRules=!1,this.cssRules=[],e&&oi.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=gi();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=mi(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 hi().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=vi(r,t);if(!1===(o=bi(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=vi(r,t),l=bi(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 ti&&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}(),xi=0,Si=function(){function e(e){this.id=xi++,this.version="10.10.0",this.plugins=new ri,this.options={id:{minify:!1},createGenerateId:li,Renderer:lo?yi:null,plugins:[]},this.generateId=li({minify:!1});for(var t=0;t<Jo.length;t++)this.plugins.use(Jo[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=yt({},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===oi.index?0:oi.index+1);var n=new ti(e,yt({},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(),oi.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=yt({},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=go(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}(),Ci=function(e){return new Si(e)},Ei="object"==typeof CSS&&null!=CSS&&"number"in CSS;function wi(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=wi(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},nt({exports:{}});const ht=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function mt(t,r){return e((()=>t),r)}const gt={},bt=()=>{const{viewState:n}=t(),o=(t=>{const r=e((()=>({current:gt})),[]);return r.current=r.current===gt?t:r.current,r})(new Set),i=void 0!==n,{promise:a,resolve:s}=e((()=>ht()),[]),l=mt((e=>{i&&o.current.add(e)}),[o]),u=mt(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 vt(e,t){return function(){return null}}function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yt.apply(null,arguments)}function xt(e){return xt="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},xt(e)}function St(e){return e&&"object"===xt(e)&&e.constructor===Object}function Ct(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?yt({},e):e;return St(e)&&St(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(St(t[o])&&o in e?n[o]=Ct(e[o],t[o],r):n[o]=t[o])})),n}function Et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wt(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 At(){}function Pt(){}Pt.resetWarningCache=At;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:Pt,resetWarningCache:At};return r.PropTypes=r,r}();var kt=Et(Rt.exports),It=(kt.element,function(){return null});It.isRequired=(kt.element.isRequired,function(){return null});var Mt=function(){return null};function Lt(e){var t=function(e,t){if("object"!=xt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==xt(t)?t:t+""}function Dt(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:{}},_t={},Ot=60103,qt=60106,Nt=60107,zt=60108,jt=60114,Ft=60109,Ht=60110,$t=60112,Bt=60113,Wt=60120,Vt=60115,Gt=60116,Ut=60121,Yt=60122,Kt=60117,Xt=60129,Jt=60131;if("function"==typeof Symbol&&Symbol.for){var Zt=Symbol.for;Ot=Zt("react.element"),qt=Zt("react.portal"),Nt=Zt("react.fragment"),zt=Zt("react.strict_mode"),jt=Zt("react.profiler"),Ft=Zt("react.provider"),Ht=Zt("react.context"),$t=Zt("react.forward_ref"),Bt=Zt("react.suspense"),Wt=Zt("react.suspense_list"),Vt=Zt("react.memo"),Gt=Zt("react.lazy"),Ut=Zt("react.block"),Yt=Zt("react.server.block"),Kt=Zt("react.fundamental"),Xt=Zt("react.debug_trace_mode"),Jt=Zt("react.legacy_hidden")}function Qt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ot:switch(e=e.type){case Nt:case jt:case zt:case Bt:case Wt:return e;default:switch(e=e&&e.$$typeof){case Ht:case $t:case Gt:case Vt:case Ft:return e;default:return t}}case qt:return t}}}var er=Ft,tr=Ot,rr=$t,nr=Nt,or=Gt,ir=Vt,ar=qt,sr=jt,lr=zt,ur=Bt;_t.ContextConsumer=Ht,_t.ContextProvider=er,_t.Element=tr,_t.ForwardRef=rr,_t.Fragment=nr,_t.Lazy=or,_t.Memo=ir,_t.Portal=ar,_t.Profiler=sr,_t.StrictMode=lr,_t.Suspense=ur,_t.isAsyncMode=function(){return!1},_t.isConcurrentMode=function(){return!1},_t.isContextConsumer=function(e){return Qt(e)===Ht},_t.isContextProvider=function(e){return Qt(e)===Ft},_t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ot},_t.isForwardRef=function(e){return Qt(e)===$t},_t.isFragment=function(e){return Qt(e)===Nt},_t.isLazy=function(e){return Qt(e)===Gt},_t.isMemo=function(e){return Qt(e)===Vt},_t.isPortal=function(e){return Qt(e)===qt},_t.isProfiler=function(e){return Qt(e)===jt},_t.isStrictMode=function(e){return Qt(e)===zt},_t.isSuspense=function(e){return Qt(e)===Bt},_t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Nt||e===jt||e===Xt||e===zt||e===Bt||e===Wt||e===Jt||"object"==typeof e&&null!==e&&(e.$$typeof===Gt||e.$$typeof===Vt||e.$$typeof===Ft||e.$$typeof===Ht||e.$$typeof===$t||e.$$typeof===Kt||e.$$typeof===Ut||e[0]===Yt)},_t.typeOf=Qt,Tt.exports=_t;var cr=Tt.exports,dr=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(dr);return t&&t[1]||""}(e)||t}function fr(e,t,r){var n=pr(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var hr="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),mr=kt.oneOfType([kt.func,kt.object]),gr=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:vt,deepmerge:Ct,elementAcceptingRef:It,elementTypeAcceptingRef:Mt,exactProp:function(e){return e},formatMuiErrorMessage:Dt,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return pr(e,"Component");if("object"===xt(e))switch(e.$$typeof){case cr.ForwardRef:return fr(e,e.render,"ForwardRef");case cr.Memo:return fr(e,e.type,"memo");default:return}}},ponyfillGlobal:hr,refType:mr});function br(e){if(e.type)return e;if("#"===e.charAt(0))return br(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(Dt(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 vr(e,t){return e=br(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 yr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function xr(e,t){if(null==e)return{};var r,n,o=yr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Sr(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 Cr(e,t){if(e){if("string"==typeof e)return Sr(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)?Sr(e,t):void 0}}function Er(e){return function(e){if(Array.isArray(e))return Sr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cr(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 wr(e,t){return t?Ct(e,t,{clone:!1}):e}var Rr={xs:0,sm:600,md:960,lg:1280,xl:1920},Ar={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Rr[e],"px)")}};function Pr(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Ar;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===xt(t)){var o=e.theme.breakpoints||Ar;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function kr(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Ir(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=kr(e.theme,o)||{};return Pr(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=kr(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Lt(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?wr(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function Lr(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Dr=Ir({prop:"border",themeKey:"borders",transform:Lr}),Tr=Ir({prop:"borderTop",themeKey:"borders",transform:Lr}),_r=Ir({prop:"borderRight",themeKey:"borders",transform:Lr}),Or=Ir({prop:"borderBottom",themeKey:"borders",transform:Lr}),qr=Ir({prop:"borderLeft",themeKey:"borders",transform:Lr}),Nr=Ir({prop:"borderColor",themeKey:"palette"}),zr=Ir({prop:"borderRadius",themeKey:"shape"}),jr=Mr(Dr,Tr,_r,Or,qr,Nr,zr);function Fr(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Hr(e){var t=function(t){var r=e(t);return t.css?yt({},wr(r,e(yt({theme:t.theme},t.css))),Fr(t.css,[e.filterProps])):t.sx?yt({},wr(r,e(yt({theme:t.theme},t.sx))),Fr(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(Er(e.filterProps)),t}var $r=Mr(Ir({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Ir({prop:"display"}),Ir({prop:"overflow"}),Ir({prop:"textOverflow"}),Ir({prop:"visibility"}),Ir({prop:"whiteSpace"})),Br=Ir({prop:"flexBasis"}),Wr=Ir({prop:"flexDirection"}),Vr=Ir({prop:"flexWrap"}),Gr=Ir({prop:"justifyContent"}),Ur=Ir({prop:"alignItems"}),Yr=Ir({prop:"alignContent"}),Kr=Ir({prop:"order"}),Xr=Ir({prop:"flex"}),Jr=Ir({prop:"flexGrow"}),Zr=Ir({prop:"flexShrink"}),Qr=Ir({prop:"alignSelf"}),en=Ir({prop:"justifyItems"}),tn=Ir({prop:"justifySelf"}),rn=Mr(Br,Wr,Vr,Gr,Ur,Yr,Kr,Xr,Jr,Zr,Qr,en,tn),nn=Ir({prop:"gridGap"}),on=Ir({prop:"gridColumnGap"}),an=Ir({prop:"gridRowGap"}),sn=Ir({prop:"gridColumn"}),ln=Ir({prop:"gridRow"}),un=Ir({prop:"gridAutoFlow"}),cn=Ir({prop:"gridAutoColumns"}),dn=Ir({prop:"gridAutoRows"}),pn=Ir({prop:"gridTemplateColumns"}),fn=Ir({prop:"gridTemplateRows"}),hn=Ir({prop:"gridTemplateAreas"}),mn=Ir({prop:"gridArea"}),gn=Mr(nn,on,an,sn,ln,un,cn,dn,pn,fn,hn,mn),bn=Ir({prop:"color",themeKey:"palette"}),vn=Ir({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),yn=Mr(bn,vn),xn=Ir({prop:"position"}),Sn=Ir({prop:"zIndex",themeKey:"zIndex"}),Cn=Ir({prop:"top"}),En=Ir({prop:"right"}),wn=Ir({prop:"bottom"}),Rn=Ir({prop:"left"}),An=Mr(xn,Sn,Cn,En,wn,Rn),Pn=Ir({prop:"boxShadow",themeKey:"shadows"});function kn(e){return e<=1?"".concat(100*e,"%"):e}var In=Ir({prop:"width",transform:kn}),Mn=Ir({prop:"maxWidth",transform:kn}),Ln=Ir({prop:"minWidth",transform:kn}),Dn=Ir({prop:"height",transform:kn}),Tn=Ir({prop:"maxHeight",transform:kn}),_n=Ir({prop:"minHeight",transform:kn}),On=Ir({prop:"size",cssProperty:"width",transform:kn}),qn=Ir({prop:"size",cssProperty:"height",transform:kn}),Nn=Ir({prop:"boxSizing"}),zn=Mr(In,Mn,Ln,Dn,Tn,_n,Nn);function jn(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)||Cr(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 Fn={m:"margin",p:"padding"},Hn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$n={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Bn=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(!$n[e])return[e];e=$n[e]}var t=jn(e.split(""),2),r=t[0],n=t[1],o=Fn[r],i=Hn[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 Vn(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 Gn(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 Un(e){var t=Vn(e.theme);return Object.keys(e).map((function(r){if(-1===Wn.indexOf(r))return null;var n=Gn(Bn(r),t),o=e[r];return Pr(e,o,n)})).reduce(wr,{})}Un.propTypes={},Un.filterProps=Wn;var Yn=Ir({prop:"fontFamily",themeKey:"typography"}),Kn=Ir({prop:"fontSize",themeKey:"typography"}),Xn=Ir({prop:"fontStyle",themeKey:"typography"}),Jn=Ir({prop:"fontWeight",themeKey:"typography"}),Zn=Ir({prop:"letterSpacing"}),Qn=Ir({prop:"lineHeight"}),eo=Ir({prop:"textAlign"}),to=Mr(Yn,Kn,Xn,Jn,Zn,Qn,eo),ro=Object.freeze({__proto__:null,alignContent:Yr,alignItems:Ur,alignSelf:Qr,bgcolor:vn,border:Dr,borderBottom:Or,borderColor:Nr,borderLeft:qr,borderRadius:zr,borderRight:_r,borderTop:Tr,borders:jr,bottom:wn,boxSizing:Nn,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Ar,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(yt({theme:t.theme},t[o]))),r}),null);return wr(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Er(e.filterProps)),t},color:bn,compose:Mr,createUnarySpacing:Vn,css:function(e){return Hr(e)},display:$r,flex:Xr,flexBasis:Br,flexDirection:Wr,flexGrow:Jr,flexShrink:Zr,flexWrap:Vr,flexbox:rn,fontFamily:Yn,fontSize:Kn,fontStyle:Xn,fontWeight:Jn,grid:gn,gridArea:mn,gridAutoColumns:cn,gridAutoFlow:un,gridAutoRows:dn,gridColumn:sn,gridColumnGap:on,gridGap:nn,gridRow:ln,gridRowGap:an,gridTemplateAreas:hn,gridTemplateColumns:pn,gridTemplateRows:fn,height:Dn,justifyContent:Gr,justifyItems:en,justifySelf:tn,left:Rn,letterSpacing:Zn,lineHeight:Qn,maxHeight:Tn,maxWidth:Mn,minHeight:_n,minWidth:Ln,order:Kr,palette:yn,position:xn,positions:An,right:En,shadows:Pn,sizeHeight:qn,sizeWidth:On,sizing:zn,spacing:Un,style:Ir,styleFunctionSx:Hr,textAlign:eo,top:Cn,typography:to,width:In,zIndex:Sn}),no="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",oo=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function io(){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!==oo.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[no]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function ao(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}function so(){return so=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},so.apply(null,arguments)}var lo="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},uo="object"===("undefined"==typeof window?"undefined":lo(window))&&"object"===("undefined"==typeof document?"undefined":lo(document))&&9===document.nodeType;function co(e){return co="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(e)}function po(e){var t=function(e,t){if("object"!=co(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==co(t)?t:t+""}function fo(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,po(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ho(e,t){return ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ho(e,t)}function mo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ho(e,t)}function go(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bo(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}var vo={}.constructor;function yo(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(yo);if(e.constructor!==vo)return e;var t={};for(var r in e)t[r]=yo(e[r]);return t}function xo(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=yo(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var So=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},Co=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+=So(e[r]," ");else t=So(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Eo(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function wo(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Ro(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=Eo(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+=wo(p+":"+u+Co(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=wo(h+":"+u+Co(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=wo(g+":"+u+Co(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),wo(""+e+u+"{"+n,--i)+wo("}",i)):n}var Ao=/([[\].#*$><+~=|^:(),"'`\s])/g,Po="undefined"!=typeof CSS&&CSS.escape,ko=function(e){return Po?Po(e):e.replace(Ao,"\\$1")},Io=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}(),Mo=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(go(go(o)),s),o.selectorText="."+ko(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]=Co(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?so({},e,{allowEmpty:!0}):e;return Ro(this.selectorText,this.style,r)},fo(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}(Io),Lo={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Mo(e,t,r)}},Do={indent:1,children:!0},To=/@([\w-]+)/,_o=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(To);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new oi(so({},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=Do);var t=Eo(e).linebreak;if(null==e.indent&&(e.indent=Do.indent),null==e.children&&(e.children=Do.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Oo=/@container|@media|@supports\s+/,qo={onCreateRule:function(e,t,r){return Oo.test(e)?new _o(e,t,r):null}},No={indent:1,children:!0},zo=/@keyframes\s+([\w-]+)/,jo=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(zo);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:ko(a(this,i)),this.rules=new oi(so({},r,{parent:this})),t)this.rules.add(s,t[s],so({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=No);var t=Eo(e).linebreak;if(null==e.indent&&(e.indent=No.indent),null==e.children&&(e.children=No.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+/,Ho=/\$([\w-]+)/g,$o=function(e,t){return"string"==typeof e?e.replace(Ho,(function(e,r){return r in t?t[r]:e})):e},Bo=function(e,t,r){var n=e[t],o=$o(n,r);o!==n&&(e[t]=o)},Wo={onCreateRule:function(e,t,r){return"string"==typeof e&&Fo.test(e)?new jo(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Bo(e,"animation-name",r.keyframes),"animation"in e&&Bo(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 $o(e,n.keyframes);default:return e}}},Vo=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?so({},e,{allowEmpty:!0}):e;return Ro(this.key,this.style,r)},t}(Io),Go={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Vo(e,t,r):null}},Uo=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=Eo(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Ro(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Ro(this.at,this.style,e)},e}(),Yo=/@font-face/,Ko={onCreateRule:function(e,t,r){return Yo.test(e)?new Uo(e,t,r):null}},Xo=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 Ro(this.key,this.style,e)},e}(),Jo={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Xo(e,t,r):null}},Zo=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}(),Qo={"@charset":!0,"@import":!0,"@namespace":!0},ei={onCreateRule:function(e,t,r){return e in Qo?new Zo(e,t,r):null}},ti=[Lo,qo,Wo,Go,Ko,Jo,ei],ri={process:!0},ni={force:!0,process:!0},oi=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=so({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="."+ko(this.classes[d]));var p=xo(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=so({},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 Mo?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof jo&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Mo?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof jo&&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=ri);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,ni)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ni)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=Eo(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}(),ii=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=so({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new oi(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}(),ai=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}(),si=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=bo(t,["attached"]),o=Eo(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},fo(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),li=new si,ui="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ci="2f1acc6c3a606b082e5eef5e54414ffb";null==ui[ci]&&(ui[ci]=0);var di=ui[ci]++,pi=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")+di+o+t:i+r.key+"-"+di+(o?"-"+o:"")+"-"+t}},fi=function(e){var t;return function(){return t||(t=e()),t}},hi=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},mi=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=Co(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},gi=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},bi=function(e,t){return e.selectorText=t,e.selectorText===t},vi=fi((function(){return document.querySelector("head")}));function yi(e){var t=li.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=vi(),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 xi=fi((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Si=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]},Ci=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Ei=function(){function e(e){this.getPropertyValue=hi,this.setProperty=mi,this.removeProperty=gi,this.setSelector=bi,this.hasInsertedRules=!1,this.cssRules=[],e&&li.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=xi();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=yi(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 vi().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=Ci(r,t);if(!1===(o=Si(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=Ci(r,t),l=Si(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 ii&&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}(),wi=0,Ri=function(){function e(e){this.id=wi++,this.version="10.10.0",this.plugins=new ai,this.options={id:{minify:!1},createGenerateId:pi,Renderer:uo?Ei:null,plugins:[]},this.generateId=pi({minify:!1});for(var t=0;t<ti.length;t++)this.plugins.use(ti[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=so({},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===li.index?0:li.index+1);var n=new ii(e,so({},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(),li.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=so({},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=xo(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}(),Ai=function(e){return new Ri(e)},Pi="object"==typeof CSS&&null!=CSS&&"number"in CSS;function ki(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=ki(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
10
10
|
/**
|
|
11
11
|
* A better abstraction over CSS.
|
|
12
12
|
*
|
|
13
13
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
14
14
|
* @website https://github.com/cssinjs/jss
|
|
15
15
|
* @license MIT
|
|
16
|
-
*/Ci();var Ri=Date.now(),Ai="fnValues"+Ri,Pi="fnStyle"+ ++Ri,ki="@global",Ii="@global ",Mi=function(){function e(e,t,r){for(var n in this.type="global",this.at=ki,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new ei(yt({},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}(),Li=function(){function e(e,t,r){this.type="global",this.at=ki,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,yt({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Di=/\s*,\s*/g;function Ti(e,t){for(var r=e.split(Di),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function _i(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===ki)return new Mi(e,t,r);if("@"===e[0]&&e.substr(0,8)===Ii)return new Li(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[ki]:null;if(o){for(var i in o)t.addRule(i,o[i],yt({},r,{selector:Ti(i,e.selector)}));delete n[ki]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===ki){var i=Ti(o.substr(7),e.selector);t.addRule(i,n[o],yt({},r,{selector:i})),delete n[o]}}(e,t))}}}var Oi=/\s*,\s*/g,qi=/&/g,Ni=/\$([\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(Oi),n=e.split(Oi),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(qi,a):a+" "+l}return o}function r(e,t,r){if(r)return yt({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=yt({},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(Ni,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],yt({},a,{selector:f})):u.addRule(h,n[c],yt({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var ji=/[A-Z]/g,Fi=/^ms-/,Hi={};function $i(e){return"-"+e.toLowerCase()}function Bi(e){if(Hi.hasOwnProperty(e))return Hi[e];var t=e.replace(ji,$i);return Hi[e]=Fi.test(t)?"-"+t:t}function Wi(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Bi(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Wi):t.fallbacks=Wi(e.fallbacks)),t}var Vi=Ei&&CSS?CSS.px:"px",Gi=Ei&&CSS?CSS.ms:"ms",Ui=Ei&&CSS?CSS.percent:"%";function Yi(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 Ki=Yi({"animation-delay":Gi,"animation-duration":Gi,"background-position":Vi,"background-position-x":Vi,"background-position-y":Vi,"background-size":Vi,border:Vi,"border-bottom":Vi,"border-bottom-left-radius":Vi,"border-bottom-right-radius":Vi,"border-bottom-width":Vi,"border-left":Vi,"border-left-width":Vi,"border-radius":Vi,"border-right":Vi,"border-right-width":Vi,"border-top":Vi,"border-top-left-radius":Vi,"border-top-right-radius":Vi,"border-top-width":Vi,"border-width":Vi,"border-block":Vi,"border-block-end":Vi,"border-block-end-width":Vi,"border-block-start":Vi,"border-block-start-width":Vi,"border-block-width":Vi,"border-inline":Vi,"border-inline-end":Vi,"border-inline-end-width":Vi,"border-inline-start":Vi,"border-inline-start-width":Vi,"border-inline-width":Vi,"border-start-start-radius":Vi,"border-start-end-radius":Vi,"border-end-start-radius":Vi,"border-end-end-radius":Vi,margin:Vi,"margin-bottom":Vi,"margin-left":Vi,"margin-right":Vi,"margin-top":Vi,"margin-block":Vi,"margin-block-end":Vi,"margin-block-start":Vi,"margin-inline":Vi,"margin-inline-end":Vi,"margin-inline-start":Vi,padding:Vi,"padding-bottom":Vi,"padding-left":Vi,"padding-right":Vi,"padding-top":Vi,"padding-block":Vi,"padding-block-end":Vi,"padding-block-start":Vi,"padding-inline":Vi,"padding-inline-end":Vi,"padding-inline-start":Vi,"mask-position-x":Vi,"mask-position-y":Vi,"mask-size":Vi,height:Vi,width:Vi,"min-height":Vi,"max-height":Vi,"min-width":Vi,"max-width":Vi,bottom:Vi,left:Vi,top:Vi,right:Vi,inset:Vi,"inset-block":Vi,"inset-block-end":Vi,"inset-block-start":Vi,"inset-inline":Vi,"inset-inline-end":Vi,"inset-inline-start":Vi,"box-shadow":Vi,"text-shadow":Vi,"column-gap":Vi,"column-rule":Vi,"column-rule-width":Vi,"column-width":Vi,"font-size":Vi,"font-size-delta":Vi,"letter-spacing":Vi,"text-decoration-thickness":Vi,"text-indent":Vi,"text-stroke":Vi,"text-stroke-width":Vi,"word-spacing":Vi,motion:Vi,"motion-offset":Vi,outline:Vi,"outline-offset":Vi,"outline-width":Vi,perspective:Vi,"perspective-origin-x":Ui,"perspective-origin-y":Ui,"transform-origin":Ui,"transform-origin-x":Ui,"transform-origin-y":Ui,"transform-origin-z":Ui,"transition-delay":Gi,"transition-duration":Gi,"vertical-align":Vi,"flex-basis":Vi,"shape-margin":Vi,size:Vi,gap:Vi,grid:Vi,"grid-gap":Vi,"row-gap":Vi,"grid-row-gap":Vi,"grid-column-gap":Vi,"grid-template-rows":Vi,"grid-template-columns":Vi,"grid-auto-rows":Vi,"grid-auto-columns":Vi,"box-shadow-x":Vi,"box-shadow-y":Vi,"box-shadow-blur":Vi,"box-shadow-spread":Vi,"font-line-height":Vi,"text-shadow-x":Vi,"text-shadow-y":Vi,"text-shadow-blur":Vi});function Xi(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Xi(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Xi(o,t[o],r);else for(var i in t)t[i]=Xi(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Ki[e];return!a||0===t&&a===Vi?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Ji(e){void 0===e&&(e={});var t=Yi(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Xi(n,e[n],t);return e},onChangeValue:function(e,r){return Xi(r,e,t)}}}var Zi="",Qi="",ea="",ta="",ra=lo&&"ontouchstart"in document.documentElement;if(lo){var na={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},oa=document.createElement("p").style;for(var ia in na)if(ia+"Transform"in oa){Zi=ia,Qi=na[ia];break}"Webkit"===Zi&&"msHyphens"in oa&&(Zi="ms",Qi=na.ms,ta="edge"),"Webkit"===Zi&&"-apple-trailing-word"in oa&&(ea="apple")}var aa=Zi,sa=Qi,la=ea,ua=ta,ca=ra;var da={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===aa?"-webkit-"+e:sa+e)}},pa={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===aa?sa+"print-"+e:e)}},fa=/[-\s]+(.)?/g;function ha(e,t){return t?t.toUpperCase():""}function ma(e){return e.replace(fa,ha)}function ga(e){return ma("-"+e)}var ba,va={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===aa){var r="mask-image";if(ma(r)in t)return e;if(aa+ga(r)in t)return sa+e}return e}},ya={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==la||ca?e:sa+e)}},xa={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:sa+e)}},Sa={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:sa+e)}},Ca={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===aa||"ms"===aa&&"edge"!==ua?sa+e:e)}},Ea={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===aa||"ms"===aa||"apple"===la?sa+e:e)}},wa={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===aa?"WebkitColumn"+ga(e)in t&&sa+"column-"+e:"Moz"===aa&&("page"+ga(e)in t&&"page-"+e))}},Ra={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===aa)return e;var r=e.replace("-inline","");return aa+ga(r)in t&&sa+r}},Aa={supportedProperty:function(e,t){return ma(e)in t&&e}},Pa={supportedProperty:function(e,t){var r=ga(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:aa+r in t?sa+e:"Webkit"!==aa&&"Webkit"+r in t&&"-webkit-"+e}},ka={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===aa?""+sa+e:e)}},Ia={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===aa?sa+"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"},La={supportedProperty:function(e,t){var r=Ma[e];return!!r&&(aa+ga(r)in t&&sa+r)}},Da={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(Da),_a=function(e){return sa+e},Oa={supportedProperty:function(e,t,r){var n=r.multiple;if(Ta.indexOf(e)>-1){var o=Da[e];if(!Array.isArray(o))return aa+ga(o)in t&&sa+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(aa+ga(o[0])in t))return!1;return o.map(_a)}return!1}},qa=[da,pa,va,ya,xa,Sa,Ca,Ea,wa,Ra,Aa,Pa,ka,Ia,La,Oa],Na=qa.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),za=qa.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Er(t.noPrefill)),e}),[]),ja={};if(lo){ba=document.createElement("p");var Fa=window.getComputedStyle(document.documentElement,"");for(var Ha in Fa)isNaN(Ha)||(ja[Fa[Ha]]=Fa[Ha]);za.forEach((function(e){return delete ja[e]}))}function $a(e,t){if(void 0===t&&(t={}),!ba)return e;if(null!=ja[e])return ja[e];"transition"!==e&&"transform"!==e||(t[e]=e in ba.style);for(var r=0;r<Na.length&&(ja[e]=Na[r](e,ba.style,t),!ja[e]);r++);try{ba.style[e]=""}catch(e){return!1}return ja[e]}var Ba,Wa={},Va={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ga=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ua(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?$a(t):", "+$a(r);return n||(t||r)}function Ya(e,t){var r=t;if(!Ba||"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{Ba.style[e]=r}catch(e){return Wa[n]=!1,!1}if(Va[e])r=r.replace(Ga,Ua);else if(""===Ba.style[e]&&("-ms-flex"===(r=sa+r)&&(Ba.style[e]="-ms-flexbox"),Ba.style[e]=r,""===Ba.style[e]))return Wa[n]=!1,!1;return Ba.style[e]="",Wa[n]=r,Wa[n]}function Ka(){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=$a(r);i&&i!==r&&(o=!0);var a=!1,s=Ya(i,vo(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"===aa?e:"@"+sa+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return Ya(t,vo(e))||e}}}function Xa(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=go(e,{},r);return n[Pi]=t,n},onProcessStyle:function(e,t){if(Ai in t||Pi 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[Ai]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Pi];i&&(o.style=i(e)||{});var a=o[Ai];if(a)for(var s in a)o.prop(s,a[s](e),n)}},_i(),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=Bi(t);return t===n?e:(r.prop(n,e),null)}},Ji(),"undefined"==typeof window?null:Ka(),(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 Ja(){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=yt({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}lo&&(Ba=document.createElement("p"));var Za=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},Qa=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},es=function(e,t,r){e.get(t).delete(r)},ts=x.createContext(null);function rs(){return x.useContext(ts)}var ns,os=Ci(Xa()),is=io(),as=new Map,ss={disableGeneration:!1,generateClassName:is,jss:os,sheetsCache:null,sheetsManager:as,sheetsRegistry:null},ls=x.createContext(ss);function us(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=xr(e,["children","injectFirst","disableGeneration"]),s=yt({},x.useContext(ls),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!ns){var l=document.head;ns=document.createComment("mui-inject-first"),l.insertBefore(ns,l.firstChild)}s.jss=Ci({plugins:Xa().plugins,insertionPoint:ns})}return x.createElement(ls.Provider,{value:s},t)}var cs=-1e9;var ds={};function ps(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Qa(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Za(o.sheetsManager,i,n,s));var l=yt({},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=Qa(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,yt({link:!1},l))).attach(),o.sheetsCache&&Za(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=wi(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,yt({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=Ja({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function fs(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?ds:i,s=xr(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=yt({},o);return Object.keys(i).forEach((function(e){a[e]=Ct(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:cs+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=rs()||a,n=yt({},x.useContext(ls),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 ps(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=Qa(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(es(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=Ja({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var hs=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 uo(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new ni;var r=io();return x.createElement(us,yt({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",yt({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function ms(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=ms(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function gs(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=ms(e))&&(n&&(n+=" "),n+=t);return n}var bs={exports:{}},vs={},ys="function"==typeof Symbol&&Symbol.for,xs=ys?Symbol.for("react.element"):60103,Ss=ys?Symbol.for("react.portal"):60106,Cs=ys?Symbol.for("react.fragment"):60107,Es=ys?Symbol.for("react.strict_mode"):60108,ws=ys?Symbol.for("react.profiler"):60114,Rs=ys?Symbol.for("react.provider"):60109,As=ys?Symbol.for("react.context"):60110,Ps=ys?Symbol.for("react.async_mode"):60111,ks=ys?Symbol.for("react.concurrent_mode"):60111,Is=ys?Symbol.for("react.forward_ref"):60112,Ms=ys?Symbol.for("react.suspense"):60113,Ls=ys?Symbol.for("react.suspense_list"):60120,Ds=ys?Symbol.for("react.memo"):60115,Ts=ys?Symbol.for("react.lazy"):60116,_s=ys?Symbol.for("react.block"):60121,Os=ys?Symbol.for("react.fundamental"):60117,qs=ys?Symbol.for("react.responder"):60118,Ns=ys?Symbol.for("react.scope"):60119;function zs(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case xs:switch(e=e.type){case Ps:case ks:case Cs:case ws:case Es:case Ms:return e;default:switch(e=e&&e.$$typeof){case As:case Is:case Ts:case Ds:case Rs:return e;default:return t}}case Ss:return t}}}function js(e){return zs(e)===ks}vs.AsyncMode=Ps,vs.ConcurrentMode=ks,vs.ContextConsumer=As,vs.ContextProvider=Rs,vs.Element=xs,vs.ForwardRef=Is,vs.Fragment=Cs,vs.Lazy=Ts,vs.Memo=Ds,vs.Portal=Ss,vs.Profiler=ws,vs.StrictMode=Es,vs.Suspense=Ms,vs.isAsyncMode=function(e){return js(e)||zs(e)===Ps},vs.isConcurrentMode=js,vs.isContextConsumer=function(e){return zs(e)===As},vs.isContextProvider=function(e){return zs(e)===Rs},vs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===xs},vs.isForwardRef=function(e){return zs(e)===Is},vs.isFragment=function(e){return zs(e)===Cs},vs.isLazy=function(e){return zs(e)===Ts},vs.isMemo=function(e){return zs(e)===Ds},vs.isPortal=function(e){return zs(e)===Ss},vs.isProfiler=function(e){return zs(e)===ws},vs.isStrictMode=function(e){return zs(e)===Es},vs.isSuspense=function(e){return zs(e)===Ms},vs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Cs||e===ks||e===ws||e===Es||e===Ms||e===Ls||"object"==typeof e&&null!==e&&(e.$$typeof===Ts||e.$$typeof===Ds||e.$$typeof===Rs||e.$$typeof===As||e.$$typeof===Is||e.$$typeof===Os||e.$$typeof===qs||e.$$typeof===Ns||e.$$typeof===_s)},vs.typeOf=zs,bs.exports=vs;var Fs=bs.exports,Hs={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Bs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ws={};function Vs(e){return Fs.isMemo(e)?Bs:Ws[e.$$typeof]||Hs}Ws[Fs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ws[Fs.Memo]=Bs;var Gs=Object.defineProperty,Us=Object.getOwnPropertyNames,Ys=Object.getOwnPropertySymbols,Ks=Object.getOwnPropertyDescriptor,Xs=Object.getPrototypeOf,Js=Object.prototype;var Zs=function e(t,r,n){if("string"!=typeof r){if(Js){var o=Xs(r);o&&o!==Js&&e(t,o,n)}var i=Us(r);Ys&&(i=i.concat(Ys(r)));for(var a=Vs(t),s=Vs(r),l=0;l<i.length;++l){var u=i[l];if(!($s[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Ks(r,u);try{Gs(t,u,c)}catch(e){}}}}return t},Qs=Et(Zs);function el(){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=xr(r,["innerRef"]),a=rs()||e;return x.createElement(t,yt({theme:a,ref:o||n},i))}));return Qs(r,t),r}}var tl=el(),rl=Object.freeze({__proto__:null,ServerStyleSheets:hs,StylesContext:ls,StylesProvider:us,ThemeProvider:function(e){var t=e.children,r=e.theme,n=rs(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):yt({},e,t)}(n,r);return null!=e&&(e[no]=null!==n),e}),[r,n]);return x.createElement(ts.Provider,{value:o},t)},createGenerateClassName:io,createStyles:function(e){return e},getThemeProps:ao,jssPreset:Xa,makeStyles:fs,mergeClasses:Ja,sheetsManager:as,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=xr(n,["name"]),a=o,s=fs("function"==typeof t?function(e){return{root:function(r){return t(yt({theme:e},r))}}}:{root:t},yt({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=xr(t,["children","className","clone","component"]),f=gs(s(t).root,u),h=p;if(r&&(o=h,i=r,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),c)return x.cloneElement(l,yt({className:gs(l.props.className,f)},h));if("function"==typeof l)return l(yt({className:f},h));var m=d||e;return x.createElement(m,yt({ref:n,className:f},h),l)}));return Qs(l,e),l}},useTheme:rs,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=xr(t,["defaultTheme","withTheme","name"]),l=a,u=fs(e,yt({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=xr(e,["classes","innerRef"]),c=u(yt({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=rs()||n,a&&(d=ao({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,yt({ref:s||t,classes:c},d))}));return Qs(c,r),c}},withTheme:tl,withThemeCreator:el});
|
|
16
|
+
*/Ai();var Ii=Date.now(),Mi="fnValues"+Ii,Li="fnStyle"+ ++Ii,Di="@global",Ti="@global ",_i=function(){function e(e,t,r){for(var n in this.type="global",this.at=Di,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new oi(so({},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}(),Oi=function(){function e(e,t,r){this.type="global",this.at=Di,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,so({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),qi=/\s*,\s*/g;function Ni(e,t){for(var r=e.split(qi),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function zi(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Di)return new _i(e,t,r);if("@"===e[0]&&e.substr(0,8)===Ti)return new Oi(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[Di]:null;if(o){for(var i in o)t.addRule(i,o[i],so({},r,{selector:Ni(i,e.selector)}));delete n[Di]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Di){var i=Ni(o.substr(7),e.selector);t.addRule(i,n[o],so({},r,{selector:i})),delete n[o]}}(e,t))}}}var ji=/\s*,\s*/g,Fi=/&/g,Hi=/\$([\w-]+)/g;function $i(){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(ji),n=e.split(ji),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 so({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=so({},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(Hi,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],so({},a,{selector:f})):u.addRule(h,n[c],so({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Bi=/[A-Z]/g,Wi=/^ms-/,Vi={};function Gi(e){return"-"+e.toLowerCase()}function Ui(e){if(Vi.hasOwnProperty(e))return Vi[e];var t=e.replace(Bi,Gi);return Vi[e]=Wi.test(t)?"-"+t:t}function Yi(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Ui(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Yi):t.fallbacks=Yi(e.fallbacks)),t}var Ki=Pi&&CSS?CSS.px:"px",Xi=Pi&&CSS?CSS.ms:"ms",Ji=Pi&&CSS?CSS.percent:"%";function Zi(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 Qi=Zi({"animation-delay":Xi,"animation-duration":Xi,"background-position":Ki,"background-position-x":Ki,"background-position-y":Ki,"background-size":Ki,border:Ki,"border-bottom":Ki,"border-bottom-left-radius":Ki,"border-bottom-right-radius":Ki,"border-bottom-width":Ki,"border-left":Ki,"border-left-width":Ki,"border-radius":Ki,"border-right":Ki,"border-right-width":Ki,"border-top":Ki,"border-top-left-radius":Ki,"border-top-right-radius":Ki,"border-top-width":Ki,"border-width":Ki,"border-block":Ki,"border-block-end":Ki,"border-block-end-width":Ki,"border-block-start":Ki,"border-block-start-width":Ki,"border-block-width":Ki,"border-inline":Ki,"border-inline-end":Ki,"border-inline-end-width":Ki,"border-inline-start":Ki,"border-inline-start-width":Ki,"border-inline-width":Ki,"border-start-start-radius":Ki,"border-start-end-radius":Ki,"border-end-start-radius":Ki,"border-end-end-radius":Ki,margin:Ki,"margin-bottom":Ki,"margin-left":Ki,"margin-right":Ki,"margin-top":Ki,"margin-block":Ki,"margin-block-end":Ki,"margin-block-start":Ki,"margin-inline":Ki,"margin-inline-end":Ki,"margin-inline-start":Ki,padding:Ki,"padding-bottom":Ki,"padding-left":Ki,"padding-right":Ki,"padding-top":Ki,"padding-block":Ki,"padding-block-end":Ki,"padding-block-start":Ki,"padding-inline":Ki,"padding-inline-end":Ki,"padding-inline-start":Ki,"mask-position-x":Ki,"mask-position-y":Ki,"mask-size":Ki,height:Ki,width:Ki,"min-height":Ki,"max-height":Ki,"min-width":Ki,"max-width":Ki,bottom:Ki,left:Ki,top:Ki,right:Ki,inset:Ki,"inset-block":Ki,"inset-block-end":Ki,"inset-block-start":Ki,"inset-inline":Ki,"inset-inline-end":Ki,"inset-inline-start":Ki,"box-shadow":Ki,"text-shadow":Ki,"column-gap":Ki,"column-rule":Ki,"column-rule-width":Ki,"column-width":Ki,"font-size":Ki,"font-size-delta":Ki,"letter-spacing":Ki,"text-decoration-thickness":Ki,"text-indent":Ki,"text-stroke":Ki,"text-stroke-width":Ki,"word-spacing":Ki,motion:Ki,"motion-offset":Ki,outline:Ki,"outline-offset":Ki,"outline-width":Ki,perspective:Ki,"perspective-origin-x":Ji,"perspective-origin-y":Ji,"transform-origin":Ji,"transform-origin-x":Ji,"transform-origin-y":Ji,"transform-origin-z":Ji,"transition-delay":Xi,"transition-duration":Xi,"vertical-align":Ki,"flex-basis":Ki,"shape-margin":Ki,size:Ki,gap:Ki,grid:Ki,"grid-gap":Ki,"row-gap":Ki,"grid-row-gap":Ki,"grid-column-gap":Ki,"grid-template-rows":Ki,"grid-template-columns":Ki,"grid-auto-rows":Ki,"grid-auto-columns":Ki,"box-shadow-x":Ki,"box-shadow-y":Ki,"box-shadow-blur":Ki,"box-shadow-spread":Ki,"font-line-height":Ki,"text-shadow-x":Ki,"text-shadow-y":Ki,"text-shadow-blur":Ki});function ea(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=ea(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=ea(o,t[o],r);else for(var i in t)t[i]=ea(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Qi[e];return!a||0===t&&a===Ki?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ta(e){void 0===e&&(e={});var t=Zi(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=ea(n,e[n],t);return e},onChangeValue:function(e,r){return ea(r,e,t)}}}function ra(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 na(e){return function(e){if(Array.isArray(e))return ra(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 ra(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)?ra(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.")}()}var oa="",ia="",aa="",sa="",la=uo&&"ontouchstart"in document.documentElement;if(uo){var ua={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ca=document.createElement("p").style;for(var da in ua)if(da+"Transform"in ca){oa=da,ia=ua[da];break}"Webkit"===oa&&"msHyphens"in ca&&(oa="ms",ia=ua.ms,sa="edge"),"Webkit"===oa&&"-apple-trailing-word"in ca&&(aa="apple")}var pa=oa,fa=ia,ha=aa,ma=sa,ga=la;var ba={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===pa?"-webkit-"+e:fa+e)}},va={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===pa?fa+"print-"+e:e)}},ya=/[-\s]+(.)?/g;function xa(e,t){return t?t.toUpperCase():""}function Sa(e){return e.replace(ya,xa)}function Ca(e){return Sa("-"+e)}var Ea,wa={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===pa){var r="mask-image";if(Sa(r)in t)return e;if(pa+Ca(r)in t)return fa+e}return e}},Ra={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==ha||ga?e:fa+e)}},Aa={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:fa+e)}},Pa={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:fa+e)}},ka={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===pa||"ms"===pa&&"edge"!==ma?fa+e:e)}},Ia={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===pa||"ms"===pa||"apple"===ha?fa+e:e)}},Ma={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===pa?"WebkitColumn"+Ca(e)in t&&fa+"column-"+e:"Moz"===pa&&("page"+Ca(e)in t&&"page-"+e))}},La={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===pa)return e;var r=e.replace("-inline","");return pa+Ca(r)in t&&fa+r}},Da={supportedProperty:function(e,t){return Sa(e)in t&&e}},Ta={supportedProperty:function(e,t){var r=Ca(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:pa+r in t?fa+e:"Webkit"!==pa&&"Webkit"+r in t&&"-webkit-"+e}},_a={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===pa?""+fa+e:e)}},Oa={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===pa?fa+"scroll-chaining":e)}},qa={"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"},Na={supportedProperty:function(e,t){var r=qa[e];return!!r&&(pa+Ca(r)in t&&fa+r)}},za={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"},ja=Object.keys(za),Fa=function(e){return fa+e},Ha={supportedProperty:function(e,t,r){var n=r.multiple;if(ja.indexOf(e)>-1){var o=za[e];if(!Array.isArray(o))return pa+Ca(o)in t&&fa+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(pa+Ca(o[0])in t))return!1;return o.map(Fa)}return!1}},$a=[ba,va,wa,Ra,Aa,Pa,ka,Ia,Ma,La,Da,Ta,_a,Oa,Na,Ha],Ba=$a.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Wa=$a.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,na(t.noPrefill)),e}),[]),Va={};if(uo){Ea=document.createElement("p");var Ga=window.getComputedStyle(document.documentElement,"");for(var Ua in Ga)isNaN(Ua)||(Va[Ga[Ua]]=Ga[Ua]);Wa.forEach((function(e){return delete Va[e]}))}function Ya(e,t){if(void 0===t&&(t={}),!Ea)return e;if(null!=Va[e])return Va[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ea.style);for(var r=0;r<Ba.length&&(Va[e]=Ba[r](e,Ea.style,t),!Va[e]);r++);try{Ea.style[e]=""}catch(e){return!1}return Va[e]}var Ka,Xa={},Ja={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Za=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Qa(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Ya(t):", "+Ya(r);return n||(t||r)}function es(e,t){var r=t;if(!Ka||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Xa[n])return Xa[n];try{Ka.style[e]=r}catch(e){return Xa[n]=!1,!1}if(Ja[e])r=r.replace(Za,Qa);else if(""===Ka.style[e]&&("-ms-flex"===(r=fa+r)&&(Ka.style[e]="-ms-flexbox"),Ka.style[e]=r,""===Ka.style[e]))return Xa[n]=!1,!1;return Ka.style[e]="",Xa[n]=r,Xa[n]}function ts(){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=Ya(r);i&&i!==r&&(o=!0);var a=!1,s=es(i,Co(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"===pa?e:"@"+fa+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return es(t,Co(e))||e}}}function rs(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=xo(e,{},r);return n[Li]=t,n},onProcessStyle:function(e,t){if(Mi in t||Li 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[Mi]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Li];i&&(o.style=i(e)||{});var a=o[Mi];if(a)for(var s in a)o.prop(s,a[s](e),n)}},zi(),$i(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Yi(e[t]);return e}return Yi(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Ui(t);return t===n?e:(r.prop(n,e),null)}},ta(),"undefined"==typeof window?null:ts(),(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 ns(){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=yt({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}uo&&(Ka=document.createElement("p"));var os=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},is=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},as=function(e,t,r){e.get(t).delete(r)},ss=x.createContext(null);function ls(){return x.useContext(ss)}var us,cs=Ai(rs()),ds=io(),ps=new Map,fs={disableGeneration:!1,generateClassName:ds,jss:cs,sheetsCache:null,sheetsManager:ps,sheetsRegistry:null},hs=x.createContext(fs);function ms(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=xr(e,["children","injectFirst","disableGeneration"]),s=yt({},x.useContext(hs),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!us){var l=document.head;us=document.createComment("mui-inject-first"),l.insertBefore(us,l.firstChild)}s.jss=Ai({plugins:rs().plugins,insertionPoint:us})}return x.createElement(hs.Provider,{value:s},t)}var gs=-1e9;var bs={};function vs(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=is(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},os(o.sheetsManager,i,n,s));var l=yt({},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=is(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,yt({link:!1},l))).attach(),o.sheetsCache&&os(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=ki(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,yt({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=ns({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function ys(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?bs:i,s=xr(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=yt({},o);return Object.keys(i).forEach((function(e){a[e]=Ct(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:gs+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ls()||a,n=yt({},x.useContext(hs),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 vs(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=is(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(as(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=ns({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}function xs(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,Lt(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ss=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 xs(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new si;var r=io();return x.createElement(ms,yt({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",yt({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function Cs(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=Cs(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Es(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Cs(e))&&(n&&(n+=" "),n+=t);return n}var ws={exports:{}},Rs={},As="function"==typeof Symbol&&Symbol.for,Ps=As?Symbol.for("react.element"):60103,ks=As?Symbol.for("react.portal"):60106,Is=As?Symbol.for("react.fragment"):60107,Ms=As?Symbol.for("react.strict_mode"):60108,Ls=As?Symbol.for("react.profiler"):60114,Ds=As?Symbol.for("react.provider"):60109,Ts=As?Symbol.for("react.context"):60110,_s=As?Symbol.for("react.async_mode"):60111,Os=As?Symbol.for("react.concurrent_mode"):60111,qs=As?Symbol.for("react.forward_ref"):60112,Ns=As?Symbol.for("react.suspense"):60113,zs=As?Symbol.for("react.suspense_list"):60120,js=As?Symbol.for("react.memo"):60115,Fs=As?Symbol.for("react.lazy"):60116,Hs=As?Symbol.for("react.block"):60121,$s=As?Symbol.for("react.fundamental"):60117,Bs=As?Symbol.for("react.responder"):60118,Ws=As?Symbol.for("react.scope"):60119;function Vs(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ps:switch(e=e.type){case _s:case Os:case Is:case Ls:case Ms:case Ns:return e;default:switch(e=e&&e.$$typeof){case Ts:case qs:case Fs:case js:case Ds:return e;default:return t}}case ks:return t}}}function Gs(e){return Vs(e)===Os}Rs.AsyncMode=_s,Rs.ConcurrentMode=Os,Rs.ContextConsumer=Ts,Rs.ContextProvider=Ds,Rs.Element=Ps,Rs.ForwardRef=qs,Rs.Fragment=Is,Rs.Lazy=Fs,Rs.Memo=js,Rs.Portal=ks,Rs.Profiler=Ls,Rs.StrictMode=Ms,Rs.Suspense=Ns,Rs.isAsyncMode=function(e){return Gs(e)||Vs(e)===_s},Rs.isConcurrentMode=Gs,Rs.isContextConsumer=function(e){return Vs(e)===Ts},Rs.isContextProvider=function(e){return Vs(e)===Ds},Rs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ps},Rs.isForwardRef=function(e){return Vs(e)===qs},Rs.isFragment=function(e){return Vs(e)===Is},Rs.isLazy=function(e){return Vs(e)===Fs},Rs.isMemo=function(e){return Vs(e)===js},Rs.isPortal=function(e){return Vs(e)===ks},Rs.isProfiler=function(e){return Vs(e)===Ls},Rs.isStrictMode=function(e){return Vs(e)===Ms},Rs.isSuspense=function(e){return Vs(e)===Ns},Rs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Is||e===Os||e===Ls||e===Ms||e===Ns||e===zs||"object"==typeof e&&null!==e&&(e.$$typeof===Fs||e.$$typeof===js||e.$$typeof===Ds||e.$$typeof===Ts||e.$$typeof===qs||e.$$typeof===$s||e.$$typeof===Bs||e.$$typeof===Ws||e.$$typeof===Hs)},Rs.typeOf=Vs,ws.exports=Rs;var Us=ws.exports,Ys={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ks={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Js={};function Zs(e){return Us.isMemo(e)?Xs:Js[e.$$typeof]||Ys}Js[Us.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Js[Us.Memo]=Xs;var Qs=Object.defineProperty,el=Object.getOwnPropertyNames,tl=Object.getOwnPropertySymbols,rl=Object.getOwnPropertyDescriptor,nl=Object.getPrototypeOf,ol=Object.prototype;var il=function e(t,r,n){if("string"!=typeof r){if(ol){var o=nl(r);o&&o!==ol&&e(t,o,n)}var i=el(r);tl&&(i=i.concat(tl(r)));for(var a=Zs(t),s=Zs(r),l=0;l<i.length;++l){var u=i[l];if(!(Ks[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=rl(r,u);try{Qs(t,u,c)}catch(e){}}}}return t},al=Et(il);function sl(){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=xr(r,["innerRef"]),a=ls()||e;return x.createElement(t,yt({theme:a,ref:o||n},i))}));return al(r,t),r}}var ll=sl(),ul=Object.freeze({__proto__:null,ServerStyleSheets:Ss,StylesContext:hs,StylesProvider:ms,ThemeProvider:function(e){var t=e.children,r=e.theme,n=ls(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):yt({},e,t)}(n,r);return null!=e&&(e[no]=null!==n),e}),[r,n]);return x.createElement(ss.Provider,{value:o},t)},createGenerateClassName:io,createStyles:function(e){return e},getThemeProps:ao,jssPreset:rs,makeStyles:ys,mergeClasses:ns,sheetsManager:ps,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=xr(n,["name"]),a=o,s=ys("function"==typeof t?function(e){return{root:function(r){return t(yt({theme:e},r))}}}:{root:t},yt({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=xr(t,["children","className","clone","component"]),f=Es(s(t).root,u),h=p;if(r&&(o=h,i=r,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),c)return x.cloneElement(l,yt({className:Es(l.props.className,f)},h));if("function"==typeof l)return l(yt({className:f},h));var m=d||e;return x.createElement(m,yt({ref:n,className:f},h),l)}));return al(l,e),l}},useTheme:ls,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=xr(t,["defaultTheme","withTheme","name"]),l=a,u=ys(e,yt({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=xr(e,["classes","innerRef"]),c=u(yt({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=ls()||n,a&&(d=ao({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,yt({ref:s||t,classes:c},d))}));return al(c,r),c}},withTheme:ll,withThemeCreator:sl});
|
|
17
17
|
/** @license Material-UI v4.11.5
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const nl={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"},ol={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",...nl,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)"},il=12,al=14,sl=16,ll=24,ul=3,cl=300,dl=400,pl=600,fl=700,hl={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};vr(ol.GREYSCALE_0,.05),vr(ol.GREEN_PALE,.5),vr(ol.BLUE_PALE,.5),vr(ol.GREEN_PALE,.5),vr(ol.BLUE_PALE,.5),vr(ol.GREEN_PALE,.5),vr(ol.BLUE_PALE,.5);vr(ol.GREEN_PALE,.5),vr(ol.BLUE_PALE,.5),vr(ol.GREEN_PALE,.5),vr(ol.BLUE_PALE,.5);var ml={exports:{}},gl={},bl=x,vl=Symbol.for("react.element"),yl=Symbol.for("react.fragment"),xl=Object.prototype.hasOwnProperty,Sl=bl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cl={key:!0,ref:!0,__self:!0,__source:!0};function El(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)xl.call(t,n)&&!Cl.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:vl,type:e,key:i,ref:a,props:o,_owner:Sl.current}}gl.Fragment=yl,gl.jsx=El,gl.jsxs=El,ml.exports=gl;var wl,Rl=ml.exports;function Al(){return Al=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},Al.apply(null,arguments)}var Pl,kl=function(e){return y.createElement("svg",Al({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),wl||(wl=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Il(){return Il=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},Il.apply(null,arguments)}var Ml=function(e){return y.createElement("svg",Il({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Pl||(Pl=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 Ll(){let{fontSize:e="medium",children:t=null,className:r=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Rl.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 Dl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rl.jsx(Ll,{...e,children:Rl.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Rl.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Rl.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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rl.jsx(Ll,{...e,children:Rl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Rl.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Rl.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Rl.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function _l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rl.jsx(Ll,{fontSize:"medium",...e,children:Rl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Rl.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Rl.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Ol(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rl.jsx(Ll,{fontSize:"medium",...e,children:Rl.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Rl.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Rl.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 ql(e){let{className:t}=e;return Rl.jsx(Ll,{fontSize:"small",className:t,children:Rl.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Rl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Rl.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Rl.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Rl.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"}),Rl.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"})]})})})})})}Rl.jsx(Ml,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Rl.jsx(kl,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Rl.jsx(_l,{}),Rl.jsx(Ol,{}),Rl.jsx((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rl.jsx(Ll,{...e,children:Rl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Rl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Rl.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Rl.jsx(Dl,{}),Rl.jsx(Tl,{}),Rl.jsx(kl,{style:{color:ol.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const Nl={black:"#000",white:"#fff"},zl="#e57373",jl="#ef5350",Fl="#f44336",Hl="#d32f2f",$l="#c62828",Bl="#f3e5f5",Wl="#ce93d8",Vl="#ba68c8",Gl="#ab47bc",Ul="#9c27b0",Yl="#7b1fa2",Kl="#e3f2fd",Xl="#90caf9",Jl="#42a5f5",Zl="#1976d2",Ql="#1565c0",eu="#4fc3f7",tu="#29b6f6",ru="#03a9f4",nu="#0288d1",ou="#01579b",iu="#81c784",au="#66bb6a",su="#4caf50",lu="#388e3c",uu="#2e7d32",cu="#1b5e20",du="#ffb74d",pu="#ffa726",fu="#ff9800",hu="#f57c00",mu="#e65100",gu={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 bu(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 vu=Object.freeze({__proto__:null,default:bu}),yu="$$material";function xu(){return xu=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},xu.apply(this,arguments)}function Su(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 Cu=function(){return Cu=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},Cu.apply(this,arguments)};function Eu(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 wu=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},Ru=Et(wu),Au="-ms-",Pu="-moz-",ku="-webkit-",Iu="comm",Mu="rule",Lu="decl",Du="@keyframes",Tu=Math.abs,_u=String.fromCharCode,Ou=Object.assign;function qu(e){return e.trim()}function Nu(e,t){return(e=t.exec(e))?e[0]:e}function zu(e,t,r){return e.replace(t,r)}function ju(e,t,r){return e.indexOf(t,r)}function Fu(e,t){return 0|e.charCodeAt(t)}function Hu(e,t,r){return e.slice(t,r)}function $u(e){return e.length}function Bu(e){return e.length}function Wu(e,t){return t.push(e),e}function Vu(e,t){return e.filter((function(e){return!Nu(e,t)}))}var Gu=1,Uu=1,Yu=0,Ku=0,Xu=0,Ju="";function Zu(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Gu,column:Uu,length:a,return:"",siblings:s}}function Qu(e,t){return Ou(Zu("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ec(e){for(;e.root;)e=Qu(e.root,{children:[e]});Wu(e,e.siblings)}function tc(){return Xu=Ku<Yu?Fu(Ju,Ku++):0,Uu++,10===Xu&&(Uu=1,Gu++),Xu}function rc(){return Fu(Ju,Ku)}function nc(){return Ku}function oc(e,t){return Hu(Ju,e,t)}function ic(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 ac(e){return qu(oc(Ku-1,uc(91===e?e+2:40===e?e+1:e)))}function sc(e){for(;(Xu=rc())&&Xu<33;)tc();return ic(e)>2||ic(Xu)>3?"":" "}function lc(e,t){for(;--t&&tc()&&!(Xu<48||Xu>102||Xu>57&&Xu<65||Xu>70&&Xu<97););return oc(e,nc()+(t<6&&32==rc()&&32==tc()))}function uc(e){for(;tc();)switch(Xu){case e:return Ku;case 34:case 39:34!==e&&39!==e&&uc(Xu);break;case 40:41===e&&uc(e);break;case 92:tc()}return Ku}function cc(e,t){for(;tc()&&e+Xu!==57&&(e+Xu!==84||47!==rc()););return"/*"+oc(t,Ku-1)+"*"+_u(47===e?e:tc())}function dc(e){for(;!ic(rc());)tc();return oc(e,Ku)}function pc(e){return function(e){return Ju="",e}(fc("",null,null,null,[""],e=function(e){return Gu=Uu=1,Yu=$u(Ju=e),Ku=0,[]}(e),0,[0],e))}function fc(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,C=n,E=y;g;)switch(h=v,v=tc()){case 40:if(108!=h&&58==Fu(E,d-1)){-1!=ju(E+=zu(ac(v),"&","&\f"),"&\f",Tu(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:E+=ac(v);break;case 9:case 10:case 13:case 32:E+=sc(h);break;case 92:E+=lc(nc()-1,7);continue;case 47:switch(rc()){case 42:case 47:Wu(mc(cc(tc(),nc()),t,r,l),l);break;default:E+="/"}break;case 123*m:s[u++]=$u(E)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(E=zu(E,/\f/g,"")),f>0&&$u(E)-d&&Wu(f>32?gc(E+";",n,r,d-1,l):gc(zu(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(Wu(C=hc(E,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)fc(E,t,C,C,x,i,d,s,S);else switch(99===p&&110===Fu(E,3)?100:p){case 100:case 108:case 109:case 115:fc(e,C,C,n&&Wu(hc(e,C,C,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:fc(E,C,C,C,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=E="",d=a;break;case 58:d=1+$u(E),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==(Xu=Ku>0?Fu(Ju,--Ku):0,Uu--,10===Xu&&(Uu=1,Gu--),Xu))continue;switch(E+=_u(v),v*m){case 38:b=c>0?1:(E+="\f",-1);break;case 44:s[u++]=($u(E)-1)*b,b=1;break;case 64:45===rc()&&(E+=ac(tc())),p=rc(),c=d=$u(y=E+=dc(nc())),v++;break;case 45:45===h&&2==$u(E)&&(m=0)}}return i}function hc(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Bu(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=Hu(e,p+1,p=Tu(g=a[m])),x=e;v<h;++v)(x=qu(g>0?f[v]+" "+y:zu(y,/&\f/g,f[v])))&&(l[b++]=x);return Zu(e,t,r,0===o?Mu:s,l,u,c,d)}function mc(e,t,r,n){return Zu(e,t,r,Iu,_u(Xu),Hu(e,2,-2),0,n)}function gc(e,t,r,n,o){return Zu(e,t,r,Lu,Hu(e,0,n),Hu(e,n+1,-1),n,o)}function bc(e,t,r){switch(function(e,t){return 45^Fu(e,0)?(((t<<2^Fu(e,0))<<2^Fu(e,1))<<2^Fu(e,2))<<2^Fu(e,3):0}(e,t)){case 5103:return ku+"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 ku+e+e;case 4789:return Pu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ku+e+Pu+e+Au+e+e;case 5936:switch(Fu(e,t+11)){case 114:return ku+e+Au+zu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ku+e+Au+zu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ku+e+Au+zu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ku+e+Au+e+e;case 6165:return ku+e+Au+"flex-"+e+e;case 5187:return ku+e+zu(e,/(\w+).+(:[^]+)/,ku+"box-$1$2"+Au+"flex-$1$2")+e;case 5443:return ku+e+Au+"flex-item-"+zu(e,/flex-|-self/g,"")+(Nu(e,/flex-|baseline/)?"":Au+"grid-row-"+zu(e,/flex-|-self/g,""))+e;case 4675:return ku+e+Au+"flex-line-pack"+zu(e,/align-content|flex-|-self/g,"")+e;case 5548:return ku+e+Au+zu(e,"shrink","negative")+e;case 5292:return ku+e+Au+zu(e,"basis","preferred-size")+e;case 6060:return ku+"box-"+zu(e,"-grow","")+ku+e+Au+zu(e,"grow","positive")+e;case 4554:return ku+zu(e,/([^-])(transform)/g,"$1"+ku+"$2")+e;case 6187:return zu(zu(zu(e,/(zoom-|grab)/,ku+"$1"),/(image-set)/,ku+"$1"),e,"")+e;case 5495:case 3959:return zu(e,/(image-set\([^]*)/,ku+"$1$`$1");case 4968:return zu(zu(e,/(.+:)(flex-)?(.*)/,ku+"box-pack:$3"+Au+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ku+e+e;case 4200:if(!Nu(e,/flex-|baseline/))return Au+"grid-column-align"+Hu(e,t)+e;break;case 2592:case 3360:return Au+zu(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Nu(e.props,/grid-\w+-end/)}))?~ju(e+(r=r[t].value),"span",0)?e:Au+zu(e,"-start","")+e+Au+"grid-row-span:"+(~ju(r,"span",0)?Nu(r,/\d+/):+Nu(r,/\d+/)-+Nu(e,/\d+/))+";":Au+zu(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Nu(e.props,/grid-\w+-start/)}))?e:Au+zu(zu(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return zu(e,/(.+)-inline(.+)/,ku+"$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($u(e)-1-t>6)switch(Fu(e,t+1)){case 109:if(45!==Fu(e,t+4))break;case 102:return zu(e,/(.+:)(.+)-([^]+)/,"$1"+ku+"$2-$3$1"+Pu+(108==Fu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ju(e,"stretch",0)?bc(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 Au+r+":"+n+s+(o?Au+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===Fu(e,t+6))return zu(e,":",":"+ku)+e;break;case 6444:switch(Fu(e,45===Fu(e,14)?18:11)){case 120:return zu(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ku+(45===Fu(e,14)?"inline-":"")+"box$3$1"+ku+"$2$3$1"+Au+"$2box$3")+e;case 100:return zu(e,":",":"+Au)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return zu(e,"scroll-","scroll-snap-")+e}return e}function vc(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function yc(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Lu:return e.return=e.return||e.value;case Iu:return"";case Du:return e.return=e.value+"{"+vc(e.children,n)+"}";case Mu:if(!$u(e.value=e.props.join(",")))return""}return $u(r=vc(e.children,n))?e.return=e.value+"{"+r+"}":""}function xc(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Lu:return void(e.return=bc(e.value,e.length,r));case Du:return vc([Qu(e,{value:zu(e.value,"@","@"+ku)})],n);case Mu:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Nu(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ec(Qu(e,{props:[zu(t,/:(read-\w+)/,":-moz-$1")]})),ec(Qu(e,{props:[t]})),Ou(e,{props:Vu(r,n)});break;case"::placeholder":ec(Qu(e,{props:[zu(t,/:(plac\w+)/,":"+ku+"input-$1")]})),ec(Qu(e,{props:[zu(t,/:(plac\w+)/,":-moz-$1")]})),ec(Qu(e,{props:[zu(t,/:(plac\w+)/,Au+"input-$1")]})),ec(Qu(e,{props:[t]})),Ou(e,{props:Vu(r,n)})}return""}))}}var Sc={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},Cc="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ec="active",wc="data-styled-version",Rc="6.1.18",Ac="/*!sc*/\n",Pc="undefined"!=typeof window&&"undefined"!=typeof document,kc=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)),Ic={},Mc=Object.freeze([]),Lc=Object.freeze({});function Dc(e,t,r){return void 0===r&&(r=Lc),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"]),_c=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Oc=/(^-|-$)/g;function qc(e){return e.replace(_c,"-").replace(Oc,"")}var Nc=/(a)(d)/gi,zc=function(e){return String.fromCharCode(e+(e>25?39:97))};function jc(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(Nc,"$1-$2")}var Fc,Hc=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},$c=function(e){return Hc(5381,e)};function Bc(e){return jc($c(e)>>>0)}function Wc(e){return"string"==typeof e&&!0}var Vc="function"==typeof Symbol&&Symbol.for,Gc=Vc?Symbol.for("react.memo"):60115,Uc=Vc?Symbol.for("react.forward_ref"):60112,Yc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Kc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jc=((Fc={})[Uc]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fc[Gc]=Xc,Fc);function Zc(e){return("type"in(t=e)&&t.type.$$typeof)===Gc?Xc:"$$typeof"in e?Jc[e.$$typeof]:Yc;var t}var Qc=Object.defineProperty,ed=Object.getOwnPropertyNames,td=Object.getOwnPropertySymbols,rd=Object.getOwnPropertyDescriptor,nd=Object.getPrototypeOf,od=Object.prototype;function id(e,t,r){if("string"!=typeof t){if(od){var n=nd(t);n&&n!==od&&id(e,n,r)}var o=ed(t);td&&(o=o.concat(td(t)));for(var i=Zc(e),a=Zc(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Kc||r&&r[l]||a&&l in a||i&&l in i)){var u=rd(t,l);try{Qc(e,l,u)}catch(e){}}}}return e}function ad(e){return"function"==typeof e}function sd(e){return"object"==typeof e&&"styledComponentId"in e}function ld(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ud(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function cd(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function dd(e,t,r){if(void 0===r&&(r=!1),!r&&!cd(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=dd(e[n],t[n]);else if(cd(t))for(var n in t)e[n]=dd(e[n],t[n]);return e}function pd(e,t){Object.defineProperty(e,"toString",{value:t})}function fd(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 hd=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 fd(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(Ac);return t},e}(),md=new Map,gd=new Map,bd=1,vd=function(e){if(md.has(e))return md.get(e);for(;gd.has(bd);)bd++;var t=bd++;return md.set(e,t),gd.set(t,e),t},yd=function(e,t){bd=t+1,md.set(e,t),gd.set(t,e)},xd="style[".concat(Cc,"][").concat(wc,'="').concat(Rc,'"]'),Sd=new RegExp("^".concat(Cc,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Cd=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)},Ed=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Ac),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Sd);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(yd(c,u),Cd(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},wd=function(e){for(var t=document.querySelectorAll(xd),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Cc)!==Ec&&(Ed(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Rd=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Cc,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Cc,Ec),n.setAttribute(wc,Rc);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Ad=function(){function e(e){this.element=Rd(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 fd(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}(),Pd=function(){function e(e){this.element=Rd(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}(),kd=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}(),Id=Pc,Md={isServer:!Pc,useCSSOMInjection:!kc},Ld=function(){function e(e,t,r){void 0===e&&(e=Lc),void 0===t&&(t={});var n=this;this.options=Cu(Cu({},Md),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Pc&&Id&&(Id=!1,wd(this)),pd(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return gd.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(Cc,".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(Ac)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return vd(e)},e.prototype.rehydrate=function(){!this.server&&Pc&&wd(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Cu(Cu({},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 kd(r):t?new Ad(r):new Pd(r)}(this.options),new hd(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(vd(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(vd(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(vd(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Dd=/&/g,Td=/^\s*\/\/.*$/gm;function _d(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=_d(e.children,t)),e}))}function Od(e){var t,r,n,o=void 0===e?Lc:e,i=o.options,a=void 0===i?Lc: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(Dd,r).replace(n,u))})),a.prefix&&c.push(xc),c.push(yc);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=pc(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=_d(u,a.namespace));var d,p=[];return vc(u,function(e){var t=Bu(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||fd(15),Hc(e,t.name)}),5381).toString():"",d}var qd=new Ld,Nd=Od(),zd=x.createContext({shouldForwardProp:void 0,styleSheet:qd,stylis:Nd});zd.Consumer;var jd=x.createContext(void 0);function Fd(){return S(zd)}function Hd(e){var t=C(e.stylisPlugins),r=t[0],n=t[1],o=Fd().styleSheet,i=E((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=E((function(){return Od({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);w((function(){Ru(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var s=E((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(zd.Provider,{value:s},x.createElement(jd.Provider,{value:a},e.children))}var $d=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Nd);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,pd(this,(function(){throw fd(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Nd),this.name+e.hash},e}(),Bd=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;Bd(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Vd=function(e){return null==e||!1===e||""===e},Gd=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Vd(i)&&(Array.isArray(i)&&i.isCss||ad(i)?n.push("".concat(Wd(o),":"),i,";"):cd(i)?n.push.apply(n,Eu(Eu(["".concat(o," {")],Gd(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 Sc||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ud(e,t,r,n){return Vd(e)?[]:sd(e)?[".".concat(e.styledComponentId)]:ad(e)?!ad(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ud(e(t),t,r,n):e instanceof $d?r?(e.inject(r,n),[e.getName(n)]):[e]:cd(e)?Gd(e):Array.isArray(e)?Array.prototype.concat.apply(Mc,e.map((function(e){return Ud(e,t,r,n)}))):[e.toString()];var o}function Yd(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ad(r)&&!sd(r))return!1}return!0}var Kd=$c(Rc),Xd=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Yd(e),this.componentId=t,this.baseHash=Hc(Kd,t),this.baseStyle=r,Ld.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=ld(n,this.staticRulesId);else{var o=ud(Ud(this.rules,e,t,r)),i=jc(Hc(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=ld(n,i),this.staticRulesId=i}else{for(var s=Hc(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=ud(Ud(c,e,t,r));s=Hc(s,d+u),l+=d}}if(l){var p=jc(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=ld(n,p)}}return n},e}(),Jd=x.createContext(void 0);Jd.Consumer;var Zd={};function Qd(e,t,r){var n=sd(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":qc(e);Zd[r]=(Zd[r]||0)+1;var n="".concat(r,"-").concat(Bc(Rc+r+Zd[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(qc(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var b=new Xd(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(Jd),c=Fd(),d=e.shouldForwardProp||c.shouldForwardProp,p=Dc(t,u,i)||Lc,f=function(e,t,r){for(var n,o=Cu(Cu({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=ad(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?ld(o[s],a[s]):"style"===s?Cu(Cu({},o[s]),a[s]):a[s]}return t.className&&(o.className=ld(o.className,t.className)),o}(n,t,p),h=f.as||l,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var b=function(e,t){var r=Fd();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=ld(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Wc(h)&&!Tc.has(h)?"class":"className"]=v,r&&(m.ref=r),R(h,m)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?ld(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++)dd(e,o[n],!0);return e}({},o.defaultProps,e):e}}),pd(y,(function(){return".".concat(y.styledComponentId)})),i&&id(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function ep(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 tp=function(e){return Object.assign(e,{isCss:!0})};function rp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ad(e)||cd(e))return tp(Ud(ep(Mc,Eu([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ud(n):tp(Ud(ep(n,t)))}function np(e,t,r){if(void 0===r&&(r=Lc),!t)throw fd(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,rp.apply(void 0,Eu([n],o,!1)))};return n.attrs=function(n){return np(e,t,Cu(Cu({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return np(e,t,Cu(Cu({},r),n))},n}var op=function(e){return np(Qd,e)},ip=op;Tc.forEach((function(e){ip[e]=op(e)}));var ap=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Yd(e),Ld.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(ud(Ud(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&&Ld.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function sp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ud(rp.apply(void 0,Eu([e],t,!1))),o=Bc(n);return new $d(o,n)}function lp(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}lp.propTypes={children:kt.node,injectFirst:kt.bool};const up=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=rp.apply(void 0,Eu([e],t,!1)),o="sc-global-".concat(Bc(JSON.stringify(n))),i=new ap(n,o),a=function(e){var t=Fd(),r=x.useContext(Jd),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,Ic,r,o);else{var s=Cu(Cu({},t),{theme:Dc(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}));
|
|
21
|
+
*/const cl={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"},dl={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",...cl,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)"},pl=12,fl=14,hl=16,ml=24,gl=3,bl=300,vl=400,yl=600,xl=700,Sl={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};vr(dl.GREYSCALE_0,.05),vr(dl.GREEN_PALE,.5),vr(dl.BLUE_PALE,.5),vr(dl.GREEN_PALE,.5),vr(dl.BLUE_PALE,.5),vr(dl.GREEN_PALE,.5),vr(dl.BLUE_PALE,.5);vr(dl.GREEN_PALE,.5),vr(dl.BLUE_PALE,.5),vr(dl.GREEN_PALE,.5),vr(dl.BLUE_PALE,.5);var Cl={exports:{}},El={},wl=x,Rl=Symbol.for("react.element"),Al=Symbol.for("react.fragment"),Pl=Object.prototype.hasOwnProperty,kl=wl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Il={key:!0,ref:!0,__self:!0,__source:!0};function Ml(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Pl.call(t,n)&&!Il.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Rl,type:e,key:i,ref:a,props:o,_owner:kl.current}}El.Fragment=Al,El.jsx=Ml,El.jsxs=Ml,Cl.exports=El;var Ll,Dl=Cl.exports;function Tl(){return Tl=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},Tl.apply(null,arguments)}var _l,Ol=function(e){return y.createElement("svg",Tl({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Ll||(Ll=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function ql(){return ql=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},ql.apply(null,arguments)}var Nl=function(e){return y.createElement("svg",ql({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),_l||(_l=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 zl(){let{fontSize:e="medium",children:t=null,className:r=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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 jl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dl.jsx(zl,{...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 Fl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dl.jsx(zl,{...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 Hl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dl.jsx(zl,{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 $l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dl.jsx(zl,{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 Bl(e){let{className:t}=e;return Dl.jsx(zl,{fontSize:"small",className:t,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(Nl,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Dl.jsx(Ol,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Dl.jsx(Hl,{}),Dl.jsx($l,{}),Dl.jsx((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dl.jsx(zl,{...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(jl,{}),Dl.jsx(Fl,{}),Dl.jsx(Ol,{style:{color:dl.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const Wl={black:"#000",white:"#fff"},Vl="#e57373",Gl="#ef5350",Ul="#f44336",Yl="#d32f2f",Kl="#c62828",Xl="#f3e5f5",Jl="#ce93d8",Zl="#ba68c8",Ql="#ab47bc",eu="#9c27b0",tu="#7b1fa2",ru="#e3f2fd",nu="#90caf9",ou="#42a5f5",iu="#1976d2",au="#1565c0",su="#4fc3f7",lu="#29b6f6",uu="#03a9f4",cu="#0288d1",du="#01579b",pu="#81c784",fu="#66bb6a",hu="#4caf50",mu="#388e3c",gu="#2e7d32",bu="#1b5e20",vu="#ffb74d",yu="#ffa726",xu="#ff9800",Su="#f57c00",Cu="#e65100",Eu={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 wu(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 Ru=Object.freeze({__proto__:null,default:wu}),Au="$$material";function Pu(){return Pu=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},Pu.apply(this,arguments)}function ku(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 Iu=function(){return Iu=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},Iu.apply(this,arguments)};function Mu(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 Lu=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=Et(Lu),Tu="-ms-",_u="-moz-",Ou="-webkit-",qu="comm",Nu="rule",zu="decl",ju="@keyframes",Fu=Math.abs,Hu=String.fromCharCode,$u=Object.assign;function Bu(e){return e.trim()}function Wu(e,t){return(e=t.exec(e))?e[0]:e}function Vu(e,t,r){return e.replace(t,r)}function Gu(e,t,r){return e.indexOf(t,r)}function Uu(e,t){return 0|e.charCodeAt(t)}function Yu(e,t,r){return e.slice(t,r)}function Ku(e){return e.length}function Xu(e){return e.length}function Ju(e,t){return t.push(e),e}function Zu(e,t){return e.filter((function(e){return!Wu(e,t)}))}var Qu=1,ec=1,tc=0,rc=0,nc=0,oc="";function ic(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Qu,column:ec,length:a,return:"",siblings:s}}function ac(e,t){return $u(ic("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function sc(e){for(;e.root;)e=ac(e.root,{children:[e]});Ju(e,e.siblings)}function lc(){return nc=rc<tc?Uu(oc,rc++):0,ec++,10===nc&&(ec=1,Qu++),nc}function uc(){return Uu(oc,rc)}function cc(){return rc}function dc(e,t){return Yu(oc,e,t)}function pc(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 fc(e){return Bu(dc(rc-1,gc(91===e?e+2:40===e?e+1:e)))}function hc(e){for(;(nc=uc())&&nc<33;)lc();return pc(e)>2||pc(nc)>3?"":" "}function mc(e,t){for(;--t&&lc()&&!(nc<48||nc>102||nc>57&&nc<65||nc>70&&nc<97););return dc(e,cc()+(t<6&&32==uc()&&32==lc()))}function gc(e){for(;lc();)switch(nc){case e:return rc;case 34:case 39:34!==e&&39!==e&&gc(nc);break;case 40:41===e&&gc(e);break;case 92:lc()}return rc}function bc(e,t){for(;lc()&&e+nc!==57&&(e+nc!==84||47!==uc()););return"/*"+dc(t,rc-1)+"*"+Hu(47===e?e:lc())}function vc(e){for(;!pc(uc());)lc();return dc(e,rc)}function yc(e){return function(e){return oc="",e}(xc("",null,null,null,[""],e=function(e){return Qu=ec=1,tc=Ku(oc=e),rc=0,[]}(e),0,[0],e))}function xc(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,C=n,E=y;g;)switch(h=v,v=lc()){case 40:if(108!=h&&58==Uu(E,d-1)){-1!=Gu(E+=Vu(fc(v),"&","&\f"),"&\f",Fu(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:E+=fc(v);break;case 9:case 10:case 13:case 32:E+=hc(h);break;case 92:E+=mc(cc()-1,7);continue;case 47:switch(uc()){case 42:case 47:Ju(Cc(bc(lc(),cc()),t,r,l),l);break;default:E+="/"}break;case 123*m:s[u++]=Ku(E)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(E=Vu(E,/\f/g,"")),f>0&&Ku(E)-d&&Ju(f>32?Ec(E+";",n,r,d-1,l):Ec(Vu(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(Ju(C=Sc(E,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)xc(E,t,C,C,x,i,d,s,S);else switch(99===p&&110===Uu(E,3)?100:p){case 100:case 108:case 109:case 115:xc(e,C,C,n&&Ju(Sc(e,C,C,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:xc(E,C,C,C,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=E="",d=a;break;case 58:d=1+Ku(E),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==(nc=rc>0?Uu(oc,--rc):0,ec--,10===nc&&(ec=1,Qu--),nc))continue;switch(E+=Hu(v),v*m){case 38:b=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(Ku(E)-1)*b,b=1;break;case 64:45===uc()&&(E+=fc(lc())),p=uc(),c=d=Ku(y=E+=vc(cc())),v++;break;case 45:45===h&&2==Ku(E)&&(m=0)}}return i}function Sc(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Xu(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=Yu(e,p+1,p=Fu(g=a[m])),x=e;v<h;++v)(x=Bu(g>0?f[v]+" "+y:Vu(y,/&\f/g,f[v])))&&(l[b++]=x);return ic(e,t,r,0===o?Nu:s,l,u,c,d)}function Cc(e,t,r,n){return ic(e,t,r,qu,Hu(nc),Yu(e,2,-2),0,n)}function Ec(e,t,r,n,o){return ic(e,t,r,zu,Yu(e,0,n),Yu(e,n+1,-1),n,o)}function wc(e,t,r){switch(function(e,t){return 45^Uu(e,0)?(((t<<2^Uu(e,0))<<2^Uu(e,1))<<2^Uu(e,2))<<2^Uu(e,3):0}(e,t)){case 5103:return Ou+"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 Ou+e+e;case 4789:return _u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ou+e+_u+e+Tu+e+e;case 5936:switch(Uu(e,t+11)){case 114:return Ou+e+Tu+Vu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ou+e+Tu+Vu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ou+e+Tu+Vu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ou+e+Tu+e+e;case 6165:return Ou+e+Tu+"flex-"+e+e;case 5187:return Ou+e+Vu(e,/(\w+).+(:[^]+)/,Ou+"box-$1$2"+Tu+"flex-$1$2")+e;case 5443:return Ou+e+Tu+"flex-item-"+Vu(e,/flex-|-self/g,"")+(Wu(e,/flex-|baseline/)?"":Tu+"grid-row-"+Vu(e,/flex-|-self/g,""))+e;case 4675:return Ou+e+Tu+"flex-line-pack"+Vu(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ou+e+Tu+Vu(e,"shrink","negative")+e;case 5292:return Ou+e+Tu+Vu(e,"basis","preferred-size")+e;case 6060:return Ou+"box-"+Vu(e,"-grow","")+Ou+e+Tu+Vu(e,"grow","positive")+e;case 4554:return Ou+Vu(e,/([^-])(transform)/g,"$1"+Ou+"$2")+e;case 6187:return Vu(Vu(Vu(e,/(zoom-|grab)/,Ou+"$1"),/(image-set)/,Ou+"$1"),e,"")+e;case 5495:case 3959:return Vu(e,/(image-set\([^]*)/,Ou+"$1$`$1");case 4968:return Vu(Vu(e,/(.+:)(flex-)?(.*)/,Ou+"box-pack:$3"+Tu+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ou+e+e;case 4200:if(!Wu(e,/flex-|baseline/))return Tu+"grid-column-align"+Yu(e,t)+e;break;case 2592:case 3360:return Tu+Vu(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Wu(e.props,/grid-\w+-end/)}))?~Gu(e+(r=r[t].value),"span",0)?e:Tu+Vu(e,"-start","")+e+Tu+"grid-row-span:"+(~Gu(r,"span",0)?Wu(r,/\d+/):+Wu(r,/\d+/)-+Wu(e,/\d+/))+";":Tu+Vu(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Wu(e.props,/grid-\w+-start/)}))?e:Tu+Vu(Vu(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Vu(e,/(.+)-inline(.+)/,Ou+"$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(Ku(e)-1-t>6)switch(Uu(e,t+1)){case 109:if(45!==Uu(e,t+4))break;case 102:return Vu(e,/(.+:)(.+)-([^]+)/,"$1"+Ou+"$2-$3$1"+_u+(108==Uu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Gu(e,"stretch",0)?wc(Vu(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Vu(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Tu+r+":"+n+s+(o?Tu+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===Uu(e,t+6))return Vu(e,":",":"+Ou)+e;break;case 6444:switch(Uu(e,45===Uu(e,14)?18:11)){case 120:return Vu(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ou+(45===Uu(e,14)?"inline-":"")+"box$3$1"+Ou+"$2$3$1"+Tu+"$2box$3")+e;case 100:return Vu(e,":",":"+Tu)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Vu(e,"scroll-","scroll-snap-")+e}return e}function Rc(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Ac(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case zu:return e.return=e.return||e.value;case qu:return"";case ju:return e.return=e.value+"{"+Rc(e.children,n)+"}";case Nu:if(!Ku(e.value=e.props.join(",")))return""}return Ku(r=Rc(e.children,n))?e.return=e.value+"{"+r+"}":""}function Pc(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case zu:return void(e.return=wc(e.value,e.length,r));case ju:return Rc([ac(e,{value:Vu(e.value,"@","@"+Ou)})],n);case Nu:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Wu(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":sc(ac(e,{props:[Vu(t,/:(read-\w+)/,":-moz-$1")]})),sc(ac(e,{props:[t]})),$u(e,{props:Zu(r,n)});break;case"::placeholder":sc(ac(e,{props:[Vu(t,/:(plac\w+)/,":"+Ou+"input-$1")]})),sc(ac(e,{props:[Vu(t,/:(plac\w+)/,":-moz-$1")]})),sc(ac(e,{props:[Vu(t,/:(plac\w+)/,Tu+"input-$1")]})),sc(ac(e,{props:[t]})),$u(e,{props:Zu(r,n)})}return""}))}}var kc={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},Ic="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Mc="active",Lc="data-styled-version",Dc="6.1.18",Tc="/*!sc*/\n",_c="undefined"!=typeof window&&"undefined"!=typeof document,Oc=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)),qc={},Nc=Object.freeze([]),zc=Object.freeze({});function jc(e,t,r){return void 0===r&&(r=zc),e.theme!==r.theme&&e.theme||t||r.theme}var Fc=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"]),Hc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$c=/(^-|-$)/g;function Bc(e){return e.replace(Hc,"-").replace($c,"")}var Wc=/(a)(d)/gi,Vc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Gc(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Vc(t%52)+r;return(Vc(t%52)+r).replace(Wc,"$1-$2")}var Uc,Yc=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Kc=function(e){return Yc(5381,e)};function Xc(e){return Gc(Kc(e)>>>0)}function Jc(e){return"string"==typeof e&&!0}var Zc="function"==typeof Symbol&&Symbol.for,Qc=Zc?Symbol.for("react.memo"):60115,ed=Zc?Symbol.for("react.forward_ref"):60112,td={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},rd={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},nd={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},od=((Uc={})[ed]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uc[Qc]=nd,Uc);function id(e){return("type"in(t=e)&&t.type.$$typeof)===Qc?nd:"$$typeof"in e?od[e.$$typeof]:td;var t}var ad=Object.defineProperty,sd=Object.getOwnPropertyNames,ld=Object.getOwnPropertySymbols,ud=Object.getOwnPropertyDescriptor,cd=Object.getPrototypeOf,dd=Object.prototype;function pd(e,t,r){if("string"!=typeof t){if(dd){var n=cd(t);n&&n!==dd&&pd(e,n,r)}var o=sd(t);ld&&(o=o.concat(ld(t)));for(var i=id(e),a=id(t),s=0;s<o.length;++s){var l=o[s];if(!(l in rd||r&&r[l]||a&&l in a||i&&l in i)){var u=ud(t,l);try{ad(e,l,u)}catch(e){}}}}return e}function fd(e){return"function"==typeof e}function hd(e){return"object"==typeof e&&"styledComponentId"in e}function md(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function gd(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function bd(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function vd(e,t,r){if(void 0===r&&(r=!1),!r&&!bd(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=vd(e[n],t[n]);else if(bd(t))for(var n in t)e[n]=vd(e[n],t[n]);return e}function yd(e,t){Object.defineProperty(e,"toString",{value:t})}function xd(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 Sd=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 xd(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(Tc);return t},e}(),Cd=new Map,Ed=new Map,wd=1,Rd=function(e){if(Cd.has(e))return Cd.get(e);for(;Ed.has(wd);)wd++;var t=wd++;return Cd.set(e,t),Ed.set(t,e),t},Ad=function(e,t){wd=t+1,Cd.set(e,t),Ed.set(t,e)},Pd="style[".concat(Ic,"][").concat(Lc,'="').concat(Dc,'"]'),kd=new RegExp("^".concat(Ic,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Id=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)},Md=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Tc),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(kd);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Ad(c,u),Id(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Ld=function(e){for(var t=document.querySelectorAll(Pd),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ic)!==Mc&&(Md(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(Ic,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Ic,Mc),n.setAttribute(Lc,Dc);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Td=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 xd(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}(),_d=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}(),Od=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}(),qd=_c,Nd={isServer:!_c,useCSSOMInjection:!Oc},zd=function(){function e(e,t,r){void 0===e&&(e=zc),void 0===t&&(t={});var n=this;this.options=Iu(Iu({},Nd),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&_c&&qd&&(qd=!1,Ld(this)),yd(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Ed.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(Ic,".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(Tc)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Rd(e)},e.prototype.rehydrate=function(){!this.server&&_c&&Ld(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Iu(Iu({},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 Od(r):t?new Td(r):new _d(r)}(this.options),new Sd(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(Rd(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(Rd(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Rd(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),jd=/&/g,Fd=/^\s*\/\/.*$/gm;function Hd(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=Hd(e.children,t)),e}))}function $d(e){var t,r,n,o=void 0===e?zc:e,i=o.options,a=void 0===i?zc:i,s=o.plugins,l=void 0===s?Nc: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===Nu&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(jd,r).replace(n,u))})),a.prefix&&c.push(Pc),c.push(Ac);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(Fd,""),u=yc(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=Hd(u,a.namespace));var d,p=[];return Rc(u,function(e){var t=Xu(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||xd(15),Yc(e,t.name)}),5381).toString():"",d}var Bd=new zd,Wd=$d(),Vd=x.createContext({shouldForwardProp:void 0,styleSheet:Bd,stylis:Wd});Vd.Consumer;var Gd=x.createContext(void 0);function Ud(){return S(Vd)}function Yd(e){var t=C(e.stylisPlugins),r=t[0],n=t[1],o=Ud().styleSheet,i=E((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=E((function(){return $d({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=E((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(Vd.Provider,{value:s},x.createElement(Gd.Provider,{value:a},e.children))}var Kd=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Wd);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,yd(this,(function(){throw xd(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Wd),this.name+e.hash},e}(),Xd=function(e){return e>="A"&&e<="Z"};function Jd(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Xd(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Zd=function(e){return null==e||!1===e||""===e},Qd=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Zd(i)&&(Array.isArray(i)&&i.isCss||fd(i)?n.push("".concat(Jd(o),":"),i,";"):bd(i)?n.push.apply(n,Mu(Mu(["".concat(o," {")],Qd(i),!1),["}"],!1)):n.push("".concat(Jd(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in kc||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function ep(e,t,r,n){return Zd(e)?[]:hd(e)?[".".concat(e.styledComponentId)]:fd(e)?!fd(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ep(e(t),t,r,n):e instanceof Kd?r?(e.inject(r,n),[e.getName(n)]):[e]:bd(e)?Qd(e):Array.isArray(e)?Array.prototype.concat.apply(Nc,e.map((function(e){return ep(e,t,r,n)}))):[e.toString()];var o}function tp(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(fd(r)&&!hd(r))return!1}return!0}var rp=Kc(Dc),np=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&tp(e),this.componentId=t,this.baseHash=Yc(rp,t),this.baseStyle=r,zd.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=md(n,this.staticRulesId);else{var o=gd(ep(this.rules,e,t,r)),i=Gc(Yc(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=md(n,i),this.staticRulesId=i}else{for(var s=Yc(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=gd(ep(c,e,t,r));s=Yc(s,d+u),l+=d}}if(l){var p=Gc(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=md(n,p)}}return n},e}(),op=x.createContext(void 0);op.Consumer;var ip={};function ap(e,t,r){var n=hd(e),o=e,i=!Jc(e),a=t.attrs,s=void 0===a?Nc:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":Bc(e);ip[r]=(ip[r]||0)+1;var n="".concat(r,"-").concat(Xc(Dc+r+ip[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return Jc(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Bc(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var b=new np(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(op),c=Ud(),d=e.shouldForwardProp||c.shouldForwardProp,p=jc(t,u,i)||zc,f=function(e,t,r){for(var n,o=Iu(Iu({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=fd(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?md(o[s],a[s]):"style"===s?Iu(Iu({},o[s]),a[s]):a[s]}return t.className&&(o.className=md(o.className,t.className)),o}(n,t,p),h=f.as||l,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var b=function(e,t){var r=Ud();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=md(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Jc(h)&&!Fc.has(h)?"class":"className"]=v,r&&(m.ref=r),R(h,m)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?md(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++)vd(e,o[n],!0);return e}({},o.defaultProps,e):e}}),yd(y,(function(){return".".concat(y.styledComponentId)})),i&&pd(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function sp(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 lp=function(e){return Object.assign(e,{isCss:!0})};function up(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(fd(e)||bd(e))return lp(ep(sp(Nc,Mu([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ep(n):lp(ep(sp(n,t)))}function cp(e,t,r){if(void 0===r&&(r=zc),!t)throw xd(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,up.apply(void 0,Mu([n],o,!1)))};return n.attrs=function(n){return cp(e,t,Iu(Iu({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return cp(e,t,Iu(Iu({},r),n))},n}var dp=function(e){return cp(ap,e)},pp=dp;Fc.forEach((function(e){pp[e]=dp(e)}));var fp=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=tp(e),zd.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(gd(ep(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&&zd.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function hp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=gd(up.apply(void 0,Mu([e],t,!1))),o=Xc(n);return new Kd(o,n)}function mp(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}mp.propTypes={children:kt.node,injectFirst:kt.bool};const gp=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=up.apply(void 0,Mu([e],t,!1)),o="sc-global-".concat(Xc(JSON.stringify(n))),i=new fp(n,o),a=function(e){var t=Ud(),r=x.useContext(op),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,qc,r,o);else{var s=Iu(Iu({},t),{theme:jc(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}));
|
|
22
22
|
/**
|
|
23
23
|
* @mui/styled-engine-sc v6.4.2
|
|
24
24
|
*
|
|
@@ -26,7 +26,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.le
|
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
28
|
*/
|
|
29
|
-
function cp(e,t){let r;return r=t?ip(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ip(e),r}function dp(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function pp(e){return e}up.propTypes={defaultTheme:kt.object,styles:kt.oneOfType([kt.array,kt.string,kt.object,kt.func])};var fp=Object.freeze({__proto__:null,GlobalStyles:up,StyledEngineProvider:lp,ThemeContext:Jd,css:rp,default:cp,internal_mutateStyles:dp,internal_processStyles:function(e,t){return dp(e,t)},internal_serializeStyles:pp,keyframes:sp});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 mp(e){if(y.isValidElement(e)||!hp(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=mp(e[r])})),t}function gp(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const n=r.clone?yt({},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]=gp(e[o],t[o],r):r.clone?n[o]=hp(t[o])?mp(t[o]):t[o]:n[o]=t[o]})),n}var bp=Object.freeze({__proto__:null,default:gp,isPlainObject:hp});const vp=["values","unit","step"];function yp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=yr(e,vp),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>yt({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function 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 yt({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 xp={borderRadius:4};function Sp(e,t){return t?gp(e,t,{clone:!1}):e}const Cp={xs:0,sm:600,md:900,lg:1200,xl:1536},Ep={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cp[e]}px)`};function wp(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Ep;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Ep;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 Rp(e){if("string"!=typeof e)throw new Error(bu(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ap=Object.freeze({__proto__:null,default:Rp});function Pp(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];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 kp(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"==typeof e?e(r):Array.isArray(e)?e[r]||o:Pp(e,r)||o,t&&(n=t(n,o,e)),n}function Ip(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=Pp(e.theme,n)||{};return wp(e,i,(e=>{let n=kp(a,o,e);return e===n&&"string"==typeof e&&(n=kp(a,o,`${t}${"default"===e?"":Rp(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Mp={m:"margin",p:"padding"},Lp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Tp=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Dp[e])return[e];e=Dp[e]}const[t,r]=e.split(""),n=Mp[t],o=Lp[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),_p=["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 qp(e,t,r,n){var o;const i=null!=(o=Pp(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 Np(e){return qp(e,"spacing",8)}function zp(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 jp(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=zp(t,r),e)),{})}(Tp(r),n);return wp(e,e[r],o)}function Fp(e,t){const r=Np(e.theme);return Object.keys(e).map((n=>jp(e,t,n,r))).reduce(Sp,{})}function Hp(e){return Fp(e,_p)}function $p(e){return Fp(e,Op)}function Bp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,r)=>n[r]?Sp(t,n[r](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o}function Wp(e){return"number"!=typeof e?e:`${e}px solid`}function Vp(e,t){return Ip({prop:e,themeKey:"borders",transform:t})}Hp.propTypes={},Hp.filterProps=_p,$p.propTypes={},$p.filterProps=Op;const Gp=Vp("border",Wp),Up=Vp("borderTop",Wp),Yp=Vp("borderRight",Wp),Kp=Vp("borderBottom",Wp),Xp=Vp("borderLeft",Wp),Jp=Vp("borderColor"),Zp=Vp("borderTopColor"),Qp=Vp("borderRightColor"),ef=Vp("borderBottomColor"),tf=Vp("borderLeftColor"),rf=Vp("outline",Wp),nf=Vp("outlineColor"),of=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=qp(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:zp(t,e)});return wp(e,e.borderRadius,r)}return null};of.propTypes={},of.filterProps=["borderRadius"],Bp(Gp,Up,Yp,Kp,Xp,Jp,Zp,Qp,ef,tf,of,rf,nf);const af=e=>{if(void 0!==e.gap&&null!==e.gap){const t=qp(e.theme,"spacing",8),r=e=>({gap:zp(t,e)});return wp(e,e.gap,r)}return null};af.propTypes={},af.filterProps=["gap"];const sf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=qp(e.theme,"spacing",8),r=e=>({columnGap:zp(t,e)});return wp(e,e.columnGap,r)}return null};sf.propTypes={},sf.filterProps=["columnGap"];const lf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=qp(e.theme,"spacing",8),r=e=>({rowGap:zp(t,e)});return wp(e,e.rowGap,r)}return null};lf.propTypes={},lf.filterProps=["rowGap"];function uf(e,t){return"grey"===t?t:e}Bp(af,sf,lf,Ip({prop:"gridColumn"}),Ip({prop:"gridRow"}),Ip({prop:"gridAutoFlow"}),Ip({prop:"gridAutoColumns"}),Ip({prop:"gridAutoRows"}),Ip({prop:"gridTemplateColumns"}),Ip({prop:"gridTemplateRows"}),Ip({prop:"gridTemplateAreas"}),Ip({prop:"gridArea"}));function cf(e){return e<=1&&0!==e?100*e+"%":e}Bp(Ip({prop:"color",themeKey:"palette",transform:uf}),Ip({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:uf}),Ip({prop:"backgroundColor",themeKey:"palette",transform:uf}));const df=Ip({prop:"width",transform:cf}),pf=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:cf(t)}};return wp(e,e.maxWidth,t)}return null};pf.filterProps=["maxWidth"];const ff=Ip({prop:"minWidth",transform:cf}),hf=Ip({prop:"height",transform:cf}),mf=Ip({prop:"maxHeight",transform:cf}),gf=Ip({prop:"minHeight",transform:cf});Ip({prop:"size",cssProperty:"width",transform:cf}),Ip({prop:"size",cssProperty:"height",transform:cf});Bp(df,pf,ff,hf,mf,gf,Ip({prop:"boxSizing"}));const bf={border:{themeKey:"borders",transform:Wp},borderTop:{themeKey:"borders",transform:Wp},borderRight:{themeKey:"borders",transform:Wp},borderBottom:{themeKey:"borders",transform:Wp},borderLeft:{themeKey:"borders",transform:Wp},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Wp},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:of},color:{themeKey:"palette",transform:uf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:uf},backgroundColor:{themeKey:"palette",transform:uf},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:Hp},mt:{style:Hp},mr:{style:Hp},mb:{style:Hp},ml:{style:Hp},mx:{style:Hp},my:{style:Hp},margin:{style:Hp},marginTop:{style:Hp},marginRight:{style:Hp},marginBottom:{style:Hp},marginLeft:{style:Hp},marginX:{style:Hp},marginY:{style:Hp},marginInline:{style:Hp},marginInlineStart:{style:Hp},marginInlineEnd:{style:Hp},marginBlock:{style:Hp},marginBlockStart:{style:Hp},marginBlockEnd:{style:Hp},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:af},rowGap:{style:lf},columnGap:{style:sf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cf},maxWidth:{style:pf},minWidth:{transform:cf},height:{transform:cf},maxHeight:{transform:cf},minHeight:{transform:cf},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vf(){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=Pp(r,s)||{};if(u)return u(o);return wp(o,t,(t=>{let r=kp(c,l,t);return t===r&&"string"==typeof t&&(r=kp(c,l,`${e}${"default"===t?"":Rp(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:bf;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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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=Sp(l,e(r,o,i,a));else{const e=wp({theme:i},o,(e=>({[r]:e})));!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(n);return t.every((e=>o.size===Object.keys(e).length))}(e,o)?l=Sp(l,e):l[r]=t({sx:o,theme:i})}else l=Sp(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 yf=vf();function xf(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:{}}yf.filterProps=["sx"];const Sf=["breakpoints","palette","spacing","shape"];function Cf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:r={},spacing:n,shape:o={}}=e,i=yr(e,Sf),a=yp(t),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=Np({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0===r.length?[1]:r).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ")};return r.mui=!0,r}(n);let l=gp({breakpoints:a,direction:"ltr",components:{},palette:yt({mode:"light"},r),spacing:s,shape:yt({},xp,o)},i);l.applyStyles=xf;for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];return l=c.reduce(((e,t)=>gp(e,t)),l),l.unstable_sxConfig=yt({},bf,null==i?void 0:i.unstable_sxConfig),l.unstable_sx=function(e){return yf({sx:e,theme:this})},l}var Ef=Object.freeze({__proto__:null,default:Cf,private_createBreakpoints:yp,unstable_applyStyles:xf});function wf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=y.useContext(Jd);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Rf=Cf();function Af(){return wf(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rf)}function Pf(e){let{styles:t,themeId:r,defaultTheme:n={}}=e;const o=Af(n),i="function"==typeof t?t(r&&o[r]||o):t;return Rl.jsx(up,{styles:i})}const kf=["sx"];function If(e){const{sx:t}=e,r=yr(e,kf),{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:bf;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?function(){const e=t(...arguments);return hp(e)?yt({},n,e):n}:yt({},n,t),yt({},o,{sx:i})}var Mf=Object.freeze({__proto__:null,default:yf,extendSxProp:If,unstable_createStyleFunctionSx:vf,unstable_defaultSxConfig:bf});const Lf=e=>e,Df=(()=>{let e=Lf;return{configure(t){e=t},generate:t=>e(t),reset(){e=Lf}}})();function Tf(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=Tf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function _f(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Tf(e))&&(n&&(n+=" "),n+=t);return n}const Of=["className","component"];const qf={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 Nf(e,t){const r=qf[t];return r?`${arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui"}-${r}`:`${Df.generate(e)}-${t}`}function zf(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const n={};return t.forEach((t=>{n[t]=Nf(e,t,r)})),n}var jf={exports:{}},Ff={},Hf=Symbol.for("react.transitional.element"),$f=Symbol.for("react.portal"),Bf=Symbol.for("react.fragment"),Wf=Symbol.for("react.strict_mode"),Vf=Symbol.for("react.profiler"),Gf=Symbol.for("react.consumer"),Uf=Symbol.for("react.context"),Yf=Symbol.for("react.forward_ref"),Kf=Symbol.for("react.suspense"),Xf=Symbol.for("react.suspense_list"),Jf=Symbol.for("react.memo"),Zf=Symbol.for("react.lazy"),Qf=Symbol.for("react.offscreen"),eh=Symbol.for("react.client.reference");function th(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Hf:switch(e=e.type){case Bf:case Vf:case Wf:case Kf:case Xf:return e;default:switch(e=e&&e.$$typeof){case Uf:case Yf:case Zf:case Jf:case Gf:return e;default:return t}}case $f:return t}}}Ff.ContextConsumer=Gf,Ff.ContextProvider=Uf,Ff.Element=Hf,Ff.ForwardRef=Yf,Ff.Fragment=Bf,Ff.Lazy=Zf,Ff.Memo=Jf,Ff.Portal=$f,Ff.Profiler=Vf,Ff.StrictMode=Wf,Ff.Suspense=Kf,Ff.SuspenseList=Xf,Ff.isContextConsumer=function(e){return th(e)===Gf},Ff.isContextProvider=function(e){return th(e)===Uf},Ff.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Hf},Ff.isForwardRef=function(e){return th(e)===Yf},Ff.isFragment=function(e){return th(e)===Bf},Ff.isLazy=function(e){return th(e)===Zf},Ff.isMemo=function(e){return th(e)===Jf},Ff.isPortal=function(e){return th(e)===$f},Ff.isProfiler=function(e){return th(e)===Vf},Ff.isStrictMode=function(e){return th(e)===Wf},Ff.isSuspense=function(e){return th(e)===Kf},Ff.isSuspenseList=function(e){return th(e)===Xf},Ff.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Bf||e===Vf||e===Wf||e===Kf||e===Xf||e===Qf||"object"==typeof e&&null!==e&&(e.$$typeof===Zf||e.$$typeof===Jf||e.$$typeof===Uf||e.$$typeof===Gf||e.$$typeof===Yf||e.$$typeof===eh||void 0!==e.getModuleId)},Ff.typeOf=th,jf.exports=Ff;var rh=jf.exports;const nh=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function oh(e){const t=`${e}`.match(nh);return t&&t[1]||""}function ih(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||oh(e)||t}function ah(e,t,r){const n=ih(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var sh=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return ih(e,"Component");if("object"==typeof e)switch(e.$$typeof){case rh.ForwardRef:return ah(e,e.render,"ForwardRef");case rh.Memo:return ah(e,e.type,"memo");default:return}}},getFunctionName:oh});function lh(e,t){const r=yt({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=yt({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=yt({},i),Object.keys(o).forEach((e=>{r[n][e]=lh(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const uh="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function ch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,r))}var dh=Object.freeze({__proto__:null,default:ch});function ph(e){if(e.type)return e;if("#"===e.charAt(0))return ph(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(bu(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(bu(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function fh(e,t){return e=ph(e),t=function(e){return ch(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)}(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 hh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t)=>null==t?e:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n),t.apply(this,n)}),(()=>{}))}function mh(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),r)}return n.clear=()=>{clearTimeout(t)},n}function gh(e){return e&&e.ownerDocument||document}function bh(e){return gh(e).defaultView||window}function vh(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let yh=0;const xh=y["useId".toString()];function Sh(e){if(void 0!==xh){return xh()}return function(e){const[t,r]=y.useState(e),n=t;return y.useEffect((()=>{null==t&&(yh+=1,r(`mui-${yh}`))}),[t]),n}(e)}function Ch(e){let{controlled:t,default:r,name:n,state:o="value"}=e;const{current:i}=y.useRef(void 0!==t),[a,s]=y.useState(r);return[i?t:a,y.useCallback((e=>{i||s(e)}),[])]}function Eh(e){const t=y.useRef(e);return uh((()=>{t.current=e})),y.useRef((function(){return(0,t.current)(...arguments)})).current}function wh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return y.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{vh(t,e)}))}),t)}const Rh={};const Ah=[];class Ph{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ph}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function kh(){const e=function(e,t){const r=y.useRef(Rh);return r.current===Rh&&(r.current=e(t)),r}(Ph.create).current;return function(e){y.useEffect(e,Ah)}(e.disposeEffect),e}let Ih=!0,Mh=!1;const Lh=new Ph,Dh={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 Th(e){e.metaKey||e.altKey||e.ctrlKey||(Ih=!0)}function _h(){Ih=!1}function Oh(){"hidden"===this.visibilityState&&Mh&&(Ih=!0)}function qh(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ih||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Dh[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Nh(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Th,!0),t.addEventListener("mousedown",_h,!0),t.addEventListener("pointerdown",_h,!0),t.addEventListener("touchstart",_h,!0),t.addEventListener("visibilitychange",Oh,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!qh(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Mh=!0,Lh.start(100,(()=>{Mh=!1})),t.current=!1,!0)},ref:e}}function zh(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function jh(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]: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 Fh(e){return"string"==typeof e}function Hh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];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 $h(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 Bh=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Wh(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=yr(e,Bh),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=_f(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=yt({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=yt({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Hh(yt({},o,n)),s=$h(n),l=$h(o),u=t(a),c=_f(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=yt({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=yt({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(yt({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Fh(e)?t:yt({},t,{ownerState:yt({},t.ownerState,r)})}(r,yt({},l,{ref:wh(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Vh(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 Gh=y.createContext(null);function Uh(){return y.useContext(Gh)}var Yh="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Kh(e){const{children:t,theme:r}=e,n=Uh(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return yt({},e,t)}(n,r);return null!=e&&(e[Yh]=null!==n),e}),[r,n]);return Rl.jsx(Gh.Provider,{value:o,children:t})}const Xh=y.createContext(),Jh=y.createContext(void 0);function Zh(e){let{props:t,name:r}=e;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?lh(o.defaultProps,n):o.styleOverrides||o.variants?n:lh(o,n)}({props:t,name:r,theme:{components:y.useContext(Jh)}})}function Qh(e,t){return xu({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var em,tm={},rm={exports:{}};(em=rm).exports=function(e){return e&&e.__esModule?e:{default:e}},em.exports.__esModule=!0,em.exports.default=em.exports;var nm=rm.exports,om=wt(vu),im=wt(dh),am=nm;Object.defineProperty(tm,"__esModule",{value:!0});var sm=tm.alpha=xm;tm.blend=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=mm(e),a=mm(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return bm({type:"rgb",values:s})},tm.colorChannel=void 0;var lm=tm.darken=Sm;tm.decomposeColor=mm,tm.emphasize=Em;var um=tm.getContrastRatio=function(e,t){const r=ym(e),n=ym(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};tm.getLuminance=ym,tm.hexToRgb=hm,tm.hslToRgb=vm;var cm=tm.lighten=Cm;tm.private_safeAlpha=function(e,t,r){try{return xm(e,t)}catch(t){return e}},tm.private_safeColorChannel=void 0,tm.private_safeDarken=function(e,t,r){try{return Sm(e,t)}catch(t){return e}},tm.private_safeEmphasize=function(e,t,r){try{return Em(e,t)}catch(t){return e}},tm.private_safeLighten=function(e,t,r){try{return Cm(e,t)}catch(t){return e}},tm.recomposeColor=bm,tm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=mm(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 dm=am(om),pm=am(im);function fm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,pm.default)(e,t,r)}function hm(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 mm(e){if(e.type)return e;if("#"===e.charAt(0))return mm(hm(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,dm.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,dm.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const gm=e=>{const t=mm(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};tm.colorChannel=gm;function bm(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 vm(e){e=mm(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){let 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)};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])),bm({type:s,values:l})}function ym(e){let t="hsl"===(e=mm(e)).type||"hsla"===e.type?mm(vm(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 xm(e,t){return e=mm(e),t=fm(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,bm(e)}function Sm(e,t){if(e=mm(e),t=fm(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 bm(e)}function Cm(e,t){if(e=mm(e),t=fm(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 bm(e)}function Em(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return ym(e)>.5?Sm(e,t):Cm(e,t)}tm.private_safeColorChannel=(e,t)=>{try{return gm(e)}catch(t){return e}};const wm=["mode","contrastThreshold","tonalOffset"],Rm={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:Nl.white,default:Nl.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}},Am={text:{primary:Nl.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:Nl.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 Pm(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=cm(e.main,o):"dark"===t&&(e.dark=lm(e.main,i)))}function km(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Su(e,wm),i=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Xl,light:Kl,dark:Jl}:{main:Zl,light:Jl,dark:Ql}}(t),a=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Wl,light:Bl,dark:Gl}:{main:Ul,light:Vl,dark:Yl}}(t),s=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Fl,light:zl,dark:Hl}:{main:Hl,light:jl,dark:$l}}(t),l=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:tu,light:eu,dark:nu}:{main:nu,light:ru,dark:ou}}(t),u=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:au,light:iu,dark:lu}:{main:uu,light:su,dark:cu}}(t),c=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:pu,light:du,dark:hu}:{main:"#ed6c02",light:fu,dark:mu}}(t);function d(e){return um(e,Am.text.primary)>=r?Am.text.primary:Rm.text.primary}const p=e=>{let{color:t,name:r,mainShade:o=500,lightShade:i=300,darkShade:a=700}=e;if(t=xu({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error(bu(11,r?` (${r})`:"",o));if("string"!=typeof t.main)throw new Error(bu(12,r?` (${r})`:"",JSON.stringify(t.main)));return Pm(t,"light",i,n),Pm(t,"dark",a,n),t.contrastText||(t.contrastText=d(t.main)),t},f={dark:Am,light:Rm};return gp(xu({common:xu({},Nl),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:gu,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Im=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Mm={textTransform:"uppercase"},Lm='"Roboto", "Helvetica", "Arial", sans-serif';function Dm(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Lm,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Su(r,Im),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return xu({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Lm?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Mm),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Mm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return gp(xu({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Tm(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const _m=["none",Tm(0,2,1,-1,0,1,1,0,0,1,3,0),Tm(0,3,1,-2,0,2,2,0,0,1,5,0),Tm(0,3,3,-2,0,3,4,0,0,1,8,0),Tm(0,2,4,-1,0,4,5,0,0,1,10,0),Tm(0,3,5,-1,0,5,8,0,0,1,14,0),Tm(0,3,5,-1,0,6,10,0,0,1,18,0),Tm(0,4,5,-2,0,7,10,1,0,2,16,1),Tm(0,5,5,-3,0,8,10,1,0,3,14,2),Tm(0,5,6,-3,0,9,12,1,0,3,16,2),Tm(0,6,6,-3,0,10,14,1,0,4,18,3),Tm(0,6,7,-4,0,11,15,1,0,4,20,3),Tm(0,7,8,-4,0,12,17,2,0,5,22,4),Tm(0,7,8,-4,0,13,19,2,0,5,24,4),Tm(0,7,9,-4,0,14,21,2,0,5,26,4),Tm(0,8,9,-5,0,15,22,2,0,6,28,5),Tm(0,8,10,-5,0,16,24,2,0,6,30,5),Tm(0,8,11,-5,0,17,26,2,0,6,32,5),Tm(0,9,11,-5,0,18,28,2,0,7,34,6),Tm(0,9,12,-6,0,19,29,2,0,7,36,6),Tm(0,10,13,-6,0,20,31,3,0,8,38,7),Tm(0,10,13,-6,0,21,33,3,0,8,40,7),Tm(0,10,14,-6,0,22,35,3,0,8,42,7),Tm(0,11,14,-7,0,23,36,3,0,9,44,8),Tm(0,11,15,-7,0,24,38,3,0,9,46,8)],Om=["duration","easing","delay"],qm={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)"},Nm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zm(e){return`${Math.round(e)}ms`}function jm(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Fm(e){const t=xu({},qm,e.easing),r=xu({},Nm,e.duration);return xu({getAutoHeightDuration:jm,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Su(n,Om),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:zm(o)} ${i} ${"string"==typeof a?a:zm(a)}`)).join(",")}},e,{easing:t,duration:r})}const Hm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},$m=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Bm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:r={},transitions:n={},typography:o={}}=e,i=Su(e,$m);if(e.vars&&void 0===e.generateCssVars)throw new Error(bu(18));const a=km(r),s=Cf(e);let l=gp(s,{mixins:Qh(s.breakpoints,t),palette:a,shadows:_m.slice(),typography:Dm(a,o),transitions:Fm(n),zIndex:xu({},Hm)});l=gp(l,i);for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];return l=c.reduce(((e,t)=>gp(e,t)),l),l.unstable_sxConfig=xu({},bf,null==i?void 0:i.unstable_sxConfig),l.unstable_sx=function(e){return yf({sx:e,theme:this})},l}const Wm=Bm();function Vm(){const e=Af(Wm);return e[yu]||e}var Gm,Um={},Ym={exports:{}};function Km(){return Gm||(Gm=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}(Ym)),Ym.exports}var Xm,Jm={exports:{}};function Zm(){return Xm||(Xm=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}(Jm)),Jm.exports}var Qm=wt(fp),eg=wt(bp),tg=wt(Ap),rg=wt(sh),ng=wt(Ef),og=wt(Mf),ig=nm;Object.defineProperty(Um,"__esModule",{value:!0});var ag=Um.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r=vg,rootShouldForwardProp:n=bg,slotShouldForwardProp:o=bg}=e,i=e=>(0,pg.default)((0,sg.default)({},e,{theme:xg((0,sg.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,ug.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Sg(yg(l))}=a,p=(0,lg.default)(a,mg),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,h=c||!1;let m=bg;"Root"===l||"root"===l?m=n:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,ug.default)(e,(0,sg.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,cg.isPlainObject)(e)?n=>Cg(e,(0,sg.default)({},n,{theme:xg({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=function(n){let o=b(n);for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];const c=l?l.map(b):[];s&&d&&c.push((e=>{const n=xg((0,sg.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=>{let[r,o]=t;i[r]=Cg(o,(0,sg.default)({},e,{theme:n}))})),d(e,i)})),s&&!f&&c.push((e=>{var n;const o=xg((0,sg.default)({},e,{defaultTheme:r,themeId:t}));return Cg({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,sg.default)({},e,{theme:o}))})),h||c.push(i);const p=c.length-l.length;if(Array.isArray(n)&&p>0){const e=new Array(p).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const m=g(o,...c);return e.muiName&&(m.muiName=e.muiName),m};return g.withConfig&&(v.withConfig=g.withConfig),v}};Um.shouldForwardProp=bg,Um.systemDefaultTheme=void 0;var sg=ig(Km()),lg=ig(Zm()),ug=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=gg(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}(Qm),cg=eg;ig(tg),ig(rg);var dg=ig(ng),pg=ig(og);const fg=["ownerState"],hg=["variants"],mg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function gg(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(gg=function(e){return e?r:t})(e)}function bg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const vg=Um.systemDefaultTheme=(0,dg.default)(),yg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function xg(e){let{defaultTheme:t,theme:r,themeId:n}=e;return o=r,0===Object.keys(o).length?t:r[n]||r;var o}function Sg(e){return e?(t,r)=>r[e]:null}function Cg(e,t){let{ownerState:r}=t,n=(0,lg.default)(t,fg);const o="function"==typeof e?e((0,sg.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Cg(e,(0,sg.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,lg.default)(o,hg);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,sg.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,sg.default)({ownerState:r},n,r)):e.style))})),t}return o}function Eg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const wg=e=>Eg(e)&&"classes"!==e,Rg=ag({themeId:yu,defaultTheme:Wm,rootShouldForwardProp:wg}),Ag=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Pg(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=Pg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function kg(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Pg(e))&&(n&&(n+=" "),n+=t);return n}function Ig(e){return Zh(e)}function Mg(e){return Nf("MuiSvgIcon",e)}zf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Lg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Dg=Rg("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Rp(r.color)}`],t[`fontSize${Rp(r.fontSize)}`]]}})((e=>{let{theme:t,ownerState:r}=e;var n,o,i,a,s,l,u,c,d,p,f,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:r.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(o=n.create)?void 0:o.call(n,"fill",{duration:null==(i=t.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(u=l.pxToRem)?void 0:u.call(l,24))||"1.5rem",large:(null==(c=t.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[r.fontSize],color:null!=(p=null==(f=(t.vars||t).palette)||null==(f=f[r.color])?void 0:f.main)?p:{action:null==(h=(t.vars||t).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[r.color]}})),Tg=y.forwardRef((function(e,t){const r=Ig({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=Su(r,Lg),f=y.isValidElement(n)&&"svg"===n.type,h=xu({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return jh({root:["root","inherit"!==t&&`color${Rp(t)}`,`fontSize${Rp(r)}`]},Mg,n)})(h);return Rl.jsxs(Dg,xu({as:a,className:kg(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?Rl.jsx("title",{children:c}):null]}))}));Tg.muiName="SvgIcon";var _g=!1,Og=x.createContext(null),qg="unmounted",Ng="exited",zg="entering",jg="entered",Fg="exiting",Hg=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=Ng,n.appearStatus=zg):o=jg:o=t.unmountOnExit||t.mountOnEnter?qg:Ng,n.state={status:o},n.nextCallback=null,n}po(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===qg?{status:Ng}: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!==zg&&r!==jg&&(t=zg):r!==zg&&r!==jg||(t=Fg)}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===zg){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===Ng&&this.setState({status:qg})},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],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||_g?this.safeSetState({status:jg},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:zg},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:jg},(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&&!_g?(this.props.onExit(n),this.safeSetState({status:Fg},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ng},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ng},(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===qg)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=yr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Og.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function $g(){}function Bg(e,t){var r=Object.create(null);return e&&k.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&A(e)?t(e):e}(e)})),r}function Wg(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Vg(e,t,r){var n=Bg(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]=P(a,{onExited:r.bind(null,a),in:u.props.in,exit:Wg(a,"exit",e),enter:Wg(a,"enter",e)})):o[i]=P(a,{in:!1}):o[i]=P(a,{onExited:r.bind(null,a),in:!0,exit:Wg(a,"exit",e),enter:Wg(a,"enter",e)})}})),o}Hg.contextType=Og,Hg.propTypes={},Hg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$g,onEntering:$g,onEntered:$g,onExit:$g,onExiting:$g,onExited:$g},Hg.UNMOUNTED=qg,Hg.EXITED=Ng,Hg.ENTERING=zg,Hg.ENTERED=jg,Hg.EXITING=Fg;var Gg=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Ug=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(fo(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}po(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,Bg(r.children,(function(e){return P(e,{onExited:n.bind(null,e),in:!0,appear:Wg(e,"appear",r),enter:Wg(e,"enter",r),exit:Wg(e,"exit",r)})}))):Vg(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Bg(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=yt({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=yr(e,["component","childFactory"]),o=this.state.contextValue,i=Gg(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Og.Provider,{value:o},i):x.createElement(Og.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);Ug.propTypes={},Ug.defaultProps={component:"div",childFactory:function(e){return e}};const Yg=e=>e.scrollTop;function Kg(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 Xg(e){return Nf("MuiPaper",e)}zf("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 Jg=["className","component","elevation","square","variant"],Zg=Rg("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}`]]}})((e=>{let{theme:t,ownerState:r}=e;var n;return xu({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!r.square&&{borderRadius:t.shape.borderRadius},"outlined"===r.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===r.variant&&xu({boxShadow:(t.vars||t).shadows[r.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${sm("#fff",Ag(r.elevation))}, ${sm("#fff",Ag(r.elevation))})`},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[r.elevation]}))})),Qg=y.forwardRef((function(e,t){const r=Ig({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Su(r,Jg),u=xu({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return jh({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Xg,o)})(u);return Rl.jsx(Zg,xu({as:o,ownerState:u,className:kg(c.root,n),ref:t},l))}));const eb=zf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),tb=["center","classes","className"];let rb,nb,ob,ib,ab=e=>e;const sb=sp(rb||(rb=ab`
|
|
29
|
+
function bp(e,t){let r;return r=t?pp(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):pp(e),r}function vp(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function yp(e){return e}gp.propTypes={defaultTheme:kt.object,styles:kt.oneOfType([kt.array,kt.string,kt.object,kt.func])};var xp=Object.freeze({__proto__:null,GlobalStyles:gp,StyledEngineProvider:mp,ThemeContext:op,css:up,default:bp,internal_mutateStyles:vp,internal_processStyles:function(e,t){return vp(e,t)},internal_serializeStyles:yp,keyframes:hp});function Sp(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 Cp(e){if(y.isValidElement(e)||!Sp(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Cp(e[r])})),t}function Ep(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const n=r.clone?so({},e):e;return Sp(e)&&Sp(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:Sp(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Sp(e[o])?n[o]=Ep(e[o],t[o],r):r.clone?n[o]=Sp(t[o])?Cp(t[o]):t[o]:n[o]=t[o]})),n}var wp=Object.freeze({__proto__:null,default:Ep,isPlainObject:Sp});const Rp=["values","unit","step"];function Ap(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=bo(e,Rp),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)=>so({},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 so({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 Pp={borderRadius:4};function kp(e,t){return t?Ep(e,t,{clone:!1}):e}const Ip={xs:0,sm:600,md:900,lg:1200,xl:1536},Mp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ip[e]}px)`};function Lp(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Mp;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Mp;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Ip).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Dp(e){if("string"!=typeof e)throw new Error(wu(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Tp=Object.freeze({__proto__:null,default:Dp});function _p(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];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 Op(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"==typeof e?e(r):Array.isArray(e)?e[r]||o:_p(e,r)||o,t&&(n=t(n,o,e)),n}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=_p(e.theme,n)||{};return Lp(e,i,(e=>{let n=Op(a,o,e);return e===n&&"string"==typeof e&&(n=Op(a,o,`${t}${"default"===e?"":Dp(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Np={m:"margin",p:"padding"},zp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Fp=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!jp[e])return[e];e=jp[e]}const[t,r]=e.split(""),n=Np[t],o=zp[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Hp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$p=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Bp(e,t,r,n){var o;const i=null!=(o=_p(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 Wp(e){return Bp(e,"spacing",8)}function Vp(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 Gp(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Vp(t,r),e)),{})}(Fp(r),n);return Lp(e,e[r],o)}function Up(e,t){const r=Wp(e.theme);return Object.keys(e).map((n=>Gp(e,t,n,r))).reduce(kp,{})}function Yp(e){return Up(e,Hp)}function Kp(e){return Up(e,$p)}function Xp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,r)=>n[r]?kp(t,n[r](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o}function Jp(e){return"number"!=typeof e?e:`${e}px solid`}function Zp(e,t){return qp({prop:e,themeKey:"borders",transform:t})}Yp.propTypes={},Yp.filterProps=Hp,Kp.propTypes={},Kp.filterProps=$p;const Qp=Zp("border",Jp),ef=Zp("borderTop",Jp),tf=Zp("borderRight",Jp),rf=Zp("borderBottom",Jp),nf=Zp("borderLeft",Jp),of=Zp("borderColor"),af=Zp("borderTopColor"),sf=Zp("borderRightColor"),lf=Zp("borderBottomColor"),uf=Zp("borderLeftColor"),cf=Zp("outline",Jp),df=Zp("outlineColor"),pf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Bp(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Vp(t,e)});return Lp(e,e.borderRadius,r)}return null};pf.propTypes={},pf.filterProps=["borderRadius"],Xp(Qp,ef,tf,rf,nf,of,af,sf,lf,uf,pf,cf,df);const ff=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Bp(e.theme,"spacing",8),r=e=>({gap:Vp(t,e)});return Lp(e,e.gap,r)}return null};ff.propTypes={},ff.filterProps=["gap"];const hf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Bp(e.theme,"spacing",8),r=e=>({columnGap:Vp(t,e)});return Lp(e,e.columnGap,r)}return null};hf.propTypes={},hf.filterProps=["columnGap"];const mf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Bp(e.theme,"spacing",8),r=e=>({rowGap:Vp(t,e)});return Lp(e,e.rowGap,r)}return null};mf.propTypes={},mf.filterProps=["rowGap"];function gf(e,t){return"grey"===t?t:e}Xp(ff,hf,mf,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 bf(e){return e<=1&&0!==e?100*e+"%":e}Xp(qp({prop:"color",themeKey:"palette",transform:gf}),qp({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gf}),qp({prop:"backgroundColor",themeKey:"palette",transform:gf}));const vf=qp({prop:"width",transform:bf}),yf=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])||Ip[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:bf(t)}};return Lp(e,e.maxWidth,t)}return null};yf.filterProps=["maxWidth"];const xf=qp({prop:"minWidth",transform:bf}),Sf=qp({prop:"height",transform:bf}),Cf=qp({prop:"maxHeight",transform:bf}),Ef=qp({prop:"minHeight",transform:bf});qp({prop:"size",cssProperty:"width",transform:bf}),qp({prop:"size",cssProperty:"height",transform:bf});Xp(vf,yf,xf,Sf,Cf,Ef,qp({prop:"boxSizing"}));const wf={border:{themeKey:"borders",transform:Jp},borderTop:{themeKey:"borders",transform:Jp},borderRight:{themeKey:"borders",transform:Jp},borderBottom:{themeKey:"borders",transform:Jp},borderLeft:{themeKey:"borders",transform:Jp},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Jp},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:pf},color:{themeKey:"palette",transform:gf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gf},backgroundColor:{themeKey:"palette",transform:gf},p:{style:Kp},pt:{style:Kp},pr:{style:Kp},pb:{style:Kp},pl:{style:Kp},px:{style:Kp},py:{style:Kp},padding:{style:Kp},paddingTop:{style:Kp},paddingRight:{style:Kp},paddingBottom:{style:Kp},paddingLeft:{style:Kp},paddingX:{style:Kp},paddingY:{style:Kp},paddingInline:{style:Kp},paddingInlineStart:{style:Kp},paddingInlineEnd:{style:Kp},paddingBlock:{style:Kp},paddingBlockStart:{style:Kp},paddingBlockEnd:{style:Kp},m:{style:Yp},mt:{style:Yp},mr:{style:Yp},mb:{style:Yp},ml:{style:Yp},mx:{style:Yp},my:{style:Yp},margin:{style:Yp},marginTop:{style:Yp},marginRight:{style:Yp},marginBottom:{style:Yp},marginLeft:{style:Yp},marginX:{style:Yp},marginY:{style:Yp},marginInline:{style:Yp},marginInlineStart:{style:Yp},marginInlineEnd:{style:Yp},marginBlock:{style:Yp},marginBlockStart:{style:Yp},marginBlockEnd:{style:Yp},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:ff},rowGap:{style:mf},columnGap:{style:hf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bf},maxWidth:{style:yf},minWidth:{transform:bf},height:{transform:bf},maxHeight:{transform:bf},minHeight:{transform:bf},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Rf(){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=_p(r,s)||{};if(u)return u(o);return Lp(o,t,(t=>{let r=Op(c,l,t);return t===r&&"string"==typeof t&&(r=Op(c,l,`${e}${"default"===t?"":Dp(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:wf;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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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=kp(l,e(r,o,i,a));else{const e=Lp({theme:i},o,(e=>({[r]:e})));!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(n);return t.every((e=>o.size===Object.keys(e).length))}(e,o)?l=kp(l,e):l[r]=t({sx:o,theme:i})}else l=kp(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 Af=Rf();function Pf(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:{}}Af.filterProps=["sx"];const kf=["breakpoints","palette","spacing","shape"];function If(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:r={},spacing:n,shape:o={}}=e,i=bo(e,kf),a=Ap(t),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=Wp({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0===r.length?[1]:r).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ")};return r.mui=!0,r}(n);let l=Ep({breakpoints:a,direction:"ltr",components:{},palette:so({mode:"light"},r),spacing:s,shape:so({},Pp,o)},i);l.applyStyles=Pf;for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];return l=c.reduce(((e,t)=>Ep(e,t)),l),l.unstable_sxConfig=so({},wf,null==i?void 0:i.unstable_sxConfig),l.unstable_sx=function(e){return Af({sx:e,theme:this})},l}var Mf=Object.freeze({__proto__:null,default:If,private_createBreakpoints:Ap,unstable_applyStyles:Pf});function Lf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=y.useContext(op);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Df=If();function Tf(){return Lf(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Df)}function _f(e){let{styles:t,themeId:r,defaultTheme:n={}}=e;const o=Tf(n),i="function"==typeof t?t(r&&o[r]||o):t;return Dl.jsx(gp,{styles:i})}const Of=["sx"];function qf(e){const{sx:t}=e,r=bo(e,Of),{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:wf;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?function(){const e=t(...arguments);return Sp(e)?so({},n,e):n}:so({},n,t),so({},o,{sx:i})}var Nf=Object.freeze({__proto__:null,default:Af,extendSxProp:qf,unstable_createStyleFunctionSx:Rf,unstable_defaultSxConfig:wf});const zf=e=>e,jf=(()=>{let e=zf;return{configure(t){e=t},generate:t=>e(t),reset(){e=zf}}})();function Ff(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=Ff(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Hf(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ff(e))&&(n&&(n+=" "),n+=t);return n}const $f=["className","component"];const Bf={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 Wf(e,t){const r=Bf[t];return r?`${arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui"}-${r}`:`${jf.generate(e)}-${t}`}function Vf(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const n={};return t.forEach((t=>{n[t]=Wf(e,t,r)})),n}var Gf={exports:{}},Uf={},Yf=Symbol.for("react.transitional.element"),Kf=Symbol.for("react.portal"),Xf=Symbol.for("react.fragment"),Jf=Symbol.for("react.strict_mode"),Zf=Symbol.for("react.profiler"),Qf=Symbol.for("react.consumer"),eh=Symbol.for("react.context"),th=Symbol.for("react.forward_ref"),rh=Symbol.for("react.suspense"),nh=Symbol.for("react.suspense_list"),oh=Symbol.for("react.memo"),ih=Symbol.for("react.lazy"),ah=Symbol.for("react.offscreen"),sh=Symbol.for("react.client.reference");function lh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Yf:switch(e=e.type){case Xf:case Zf:case Jf:case rh:case nh:return e;default:switch(e=e&&e.$$typeof){case eh:case th:case ih:case oh:case Qf:return e;default:return t}}case Kf:return t}}}Uf.ContextConsumer=Qf,Uf.ContextProvider=eh,Uf.Element=Yf,Uf.ForwardRef=th,Uf.Fragment=Xf,Uf.Lazy=ih,Uf.Memo=oh,Uf.Portal=Kf,Uf.Profiler=Zf,Uf.StrictMode=Jf,Uf.Suspense=rh,Uf.SuspenseList=nh,Uf.isContextConsumer=function(e){return lh(e)===Qf},Uf.isContextProvider=function(e){return lh(e)===eh},Uf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Yf},Uf.isForwardRef=function(e){return lh(e)===th},Uf.isFragment=function(e){return lh(e)===Xf},Uf.isLazy=function(e){return lh(e)===ih},Uf.isMemo=function(e){return lh(e)===oh},Uf.isPortal=function(e){return lh(e)===Kf},Uf.isProfiler=function(e){return lh(e)===Zf},Uf.isStrictMode=function(e){return lh(e)===Jf},Uf.isSuspense=function(e){return lh(e)===rh},Uf.isSuspenseList=function(e){return lh(e)===nh},Uf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Xf||e===Zf||e===Jf||e===rh||e===nh||e===ah||"object"==typeof e&&null!==e&&(e.$$typeof===ih||e.$$typeof===oh||e.$$typeof===eh||e.$$typeof===Qf||e.$$typeof===th||e.$$typeof===sh||void 0!==e.getModuleId)},Uf.typeOf=lh,Gf.exports=Uf;var uh=Gf.exports;const ch=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function dh(e){const t=`${e}`.match(ch);return t&&t[1]||""}function ph(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||dh(e)||t}function fh(e,t,r){const n=ph(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var hh=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return ph(e,"Component");if("object"==typeof e)switch(e.$$typeof){case uh.ForwardRef:return fh(e,e.render,"ForwardRef");case uh.Memo:return fh(e,e.type,"memo");default:return}}},getFunctionName:dh});function mh(e,t){const r=so({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=so({},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]=so({},i),Object.keys(o).forEach((e=>{r[n][e]=mh(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const gh="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function bh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,r))}var vh=Object.freeze({__proto__:null,default:bh});function yh(e){if(e.type)return e;if("#"===e.charAt(0))return yh(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(wu(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(wu(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function xh(e,t){return e=yh(e),t=function(e){return bh(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)}(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 Sh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t)=>null==t?e:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Ch(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),r)}return n.clear=()=>{clearTimeout(t)},n}function Eh(e){return e&&e.ownerDocument||document}function wh(e){return Eh(e).defaultView||window}function Rh(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Ah=0;const Ph=y["useId".toString()];function kh(e){if(void 0!==Ph){return Ph()}return function(e){const[t,r]=y.useState(e),n=t;return y.useEffect((()=>{null==t&&(Ah+=1,r(`mui-${Ah}`))}),[t]),n}(e)}function Ih(e){let{controlled:t,default:r,name:n,state:o="value"}=e;const{current:i}=y.useRef(void 0!==t),[a,s]=y.useState(r);return[i?t:a,y.useCallback((e=>{i||s(e)}),[])]}function Mh(e){const t=y.useRef(e);return gh((()=>{t.current=e})),y.useRef((function(){return(0,t.current)(...arguments)})).current}function Lh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return y.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{Rh(t,e)}))}),t)}const Dh={};const Th=[];class _h{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new _h}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Oh(){const e=function(e,t){const r=y.useRef(Dh);return r.current===Dh&&(r.current=e(t)),r}(_h.create).current;return function(e){y.useEffect(e,Th)}(e.disposeEffect),e}let qh=!0,Nh=!1;const zh=new _h,jh={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 Fh(e){e.metaKey||e.altKey||e.ctrlKey||(qh=!0)}function Hh(){qh=!1}function $h(){"hidden"===this.visibilityState&&Nh&&(qh=!0)}function Bh(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return qh||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!jh[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Wh(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Fh,!0),t.addEventListener("mousedown",Hh,!0),t.addEventListener("pointerdown",Hh,!0),t.addEventListener("touchstart",Hh,!0),t.addEventListener("visibilitychange",$h,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Bh(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Nh=!0,zh.start(100,(()=>{Nh=!1})),t.current=!1,!0)},ref:e}}function Vh(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Gh(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]: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 Uh(e){return"string"==typeof e}function Yh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];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 Kh(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 Xh=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Jh(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=bo(e,Xh),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=Hf(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=so({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=so({},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=Yh(so({},o,n)),s=Kh(n),l=Kh(o),u=t(a),c=Hf(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=so({},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=so({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(so({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Uh(e)?t:so({},t,{ownerState:so({},t.ownerState,r)})}(r,so({},l,{ref:Lh(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Zh(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 Qh=y.createContext(null);function em(){return y.useContext(Qh)}var tm="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function rm(e){const{children:t,theme:r}=e,n=em(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return so({},e,t)}(n,r);return null!=e&&(e[tm]=null!==n),e}),[r,n]);return Dl.jsx(Qh.Provider,{value:o,children:t})}const nm=y.createContext(),om=y.createContext(void 0);function im(e){let{props:t,name:r}=e;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?mh(o.defaultProps,n):o.styleOverrides||o.variants?n:mh(o,n)}({props:t,name:r,theme:{components:y.useContext(om)}})}function am(e,t){return Pu({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var sm,lm={},um={exports:{}};(sm=um).exports=function(e){return e&&e.__esModule?e:{default:e}},sm.exports.__esModule=!0,sm.exports.default=sm.exports;var cm=um.exports,dm=wt(Ru),pm=wt(vh),fm=cm;Object.defineProperty(lm,"__esModule",{value:!0});var hm=lm.alpha=Pm;lm.blend=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Cm(e),a=Cm(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return wm({type:"rgb",values:s})},lm.colorChannel=void 0;var mm=lm.darken=km;lm.decomposeColor=Cm,lm.emphasize=Mm;var gm=lm.getContrastRatio=function(e,t){const r=Am(e),n=Am(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};lm.getLuminance=Am,lm.hexToRgb=Sm,lm.hslToRgb=Rm;var bm=lm.lighten=Im;lm.private_safeAlpha=function(e,t,r){try{return Pm(e,t)}catch(t){return e}},lm.private_safeColorChannel=void 0,lm.private_safeDarken=function(e,t,r){try{return km(e,t)}catch(t){return e}},lm.private_safeEmphasize=function(e,t,r){try{return Mm(e,t)}catch(t){return e}},lm.private_safeLighten=function(e,t,r){try{return Im(e,t)}catch(t){return e}},lm.recomposeColor=wm,lm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Cm(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 vm=fm(dm),ym=fm(pm);function xm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,ym.default)(e,t,r)}function Sm(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 Cm(e){if(e.type)return e;if("#"===e.charAt(0))return Cm(Sm(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,vm.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,vm.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Em=e=>{const t=Cm(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};lm.colorChannel=Em;function wm(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 Rm(e){e=Cm(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){let 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)};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])),wm({type:s,values:l})}function Am(e){let t="hsl"===(e=Cm(e)).type||"hsla"===e.type?Cm(Rm(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 Pm(e,t){return e=Cm(e),t=xm(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,wm(e)}function km(e,t){if(e=Cm(e),t=xm(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 wm(e)}function Im(e,t){if(e=Cm(e),t=xm(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 wm(e)}function Mm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Am(e)>.5?km(e,t):Im(e,t)}lm.private_safeColorChannel=(e,t)=>{try{return Em(e)}catch(t){return e}};const Lm=["mode","contrastThreshold","tonalOffset"],Dm={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:Wl.white,default:Wl.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}},Tm={text:{primary:Wl.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:Wl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _m(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=bm(e.main,o):"dark"===t&&(e.dark=mm(e.main,i)))}function Om(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=ku(e,Lm),i=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:nu,light:ru,dark:ou}:{main:iu,light:ou,dark:au}}(t),a=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Jl,light:Xl,dark:Ql}:{main:eu,light:Zl,dark:tu}}(t),s=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Ul,light:Vl,dark:Yl}:{main:Yl,light:Gl,dark:Kl}}(t),l=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:lu,light:su,dark:cu}:{main:cu,light:uu,dark:du}}(t),u=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:fu,light:pu,dark:mu}:{main:gu,light:hu,dark:bu}}(t),c=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:yu,light:vu,dark:Su}:{main:"#ed6c02",light:xu,dark:Cu}}(t);function d(e){return gm(e,Tm.text.primary)>=r?Tm.text.primary:Dm.text.primary}const p=e=>{let{color:t,name:r,mainShade:o=500,lightShade:i=300,darkShade:a=700}=e;if(t=Pu({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error(wu(11,r?` (${r})`:"",o));if("string"!=typeof t.main)throw new Error(wu(12,r?` (${r})`:"",JSON.stringify(t.main)));return _m(t,"light",i,n),_m(t,"dark",a,n),t.contrastText||(t.contrastText=d(t.main)),t},f={dark:Tm,light:Dm};return Ep(Pu({common:Pu({},Wl),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:Eu,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const qm=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Nm={textTransform:"uppercase"},zm='"Roboto", "Helvetica", "Arial", sans-serif';function jm(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=zm,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=ku(r,qm),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Pu({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===zm?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Nm),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Nm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ep(Pu({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Fm(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const Hm=["none",Fm(0,2,1,-1,0,1,1,0,0,1,3,0),Fm(0,3,1,-2,0,2,2,0,0,1,5,0),Fm(0,3,3,-2,0,3,4,0,0,1,8,0),Fm(0,2,4,-1,0,4,5,0,0,1,10,0),Fm(0,3,5,-1,0,5,8,0,0,1,14,0),Fm(0,3,5,-1,0,6,10,0,0,1,18,0),Fm(0,4,5,-2,0,7,10,1,0,2,16,1),Fm(0,5,5,-3,0,8,10,1,0,3,14,2),Fm(0,5,6,-3,0,9,12,1,0,3,16,2),Fm(0,6,6,-3,0,10,14,1,0,4,18,3),Fm(0,6,7,-4,0,11,15,1,0,4,20,3),Fm(0,7,8,-4,0,12,17,2,0,5,22,4),Fm(0,7,8,-4,0,13,19,2,0,5,24,4),Fm(0,7,9,-4,0,14,21,2,0,5,26,4),Fm(0,8,9,-5,0,15,22,2,0,6,28,5),Fm(0,8,10,-5,0,16,24,2,0,6,30,5),Fm(0,8,11,-5,0,17,26,2,0,6,32,5),Fm(0,9,11,-5,0,18,28,2,0,7,34,6),Fm(0,9,12,-6,0,19,29,2,0,7,36,6),Fm(0,10,13,-6,0,20,31,3,0,8,38,7),Fm(0,10,13,-6,0,21,33,3,0,8,40,7),Fm(0,10,14,-6,0,22,35,3,0,8,42,7),Fm(0,11,14,-7,0,23,36,3,0,9,44,8),Fm(0,11,15,-7,0,24,38,3,0,9,46,8)],$m=["duration","easing","delay"],Bm={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)"},Wm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vm(e){return`${Math.round(e)}ms`}function Gm(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Um(e){const t=Pu({},Bm,e.easing),r=Pu({},Wm,e.duration);return Pu({getAutoHeightDuration:Gm,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return ku(n,$m),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Vm(o)} ${i} ${"string"==typeof a?a:Vm(a)}`)).join(",")}},e,{easing:t,duration:r})}const Ym={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Km=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Xm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:r={},transitions:n={},typography:o={}}=e,i=ku(e,Km);if(e.vars&&void 0===e.generateCssVars)throw new Error(wu(18));const a=Om(r),s=If(e);let l=Ep(s,{mixins:am(s.breakpoints,t),palette:a,shadows:Hm.slice(),typography:jm(a,o),transitions:Um(n),zIndex:Pu({},Ym)});l=Ep(l,i);for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];return l=c.reduce(((e,t)=>Ep(e,t)),l),l.unstable_sxConfig=Pu({},wf,null==i?void 0:i.unstable_sxConfig),l.unstable_sx=function(e){return Af({sx:e,theme:this})},l}const Jm=Xm();function Zm(){const e=Tf(Jm);return e[Au]||e}var Qm,eg={},tg={exports:{}};var rg,ng={exports:{}};var og=wt(xp),ig=wt(wp),ag=wt(Tp),sg=wt(hh),lg=wt(Mf),ug=wt(Nf),cg=cm;Object.defineProperty(eg,"__esModule",{value:!0});var dg=eg.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r=Eg,rootShouldForwardProp:n=Cg,slotShouldForwardProp:o=Cg}=e,i=e=>(0,bg.default)((0,pg.default)({},e,{theme:Rg((0,pg.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,hg.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Ag(wg(l))}=a,p=(0,fg.default)(a,xg),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,h=c||!1;let m=Cg;"Root"===l||"root"===l?m=n:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,hg.default)(e,(0,pg.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,mg.isPlainObject)(e)?n=>Pg(e,(0,pg.default)({},n,{theme:Rg({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=function(n){let o=b(n);for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];const c=l?l.map(b):[];s&&d&&c.push((e=>{const n=Rg((0,pg.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=>{let[r,o]=t;i[r]=Pg(o,(0,pg.default)({},e,{theme:n}))})),d(e,i)})),s&&!f&&c.push((e=>{var n;const o=Rg((0,pg.default)({},e,{defaultTheme:r,themeId:t}));return Pg({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,pg.default)({},e,{theme:o}))})),h||c.push(i);const p=c.length-l.length;if(Array.isArray(n)&&p>0){const e=new Array(p).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const m=g(o,...c);return e.muiName&&(m.muiName=e.muiName),m};return g.withConfig&&(v.withConfig=g.withConfig),v}};eg.shouldForwardProp=Cg,eg.systemDefaultTheme=void 0;var pg=cg((Qm||(Qm=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)),fg=cg((rg||(rg=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}(ng)),ng.exports)),hg=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Sg(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}(og),mg=ig;cg(ag),cg(sg);var gg=cg(lg),bg=cg(ug);const vg=["ownerState"],yg=["variants"],xg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Sg(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Sg=function(e){return e?r:t})(e)}function Cg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Eg=eg.systemDefaultTheme=(0,gg.default)(),wg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Rg(e){let{defaultTheme:t,theme:r,themeId:n}=e;return o=r,0===Object.keys(o).length?t:r[n]||r;var o}function Ag(e){return e?(t,r)=>r[e]:null}function Pg(e,t){let{ownerState:r}=t,n=(0,fg.default)(t,vg);const o="function"==typeof e?e((0,pg.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Pg(e,(0,pg.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,fg.default)(o,yg);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,pg.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,pg.default)({ownerState:r},n,r)):e.style))})),t}return o}function kg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ig=e=>kg(e)&&"classes"!==e,Mg=dg({themeId:Au,defaultTheme:Jm,rootShouldForwardProp:Ig}),Lg=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Dg(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=Dg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Tg(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Dg(e))&&(n&&(n+=" "),n+=t);return n}function _g(e){return im(e)}function Og(e){return Wf("MuiSvgIcon",e)}Vf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const qg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Ng=Mg("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Dp(r.color)}`],t[`fontSize${Dp(r.fontSize)}`]]}})((e=>{let{theme:t,ownerState:r}=e;var n,o,i,a,s,l,u,c,d,p,f,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:r.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(o=n.create)?void 0:o.call(n,"fill",{duration:null==(i=t.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(u=l.pxToRem)?void 0:u.call(l,24))||"1.5rem",large:(null==(c=t.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[r.fontSize],color:null!=(p=null==(f=(t.vars||t).palette)||null==(f=f[r.color])?void 0:f.main)?p:{action:null==(h=(t.vars||t).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[r.color]}})),zg=y.forwardRef((function(e,t){const r=_g({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=ku(r,qg),f=y.isValidElement(n)&&"svg"===n.type,h=Pu({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Gh({root:["root","inherit"!==t&&`color${Dp(t)}`,`fontSize${Dp(r)}`]},Og,n)})(h);return Dl.jsxs(Ng,Pu({as:a,className:Tg(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?Dl.jsx("title",{children:c}):null]}))}));zg.muiName="SvgIcon";var jg=!1,Fg=x.createContext(null),Hg="unmounted",$g="exited",Bg="entering",Wg="entered",Vg="exiting",Gg=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=$g,n.appearStatus=Bg):o=Wg:o=t.unmountOnExit||t.mountOnEnter?Hg:$g,n.state={status:o},n.nextCallback=null,n}mo(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Hg?{status:$g}: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!==Bg&&r!==Wg&&(t=Bg):r!==Bg&&r!==Wg||(t=Vg)}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===Bg){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===$g&&this.setState({status:Hg})},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],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||jg?this.safeSetState({status:Wg},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Bg},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Wg},(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&&!jg?(this.props.onExit(n),this.safeSetState({status:Vg},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:$g},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:$g},(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===Hg)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=bo(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Fg.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Ug(){}function Yg(e,t){var r=Object.create(null);return e&&k.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&A(e)?t(e):e}(e)})),r}function Kg(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Xg(e,t,r){var n=Yg(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]=P(a,{onExited:r.bind(null,a),in:u.props.in,exit:Kg(a,"exit",e),enter:Kg(a,"enter",e)})):o[i]=P(a,{in:!1}):o[i]=P(a,{onExited:r.bind(null,a),in:!0,exit:Kg(a,"exit",e),enter:Kg(a,"enter",e)})}})),o}Gg.contextType=Fg,Gg.propTypes={},Gg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ug,onEntering:Ug,onEntered:Ug,onExit:Ug,onExiting:Ug,onExited:Ug},Gg.UNMOUNTED=Hg,Gg.EXITED=$g,Gg.ENTERING=Bg,Gg.ENTERED=Wg,Gg.EXITING=Vg;var Jg=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Zg=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(go(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,Yg(r.children,(function(e){return P(e,{onExited:n.bind(null,e),in:!0,appear:Kg(e,"appear",r),enter:Kg(e,"enter",r),exit:Kg(e,"exit",r)})}))):Xg(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Yg(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=so({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=bo(e,["component","childFactory"]),o=this.state.contextValue,i=Jg(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Fg.Provider,{value:o},i):x.createElement(Fg.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);Zg.propTypes={},Zg.defaultProps={component:"div",childFactory:function(e){return e}};const Qg=e=>e.scrollTop;function eb(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 tb(e){return Wf("MuiPaper",e)}Vf("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 rb=["className","component","elevation","square","variant"],nb=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}`]]}})((e=>{let{theme:t,ownerState:r}=e;var n;return Pu({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!r.square&&{borderRadius:t.shape.borderRadius},"outlined"===r.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===r.variant&&Pu({boxShadow:(t.vars||t).shadows[r.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${hm("#fff",Lg(r.elevation))}, ${hm("#fff",Lg(r.elevation))})`},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[r.elevation]}))})),ob=y.forwardRef((function(e,t){const r=_g({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=ku(r,rb),u=Pu({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Gh({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},tb,o)})(u);return Dl.jsx(nb,Pu({as:o,ownerState:u,className:Tg(c.root,n),ref:t},l))}));const ib=Vf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ab=["center","classes","className"];let sb,lb,ub,cb,db=e=>e;const pb=hp(sb||(sb=db`
|
|
30
30
|
0% {
|
|
31
31
|
transform: scale(0);
|
|
32
32
|
opacity: 0.1;
|
|
@@ -36,7 +36,7 @@ function cp(e,t){let r;return r=t?ip(e).withConfig({displayName:t.label,shouldFo
|
|
|
36
36
|
transform: scale(1);
|
|
37
37
|
opacity: 0.3;
|
|
38
38
|
}
|
|
39
|
-
`)),
|
|
39
|
+
`)),fb=hp(lb||(lb=db`
|
|
40
40
|
0% {
|
|
41
41
|
opacity: 1;
|
|
42
42
|
}
|
|
@@ -44,7 +44,7 @@ function cp(e,t){let r;return r=t?ip(e).withConfig({displayName:t.label,shouldFo
|
|
|
44
44
|
100% {
|
|
45
45
|
opacity: 0;
|
|
46
46
|
}
|
|
47
|
-
`)),
|
|
47
|
+
`)),hb=hp(ub||(ub=db`
|
|
48
48
|
0% {
|
|
49
49
|
transform: scale(1);
|
|
50
50
|
}
|
|
@@ -56,7 +56,7 @@ function cp(e,t){let r;return r=t?ip(e).withConfig({displayName:t.label,shouldFo
|
|
|
56
56
|
100% {
|
|
57
57
|
transform: scale(1);
|
|
58
58
|
}
|
|
59
|
-
`)),
|
|
59
|
+
`)),mb=Mg("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),gb=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=Tg(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Tg(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:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(cb||(cb=db`
|
|
60
60
|
opacity: 0;
|
|
61
61
|
position: absolute;
|
|
62
62
|
|
|
@@ -99,9 +99,9 @@ function cp(e,t){let r;return r=t?ip(e).withConfig({displayName:t.label,shouldFo
|
|
|
99
99
|
animation-iteration-count: infinite;
|
|
100
100
|
animation-delay: 200ms;
|
|
101
101
|
}
|
|
102
|
-
`),eb.rippleVisible,sb,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),eb.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),eb.child,eb.childLeaving,lb,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),eb.childPulsate,ub,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),pb=y.forwardRef((function(e,t){const r=Ig({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Su(r,tb),[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=kh(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,Rl.jsx(db,{classes:{ripple:kg(o.ripple,eb.ripple),rippleVisible:kg(o.rippleVisible,eb.rippleVisible),ripplePulsate:kg(o.ripplePulsate,eb.ripplePulsate),child:kg(o.child,eb.child),childLeaving:kg(o.childLeaving,eb.childLeaving),childPulsate:kg(o.childPulsate,eb.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m,p]),b=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]),Rl.jsx(cb,xu({className:kg(eb.root,o.root,i),ref:h},a,{children:Rl.jsx(Ug,{component:null,exit:!0,children:s})}))}));function fb(e){return Nf("MuiButtonBase",e)}const hb=zf("MuiButtonBase",["root","disabled","focusVisible"]),mb=["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"],gb=Rg("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"},[`&.${hb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),bb=y.forwardRef((function(e,t){const r=Ig({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:C,onMouseLeave:E,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:M,type:L}=r,D=Su(r,mb),T=y.useRef(null),_=y.useRef(null),O=wh(_,M),{isFocusVisibleRef:q,onFocus:N,onBlur:z,ref:j}=Nh(),[F,H]=y.useState(!1);l&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),T.current.focus()}})),[]);const[$,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!l;function V(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;return Eh((n=>{t&&t(n);return!r&&_.current&&_.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&$&&_.current.pulsate()}),[u,d,F,$]);const G=V("start",C),U=V("stop",m),Y=V("stop",g),K=V("stop",w),X=V("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=V("start",P),Z=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{z(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=Eh((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=Eh((e=>{d&&!ne.current&&F&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.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(),h&&h(e))})),ie=Eh((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(D.href||D.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===L?"button":L,se.disabled=l):(D.href||D.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=wh(t,j,T),ue=xu({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=jh({root:["root",t&&"disabled",r&&"focusVisible"]},fb,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Rl.jsxs(gb,xu({as:ae,className:kg(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:k,type:L},se,D,{children:[i,W?Rl.jsx(pb,xu({ref:O,center:o},I)):null]}))}));function vb(e){return Nf("MuiTypography",e)}zf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const yb=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],xb=Rg("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${Rp(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:r}=e;return xu({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&t.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})})),Sb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Cb={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Eb=y.forwardRef((function(e,t){const r=Ig({props:e,name:"MuiTypography"}),n=(e=>Cb[e]||e)(r.color),o=If(xu({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Sb}=o,f=Su(o,yb),h=xu({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Sb[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return jh({root:["root",i,"inherit"!==e.align&&`align${Rp(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},vb,a)})(h);return Rl.jsx(xb,xu({as:m,ref:t,ownerState:h,className:kg(g.root,a)},f))}));const wb=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=wh(y.isValidElement(r)?Vh(r):null,t);if(uh((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),uh((()=>{if(i&&!o)return vh(t,i),()=>{vh(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return Rl.jsx(y.Fragment,{children:r})}return Rl.jsx(y.Fragment,{children:i?j.createPortal(r,i):i})})),Rb=["onChange","maxRows","minRows","style","value"];function Ab(e){return parseInt(e,10)||0}const Pb={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function kb(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Ib=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Su(e,Rb),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=wh(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=bh(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=Ab(i.paddingBottom)+Ab(i.paddingTop),l=Ab(i.borderBottomWidth)+Ab(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),h=Eh((()=>{const e=u.current,t=f();if(!e||!t||kb(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),m=y.useCallback((()=>{const e=u.current,t=f();if(!e||!t||kb(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);uh((()=>{const e=mh(m),t=null==u?void 0:u.current;if(!t)return;const r=bh(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[f,m,h]),uh((()=>{m()}));return Rl.jsxs(y.Fragment,{children:[Rl.jsx("textarea",xu({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),Rl.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:xu({},Pb,i,{paddingTop:0,paddingBottom:0})})]})}));function Mb(e){let{props:t,states:r,muiFormControl:n}=e;return r.reduce(((e,r)=>(e[r]=t[r],n&&void 0===t[r]&&(e[r]=n[r]),e)),{})}const Lb=y.createContext(void 0);function Db(){return y.useContext(Lb)}function Tb(e){return Rl.jsx(Pf,xu({},e,{defaultTheme:Wm,themeId:yu}))}function _b(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ob(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(_b(e.value)&&""!==e.value||t&&_b(e.defaultValue)&&""!==e.defaultValue)}function qb(e){return Nf("MuiInputBase",e)}const Nb=zf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),zb=["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"],jb=(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${Rp(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Fb=(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]},Hb=Rg("div",{name:"MuiInputBase",slot:"Root",overridesResolver:jb})((e=>{let{theme:t,ownerState:r}=e;return xu({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Nb.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},r.multiline&&xu({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),$b=Rg("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Fb})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode,o=xu({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),i={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return xu({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":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Nb.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Nb.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),Bb=Rl.jsx(Tb,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Wb=y.forwardRef((function(e,t){var r;const n=Ig({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:C=!1,name:E,onBlur:w,onChange:R,onClick:A,onFocus:P,onKeyDown:k,onKeyUp:I,placeholder:M,readOnly:L,renderSuffix:D,rows:T,slotProps:_={},slots:O={},startAdornment:q,type:N="text",value:z}=n,j=Su(n,zb),F=null!=b.value?b.value:z,{current:H}=y.useRef(null!=F),$=y.useRef(),B=y.useCallback((e=>{}),[]),W=wh($,v,b.ref,B),[V,G]=y.useState(!1),U=Db(),Y=Mb({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:V,y.useEffect((()=>{!U&&d&&V&&(G(!1),w&&w())}),[U,d,V,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{Ob(e)?K&&K():X&&X()}),[K,X]);uh((()=>{H&&J({value:F})}),[F,J,H]);y.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;C&&"input"===Z&&(Q=xu(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:x,minRows:S},Q),Z=Ib);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=xu({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:C,size:Y.size,startAdornment:q,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:h}=e;return jh({root:["root",`color${Rp(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Rp(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},qb,t)})(ee),re=O.root||l.Root||Hb,ne=_.root||u.root||{},oe=O.input||l.Input||$b;return Q=xu({},Q,null!=(r=_.input)?r:u.input),Rl.jsxs(y.Fragment,{children:[!p&&Bb,Rl.jsxs(re,xu({},ne,!Fh(re)&&{ownerState:xu({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),A&&A(e)}},j,{className:kg(te.root,ne.className,s,L&&"MuiInputBase-readOnly"),children:[q,Rl.jsx(Lb.Provider,{value:null,children:Rl.jsx(oe,xu({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:M,readOnly:L,required:Y.required,rows:T,value:F,onKeyDown:k,onKeyUp:I,type:N},Q,!Fh(oe)&&{as:Z,ownerState:xu({},ee,Q.ownerState)},{ref:W,className:kg(te.input,Q.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:function(e){if(!H){const t=e.target||$.current;if(null==t)throw new Error(bu(1));J({value:t.value})}for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];b.onChange&&b.onChange(e,...r),R&&R(e,...r)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,D?D(xu({},Y,{startAdornment:q})):null]}))]})}));function Vb(e){return Nf("MuiInput",e)}const Gb=xu({},Nb,zf("MuiInput",["root","underline","input"]));function Ub(e){return Nf("MuiOutlinedInput",e)}const Yb=xu({},Nb,zf("MuiOutlinedInput",["root","notchedOutline","input"]));function Kb(e){return Nf("MuiFilledInput",e)}const Xb=xu({},Nb,zf("MuiFilledInput",["root","underline","input"]));var Jb=function(e,t){function r(r,n){return Rl.jsx(Tg,xu({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Tg.muiName,y.memo(y.forwardRef(r))}(Rl.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Zb=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qb={entering:{opacity:1},entered:{opacity:1}},ev=y.forwardRef((function(e,t){const r=Vm(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=Hg}=e,v=Su(e,Zb),x=y.useRef(null),S=wh(x,Vh(a),t),C=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},E=C(d),w=C(((e,t)=>{Yg(e);const n=Kg({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=C(c),A=C(h),P=C((e=>{const t=Kg({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),k=C(f);return Rl.jsx(b,xu({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:E,onExit:P,onExited:k,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,xu({style:xu({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Qb[e],m,a.props.style),ref:S},t))}))}));function tv(e){return Nf("MuiBackdrop",e)}zf("MuiBackdrop",["root","invisible"]);const rv=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],nv=Rg("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return xu({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"},t.invisible&&{backgroundColor:"transparent"})})),ov=y.forwardRef((function(e,t){var r,n,o;const i=Ig({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=ev,transitionDuration:g}=i,b=Su(i,rv),v=xu({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return jh({root:["root",r&&"invisible"]},tv,t)})(v),x=null!=(r=f.root)?r:c.root;return Rl.jsx(m,xu({in:p,timeout:g},b,{children:Rl.jsx(nv,xu({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:kg(y.root,s,null==x?void 0:x.className),ownerState:xu({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),iv=zf("MuiBox",["root"]),av=Bm(),sv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=cp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(yf);return y.forwardRef((function(e,a){const s=Af(r),l=If(e),{className:u,component:c="div"}=l,d=yr(l,Of);return Rl.jsx(i,yt({as:c,ref:a,className:_f(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:yu,defaultTheme:av,defaultClassName:iv.root,generateClassName:Df.generate});function lv(e){return Nf("MuiButton",e)}const uv=zf("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"]),cv=y.createContext({}),dv=y.createContext(void 0),pv=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fv=e=>xu({},"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}}),hv=Rg(bb,{shouldForwardProp:e=>wg(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Rp(r.color)}`],t[`size${Rp(r.size)}`],t[`${r.variant}Size${Rp(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:r}=e;var n,o;const i="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],a="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return xu({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":xu({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:sm(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===r.variant&&"inherit"!==r.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:sm(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===r.variant&&"inherit"!==r.color&&{border:`1px solid ${(t.vars||t).palette[r.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:sm(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===r.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===r.variant&&"inherit"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}}),"&:active":xu({},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${uv.focusVisible}`]:xu({},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${uv.disabled}`]:xu({color:(t.vars||t).palette.action.disabled},"outlined"===r.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===r.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===r.variant&&{padding:"6px 8px"},"text"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main},"outlined"===r.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[r.color].mainChannel} / 0.5)`:`1px solid ${sm(t.palette[r.color].main,.5)}`},"contained"===r.variant&&{color:t.vars?t.vars.palette.text.primary:null==(n=(o=t.palette).getContrastText)?void 0:n.call(o,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:i,boxShadow:(t.vars||t).shadows[2]},"contained"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main},"inherit"===r.color&&{color:"inherit",borderColor:"currentColor"},"small"===r.size&&"text"===r.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"text"===r.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===r.size&&"outlined"===r.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"outlined"===r.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===r.size&&"contained"===r.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"contained"===r.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},r.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${uv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${uv.disabled}`]:{boxShadow:"none"}}})),mv=Rg("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Rp(r.size)}`]]}})((e=>{let{ownerState:t}=e;return xu({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},fv(t))})),gv=Rg("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Rp(r.size)}`]]}})((e=>{let{ownerState:t}=e;return xu({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},fv(t))})),bv=y.forwardRef((function(e,t){const r=y.useContext(cv),n=y.useContext(dv),o=Ig({props:lh(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,x=Su(o,pv),S=xu({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),C=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return xu({},a,jh({root:["root",i,`${i}${Rp(t)}`,`size${Rp(o)}`,`${i}Size${Rp(o)}`,`color${Rp(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Rp(o)}`],endIcon:["icon","endIcon",`iconSize${Rp(o)}`]},lv,a))})(S),E=g&&Rl.jsx(mv,{className:C.startIcon,ownerState:S,children:g}),w=p&&Rl.jsx(gv,{className:C.endIcon,ownerState:S,children:p}),R=n||"";return Rl.jsxs(hv,xu({ownerState:S,className:kg(r.className,C.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:kg(C.focusVisible,f),ref:t,type:b},x,{classes:C,children:[E,i,w]}))}));function vv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yv(e){return parseInt(bh(e).getComputedStyle(e).paddingRight,10)||0}function xv(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&&vv(e,o)}))}function Sv(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Cv(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=gh(e);return t.body===e?bh(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=zh(gh(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${yv(n)+e}px`;const t=gh(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${yv(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=gh(n).body;else{const t=n.parentElement,r=bh(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((e=>{let{value:t,el:r,property:n}=e;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}const Ev=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function wv(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ev)).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 Rv(){return!0}function Av(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=wv,isEnabled:a=Rv,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),h=y.useRef(null),m=wh(Vh(t),h),g=y.useRef(null);y.useEffect((()=>{s&&h.current&&(f.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!h.current)return;const e=gh(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),y.useEffect((()=>{if(!s||!h.current)return;const e=gh(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Rl.jsxs(y.Fragment,{children:[Rl.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Rl.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Pv=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&&vv(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);xv(t,e.mount,e.modalRef,n,!0);const o=Sv(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=Sv(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Cv(n,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=this.modals.indexOf(e);if(-1===r)return r;const n=Sv(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&&vv(e.modalRef,t),xv(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&&vv(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function kv(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Pv,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=wh(h,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=h.current,p.current.mount=f.current,p.current),C=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},E=Eh((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||gh(f.current).body;o.add(S(),e),h.current&&C()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Eh((e=>{f.current=e,e&&(c&&w()?C():h.current&&vv(h.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?E():v&&i||A()}),[c,A,v,i,E]);const P=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")))},k=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=Hh(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=xu({},r,t);return xu({role:"presentation"},n,{onKeyDown:P(n),ref:m})},getBackdropProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return xu({"aria-hidden":!0},e,{onClick:k(e),open:c})},getTransitionProps:()=>({onEnter:hh((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:hh((()=>{b(!0),s&&s(),i&&A()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}function Iv(e){return Nf("MuiModal",e)}zf("MuiModal",["root","hidden","backdrop"]);const Mv=["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"],Lv=Rg("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:r}=e;return xu({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),Dv=Rg(ov,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Tv=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=Ig({name:"MuiModal",props:e}),{BackdropComponent:u=Dv,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:k,slotProps:I,slots:M}=l,L=Su(l,Mv),D=xu({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:C,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:T,getBackdropProps:_,getTransitionProps:O,portalRef:q,isTopModal:N,exited:z,hasTransition:j}=kv(xu({},D,{rootRef:t})),F=xu({},D,{exited:z}),H=(e=>{const{open:t,exited:r,classes:n}=e;return jh({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Iv,n)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const B=null!=(r=null!=(n=null==M?void 0:M.root)?n:g.Root)?r:Lv,W=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==I?void 0:I.root)?a:b.root,G=null!=(s=null==I?void 0:I.backdrop)?s:b.backdrop,U=Wh({elementType:B,externalSlotProps:V,externalForwardedProps:L,getSlotProps:T,additionalProps:{ref:t,as:m},ownerState:F,className:kg(d,null==V?void 0:V.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=Wh({elementType:W,externalSlotProps:G,additionalProps:c,getSlotProps:e=>_(xu({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:kg(null==G?void 0:G.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return A||k||j&&!z?Rl.jsx(wb,{ref:q,container:h,disablePortal:C,children:Rl.jsxs(B,xu({},U,{children:[!R&&u?Rl.jsx(W,xu({},Y)):null,Rl.jsx(Av,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:k,children:y.cloneElement(f,$)})]}))}):null}));function _v(e){return Nf("MuiDivider",e)}const Ov=zf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),qv=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Nv=Rg("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]}})((e=>{let{theme:t,ownerState:r}=e;return xu({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:sm(t.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return xu({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:r}=e;return xu({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}})}),(e=>{let{theme:t,ownerState:r}=e;return xu({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}})}),(e=>{let{ownerState:t}=e;return xu({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),zv=Rg("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:r}=e;return xu({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},"vertical"===r.orientation&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})})),jv=y.forwardRef((function(e,t){const r=Ig({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=Su(r,qv),h=xu({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return jh({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)})(h);return Rl.jsx(Nv,xu({as:a,className:kg(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Rl.jsx(zv,{className:m.wrapper,ownerState:h,children:o}):null}))}));jv.muiSkipListHighlight=!0;const Fv=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Hv=Rg(Hb,{shouldForwardProp:e=>wg(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...jb(e,t),!r.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:r}=e;var n;const o="light"===t.palette.mode,i=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return xu({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a}},[`&.${Xb.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a},[`&.${Xb.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!r.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(t.vars||t).palette[r.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xb.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xb.disabled}, .${Xb.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Xb.disabled}:before`]:{borderBottomStyle:"dotted"}},r.startAdornment&&{paddingLeft:12},r.endAdornment&&{paddingRight:12},r.multiline&&xu({padding:"25px 12px 8px"},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9}))})),$v=Rg($b,{name:"MuiFilledInput",slot:"Input",overridesResolver:Fb})((e=>{let{theme:t,ownerState:r}=e;return xu({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),Bv=y.forwardRef((function(e,t){var r,n,o,i;const a=Ig({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Su(a,Fv),g=xu({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return xu({},t,jh({root:["root",!r&&"underline"],input:["input"]},Kb,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?gp(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Hv,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:$v;return Rl.jsx(Wb,xu({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Bv.muiName="Input";const Wv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Vv(e){return`scale(${e}, ${e**2})`}const Gv={entering:{opacity:1,transform:Vv(1)},entered:{opacity:1,transform:"none"}},Uv="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Yv=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:h="auto",TransitionComponent:m=Hg}=e,g=Su(e,Wv),b=kh(),v=y.useRef(),x=Vm(),S=y.useRef(null),C=wh(S,Vh(o),t),E=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=E(u),R=E(((e,t)=>{Yg(e);const{duration:r,delay:n,easing:o}=Kg({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(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:Uv?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),A=E(l),P=E(p),k=E((e=>{const{duration:t,delay:r,easing:n}=Kg({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(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:Uv?o:.666*o,delay:Uv?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Vv(.75),c&&c(e)})),I=E(d);return Rl.jsx(m,xu({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:k,onExited:I,onExiting:P,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,xu({style:xu({opacity:0,transform:Vv(.75),visibility:"exited"!==e||a?void 0:"hidden"},Gv[e],f,o.props.style),ref:C},t))}))}));Yv.muiSupportAuto=!0;const Kv=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Xv=Rg(Hb,{shouldForwardProp:e=>wg(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...jb(e,t),!r.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:r}=e;let n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),xu({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gb.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gb.disabled}, .${Gb.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Gb.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Jv=Rg($b,{name:"MuiInput",slot:"Input",overridesResolver:Fb})({}),Zv=y.forwardRef((function(e,t){var r,n,o,i;const a=Ig({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Su(a,Kv),b=(e=>{const{classes:t,disableUnderline:r}=e;return xu({},t,jh({root:["root",!r&&"underline"],input:["input"]},Vb,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?gp(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Xv,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Jv;return Rl.jsx(Wb,xu({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function Qv(e){return Nf("MuiLink",e)}Zv.muiName="Input";const ey=zf("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ty={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ry=e=>{let{theme:t,ownerState:r}=e;const n=(e=>ty[e]||e)(r.color),o=Pp(t,`palette.${n}`,!1)||r.color,i=Pp(t,`palette.${n}Channel`);return"vars"in t&&i?`rgba(${i} / 0.4)`:sm(o,.4)},ny=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],oy=Rg(Eb,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Rp(r.underline)}`],"button"===r.component&&t.button]}})((e=>{let{theme:t,ownerState:r}=e;return xu({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&xu({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:ry({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.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"},[`&.${ey.focusVisible}`]:{outline:"auto"}})})),iy=y.forwardRef((function(e,t){const r=Ig({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=Su(r,ny),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=Nh(),[b,v]=y.useState(!1),x=wh(t,g),S=xu({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),C=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return jh({root:["root",`underline${Rp(o)}`,"button"===r&&"button",n&&"focusVisible"]},Qv,t)})(S);return Rl.jsx(oy,xu({color:o,className:kg(C.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(ty).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),ay=y.createContext({});function sy(e){return Nf("MuiList",e)}zf("MuiList",["root","padding","dense","subheader"]);const ly=["children","className","component","dense","disablePadding","subheader"],uy=Rg("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]}})((e=>{let{ownerState:t}=e;return xu({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),cy=y.forwardRef((function(e,t){const r=Ig({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Su(r,ly),c=y.useMemo((()=>({dense:a})),[a]),d=xu({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return jh({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},sy,t)})(d);return Rl.jsx(ay.Provider,{value:c,children:Rl.jsxs(uy,xu({as:i,className:kg(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function dy(e){return Nf("MuiListItemIcon",e)}const py=zf("MuiListItemIcon",["root","alignItemsFlexStart"]),fy=["className"],hy=Rg("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((e=>{let{theme:t,ownerState:r}=e;return xu({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})})),my=y.forwardRef((function(e,t){const r=Ig({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Su(r,fy),i=xu({},r,{alignItems:y.useContext(ay).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return jh({root:["root","flex-start"===t&&"alignItemsFlexStart"]},dy,r)})(i);return Rl.jsx(hy,xu({className:kg(a.root,n),ownerState:i,ref:t},o))})),gy=zf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),by=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function vy(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function yy(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function xy(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 Sy(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")&&xy(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Cy=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=Su(e,by),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});uh((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:r}=t;const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const t=`${zh(gh(e))}px`;p.current.style["rtl"===r?"paddingLeft":"paddingRight"]=t,p.current.style.width=`calc(100% + ${t})`}return p.current}})),[]);const h=wh(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Rl.jsx(cy,xu({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=gh(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Sy(t,n,l,s,vy);else if("ArrowUp"===r)e.preventDefault(),Sy(t,n,l,s,yy);else if("Home"===r)e.preventDefault(),Sy(t,null,l,s,vy);else if("End"===r)e.preventDefault(),Sy(t,null,l,s,yy);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&&xy(n,o);o.previousKeyMatched&&(l||Sy(t,n,!1,s,vy,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Ey(e){return Nf("MuiPopover",e)}zf("MuiPopover",["root","paper"]);const wy=["onEntering"],Ry=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ay=["slotProps"];function Py(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function ky(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Iy(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function My(e){return"function"==typeof e?e():e}const Ly=Rg(Tv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dy=Rg(Qg,{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}),Ty=y.forwardRef((function(e,t){var r,n,o;const i=Ig({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:C=Yv,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=Su(i.TransitionProps,wy),P=Su(i,Ry),k=null!=(r=null==x?void 0:x.paper)?r:b,I=y.useRef(),M=wh(I,k.ref),L=xu({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:k,transformOrigin:S,TransitionComponent:C,transitionDuration:E,TransitionProps:A}),D=(e=>{const{classes:t}=e;return jh({root:["root"],paper:["paper"]},Ey,t)})(L),T=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=My(s),t=(e&&1===e.nodeType?e:gh(I.current).body).getBoundingClientRect();return{top:t.top+Py(t,l.vertical),left:t.left+ky(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),_=y.useCallback((e=>({vertical:Py(e,S.vertical),horizontal:ky(e,S.horizontal)})),[S.horizontal,S.vertical]),O=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=_(t);if("none"===c)return{top:null,left:null,transformOrigin:Iy(r)};const n=T();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=bh(My(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Iy(r)}}),[s,c,T,_,m]),[q,N]=y.useState(g),z=y.useCallback((()=>{const e=I.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,N(!0)}),[O]);y.useEffect((()=>(R&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[s,R,z]);y.useEffect((()=>{g&&z()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),y.useEffect((()=>{if(!g)return;const e=mh((()=>{z()})),t=bh(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,z]);let j=E;"auto"!==E||C.muiSupportAuto||(j=void 0);const F=f||(s?gh(My(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:Ly,$=null!=(o=null==v?void 0:v.paper)?o:Dy,B=Wh({elementType:$,externalSlotProps:xu({},k,{style:q?k.style:xu({},k.style,{opacity:0})}),additionalProps:{elevation:h,ref:M},ownerState:L,className:kg(D.paper,null==k?void 0:k.className)}),W=Wh({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:L,className:kg(D.root,p)}),{slotProps:V}=W,G=Su(W,Ay);return Rl.jsx(H,xu({},G,!Fh(H)&&{slotProps:V,disableScrollLock:R},{children:Rl.jsx(C,xu({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),z()},onExited:()=>{N(!1)},timeout:j},A,{children:Rl.jsx($,xu({},B,{children:d}))}))}))}));function _y(e){return Nf("MuiMenu",e)}zf("MuiMenu",["root","paper","list"]);const Oy=["onEntering"],qy=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ny={vertical:"top",horizontal:"right"},zy={vertical:"top",horizontal:"left"},jy=Rg(Ty,{shouldForwardProp:e=>wg(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fy=Rg(Dy,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Hy=Rg(Cy,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$y=y.forwardRef((function(e,t){var r,n;const o=Ig({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Su(o.TransitionProps,Oy),S=Su(o,qy),C=(()=>{const e=y.useContext(Xh);return null!=e&&e})(),E=xu({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),w=(e=>{const{classes:t}=e;return jh({root:["root"],paper:["paper"],list:["list"]},_y,t)})(E),R=i&&!l&&d,A=y.useRef(null);let P=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const k=null!=(r=b.paper)?r:Fy,I=null!=(n=v.paper)?n:p,M=Wh({elementType:b.root,externalSlotProps:v.root,ownerState:E,className:[w.root,s]}),L=Wh({elementType:k,externalSlotProps:I,ownerState:E,className:w.paper});return Rl.jsx(jy,xu({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Ny:zy,slots:{paper:k,root:b.root},slotProps:{root:M,paper:L},open:d,ref:t,transitionDuration:h,TransitionProps:xu({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:E},S,{classes:f,children:Rl.jsx(Hy,xu({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===P||l),autoFocusItem:R,variant:g},u,{className:kg(w.list,u.className),children:a}))}))}));function By(e){return Nf("MuiMenuItem",e)}const Wy=zf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Vy=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Gy=Rg(bb,{shouldForwardProp:e=>wg(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]}})((e=>{let{theme:t,ownerState:r}=e;return xu({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wy.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:sm(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Wy.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:sm(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Wy.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:sm(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:sm(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Wy.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Wy.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Ov.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Ov.inset}`]:{marginLeft:52},[`& .${gy.root}`]:{marginTop:0,marginBottom:0},[`& .${gy.inset}`]:{paddingLeft:36},[`& .${py.root}`]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&xu({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${py.root} svg`]:{fontSize:"1.25rem"}}))})),Uy=y.forwardRef((function(e,t){const r=Ig({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=Su(r,Vy),f=y.useContext(ay),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=y.useRef(null);uh((()=>{n&&m.current&&m.current.focus()}),[n]);const g=xu({},r,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return xu({},a,jh({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},By,a))})(r),v=wh(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),Rl.jsx(ay.Provider,{value:h,children:Rl.jsx(Gy,xu({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:kg(b.focusVisible,l),className:kg(b.root,d)},p,{ownerState:g,classes:b}))})}));function Yy(e){return Nf("MuiNativeSelect",e)}const Ky=zf("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Xy=["className","disabled","error","IconComponent","inputRef","variant"],Jy=e=>{let{ownerState:t,theme:r}=e;return xu({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":xu({},r.vars?{backgroundColor:`rgba(${r.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Ky.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(r.vars||r).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},Zy=Rg("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wg,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Ky.multiple}`]:t.multiple}]}})(Jy),Qy=e=>{let{ownerState:t,theme:r}=e;return xu({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active,[`&.${Ky.disabled}`]:{color:(r.vars||r).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},ex=Rg("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Rp(r.variant)}`],r.open&&t.iconOpen]}})(Qy),tx=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Su(e,Xy),u=xu({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return jh({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Rp(r)}`,i&&"iconOpen",n&&"disabled"]},Yy,t)})(u);return Rl.jsxs(y.Fragment,{children:[Rl.jsx(Zy,xu({ownerState:u,className:kg(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:Rl.jsx(ex,{as:i,ownerState:u,className:c.icon})]})}));var rx;const nx=["children","classes","className","label","notched"],ox=Rg("fieldset",{shouldForwardProp:wg})({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%"}),ix=Rg("legend",{shouldForwardProp:wg})((e=>{let{ownerState:t,theme:r}=e;return xu({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&xu({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));const ax=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],sx=Rg(Hb,{shouldForwardProp:e=>wg(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:jb})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return xu({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Yb.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yb.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Yb.focused} .${Yb.notchedOutline}`]:{borderColor:(t.vars||t).palette[r.color].main,borderWidth:2},[`&.${Yb.error} .${Yb.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Yb.disabled} .${Yb.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&xu({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),lx=Rg((function(e){const{className:t,label:r,notched:n}=e,o=Su(e,nx),i=null!=r&&""!==r,a=xu({},e,{notched:n,withLabel:i});return Rl.jsx(ox,xu({"aria-hidden":!0,className:t,ownerState:a},o,{children:Rl.jsx(ix,{ownerState:a,children:i?Rl.jsx("span",{children:r}):rx||(rx=Rl.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}})),ux=Rg($b,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Fb})((e=>{let{theme:t,ownerState:r}=e;return xu({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),cx=y.forwardRef((function(e,t){var r,n,o,i,a;const s=Ig({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Su(s,ax),b=(e=>{const{classes:t}=e;return xu({},t,jh({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ub,t))})(s),v=Db(),x=Mb({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=xu({},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:m}),C=null!=(r=null!=(n=h.root)?n:l.Root)?r:sx,E=null!=(o=null!=(i=h.input)?i:l.Input)?o:ux;return Rl.jsx(Wb,xu({slots:{root:C,input:E},renderSuffix:e=>Rl.jsx(lx,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Rl.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:m},g,{classes:xu({},b,{notchedOutline:null})}))}));function dx(e){return Nf("MuiSelect",e)}cx.muiName="Input";const px=zf("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var fx;const hx=["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"],mx=Rg("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${px.select}`]:t.select},{[`&.${px.select}`]:t[r.variant]},{[`&.${px.error}`]:t.error},{[`&.${px.multiple}`]:t.multiple}]}})(Jy,{[`&.${px.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),gx=Rg("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Rp(r.variant)}`],r.open&&t.iconOpen]}})(Qy),bx=Rg("input",{shouldForwardProp:e=>Eg(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 vx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function yx(e){return null==e||"string"==typeof e&&!e.trim()}const xx=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:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:C,onClose:E,onFocus:w,onOpen:R,open:A,readOnly:P,renderValue:k,SelectDisplayProps:I={},tabIndex:M,value:L,variant:D="standard"}=e,T=Su(e,hx),[_,O]=Ch({controlled:L,default:c,name:"Select"}),[q,N]=Ch({controlled:A,default:u,name:"Select"}),z=y.useRef(null),j=y.useRef(null),[F,H]=y.useState(null),{current:$}=y.useRef(null!=A),[B,W]=y.useState(),V=wh(t,m),G=y.useCallback((e=>{j.current=e,e&&H(e)}),[]),U=null==F?void 0:F.parentNode;y.useImperativeHandle(V,(()=>({focus:()=>{j.current.focus()},node:z.current,value:_})),[_]),y.useEffect((()=>{u&&q&&F&&!$&&(W(a?null:U.clientWidth),j.current.focus())}),[F,a]),y.useEffect((()=>{i&&j.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=gh(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):E&&E(t),$||(W(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(_)?_.slice():[];const t=_.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),_!==r&&(O(r),C)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),C(o,e)}v||Y(!1,t)}},J=null!==F&&q;let Z,Q;delete T["aria-invalid"];const ee=[];let te=!1;(Ob({value:_})||p)&&(k?Z=k(_):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(_))throw new Error(bu(2));t=_.some((t=>vx(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=vx(_,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=B;!a&&$&&F&&(oe=U.clientWidth),ne=void 0!==M?M:d?null:0;const ie=I.id||(x?`mui-component-select-${x}`:void 0),ae=xu({},e,{variant:D,value:_,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return jh({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Rp(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},dx,t)})(ae),le=xu({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Sh();return Rl.jsxs(y.Fragment,{children:[Rl.jsx(mx,xu({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:_,name:x}}),S(e))},onFocus:w},I,{ownerState:ae,className:kg(I.className,se.select,l),id:ie,children:yx(Z)?fx||(fx=Rl.jsx("span",{className:"notranslate",children:""})):Z})),Rl.jsx(bx,xu({"aria-invalid":f,value:Array.isArray(_)?_.join(","):_,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),C&&C(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},T)),Rl.jsx(gx,{as:h,className:se.icon,ownerState:ae}),Rl.jsx($y,xu({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:xu({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:xu({},b.slotProps,{paper:xu({},le,{style:xu({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),Sx=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Cx=["root"],Ex={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wg(e)&&"variant"!==e,slot:"Root"},wx=Rg(Zv,Ex)(""),Rx=Rg(cx,Ex)(""),Ax=Rg(Bv,Ex)(""),Px=y.forwardRef((function(e,t){const r=Ig({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=Jb,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:C,SelectDisplayProps:E,variant:w="outlined"}=r,R=Su(r,Sx),A=b?tx:xx,P=Mb({props:r,muiFormControl:Db(),states:["variant","error"]}),k=P.variant||w,I=xu({},r,{variant:k,classes:i}),M=(e=>{const{classes:t}=e;return t})(I),L=Su(M,Cx),D=d||{standard:Rl.jsx(wx,{ownerState:I}),outlined:Rl.jsx(Rx,{label:f,ownerState:I}),filled:Rl.jsx(Ax,{ownerState:I})}[k],T=wh(t,Vh(D));return Rl.jsx(y.Fragment,{children:y.cloneElement(D,xu({inputComponent:A,inputProps:xu({children:o,error:P.error,IconComponent:u,variant:k,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:x,open:S,renderValue:C,SelectDisplayProps:xu({id:c},E)},p,{classes:p?gp(L,p.classes):L},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===k?{notched:!0}:{},{ref:T,className:kg(D.props.className,a,M.root)},!d&&{variant:k},R))})}));function kx(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rl.jsx(Ll,{...e,children:Rl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Rl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Rl.jsx("rect",{stroke:ol.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Px.muiName="Select";const Ix={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:ul,"& > 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 Mx=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:ol.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:ol.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Rl.jsx(kl,{"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 ${ol.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:ol.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${ol.MISC_FOCUS_BORDER}`,borderRadius:ul,backgroundColor:ol.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 ${ol.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:ol.WHITE,color:ol.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:ul},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ol.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:ol.GREYSCALE_0_15,backgroundColor:ol.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:ol.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ol.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:ol.GREEN_PALE},"&:active":{backgroundColor:ol.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ol.GREEN_PALE,boxShadow:`0 0 0 3px ${fh(ol.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:ol.BLUE_PALE},"&:active":{backgroundColor:ol.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ol.BLUE_PALE,boxShadow:`0 0 0 3px ${fh(ol.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:ul,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:ol.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ol.MISC_FOCUS_BORDER}`}},outlined:e=>{let{ownerState:t}=e;return{padding:"7px 16px",borderColor:ol.GREYSCALE_0_15,backgroundColor:ol.GREYSCALE_100_60,"&:active":{backgroundColor:ol.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:ol.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ol.MISC_FOCUS_BORDER}`},..."amethyst"===t.color&&{borderColor:ol.PURPLE,"&.Mui-focusVisible":{borderColor:ol.PURPLE,boxShadow:`0 0 0 3px ${fh(ol.PURPLE_PALE,.5)}`}}}},outlinedPrimary:{borderColor:ol.GREEN,"&.Mui-focusVisible":{borderColor:ol.GREEN,boxShadow:`0 0 0 3px ${fh(ol.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:ol.BLUE,"&.Mui-focusVisible":{borderColor:ol.BLUE,boxShadow:`0 0 0 3px ${fh(ol.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:ol.ORANGE,"&.Mui-focusVisible":{borderColor:ol.ORANGE,boxShadow:`0 0 0 3px ${fh(ol.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:ol.RED,"&.Mui-focusVisible":{borderColor:ol.RED,boxShadow:`0 0 0 3px ${fh(ol.RED_PALE,.5)}`}},contained:e=>{let{ownerState:t}=e;return{color:ol.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===t.color&&{"&:hover":{backgroundColor:ol.PURPLE_PALE},"&:active":{backgroundColor:ol.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:ol.PURPLE_PALE,boxShadow:`0 0 0 3px ${fh(ol.PURPLE_PALE,.5)}`}}}},containedPrimary:{"&:hover":{backgroundColor:ol.GREEN_PALE},"&:active":{backgroundColor:ol.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ol.GREEN_PALE,boxShadow:`0 0 0 3px ${fh(ol.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:ol.BLUE_PALE},"&:active":{backgroundColor:ol.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ol.BLUE_PALE,boxShadow:`0 0 0 3px ${fh(ol.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:ol.ORANGE_PALE},"&:active":{backgroundColor:ol.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:ol.ORANGE_PALE,boxShadow:`0 0 0 3px ${fh(ol.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:ol.RED_PALE},"&:active":{backgroundColor:ol.RED_DARK},"&.Mui-focusVisible":{borderColor:ol.RED_PALE,boxShadow:`0 0 0 3px ${fh(ol.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:ol.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:ol.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ul,boxShadow:`inset 0 0 0 2px ${ol.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Rl.jsx(Ml,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:il,borderRadius:ul,color:ol.TEXT_PRIMARY,backgroundColor:ol.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:ol.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${ol.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:ol.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:ol.GREYSCALE_0_05,color:ol.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:ol.GREEN,borderColor:ol.GREEN},"&.MuiChip-outlinedInfo":{color:ol.BLUE,borderColor:ol.BLUE},"&.MuiChip-outlinedWarning":{color:ol.ORANGE,borderColor:ol.ORANGE},"&.MuiChip-outlinedError":{color:ol.RED,borderColor:ol.RED}},outlined:{border:`solid 1px ${ol.GREYSCALE_0_15}`,backgroundColor:ol.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ul,boxShadow:"none",backgroundColor:ol.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:ol.GREEN,borderColor:ol.GREEN},outlinedSecondary:{color:ol.BLUE,borderColor:ol.BLUE},label:{fontFamily:hl.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Rl.jsx(Ml,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Rl.jsx(kl,{"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:ul},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ul,fontSize:al,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:ol.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${ol.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:ol.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:ol.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:ol.GREYSCALE_0_05}}},popupIndicator:{borderRadius:ul,border:`solid 1px ${ol.GREYSCALE_0_15}`,color:ol.GREYSCALE_0_60,marginRight:0,width:ll,height:ll},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${ol.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ul,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:ol.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:al}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:il,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:ol.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:ol.GREYSCALE_25,fontSize:il,fontFamily:hl.FONT_FAMILY,fontWeight:pl,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:ol.TEXT_PRIMARY},"&.Mui-error":{color:ol.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:ol.TEXT_SECONDARY,content:"'(optional)'",fontWeight:dl,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:ol.TEXT_SECONDARY,content:"'(required)'",fontWeight:dl,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:al,lineHeight:"16px",backgroundColor:ol.WHITE,borderRadius:ul,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ol.GREYSCALE_0_05}`,borderColor:ol.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ol.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${ol.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${ol.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ol.RED}`,boxShadow:`0px 0px 0px 1px ${ol.RED}, inset 0 2px 0 0 ${ol.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ol.GREYSCALE_0_10}`,borderColor:ol.GREYSCALE_0_10,backgroundColor:ol.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:ol.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:ol.GREYSCALE_0_15,borderRadius:ul,boxShadow:`inset 0 2px 0 0 ${ol.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Rl.jsx(kl,{...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:ol.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:ol.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:ol.GREYSCALE_0_03},"&:active":{backgroundColor:ol.GREYSCALE_0_10},"&:focus":{backgroundColor:ol.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${ol.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${ol.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:ol.GREYSCALE_0_30,"&:hover":{backgroundColor:ol.GREYSCALE_0_0,borderColor:ol.GREYSCALE_0_15},"& ~svg":{color:ol.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${ol.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ul}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:ol.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${ol.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:ol.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:al,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:il,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:il,fontWeight:pl,color:ol.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:pl}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${ol.GREYSCALE_0_15}, 0px 0px 0px 1px ${ol.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Rl.jsx(_l,{}),checkedIcon:Rl.jsx(Ol,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:ol.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${ol.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:ol.GREEN_PALE,boxShadow:`0 0 0 3px ${fh(ol.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:ol.BLUE_PALE,boxShadow:`0 0 0 3px ${fh(ol.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:ol.GREYSCALE_0_20}},"&.Mui-disabled":{fill:ol.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Rl.jsx(kx,{}),checkedIcon:Rl.jsx(Dl,{}),indeterminateIcon:Rl.jsx(Tl,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ul,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:ol.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:ol.GREYSCALE_0_55,color:ol.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:ol.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:ol.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:ol.GREYSCALE_0_55,"&:hover":{color:ol.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:ol.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:ol.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:al,color:ol.TEXT_PRIMARY,lineHeight:"16px",fontWeight:pl},secondary:{fontSize:il,color:ol.GREYSCALE_45,fontWeight:dl,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:al,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:al,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:ol.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:il,borderBottom:`solid 1px ${ol.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:al,color:ol.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:ol.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:ol.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:ol.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:ol.RED}}},"&.Mui-focusVisible":{backgroundColor:ol.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:ol.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:ol.GREEN,height:"24px","&.Mui-disabled":{color:ol.GREYSCALE_0_15}},rail:{backgroundColor:ol.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${ol.GREYSCALE_0_05}`,borderRadius:ul,boxShadow:`inset 0px 0px 0px 1px ${ol.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${ol.GREYSCALE_0_05}`,borderRadius:ul},thumb:{height:"16px",width:"16px",borderRadius:ul,backgroundColor:ol.WHITE,boxShadow:`0px 1px 2px 0px ${ol.GREYSCALE_0_15}, 0px 0px 0px 1px ${ol.GREYSCALE_0_05}`,"&:hover":{borderRadius:ul,boxShadow:`0 2px 4px 0 ${ol.GREYSCALE_0_30}, 0 0 0 1px ${ol.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${ol.GREYSCALE_0_15}, 0 0 0 1px ${ol.GREYSCALE_0_06}, 0 0 0 2px ${ol.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${ol.GREYSCALE_0_15}, 0 0 0 1px ${ol.GREYSCALE_0_06}, 0 0 0 2px ${ol.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:ol.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:ol.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:ol.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:ol.GREYSCALE_0_15},markLabel:{color:ol.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:ol.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:ol.WHITE,color:ol.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:ol.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:ol.GREEN_PALE,boxShadow:`0 0 0 3px ${fh(ol.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ol.BLUE_PALE,boxShadow:`0 0 0 3px ${fh(ol.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:ol.GREYSCALE_0_15,borderRadius:ul},thumb:{height:"16px",width:"16px",borderRadius:ul,backgroundColor:ol.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:al,fontWeight:pl,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${ol.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${ol.MISC_FOCUS_BORDER}`,backgroundColor:ol.GREYSCALE_0_03,borderRadius:ul},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:ol.GREYSCALE_25,"&.Mui-selected":{color:ol.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:al,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:ul,"&:hover":{backgroundColor:ol.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 ${ol.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${ol.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:ul,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:ol.GREYSCALE_0_05},"&:hover":{backgroundColor:ol.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${ol.GREYSCALE_85}`,borderRight:`1px solid ${ol.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:pl,backgroundColor:ol.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:ol.GREYSCALE_98,borderBottom:`1px solid ${ol.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${ol.GREYSCALE_85}`,borderTop:`1px solid ${ol.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:ol.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:ol.GREYSCALE_0_05,"&:hover":{backgroundColor:ol.GREYSCALE_0_03}},"&&:hover":{backgroundColor:ol.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:e=>{let{className:t}=e;return Rl.jsx(ql,{className:t})}},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 ${ol.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:al,borderRadius:ul,padding:"7px 16px",border:`1px solid ${ol.GREYSCALE_0_15}`,backgroundColor:ol.GREYSCALE_100_60,color:ol.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:ol.GREYSCALE_0_10,border:`1px solid ${ol.GREYSCALE_0_30}`},"&:hover":{backgroundColor:ol.GREYSCALE_0_03,border:`1px solid ${ol.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:ol.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${ol.MISC_FOCUS_BORDER}`,border:`1px solid ${ol.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:ol.GREYSCALE_25,backgroundColor:ol.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:ol.GREYSCALE_0_10,border:`1px solid ${ol.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:il,height:24,width:24,padding:7},sizeLarge:{fontSize:sl,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:al,borderRadius:ul}}},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:ol.GREYSCALE_20},tooltip:{backgroundColor:ol.GREYSCALE_20,fontSize:il,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Ix}:{}}))(t);const Lx=e=>({mode:"light",primary:{ultraLight:ol.GREEN_ULTRA_LIGHT,light:ol.GREEN_PALE,main:ol.GREEN,dark:ol.GREEN_DARK,extraDark:ol.GREEN_EXTRA_DARK,contrastText:ol.WHITE},secondary:{ultraLight:ol.BLUE_ULTRA_LIGHT,light:ol.BLUE_PALE,main:ol.BLUE,dark:ol.BLUE_DARK,extraDark:ol.BLUE_EXTRA_DARK,contrastText:ol.WHITE},error:{ultraLight:ol.RED_ULTRA_LIGHT,light:ol.RED_PALE,main:ol.RED,dark:ol.RED_DARK,extraDark:ol.RED_EXTRA_DARK,contrastText:ol.WHITE},warning:{ultraLight:ol.ORANGE_ULTRA_LIGHT,light:ol.ORANGE_PALE,main:ol.ORANGE,dark:ol.ORANGE_DARK,extraDark:ol.ORANGE_EXTRA_DARK,contrastText:ol.WHITE},success:{ultraLight:ol.GREEN_ULTRA_LIGHT,light:ol.GREEN_PALE,main:ol.GREEN,dark:ol.GREEN_DARK,extraDark:ol.GREEN_EXTRA_DARK,contrastText:ol.WHITE},info:{ultraLight:ol.BLUE_ULTRA_LIGHT,light:ol.BLUE_PALE,main:ol.BLUE,dark:ol.BLUE_DARK,extraDark:ol.BLUE_EXTRA_DARK,contrastText:ol.WHITE},text:{primary:ol.TEXT_PRIMARY,secondary:ol.TEXT_SECONDARY,disabled:ol.GREYSCALE_0_30},action:{hover:ol.GREYSCALE_0_03,hoverOpacity:.03,selected:ol.GREYSCALE_0_05,selectedOpacity:.05,focus:ol.MISC_FOCUS_BORDER},amethyst:{ultraLight:ol.WHITE,main:ol.PURPLE,light:ol.PURPLE_PALE,dark:ol.PURPLE_DARK,extraDark:ol.GREYSCALE_0_0,contrastText:ol.WHITE},background:{paper:ol.WHITE,default:ol.GREYSCALE_95},divider:ol.GREYSCALE_0_15}),Dx={...nl},Tx=function(){return function(e){return{components:Mx(0,arguments.length>1&&void 0!==arguments[1]&&arguments[1]),palette:Lx(),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:al,fontWeightLight:cl,fontWeightRegular:dl,fontWeightMedium:pl,fontWeightBold:fl,htmlFontSize:al,fontFamily:hl.FONT_FAMILY,button:{fontWeight:pl,fontSize:al,textTransform:"none"},body1:{fontSize:sl,lineHeight:"24px"},body2:{fontSize:al,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ll,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:sl,fontWeight:pl,lineHeight:"16px"},h6:{fontSize:al,fontWeight:pl,lineHeight:"16px"},caption:{color:ol.TEXT_SECONDARY},subtitle1:{fontSize:al,color:ol.TEXT_SECONDARY},subtitle2:{fontSize:il,color:ol.TEXT_SECONDARY}},shape:{borderRadius:ul}}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light",arguments.length>1&&void 0!==arguments[1]&&arguments[1])}().palette,_x={TEXT:Tx.text.primary,DISABLED:Tx.text.disabled,HOVER:Tx.action.hover,WHITE:Dx.GREYSCALE_100,BORDER_LIGHT:Dx.GREYSCALE_90,BORDER_MEDIUM:Dx.GREYSCALE_85,BORDER_HEAVY:Dx.GREYSCALE_50,DARK_MODE_TEXT:Dx.GREYSCALE_95,DARK_MODE_BORDER:Dx.GREYSCALE_95,DARK_MODE_DISABLED:Dx.GREYSCALE_70,DARK_MODE_BACKGROUND:Dx.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Dx.GREYSCALE_95,SELECTED:Tx.primary.main,LINK:Tx.info.main,BACKGROUND_EMPTY_STATE:Dx.GREYSCALE_98},Ox=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_x.TEXT,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_x.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()},qx=e=>{const t=e.getStyle("","","dataColors.selected")||_x.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,_x.TEXT);return{background:t,color:r}},Nx=(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()},zx=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},jx=e=>{const t=ee(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Fx=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},Hx=e=>{e.stopPropagation(),e.preventDefault()},$x=e=>!!e&&0===ee(e).a,Bx="#grid",Wx=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_x.WHITE;return e&&!$x(e)?e:$x(t)?r&&!$x(r)?r:n:t},Vx=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},Gx=(e,t,r,n,o)=>{const i=Vx(".qv-object .qv-inner-object",r),a=Vx(".qv-panel-sheet",r),s=Vx(Bx,r)??a,l=(e=>{const t=e.components?.find((e=>"general"===e.key)),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return jx(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ee(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=u||i||c,p=$x(d),f=!$x(h=p?s:d)&&Ox(h,_x.TEXT,_x.DARK_MODE_TEXT)===K(_x.DARK_MODE_TEXT);var h;return{color:d,headerColor:Wx(l,d,s),isDark:f}},Ux=(t,r,a,s)=>{const l=i(),u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{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)),()=>{r?.disconnect()}}),[e,t]),r}(r.closest(Bx),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((e=>{let{oldValue:t}=e;return t?.includes("background")})).map((e=>{let{oldValue:t}=e;return t})).join(",");return e((()=>({...l,background:Gx(t,l,r,a,s)})),[l.name(),r,a,s,t,u])};function Yx(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 Kx=3;function Xx(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 Jx(e,t){let{fontSize:r="12px",fontFamily:n="Source Sans Pro, Arial, sans-serif",fontStyle:o="normal",fontWeight:i="normal"}=e;const{maxNbrLinesOfText:a=Kx}=t??{},{estimateWidth:s,measureText:l,estimateLineCount:u}=E((()=>{const e=document.createElement("canvas").getContext("2d");e.font=`${o} ${i} ${r} ${n}`;const t=at(e.measureText.bind(e)),s=e=>+t(e).width.toFixed(2),l=at((e=>{let{text:t,maxWidth:r,isNumeric:n=!1}=e;if(n)return 1;let o=0,i=t;do{o+=1,i=Xx(i,r,s)}while(null!==i&&o<a);return o}),(e=>{let{text:t,maxWidth:r,isNumeric:n}=e;return`${t}-${r}-${n?"true":"false"}`}));return{measureText:e=>t(e).width,estimateWidth:e=>t("N").width*e,estimateLineCount:l}}),[o,i,r,n,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var Zx,Qx=F;Zx=Qx.createRoot,Qx.hydrateRoot;const eS="Source Sans Pro, sans-serif";function tS(e,t){const[r,n]=C(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var rS={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 nS=e=>{let{translator:t}=e;return E((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(rS).forEach((t=>{e.add(rS[t])}))}}(t)}),[t]),t},oS="12px",iS="nebula-table-utils-head-menu-button",aS="nebula-table-utils-head-menu-wrapper",sS="nebula-table-utils-head-menu",lS="nebula-table-utils-head-menu-list-id",uS="sn-copy-cell";let cS=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const dS="nebula-table-utils-column-adjuster";let pS=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}({}),fS=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const hS={darker:.15,brighter:.3,opacity:.03},mS={darker:.3,brighter:.5,opacity:.05};let gS=function(e){return e.Cyclic="C",e}({});const bS=document.createElement("textarea");function vS(e){bS.value=e,document.body.appendChild(bS),bS.select(),bS.setSelectionRange(0,bS.value.length),document.execCommand("copy"),document.body.removeChild(bS)}bS.style.position="absolute",bS.style.left="-9999px",bS.setAttribute("readonly","");const yS=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{vS(t)})):vS(t))};function xS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var SS,CS,ES,wS="top",RS="top-right",AS="right",PS="bottom-right",kS="bottom",IS="bottom-left",MS="left",LS="top-left";xS(xS(xS(xS(xS(xS(xS(xS(xS(xS(SS={},"equal-equal",[wS,kS]),"equal-higher",[kS,PS]),"equal-lower",[wS,RS]),"equal-void",[wS,kS]),"higher-equal",[MS,IS,wS,RS]),"higher-higher-acute",[kS,IS,MS,RS]),"higher-higher-obtuse",[kS,wS]),"higher-lower-negative",[wS,RS,AS]),"higher-lower-positive",[kS,IS,MS]),"higher-void",[wS]),xS(xS(xS(xS(xS(xS(xS(xS(xS(xS(SS,"lower-equal",[wS]),"lower-higher-negative",[wS,LS]),"lower-higher-positive",[PS]),"lower-lower-acute",[wS,LS,MS,RS,AS]),"lower-lower-obtuse",[wS,kS]),"lower-void",[wS]),"void-equal",[wS]),"void-higher",[wS,kS]),"void-lower",[wS,kS,MS]),"void-void",[wS]),xS(SS,"unclassified",[wS,kS,AS,MS,RS,PS,IS,LS]);var DS=function(){if(ES)return CS;ES=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 CS=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},CS}();function TS(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function _S(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function OS(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(DS);var qS=1/.7,NS="\\s*([+-]?\\d+)\\s*",zS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",FS=/^#([0-9a-f]{3,8})$/,HS=new RegExp(`^rgb\\(${NS},${NS},${NS}\\)$`),$S=new RegExp(`^rgb\\(${jS},${jS},${jS}\\)$`),BS=new RegExp(`^rgba\\(${NS},${NS},${NS},${zS}\\)$`),WS=new RegExp(`^rgba\\(${jS},${jS},${jS},${zS}\\)$`),VS=new RegExp(`^hsl\\(${zS},${jS},${jS}\\)$`),GS=new RegExp(`^hsla\\(${zS},${jS},${jS},${zS}\\)$`),US={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 YS(){return this.rgb().formatHex()}function KS(){return this.rgb().formatRgb()}function XS(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=FS.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?JS(t):3===r?new tC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ZS(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ZS(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=HS.exec(e))?new tC(t[1],t[2],t[3],1):(t=$S.exec(e))?new tC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=BS.exec(e))?ZS(t[1],t[2],t[3],t[4]):(t=WS.exec(e))?ZS(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=VS.exec(e))?sC(t[1],t[2]/100,t[3]/100,1):(t=GS.exec(e))?sC(t[1],t[2]/100,t[3]/100,t[4]):US.hasOwnProperty(e)?JS(US[e]):"transparent"===e?new tC(NaN,NaN,NaN,0):null}function JS(e){return new tC(e>>16&255,e>>8&255,255&e,1)}function ZS(e,t,r,n){return n<=0&&(e=t=r=NaN),new tC(e,t,r,n)}function QS(e){return e instanceof OS||(e=XS(e)),e?new tC((e=e.rgb()).r,e.g,e.b,e.opacity):new tC}function eC(e,t,r,n){return 1===arguments.length?QS(e):new tC(e,t,r,null==n?1:n)}function tC(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function rC(){return`#${aC(this.r)}${aC(this.g)}${aC(this.b)}`}function nC(){const e=oC(this.opacity);return`${1===e?"rgb(":"rgba("}${iC(this.r)}, ${iC(this.g)}, ${iC(this.b)}${1===e?")":`, ${e})`}`}function oC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function iC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function aC(e){return((e=iC(e))<16?"0":"")+e.toString(16)}function sC(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new uC(e,t,r,n)}function lC(e){if(e instanceof uC)return new uC(e.h,e.s,e.l,e.opacity);if(e instanceof OS||(e=XS(e)),!e)return new uC;if(e instanceof uC)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 uC(a,s,l,e.opacity)}function uC(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function cC(e){return(e=(e||0)%360)<0?e+360:e}function dC(e){return Math.max(0,Math.min(1,e||0))}function pC(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}TS(OS,XS,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:YS,formatHex:YS,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lC(this).formatHsl()},formatRgb:KS,toString:KS}),TS(tC,eC,_S(OS,{brighter(e){return e=null==e?qS:Math.pow(qS,e),new tC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new tC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tC(iC(this.r),iC(this.g),iC(this.b),oC(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:rC,formatHex:rC,formatHex8:function(){return`#${aC(this.r)}${aC(this.g)}${aC(this.b)}${aC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:nC,toString:nC})),TS(uC,(function(e,t,r,n){return 1===arguments.length?lC(e):new uC(e,t,r,null==n?1:n)}),_S(OS,{brighter(e){return e=null==e?qS:Math.pow(qS,e),new uC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new uC(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 tC(pC(e>=240?e-240:e+120,o,n),pC(e,o,n),pC(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new uC(cC(this.h),dC(this.s),dC(this.l),oC(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=oC(this.opacity);return`${1===e?"hsl(":"hsla("}${cC(this.h)}, ${100*dC(this.s)}%, ${100*dC(this.l)}%${1===e?")":`, ${e})`}`}}));const fC=Math.PI/180,hC=180/Math.PI,mC=4/29,gC=6/29,bC=3*gC*gC;function vC(e){if(e instanceof yC)return new yC(e.l,e.a,e.b,e.opacity);if(e instanceof wC)return RC(e);e instanceof tC||(e=QS(e));var t,r,n=EC(e.r),o=EC(e.g),i=EC(e.b),a=xC((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=xC((.4360747*n+.3850649*o+.1430804*i)/.96422),r=xC((.0139322*n+.0971045*o+.7141733*i)/.82521)),new yC(116*a-16,500*(t-a),200*(a-r),e.opacity)}function yC(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function xC(e){return e>.008856451679035631?Math.pow(e,1/3):e/bC+mC}function SC(e){return e>gC?e*e*e:bC*(e-mC)}function CC(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function EC(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function wC(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function RC(e){if(isNaN(e.h))return new yC(e.l,0,0,e.opacity);var t=e.h*fC;return new yC(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}TS(yC,(function(e,t,r,n){return 1===arguments.length?vC(e):new yC(e,t,r,null==n?1:n)}),_S(OS,{brighter(e){return new yC(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new yC(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 tC(CC(3.1338561*(t=.96422*SC(t))-1.6168667*(e=1*SC(e))-.4906146*(r=.82521*SC(r))),CC(-.9787684*t+1.9161415*e+.033454*r),CC(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),TS(wC,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof wC)return new wC(e.h,e.c,e.l,e.opacity);if(e instanceof yC||(e=vC(e)),0===e.a&&0===e.b)return new wC(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*hC;return new wC(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new wC(e,t,r,null==n?1:n)}),_S(OS,{brighter(e){return new wC(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new wC(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return RC(this).rgb()}}));var AC=e=>()=>e;function PC(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):AC(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?PC: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):AC(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=eC(e)).r,(t=eC(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=PC(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 kC="center",IC="bottom";[{key:"NoDataExist",alignment:kC,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:kC,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:kC,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:kC},{key:"DataRangeIncludingZero",alignment:IC},{key:"LimitedData",alignment:IC},{key:"NegativeOrZeroValues",alignment:IC}].reduce((function(e,t){return e[t.key]=t,e}),{});var MC,LC=["__proto__","constructor"];function DC(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!LC.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 TC(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 _C(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=qC)):void 0===t&&(t=OC);for(var r,n,o,i,a,s=new jC(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 jC(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(zC)}function OC(e){return e.children}function qC(e){return Array.isArray(e)?e[1]:null}function NC(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function zC(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function jC(e){this.data=e,this.depth=this.height=0,this.parent=null}jC.prototype=_C.prototype={constructor:jC,count:function(){return this.eachAfter(TC)},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 _C(this).eachBefore(NC)},[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)}},MC=function(e){
|
|
102
|
+
`),ib.rippleVisible,pb,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),ib.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),ib.child,ib.childLeaving,fb,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),ib.childPulsate,hb,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),bb=y.forwardRef((function(e,t){const r=_g({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=ku(r,ab),[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=Oh(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,Dl.jsx(gb,{classes:{ripple:Tg(o.ripple,ib.ripple),rippleVisible:Tg(o.rippleVisible,ib.rippleVisible),ripplePulsate:Tg(o.ripplePulsate,ib.ripplePulsate),child:Tg(o.child,ib.child),childLeaving:Tg(o.childLeaving,ib.childLeaving),childPulsate:Tg(o.childPulsate,ib.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m,p]),b=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(mb,Pu({className:Tg(ib.root,o.root,i),ref:h},a,{children:Dl.jsx(Zg,{component:null,exit:!0,children:s})}))}));function vb(e){return Wf("MuiButtonBase",e)}const yb=Vf("MuiButtonBase",["root","disabled","focusVisible"]),xb=["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"],Sb=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"},[`&.${yb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Cb=y.forwardRef((function(e,t){const r=_g({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:C,onMouseLeave:E,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:M,type:L}=r,D=ku(r,xb),T=y.useRef(null),_=y.useRef(null),O=Lh(_,M),{isFocusVisibleRef:q,onFocus:N,onBlur:z,ref:j}=Wh(),[F,H]=y.useState(!1);l&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),T.current.focus()}})),[]);const[$,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!l;function V(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;return Mh((n=>{t&&t(n);return!r&&_.current&&_.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&$&&_.current.pulsate()}),[u,d,F,$]);const G=V("start",C),U=V("stop",m),Y=V("stop",g),K=V("stop",w),X=V("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=V("start",P),Z=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{z(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=Mh((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=Mh((e=>{d&&!ne.current&&F&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.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(),h&&h(e))})),ie=Mh((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(D.href||D.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===L?"button":L,se.disabled=l):(D.href||D.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Lh(t,j,T),ue=Pu({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Gh({root:["root",t&&"disabled",r&&"focusVisible"]},vb,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Dl.jsxs(Sb,Pu({as:ae,className:Tg(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:k,type:L},se,D,{children:[i,W?Dl.jsx(bb,Pu({ref:O,center:o},I)):null]}))}));function Eb(e){return Wf("MuiTypography",e)}Vf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const wb=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Rb=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${Dp(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:r}=e;return Pu({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&t.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})})),Ab={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"},kb=y.forwardRef((function(e,t){const r=_g({props:e,name:"MuiTypography"}),n=(e=>Pb[e]||e)(r.color),o=qf(Pu({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Ab}=o,f=ku(o,wb),h=Pu({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Ab[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Gh({root:["root",i,"inherit"!==e.align&&`align${Dp(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Eb,a)})(h);return Dl.jsx(Rb,Pu({as:m,ref:t,ownerState:h,className:Tg(g.root,a)},f))}));const Ib=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=Lh(y.isValidElement(r)?Zh(r):null,t);if(gh((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),gh((()=>{if(i&&!o)return Rh(t,i),()=>{Rh(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})})),Mb=["onChange","maxRows","minRows","style","value"];function Lb(e){return parseInt(e,10)||0}const Db={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Tb(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const _b=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=ku(e,Mb),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=Lh(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=wh(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=Lb(i.paddingBottom)+Lb(i.paddingTop),l=Lb(i.borderBottomWidth)+Lb(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),h=Mh((()=>{const e=u.current,t=f();if(!e||!t||Tb(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),m=y.useCallback((()=>{const e=u.current,t=f();if(!e||!t||Tb(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);gh((()=>{const e=Ch(m),t=null==u?void 0:u.current;if(!t)return;const r=wh(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[f,m,h]),gh((()=>{m()}));return Dl.jsxs(y.Fragment,{children:[Dl.jsx("textarea",Pu({value:a,onChange:e=>{l||m(),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:Pu({},Db,i,{paddingTop:0,paddingBottom:0})})]})}));function Ob(e){let{props:t,states:r,muiFormControl:n}=e;return r.reduce(((e,r)=>(e[r]=t[r],n&&void 0===t[r]&&(e[r]=n[r]),e)),{})}const qb=y.createContext(void 0);function Nb(){return y.useContext(qb)}function zb(e){return Dl.jsx(_f,Pu({},e,{defaultTheme:Jm,themeId:Au}))}function jb(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Fb(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(jb(e.value)&&""!==e.value||t&&jb(e.defaultValue)&&""!==e.defaultValue)}function Hb(e){return Wf("MuiInputBase",e)}const $b=Vf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Bb=["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"],Wb=(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${Dp(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Vb=(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]},Gb=Mg("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Wb})((e=>{let{theme:t,ownerState:r}=e;return Pu({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${$b.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},r.multiline&&Pu({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),Ub=Mg("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Vb})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode,o=Pu({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),i={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Pu({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":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${$b.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${$b.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),Yb=Dl.jsx(zb,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Kb=y.forwardRef((function(e,t){var r;const n=_g({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:C=!1,name:E,onBlur:w,onChange:R,onClick:A,onFocus:P,onKeyDown:k,onKeyUp:I,placeholder:M,readOnly:L,renderSuffix:D,rows:T,slotProps:_={},slots:O={},startAdornment:q,type:N="text",value:z}=n,j=ku(n,Bb),F=null!=b.value?b.value:z,{current:H}=y.useRef(null!=F),$=y.useRef(),B=y.useCallback((e=>{}),[]),W=Lh($,v,b.ref,B),[V,G]=y.useState(!1),U=Nb(),Y=Ob({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:V,y.useEffect((()=>{!U&&d&&V&&(G(!1),w&&w())}),[U,d,V,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{Fb(e)?K&&K():X&&X()}),[K,X]);gh((()=>{H&&J({value:F})}),[F,J,H]);y.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;C&&"input"===Z&&(Q=Pu(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:x,minRows:S},Q),Z=_b);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=Pu({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:C,size:Y.size,startAdornment:q,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:h}=e;return Gh({root:["root",`color${Dp(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Dp(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Hb,t)})(ee),re=O.root||l.Root||Gb,ne=_.root||u.root||{},oe=O.input||l.Input||Ub;return Q=Pu({},Q,null!=(r=_.input)?r:u.input),Dl.jsxs(y.Fragment,{children:[!p&&Yb,Dl.jsxs(re,Pu({},ne,!Uh(re)&&{ownerState:Pu({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),A&&A(e)}},j,{className:Tg(te.root,ne.className,s,L&&"MuiInputBase-readOnly"),children:[q,Dl.jsx(qb.Provider,{value:null,children:Dl.jsx(oe,Pu({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:M,readOnly:L,required:Y.required,rows:T,value:F,onKeyDown:k,onKeyUp:I,type:N},Q,!Uh(oe)&&{as:Z,ownerState:Pu({},ee,Q.ownerState)},{ref:W,className:Tg(te.input,Q.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:function(e){if(!H){const t=e.target||$.current;if(null==t)throw new Error(wu(1));J({value:t.value})}for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];b.onChange&&b.onChange(e,...r),R&&R(e,...r)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,D?D(Pu({},Y,{startAdornment:q})):null]}))]})}));function Xb(e){return Wf("MuiInput",e)}const Jb=Pu({},$b,Vf("MuiInput",["root","underline","input"]));function Zb(e){return Wf("MuiOutlinedInput",e)}const Qb=Pu({},$b,Vf("MuiOutlinedInput",["root","notchedOutline","input"]));function ev(e){return Wf("MuiFilledInput",e)}const tv=Pu({},$b,Vf("MuiFilledInput",["root","underline","input"]));var rv=function(e,t){function r(r,n){return Dl.jsx(zg,Pu({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=zg.muiName,y.memo(y.forwardRef(r))}(Dl.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const nv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ov={entering:{opacity:1},entered:{opacity:1}},iv=y.forwardRef((function(e,t){const r=Zm(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=Gg}=e,v=ku(e,nv),x=y.useRef(null),S=Lh(x,Zh(a),t),C=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},E=C(d),w=C(((e,t)=>{Qg(e);const n=eb({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=C(c),A=C(h),P=C((e=>{const t=eb({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),k=C(f);return Dl.jsx(b,Pu({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:E,onExit:P,onExited:k,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Pu({style:Pu({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},ov[e],m,a.props.style),ref:S},t))}))}));function av(e){return Wf("MuiBackdrop",e)}Vf("MuiBackdrop",["root","invisible"]);const sv=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],lv=Mg("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return Pu({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"},t.invisible&&{backgroundColor:"transparent"})})),uv=y.forwardRef((function(e,t){var r,n,o;const i=_g({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=iv,transitionDuration:g}=i,b=ku(i,sv),v=Pu({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Gh({root:["root",r&&"invisible"]},av,t)})(v),x=null!=(r=f.root)?r:c.root;return Dl.jsx(m,Pu({in:p,timeout:g},b,{children:Dl.jsx(lv,Pu({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:Tg(y.root,s,null==x?void 0:x.className),ownerState:Pu({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),cv=Vf("MuiBox",["root"]),dv=Xm(),pv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=bp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Af);return y.forwardRef((function(e,a){const s=Tf(r),l=qf(e),{className:u,component:c="div"}=l,d=bo(l,$f);return Dl.jsx(i,so({as:c,ref:a,className:Hf(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Au,defaultTheme:dv,defaultClassName:cv.root,generateClassName:jf.generate});function fv(e){return Wf("MuiButton",e)}const hv=Vf("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"]),mv=y.createContext({}),gv=y.createContext(void 0),bv=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],vv=e=>Pu({},"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}}),yv=Mg(Cb,{shouldForwardProp:e=>Ig(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Dp(r.color)}`],t[`size${Dp(r.size)}`],t[`${r.variant}Size${Dp(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:r}=e;var n,o;const i="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],a="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return Pu({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":Pu({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:hm(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===r.variant&&"inherit"!==r.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:hm(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===r.variant&&"inherit"!==r.color&&{border:`1px solid ${(t.vars||t).palette[r.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:hm(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===r.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===r.variant&&"inherit"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}}),"&:active":Pu({},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${hv.focusVisible}`]:Pu({},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${hv.disabled}`]:Pu({color:(t.vars||t).palette.action.disabled},"outlined"===r.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===r.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===r.variant&&{padding:"6px 8px"},"text"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main},"outlined"===r.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[r.color].mainChannel} / 0.5)`:`1px solid ${hm(t.palette[r.color].main,.5)}`},"contained"===r.variant&&{color:t.vars?t.vars.palette.text.primary:null==(n=(o=t.palette).getContrastText)?void 0:n.call(o,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:i,boxShadow:(t.vars||t).shadows[2]},"contained"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main},"inherit"===r.color&&{color:"inherit",borderColor:"currentColor"},"small"===r.size&&"text"===r.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"text"===r.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===r.size&&"outlined"===r.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"outlined"===r.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===r.size&&"contained"===r.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"contained"===r.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},r.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${hv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hv.disabled}`]:{boxShadow:"none"}}})),xv=Mg("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Dp(r.size)}`]]}})((e=>{let{ownerState:t}=e;return Pu({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},vv(t))})),Sv=Mg("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Dp(r.size)}`]]}})((e=>{let{ownerState:t}=e;return Pu({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},vv(t))})),Cv=y.forwardRef((function(e,t){const r=y.useContext(mv),n=y.useContext(gv),o=_g({props:mh(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,x=ku(o,bv),S=Pu({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),C=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Pu({},a,Gh({root:["root",i,`${i}${Dp(t)}`,`size${Dp(o)}`,`${i}Size${Dp(o)}`,`color${Dp(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Dp(o)}`],endIcon:["icon","endIcon",`iconSize${Dp(o)}`]},fv,a))})(S),E=g&&Dl.jsx(xv,{className:C.startIcon,ownerState:S,children:g}),w=p&&Dl.jsx(Sv,{className:C.endIcon,ownerState:S,children:p}),R=n||"";return Dl.jsxs(yv,Pu({ownerState:S,className:Tg(r.className,C.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Tg(C.focusVisible,f),ref:t,type:b},x,{classes:C,children:[E,i,w]}))}));function Ev(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wv(e){return parseInt(wh(e).getComputedStyle(e).paddingRight,10)||0}function Rv(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&&Ev(e,o)}))}function Av(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=Eh(e);return t.body===e?wh(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Vh(Eh(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${wv(n)+e}px`;const t=Eh(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${wv(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Eh(n).body;else{const t=n.parentElement,r=wh(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((e=>{let{value:t,el:r,property:n}=e;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}const kv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Iv(e){const t=[],r=[];return Array.from(e.querySelectorAll(kv)).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 Mv(){return!0}function Lv(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Iv,isEnabled:a=Mv,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),h=y.useRef(null),m=Lh(Zh(t),h),g=y.useRef(null);y.useEffect((()=>{s&&h.current&&(f.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!h.current)return;const e=Eh(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),y.useEffect((()=>{if(!s||!h.current)return;const e=Eh(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Dl.jsxs(y.Fragment,{children:[Dl.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Dl.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Dv=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&&Ev(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);Rv(t,e.mount,e.modalRef,n,!0);const o=Av(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=Av(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Pv(n,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=this.modals.indexOf(e);if(-1===r)return r;const n=Av(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&&Ev(e.modalRef,t),Rv(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&&Ev(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Tv(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Dv,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=Lh(h,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=h.current,p.current.mount=f.current,p.current),C=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},E=Mh((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Eh(f.current).body;o.add(S(),e),h.current&&C()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Mh((e=>{f.current=e,e&&(c&&w()?C():h.current&&Ev(h.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?E():v&&i||A()}),[c,A,v,i,E]);const P=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")))},k=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=Yh(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Pu({},r,t);return Pu({role:"presentation"},n,{onKeyDown:P(n),ref:m})},getBackdropProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Pu({"aria-hidden":!0},e,{onClick:k(e),open:c})},getTransitionProps:()=>({onEnter:Sh((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Sh((()=>{b(!0),s&&s(),i&&A()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}function _v(e){return Wf("MuiModal",e)}Vf("MuiModal",["root","hidden","backdrop"]);const Ov=["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"],qv=Mg("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:r}=e;return Pu({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),Nv=Mg(uv,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),zv=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=_g({name:"MuiModal",props:e}),{BackdropComponent:u=Nv,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:k,slotProps:I,slots:M}=l,L=ku(l,Ov),D=Pu({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:C,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:T,getBackdropProps:_,getTransitionProps:O,portalRef:q,isTopModal:N,exited:z,hasTransition:j}=Tv(Pu({},D,{rootRef:t})),F=Pu({},D,{exited:z}),H=(e=>{const{open:t,exited:r,classes:n}=e;return Gh({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},_v,n)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const B=null!=(r=null!=(n=null==M?void 0:M.root)?n:g.Root)?r:qv,W=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==I?void 0:I.root)?a:b.root,G=null!=(s=null==I?void 0:I.backdrop)?s:b.backdrop,U=Jh({elementType:B,externalSlotProps:V,externalForwardedProps:L,getSlotProps:T,additionalProps:{ref:t,as:m},ownerState:F,className:Tg(d,null==V?void 0:V.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=Jh({elementType:W,externalSlotProps:G,additionalProps:c,getSlotProps:e=>_(Pu({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Tg(null==G?void 0:G.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return A||k||j&&!z?Dl.jsx(Ib,{ref:q,container:h,disablePortal:C,children:Dl.jsxs(B,Pu({},U,{children:[!R&&u?Dl.jsx(W,Pu({},Y)):null,Dl.jsx(Lv,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:k,children:y.cloneElement(f,$)})]}))}):null}));function jv(e){return Wf("MuiDivider",e)}const Fv=Vf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Hv=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$v=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]}})((e=>{let{theme:t,ownerState:r}=e;return Pu({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:hm(t.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return Pu({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:r}=e;return Pu({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}})}),(e=>{let{theme:t,ownerState:r}=e;return Pu({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}})}),(e=>{let{ownerState:t}=e;return Pu({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),Bv=Mg("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:r}=e;return Pu({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},"vertical"===r.orientation&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})})),Wv=y.forwardRef((function(e,t){const r=_g({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=ku(r,Hv),h=Pu({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Gh({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"]},jv,n)})(h);return Dl.jsx($v,Pu({as:a,className:Tg(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Dl.jsx(Bv,{className:m.wrapper,ownerState:h,children:o}):null}))}));Wv.muiSkipListHighlight=!0;const Vv=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Gv=Mg(Gb,{shouldForwardProp:e=>Ig(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Wb(e,t),!r.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:r}=e;var n;const o="light"===t.palette.mode,i=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Pu({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a}},[`&.${tv.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a},[`&.${tv.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!r.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(t.vars||t).palette[r.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${tv.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${tv.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${tv.disabled}, .${tv.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${tv.disabled}:before`]:{borderBottomStyle:"dotted"}},r.startAdornment&&{paddingLeft:12},r.endAdornment&&{paddingRight:12},r.multiline&&Pu({padding:"25px 12px 8px"},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9}))})),Uv=Mg(Ub,{name:"MuiFilledInput",slot:"Input",overridesResolver:Vb})((e=>{let{theme:t,ownerState:r}=e;return Pu({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),Yv=y.forwardRef((function(e,t){var r,n,o,i;const a=_g({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=ku(a,Vv),g=Pu({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Pu({},t,Gh({root:["root",!r&&"underline"],input:["input"]},ev,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Ep(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Gv,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Uv;return Dl.jsx(Kb,Pu({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Yv.muiName="Input";const Kv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xv(e){return`scale(${e}, ${e**2})`}const Jv={entering:{opacity:1,transform:Xv(1)},entered:{opacity:1,transform:"none"}},Zv="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qv=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:h="auto",TransitionComponent:m=Gg}=e,g=ku(e,Kv),b=Oh(),v=y.useRef(),x=Zm(),S=y.useRef(null),C=Lh(S,Zh(o),t),E=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=E(u),R=E(((e,t)=>{Qg(e);const{duration:r,delay:n,easing:o}=eb({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(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:Zv?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),A=E(l),P=E(p),k=E((e=>{const{duration:t,delay:r,easing:n}=eb({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(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:Zv?o:.666*o,delay:Zv?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Xv(.75),c&&c(e)})),I=E(d);return Dl.jsx(m,Pu({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:k,onExited:I,onExiting:P,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,Pu({style:Pu({opacity:0,transform:Xv(.75),visibility:"exited"!==e||a?void 0:"hidden"},Jv[e],f,o.props.style),ref:C},t))}))}));Qv.muiSupportAuto=!0;const ey=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ty=Mg(Gb,{shouldForwardProp:e=>Ig(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Wb(e,t),!r.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:r}=e;let n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),Pu({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Jb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jb.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Jb.disabled}, .${Jb.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Jb.disabled}:before`]:{borderBottomStyle:"dotted"}})})),ry=Mg(Ub,{name:"MuiInput",slot:"Input",overridesResolver:Vb})({}),ny=y.forwardRef((function(e,t){var r,n,o,i;const a=_g({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=ku(a,ey),b=(e=>{const{classes:t,disableUnderline:r}=e;return Pu({},t,Gh({root:["root",!r&&"underline"],input:["input"]},Xb,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Ep(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:ty,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:ry;return Dl.jsx(Kb,Pu({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function oy(e){return Wf("MuiLink",e)}ny.muiName="Input";const iy=Vf("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ay={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},sy=e=>{let{theme:t,ownerState:r}=e;const n=(e=>ay[e]||e)(r.color),o=_p(t,`palette.${n}`,!1)||r.color,i=_p(t,`palette.${n}Channel`);return"vars"in t&&i?`rgba(${i} / 0.4)`:hm(o,.4)},ly=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],uy=Mg(kb,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Dp(r.underline)}`],"button"===r.component&&t.button]}})((e=>{let{theme:t,ownerState:r}=e;return Pu({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&Pu({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:sy({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.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"},[`&.${iy.focusVisible}`]:{outline:"auto"}})})),cy=y.forwardRef((function(e,t){const r=_g({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=ku(r,ly),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=Wh(),[b,v]=y.useState(!1),x=Lh(t,g),S=Pu({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),C=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Gh({root:["root",`underline${Dp(o)}`,"button"===r&&"button",n&&"focusVisible"]},oy,t)})(S);return Dl.jsx(uy,Pu({color:o,className:Tg(C.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(ay).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),dy=y.createContext({});function py(e){return Wf("MuiList",e)}Vf("MuiList",["root","padding","dense","subheader"]);const fy=["children","className","component","dense","disablePadding","subheader"],hy=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]}})((e=>{let{ownerState:t}=e;return Pu({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),my=y.forwardRef((function(e,t){const r=_g({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=ku(r,fy),c=y.useMemo((()=>({dense:a})),[a]),d=Pu({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Gh({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},py,t)})(d);return Dl.jsx(dy.Provider,{value:c,children:Dl.jsxs(hy,Pu({as:i,className:Tg(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function gy(e){return Wf("MuiListItemIcon",e)}const by=Vf("MuiListItemIcon",["root","alignItemsFlexStart"]),vy=["className"],yy=Mg("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((e=>{let{theme:t,ownerState:r}=e;return Pu({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})})),xy=y.forwardRef((function(e,t){const r=_g({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=ku(r,vy),i=Pu({},r,{alignItems:y.useContext(dy).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Gh({root:["root","flex-start"===t&&"alignItemsFlexStart"]},gy,r)})(i);return Dl.jsx(yy,Pu({className:Tg(a.root,n),ownerState:i,ref:t},o))})),Sy=Vf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Cy=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ey(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function wy(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Ry(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 Ay(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")&&Ry(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=ku(e,Cy),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gh((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:r}=t;const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const t=`${Vh(Eh(e))}px`;p.current.style["rtl"===r?"paddingLeft":"paddingRight"]=t,p.current.style.width=`calc(100% + ${t})`}return p.current}})),[]);const h=Lh(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Dl.jsx(my,Pu({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Eh(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Ay(t,n,l,s,Ey);else if("ArrowUp"===r)e.preventDefault(),Ay(t,n,l,s,wy);else if("Home"===r)e.preventDefault(),Ay(t,null,l,s,Ey);else if("End"===r)e.preventDefault(),Ay(t,null,l,s,wy);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&&Ry(n,o);o.previousKeyMatched&&(l||Ay(t,n,!1,s,Ey,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function ky(e){return Wf("MuiPopover",e)}Vf("MuiPopover",["root","paper"]);const Iy=["onEntering"],My=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ly=["slotProps"];function Dy(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ty(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function _y(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Oy(e){return"function"==typeof e?e():e}const qy=Mg(zv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ny=Mg(ob,{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}),zy=y.forwardRef((function(e,t){var r,n,o;const i=_g({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:C=Qv,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=ku(i.TransitionProps,Iy),P=ku(i,My),k=null!=(r=null==x?void 0:x.paper)?r:b,I=y.useRef(),M=Lh(I,k.ref),L=Pu({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:k,transformOrigin:S,TransitionComponent:C,transitionDuration:E,TransitionProps:A}),D=(e=>{const{classes:t}=e;return Gh({root:["root"],paper:["paper"]},ky,t)})(L),T=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=Oy(s),t=(e&&1===e.nodeType?e:Eh(I.current).body).getBoundingClientRect();return{top:t.top+Dy(t,l.vertical),left:t.left+Ty(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),_=y.useCallback((e=>({vertical:Dy(e,S.vertical),horizontal:Ty(e,S.horizontal)})),[S.horizontal,S.vertical]),O=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=_(t);if("none"===c)return{top:null,left:null,transformOrigin:_y(r)};const n=T();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=wh(Oy(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:_y(r)}}),[s,c,T,_,m]),[q,N]=y.useState(g),z=y.useCallback((()=>{const e=I.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,N(!0)}),[O]);y.useEffect((()=>(R&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[s,R,z]);y.useEffect((()=>{g&&z()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),y.useEffect((()=>{if(!g)return;const e=Ch((()=>{z()})),t=wh(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,z]);let j=E;"auto"!==E||C.muiSupportAuto||(j=void 0);const F=f||(s?Eh(Oy(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:qy,$=null!=(o=null==v?void 0:v.paper)?o:Ny,B=Jh({elementType:$,externalSlotProps:Pu({},k,{style:q?k.style:Pu({},k.style,{opacity:0})}),additionalProps:{elevation:h,ref:M},ownerState:L,className:Tg(D.paper,null==k?void 0:k.className)}),W=Jh({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:L,className:Tg(D.root,p)}),{slotProps:V}=W,G=ku(W,Ly);return Dl.jsx(H,Pu({},G,!Uh(H)&&{slotProps:V,disableScrollLock:R},{children:Dl.jsx(C,Pu({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),z()},onExited:()=>{N(!1)},timeout:j},A,{children:Dl.jsx($,Pu({},B,{children:d}))}))}))}));function jy(e){return Wf("MuiMenu",e)}Vf("MuiMenu",["root","paper","list"]);const Fy=["onEntering"],Hy=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],$y={vertical:"top",horizontal:"right"},By={vertical:"top",horizontal:"left"},Wy=Mg(zy,{shouldForwardProp:e=>Ig(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vy=Mg(Ny,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Gy=Mg(Py,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Uy=y.forwardRef((function(e,t){var r,n;const o=_g({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=ku(o.TransitionProps,Fy),S=ku(o,Hy),C=(()=>{const e=y.useContext(nm);return null!=e&&e})(),E=Pu({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),w=(e=>{const{classes:t}=e;return Gh({root:["root"],paper:["paper"],list:["list"]},jy,t)})(E),R=i&&!l&&d,A=y.useRef(null);let P=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const k=null!=(r=b.paper)?r:Vy,I=null!=(n=v.paper)?n:p,M=Jh({elementType:b.root,externalSlotProps:v.root,ownerState:E,className:[w.root,s]}),L=Jh({elementType:k,externalSlotProps:I,ownerState:E,className:w.paper});return Dl.jsx(Wy,Pu({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?$y:By,slots:{paper:k,root:b.root},slotProps:{root:M,paper:L},open:d,ref:t,transitionDuration:h,TransitionProps:Pu({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:E},S,{classes:f,children:Dl.jsx(Gy,Pu({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===P||l),autoFocusItem:R,variant:g},u,{className:Tg(w.list,u.className),children:a}))}))}));function Yy(e){return Wf("MuiMenuItem",e)}const Ky=Vf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Xy=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Jy=Mg(Cb,{shouldForwardProp:e=>Ig(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]}})((e=>{let{theme:t,ownerState:r}=e;return Pu({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ky.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:hm(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Ky.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:hm(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Ky.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:hm(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:hm(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Ky.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Ky.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Fv.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Fv.inset}`]:{marginLeft:52},[`& .${Sy.root}`]:{marginTop:0,marginBottom:0},[`& .${Sy.inset}`]:{paddingLeft:36},[`& .${by.root}`]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&Pu({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${by.root} svg`]:{fontSize:"1.25rem"}}))})),Zy=y.forwardRef((function(e,t){const r=_g({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=ku(r,Xy),f=y.useContext(dy),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=y.useRef(null);gh((()=>{n&&m.current&&m.current.focus()}),[n]);const g=Pu({},r,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Pu({},a,Gh({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Yy,a))})(r),v=Lh(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),Dl.jsx(dy.Provider,{value:h,children:Dl.jsx(Jy,Pu({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Tg(b.focusVisible,l),className:Tg(b.root,d)},p,{ownerState:g,classes:b}))})}));function Qy(e){return Wf("MuiNativeSelect",e)}const ex=Vf("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tx=["className","disabled","error","IconComponent","inputRef","variant"],rx=e=>{let{ownerState:t,theme:r}=e;return Pu({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Pu({},r.vars?{backgroundColor:`rgba(${r.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ex.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(r.vars||r).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},nx=Mg("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ig,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${ex.multiple}`]:t.multiple}]}})(rx),ox=e=>{let{ownerState:t,theme:r}=e;return Pu({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active,[`&.${ex.disabled}`]:{color:(r.vars||r).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},ix=Mg("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Dp(r.variant)}`],r.open&&t.iconOpen]}})(ox),ax=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=ku(e,tx),u=Pu({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Gh({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Dp(r)}`,i&&"iconOpen",n&&"disabled"]},Qy,t)})(u);return Dl.jsxs(y.Fragment,{children:[Dl.jsx(nx,Pu({ownerState:u,className:Tg(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:Dl.jsx(ix,{as:i,ownerState:u,className:c.icon})]})}));var sx;const lx=["children","classes","className","label","notched"],ux=Mg("fieldset",{shouldForwardProp:Ig})({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%"}),cx=Mg("legend",{shouldForwardProp:Ig})((e=>{let{ownerState:t,theme:r}=e;return Pu({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&Pu({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));const dx=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],px=Mg(Gb,{shouldForwardProp:e=>Ig(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wb})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Pu({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Qb.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Qb.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Qb.focused} .${Qb.notchedOutline}`]:{borderColor:(t.vars||t).palette[r.color].main,borderWidth:2},[`&.${Qb.error} .${Qb.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Qb.disabled} .${Qb.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&Pu({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),fx=Mg((function(e){const{className:t,label:r,notched:n}=e,o=ku(e,lx),i=null!=r&&""!==r,a=Pu({},e,{notched:n,withLabel:i});return Dl.jsx(ux,Pu({"aria-hidden":!0,className:t,ownerState:a},o,{children:Dl.jsx(cx,{ownerState:a,children:i?Dl.jsx("span",{children:r}):sx||(sx=Dl.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}})),hx=Mg(Ub,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Vb})((e=>{let{theme:t,ownerState:r}=e;return Pu({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),mx=y.forwardRef((function(e,t){var r,n,o,i,a;const s=_g({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=ku(s,dx),b=(e=>{const{classes:t}=e;return Pu({},t,Gh({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Zb,t))})(s),v=Nb(),x=Ob({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Pu({},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:m}),C=null!=(r=null!=(n=h.root)?n:l.Root)?r:px,E=null!=(o=null!=(i=h.input)?i:l.Input)?o:hx;return Dl.jsx(Kb,Pu({slots:{root:C,input:E},renderSuffix:e=>Dl.jsx(fx,{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:m},g,{classes:Pu({},b,{notchedOutline:null})}))}));function gx(e){return Wf("MuiSelect",e)}mx.muiName="Input";const bx=Vf("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vx;const yx=["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"],xx=Mg("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${bx.select}`]:t.select},{[`&.${bx.select}`]:t[r.variant]},{[`&.${bx.error}`]:t.error},{[`&.${bx.multiple}`]:t.multiple}]}})(rx,{[`&.${bx.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Sx=Mg("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Dp(r.variant)}`],r.open&&t.iconOpen]}})(ox),Cx=Mg("input",{shouldForwardProp:e=>kg(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 Ex(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function wx(e){return null==e||"string"==typeof e&&!e.trim()}const Rx=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:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:C,onClose:E,onFocus:w,onOpen:R,open:A,readOnly:P,renderValue:k,SelectDisplayProps:I={},tabIndex:M,value:L,variant:D="standard"}=e,T=ku(e,yx),[_,O]=Ih({controlled:L,default:c,name:"Select"}),[q,N]=Ih({controlled:A,default:u,name:"Select"}),z=y.useRef(null),j=y.useRef(null),[F,H]=y.useState(null),{current:$}=y.useRef(null!=A),[B,W]=y.useState(),V=Lh(t,m),G=y.useCallback((e=>{j.current=e,e&&H(e)}),[]),U=null==F?void 0:F.parentNode;y.useImperativeHandle(V,(()=>({focus:()=>{j.current.focus()},node:z.current,value:_})),[_]),y.useEffect((()=>{u&&q&&F&&!$&&(W(a?null:U.clientWidth),j.current.focus())}),[F,a]),y.useEffect((()=>{i&&j.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Eh(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):E&&E(t),$||(W(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(_)?_.slice():[];const t=_.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),_!==r&&(O(r),C)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),C(o,e)}v||Y(!1,t)}},J=null!==F&&q;let Z,Q;delete T["aria-invalid"];const ee=[];let te=!1;(Fb({value:_})||p)&&(k?Z=k(_):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(_))throw new Error(wu(2));t=_.some((t=>Ex(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Ex(_,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=B;!a&&$&&F&&(oe=U.clientWidth),ne=void 0!==M?M:d?null:0;const ie=I.id||(x?`mui-component-select-${x}`:void 0),ae=Pu({},e,{variant:D,value:_,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Gh({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Dp(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},gx,t)})(ae),le=Pu({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=kh();return Dl.jsxs(y.Fragment,{children:[Dl.jsx(xx,Pu({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:_,name:x}}),S(e))},onFocus:w},I,{ownerState:ae,className:Tg(I.className,se.select,l),id:ie,children:wx(Z)?vx||(vx=Dl.jsx("span",{className:"notranslate",children:""})):Z})),Dl.jsx(Cx,Pu({"aria-invalid":f,value:Array.isArray(_)?_.join(","):_,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),C&&C(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},T)),Dl.jsx(Sx,{as:h,className:se.icon,ownerState:ae}),Dl.jsx(Uy,Pu({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Pu({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Pu({},b.slotProps,{paper:Pu({},le,{style:Pu({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),Ax=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Px=["root"],kx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ig(e)&&"variant"!==e,slot:"Root"},Ix=Mg(ny,kx)(""),Mx=Mg(mx,kx)(""),Lx=Mg(Yv,kx)(""),Dx=y.forwardRef((function(e,t){const r=_g({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=rv,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:C,SelectDisplayProps:E,variant:w="outlined"}=r,R=ku(r,Ax),A=b?ax:Rx,P=Ob({props:r,muiFormControl:Nb(),states:["variant","error"]}),k=P.variant||w,I=Pu({},r,{variant:k,classes:i}),M=(e=>{const{classes:t}=e;return t})(I),L=ku(M,Px),D=d||{standard:Dl.jsx(Ix,{ownerState:I}),outlined:Dl.jsx(Mx,{label:f,ownerState:I}),filled:Dl.jsx(Lx,{ownerState:I})}[k],T=Lh(t,Zh(D));return Dl.jsx(y.Fragment,{children:y.cloneElement(D,Pu({inputComponent:A,inputProps:Pu({children:o,error:P.error,IconComponent:u,variant:k,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:x,open:S,renderValue:C,SelectDisplayProps:Pu({id:c},E)},p,{classes:p?Ep(L,p.classes):L},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===k?{notched:!0}:{},{ref:T,className:Tg(D.props.className,a,M.root)},!d&&{variant:k},R))})}));function Tx(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dl.jsx(zl,{...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:dl.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Dx.muiName="Select";const _x={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:gl,"& > 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 Ox=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:dl.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:dl.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Dl.jsx(Ol,{"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 ${dl.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:dl.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${dl.MISC_FOCUS_BORDER}`,borderRadius:gl,backgroundColor:dl.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 ${dl.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:dl.WHITE,color:dl.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:gl},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${dl.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:dl.GREYSCALE_0_15,backgroundColor:dl.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:dl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${dl.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:dl.GREEN_PALE},"&:active":{backgroundColor:dl.GREEN_DARK},"&.Mui-focusVisible":{borderColor:dl.GREEN_PALE,boxShadow:`0 0 0 3px ${xh(dl.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:dl.BLUE_PALE},"&:active":{backgroundColor:dl.BLUE_DARK},"&.Mui-focusVisible":{borderColor:dl.BLUE_PALE,boxShadow:`0 0 0 3px ${xh(dl.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:gl,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:dl.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${dl.MISC_FOCUS_BORDER}`}},outlined:e=>{let{ownerState:t}=e;return{padding:"7px 16px",borderColor:dl.GREYSCALE_0_15,backgroundColor:dl.GREYSCALE_100_60,"&:active":{backgroundColor:dl.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:dl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${dl.MISC_FOCUS_BORDER}`},..."amethyst"===t.color&&{borderColor:dl.PURPLE,"&.Mui-focusVisible":{borderColor:dl.PURPLE,boxShadow:`0 0 0 3px ${xh(dl.PURPLE_PALE,.5)}`}}}},outlinedPrimary:{borderColor:dl.GREEN,"&.Mui-focusVisible":{borderColor:dl.GREEN,boxShadow:`0 0 0 3px ${xh(dl.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:dl.BLUE,"&.Mui-focusVisible":{borderColor:dl.BLUE,boxShadow:`0 0 0 3px ${xh(dl.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:dl.ORANGE,"&.Mui-focusVisible":{borderColor:dl.ORANGE,boxShadow:`0 0 0 3px ${xh(dl.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:dl.RED,"&.Mui-focusVisible":{borderColor:dl.RED,boxShadow:`0 0 0 3px ${xh(dl.RED_PALE,.5)}`}},contained:e=>{let{ownerState:t}=e;return{color:dl.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===t.color&&{"&:hover":{backgroundColor:dl.PURPLE_PALE},"&:active":{backgroundColor:dl.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:dl.PURPLE_PALE,boxShadow:`0 0 0 3px ${xh(dl.PURPLE_PALE,.5)}`}}}},containedPrimary:{"&:hover":{backgroundColor:dl.GREEN_PALE},"&:active":{backgroundColor:dl.GREEN_DARK},"&.Mui-focusVisible":{borderColor:dl.GREEN_PALE,boxShadow:`0 0 0 3px ${xh(dl.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:dl.BLUE_PALE},"&:active":{backgroundColor:dl.BLUE_DARK},"&.Mui-focusVisible":{borderColor:dl.BLUE_PALE,boxShadow:`0 0 0 3px ${xh(dl.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:dl.ORANGE_PALE},"&:active":{backgroundColor:dl.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:dl.ORANGE_PALE,boxShadow:`0 0 0 3px ${xh(dl.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:dl.RED_PALE},"&:active":{backgroundColor:dl.RED_DARK},"&.Mui-focusVisible":{borderColor:dl.RED_PALE,boxShadow:`0 0 0 3px ${xh(dl.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:dl.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:dl.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:gl,boxShadow:`inset 0 0 0 2px ${dl.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Dl.jsx(Nl,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:pl,borderRadius:gl,color:dl.TEXT_PRIMARY,backgroundColor:dl.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:dl.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${dl.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:dl.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:dl.GREYSCALE_0_05,color:dl.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:dl.GREEN,borderColor:dl.GREEN},"&.MuiChip-outlinedInfo":{color:dl.BLUE,borderColor:dl.BLUE},"&.MuiChip-outlinedWarning":{color:dl.ORANGE,borderColor:dl.ORANGE},"&.MuiChip-outlinedError":{color:dl.RED,borderColor:dl.RED}},outlined:{border:`solid 1px ${dl.GREYSCALE_0_15}`,backgroundColor:dl.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:gl,boxShadow:"none",backgroundColor:dl.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:dl.GREEN,borderColor:dl.GREEN},outlinedSecondary:{color:dl.BLUE,borderColor:dl.BLUE},label:{fontFamily:Sl.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Dl.jsx(Nl,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Dl.jsx(Ol,{"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:gl},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:gl,fontSize:fl,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:dl.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${dl.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:dl.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:dl.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:dl.GREYSCALE_0_05}}},popupIndicator:{borderRadius:gl,border:`solid 1px ${dl.GREYSCALE_0_15}`,color:dl.GREYSCALE_0_60,marginRight:0,width:ml,height:ml},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${dl.GREYSCALE_0_15}`},clearIndicator:{borderRadius:gl,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:dl.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:fl}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:pl,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:dl.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:dl.GREYSCALE_25,fontSize:pl,fontFamily:Sl.FONT_FAMILY,fontWeight:yl,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:dl.TEXT_PRIMARY},"&.Mui-error":{color:dl.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:dl.TEXT_SECONDARY,content:"'(optional)'",fontWeight:vl,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:dl.TEXT_SECONDARY,content:"'(required)'",fontWeight:vl,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:fl,lineHeight:"16px",backgroundColor:dl.WHITE,borderRadius:gl,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${dl.GREYSCALE_0_05}`,borderColor:dl.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${dl.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${dl.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${dl.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${dl.RED}`,boxShadow:`0px 0px 0px 1px ${dl.RED}, inset 0 2px 0 0 ${dl.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${dl.GREYSCALE_0_10}`,borderColor:dl.GREYSCALE_0_10,backgroundColor:dl.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:dl.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:dl.GREYSCALE_0_15,borderRadius:gl,boxShadow:`inset 0 2px 0 0 ${dl.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Dl.jsx(Ol,{...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:dl.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:dl.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:dl.GREYSCALE_0_03},"&:active":{backgroundColor:dl.GREYSCALE_0_10},"&:focus":{backgroundColor:dl.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${dl.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${dl.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:dl.GREYSCALE_0_30,"&:hover":{backgroundColor:dl.GREYSCALE_0_0,borderColor:dl.GREYSCALE_0_15},"& ~svg":{color:dl.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${dl.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:gl}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:dl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${dl.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:dl.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:fl,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:pl,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:pl,fontWeight:yl,color:dl.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:yl}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${dl.GREYSCALE_0_15}, 0px 0px 0px 1px ${dl.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Dl.jsx(Hl,{}),checkedIcon:Dl.jsx($l,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:dl.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${dl.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:dl.GREEN_PALE,boxShadow:`0 0 0 3px ${xh(dl.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:dl.BLUE_PALE,boxShadow:`0 0 0 3px ${xh(dl.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:dl.GREYSCALE_0_20}},"&.Mui-disabled":{fill:dl.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Dl.jsx(Tx,{}),checkedIcon:Dl.jsx(jl,{}),indeterminateIcon:Dl.jsx(Fl,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:gl,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:dl.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:dl.GREYSCALE_0_55,color:dl.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:dl.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:dl.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:dl.GREYSCALE_0_55,"&:hover":{color:dl.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:dl.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:dl.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:fl,color:dl.TEXT_PRIMARY,lineHeight:"16px",fontWeight:yl},secondary:{fontSize:pl,color:dl.GREYSCALE_45,fontWeight:vl,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:fl,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:fl,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:dl.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:pl,borderBottom:`solid 1px ${dl.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:fl,color:dl.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:dl.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:dl.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:dl.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:dl.RED}}},"&.Mui-focusVisible":{backgroundColor:dl.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:dl.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:dl.GREEN,height:"24px","&.Mui-disabled":{color:dl.GREYSCALE_0_15}},rail:{backgroundColor:dl.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${dl.GREYSCALE_0_05}`,borderRadius:gl,boxShadow:`inset 0px 0px 0px 1px ${dl.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${dl.GREYSCALE_0_05}`,borderRadius:gl},thumb:{height:"16px",width:"16px",borderRadius:gl,backgroundColor:dl.WHITE,boxShadow:`0px 1px 2px 0px ${dl.GREYSCALE_0_15}, 0px 0px 0px 1px ${dl.GREYSCALE_0_05}`,"&:hover":{borderRadius:gl,boxShadow:`0 2px 4px 0 ${dl.GREYSCALE_0_30}, 0 0 0 1px ${dl.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${dl.GREYSCALE_0_15}, 0 0 0 1px ${dl.GREYSCALE_0_06}, 0 0 0 2px ${dl.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${dl.GREYSCALE_0_15}, 0 0 0 1px ${dl.GREYSCALE_0_06}, 0 0 0 2px ${dl.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:dl.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:dl.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:dl.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:dl.GREYSCALE_0_15},markLabel:{color:dl.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:dl.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:dl.WHITE,color:dl.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:dl.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:dl.GREEN_PALE,boxShadow:`0 0 0 3px ${xh(dl.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:dl.BLUE_PALE,boxShadow:`0 0 0 3px ${xh(dl.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:dl.GREYSCALE_0_15,borderRadius:gl},thumb:{height:"16px",width:"16px",borderRadius:gl,backgroundColor:dl.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:fl,fontWeight:yl,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${dl.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${dl.MISC_FOCUS_BORDER}`,backgroundColor:dl.GREYSCALE_0_03,borderRadius:gl},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:dl.GREYSCALE_25,"&.Mui-selected":{color:dl.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:fl,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:gl,"&:hover":{backgroundColor:dl.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 ${dl.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${dl.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:gl,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:dl.GREYSCALE_0_05},"&:hover":{backgroundColor:dl.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${dl.GREYSCALE_85}`,borderRight:`1px solid ${dl.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:yl,backgroundColor:dl.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:dl.GREYSCALE_98,borderBottom:`1px solid ${dl.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${dl.GREYSCALE_85}`,borderTop:`1px solid ${dl.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:dl.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:dl.GREYSCALE_0_05,"&:hover":{backgroundColor:dl.GREYSCALE_0_03}},"&&:hover":{backgroundColor:dl.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:e=>{let{className:t}=e;return Dl.jsx(Bl,{className:t})}},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 ${dl.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:fl,borderRadius:gl,padding:"7px 16px",border:`1px solid ${dl.GREYSCALE_0_15}`,backgroundColor:dl.GREYSCALE_100_60,color:dl.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:dl.GREYSCALE_0_10,border:`1px solid ${dl.GREYSCALE_0_30}`},"&:hover":{backgroundColor:dl.GREYSCALE_0_03,border:`1px solid ${dl.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:dl.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${dl.MISC_FOCUS_BORDER}`,border:`1px solid ${dl.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:dl.GREYSCALE_25,backgroundColor:dl.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:dl.GREYSCALE_0_10,border:`1px solid ${dl.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:pl,height:24,width:24,padding:7},sizeLarge:{fontSize:hl,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:fl,borderRadius:gl}}},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:dl.GREYSCALE_20},tooltip:{backgroundColor:dl.GREYSCALE_20,fontSize:pl,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{..._x}:{}}))(t);const qx=e=>({mode:"light",primary:{ultraLight:dl.GREEN_ULTRA_LIGHT,light:dl.GREEN_PALE,main:dl.GREEN,dark:dl.GREEN_DARK,extraDark:dl.GREEN_EXTRA_DARK,contrastText:dl.WHITE},secondary:{ultraLight:dl.BLUE_ULTRA_LIGHT,light:dl.BLUE_PALE,main:dl.BLUE,dark:dl.BLUE_DARK,extraDark:dl.BLUE_EXTRA_DARK,contrastText:dl.WHITE},error:{ultraLight:dl.RED_ULTRA_LIGHT,light:dl.RED_PALE,main:dl.RED,dark:dl.RED_DARK,extraDark:dl.RED_EXTRA_DARK,contrastText:dl.WHITE},warning:{ultraLight:dl.ORANGE_ULTRA_LIGHT,light:dl.ORANGE_PALE,main:dl.ORANGE,dark:dl.ORANGE_DARK,extraDark:dl.ORANGE_EXTRA_DARK,contrastText:dl.WHITE},success:{ultraLight:dl.GREEN_ULTRA_LIGHT,light:dl.GREEN_PALE,main:dl.GREEN,dark:dl.GREEN_DARK,extraDark:dl.GREEN_EXTRA_DARK,contrastText:dl.WHITE},info:{ultraLight:dl.BLUE_ULTRA_LIGHT,light:dl.BLUE_PALE,main:dl.BLUE,dark:dl.BLUE_DARK,extraDark:dl.BLUE_EXTRA_DARK,contrastText:dl.WHITE},text:{primary:dl.TEXT_PRIMARY,secondary:dl.TEXT_SECONDARY,disabled:dl.GREYSCALE_0_30},action:{hover:dl.GREYSCALE_0_03,hoverOpacity:.03,selected:dl.GREYSCALE_0_05,selectedOpacity:.05,focus:dl.MISC_FOCUS_BORDER},amethyst:{ultraLight:dl.WHITE,main:dl.PURPLE,light:dl.PURPLE_PALE,dark:dl.PURPLE_DARK,extraDark:dl.GREYSCALE_0_0,contrastText:dl.WHITE},background:{paper:dl.WHITE,default:dl.GREYSCALE_95},divider:dl.GREYSCALE_0_15}),Nx={...cl},zx=function(){return function(e){return{components:Ox(0,arguments.length>1&&void 0!==arguments[1]&&arguments[1]),palette:qx(),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:fl,fontWeightLight:bl,fontWeightRegular:vl,fontWeightMedium:yl,fontWeightBold:xl,htmlFontSize:fl,fontFamily:Sl.FONT_FAMILY,button:{fontWeight:yl,fontSize:fl,textTransform:"none"},body1:{fontSize:hl,lineHeight:"24px"},body2:{fontSize:fl,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ml,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:hl,fontWeight:yl,lineHeight:"16px"},h6:{fontSize:fl,fontWeight:yl,lineHeight:"16px"},caption:{color:dl.TEXT_SECONDARY},subtitle1:{fontSize:fl,color:dl.TEXT_SECONDARY},subtitle2:{fontSize:pl,color:dl.TEXT_SECONDARY}},shape:{borderRadius:gl}}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light",arguments.length>1&&void 0!==arguments[1]&&arguments[1])}().palette,jx={TEXT:zx.text.primary,DISABLED:zx.text.disabled,HOVER:zx.action.hover,WHITE:Nx.GREYSCALE_100,BORDER_LIGHT:Nx.GREYSCALE_90,BORDER_MEDIUM:Nx.GREYSCALE_85,BORDER_HEAVY:Nx.GREYSCALE_50,DARK_MODE_TEXT:Nx.GREYSCALE_95,DARK_MODE_BORDER:Nx.GREYSCALE_95,DARK_MODE_DISABLED:Nx.GREYSCALE_70,DARK_MODE_BACKGROUND:Nx.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Nx.GREYSCALE_95,SELECTED:zx.primary.main,LINK:zx.info.main,BACKGROUND_EMPTY_STATE:Nx.GREYSCALE_98},Fx=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jx.TEXT,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jx.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()},Hx=e=>{const t=e.getStyle("","","dataColors.selected")||jx.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,jx.TEXT);return{background:t,color:r}},$x=(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()},Bx=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},Wx=e=>{const t=ee(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Vx=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},Gx=e=>{e.stopPropagation(),e.preventDefault()},Ux=e=>!!e&&0===ee(e).a,Yx="#grid",Kx=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:jx.WHITE;return e&&!Ux(e)?e:Ux(t)?r&&!Ux(r)?r:n:t},Xx=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},Jx=(e,t,r,n,o)=>{const i=Xx(".qv-object .qv-inner-object",r),a=Xx(".qv-panel-sheet",r),s=Xx(Yx,r)??a,l=(e=>{const t=e.components?.find((e=>"general"===e.key)),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return Wx(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ee(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=u||i||c,p=Ux(d),f=!Ux(h=p?s:d)&&Fx(h,jx.TEXT,jx.DARK_MODE_TEXT)===K(jx.DARK_MODE_TEXT);var h;return{color:d,headerColor:Kx(l,d,s),isDark:f}},Zx=(t,r,a,s)=>{const l=i(),u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{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)),()=>{r?.disconnect()}}),[e,t]),r}(r.closest(Yx),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((e=>{let{oldValue:t}=e;return t?.includes("background")})).map((e=>{let{oldValue:t}=e;return t})).join(",");return e((()=>({...l,background:Jx(t,l,r,a,s)})),[l.name(),r,a,s,t,u])};function Qx(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 eS=3;function tS(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 rS(e,t){let{fontSize:r="12px",fontFamily:n="Source Sans Pro, Arial, sans-serif",fontStyle:o="normal",fontWeight:i="normal"}=e;const{maxNbrLinesOfText:a=eS}=t??{},{estimateWidth:s,measureText:l,estimateLineCount:u}=E((()=>{const e=document.createElement("canvas").getContext("2d");e.font=`${o} ${i} ${r} ${n}`;const t=at(e.measureText.bind(e)),s=e=>+t(e).width.toFixed(2),l=at((e=>{let{text:t,maxWidth:r,isNumeric:n=!1}=e;if(n)return 1;let o=0,i=t;do{o+=1,i=tS(i,r,s)}while(null!==i&&o<a);return o}),(e=>{let{text:t,maxWidth:r,isNumeric:n}=e;return`${t}-${r}-${n?"true":"false"}`}));return{measureText:e=>t(e).width,estimateWidth:e=>t("N").width*e,estimateLineCount:l}}),[o,i,r,n,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var nS,oS=F;nS=oS.createRoot,oS.hydrateRoot;const iS="Source Sans Pro, sans-serif";function aS(e,t){const[r,n]=C(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var sS={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 lS=e=>{let{translator:t}=e;return E((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(sS).forEach((t=>{e.add(sS[t])}))}}(t)}),[t]),t},uS="12px",cS="nebula-table-utils-head-menu-button",dS="nebula-table-utils-head-menu-wrapper",pS="nebula-table-utils-head-menu",fS="nebula-table-utils-head-menu-list-id",hS="sn-copy-cell";let mS=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const gS="nebula-table-utils-column-adjuster";let bS=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}({}),vS=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const yS={darker:.15,brighter:.3,opacity:.03},xS={darker:.3,brighter:.5,opacity:.05};let SS=function(e){return e.Cyclic="C",e}({});const CS=document.createElement("textarea");function ES(e){CS.value=e,document.body.appendChild(CS),CS.select(),CS.setSelectionRange(0,CS.value.length),document.execCommand("copy"),document.body.removeChild(CS)}CS.style.position="absolute",CS.style.left="-9999px",CS.setAttribute("readonly","");const wS=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{ES(t)})):ES(t))};function RS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var AS,PS,kS,IS="top",MS="top-right",LS="right",DS="bottom-right",TS="bottom",_S="bottom-left",OS="left",qS="top-left";RS(RS(RS(RS(RS(RS(RS(RS(RS(RS(AS={},"equal-equal",[IS,TS]),"equal-higher",[TS,DS]),"equal-lower",[IS,MS]),"equal-void",[IS,TS]),"higher-equal",[OS,_S,IS,MS]),"higher-higher-acute",[TS,_S,OS,MS]),"higher-higher-obtuse",[TS,IS]),"higher-lower-negative",[IS,MS,LS]),"higher-lower-positive",[TS,_S,OS]),"higher-void",[IS]),RS(RS(RS(RS(RS(RS(RS(RS(RS(RS(AS,"lower-equal",[IS]),"lower-higher-negative",[IS,qS]),"lower-higher-positive",[DS]),"lower-lower-acute",[IS,qS,OS,MS,LS]),"lower-lower-obtuse",[IS,TS]),"lower-void",[IS]),"void-equal",[IS]),"void-higher",[IS,TS]),"void-lower",[IS,TS,OS]),"void-void",[IS]),RS(AS,"unclassified",[IS,TS,LS,OS,MS,DS,_S,qS]);var NS=function(){if(kS)return PS;kS=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 PS=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},PS}();function zS(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function jS(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function FS(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(NS);var HS=1/.7,$S="\\s*([+-]?\\d+)\\s*",BS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",WS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",VS=/^#([0-9a-f]{3,8})$/,GS=new RegExp(`^rgb\\(${$S},${$S},${$S}\\)$`),US=new RegExp(`^rgb\\(${WS},${WS},${WS}\\)$`),YS=new RegExp(`^rgba\\(${$S},${$S},${$S},${BS}\\)$`),KS=new RegExp(`^rgba\\(${WS},${WS},${WS},${BS}\\)$`),XS=new RegExp(`^hsl\\(${BS},${WS},${WS}\\)$`),JS=new RegExp(`^hsla\\(${BS},${WS},${WS},${BS}\\)$`),ZS={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 QS(){return this.rgb().formatHex()}function eC(){return this.rgb().formatRgb()}function tC(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=VS.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?rC(t):3===r?new aC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?nC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?nC(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=GS.exec(e))?new aC(t[1],t[2],t[3],1):(t=US.exec(e))?new aC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=YS.exec(e))?nC(t[1],t[2],t[3],t[4]):(t=KS.exec(e))?nC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=XS.exec(e))?pC(t[1],t[2]/100,t[3]/100,1):(t=JS.exec(e))?pC(t[1],t[2]/100,t[3]/100,t[4]):ZS.hasOwnProperty(e)?rC(ZS[e]):"transparent"===e?new aC(NaN,NaN,NaN,0):null}function rC(e){return new aC(e>>16&255,e>>8&255,255&e,1)}function nC(e,t,r,n){return n<=0&&(e=t=r=NaN),new aC(e,t,r,n)}function oC(e){return e instanceof FS||(e=tC(e)),e?new aC((e=e.rgb()).r,e.g,e.b,e.opacity):new aC}function iC(e,t,r,n){return 1===arguments.length?oC(e):new aC(e,t,r,null==n?1:n)}function aC(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function sC(){return`#${dC(this.r)}${dC(this.g)}${dC(this.b)}`}function lC(){const e=uC(this.opacity);return`${1===e?"rgb(":"rgba("}${cC(this.r)}, ${cC(this.g)}, ${cC(this.b)}${1===e?")":`, ${e})`}`}function uC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function cC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dC(e){return((e=cC(e))<16?"0":"")+e.toString(16)}function pC(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new hC(e,t,r,n)}function fC(e){if(e instanceof hC)return new hC(e.h,e.s,e.l,e.opacity);if(e instanceof FS||(e=tC(e)),!e)return new hC;if(e instanceof hC)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 hC(a,s,l,e.opacity)}function hC(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function mC(e){return(e=(e||0)%360)<0?e+360:e}function gC(e){return Math.max(0,Math.min(1,e||0))}function bC(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}zS(FS,tC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:QS,formatHex:QS,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return fC(this).formatHsl()},formatRgb:eC,toString:eC}),zS(aC,iC,jS(FS,{brighter(e){return e=null==e?HS:Math.pow(HS,e),new aC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new aC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new aC(cC(this.r),cC(this.g),cC(this.b),uC(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:sC,formatHex:sC,formatHex8:function(){return`#${dC(this.r)}${dC(this.g)}${dC(this.b)}${dC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:lC,toString:lC})),zS(hC,(function(e,t,r,n){return 1===arguments.length?fC(e):new hC(e,t,r,null==n?1:n)}),jS(FS,{brighter(e){return e=null==e?HS:Math.pow(HS,e),new hC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new hC(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 aC(bC(e>=240?e-240:e+120,o,n),bC(e,o,n),bC(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new hC(mC(this.h),gC(this.s),gC(this.l),uC(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=uC(this.opacity);return`${1===e?"hsl(":"hsla("}${mC(this.h)}, ${100*gC(this.s)}%, ${100*gC(this.l)}%${1===e?")":`, ${e})`}`}}));const vC=Math.PI/180,yC=180/Math.PI,xC=4/29,SC=6/29,CC=3*SC*SC;function EC(e){if(e instanceof wC)return new wC(e.l,e.a,e.b,e.opacity);if(e instanceof IC)return MC(e);e instanceof aC||(e=oC(e));var t,r,n=kC(e.r),o=kC(e.g),i=kC(e.b),a=RC((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=RC((.4360747*n+.3850649*o+.1430804*i)/.96422),r=RC((.0139322*n+.0971045*o+.7141733*i)/.82521)),new wC(116*a-16,500*(t-a),200*(a-r),e.opacity)}function wC(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function RC(e){return e>.008856451679035631?Math.pow(e,1/3):e/CC+xC}function AC(e){return e>SC?e*e*e:CC*(e-xC)}function PC(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function kC(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function IC(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function MC(e){if(isNaN(e.h))return new wC(e.l,0,0,e.opacity);var t=e.h*vC;return new wC(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}zS(wC,(function(e,t,r,n){return 1===arguments.length?EC(e):new wC(e,t,r,null==n?1:n)}),jS(FS,{brighter(e){return new wC(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new wC(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 aC(PC(3.1338561*(t=.96422*AC(t))-1.6168667*(e=1*AC(e))-.4906146*(r=.82521*AC(r))),PC(-.9787684*t+1.9161415*e+.033454*r),PC(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),zS(IC,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof IC)return new IC(e.h,e.c,e.l,e.opacity);if(e instanceof wC||(e=EC(e)),0===e.a&&0===e.b)return new IC(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*yC;return new IC(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new IC(e,t,r,null==n?1:n)}),jS(FS,{brighter(e){return new IC(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new IC(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return MC(this).rgb()}}));var LC=e=>()=>e;function DC(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):LC(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?DC: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):LC(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=iC(e)).r,(t=iC(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=DC(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 TC="center",_C="bottom";[{key:"NoDataExist",alignment:TC,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:TC,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:TC,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:TC},{key:"DataRangeIncludingZero",alignment:_C},{key:"LimitedData",alignment:_C},{key:"NegativeOrZeroValues",alignment:_C}].reduce((function(e,t){return e[t.key]=t,e}),{});var OC,qC=["__proto__","constructor"];function NC(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!qC.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 zC(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 jC(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=HC)):void 0===t&&(t=FC);for(var r,n,o,i,a,s=new WC(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 WC(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(BC)}function FC(e){return e.children}function HC(e){return Array.isArray(e)?e[1]:null}function $C(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function BC(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function WC(e){this.data=e,this.depth=this.height=0,this.parent=null}WC.prototype=jC.prototype={constructor:WC,count:function(){return this.eachAfter(zC)},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 jC(this).eachBefore($C)},[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)}},OC=function(e){
|
|
103
103
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
104
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},MC({exports:{}});var FC={exports:{}};self,FC.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Le});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const C={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function E(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={},P=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function L(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=I(e[r||t])?i:e[t],e=e[r||t]}})),e}function D(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){D(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(!D(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);D(i,a)||M(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(A.generate(a,i,s)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&I(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(D(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])&&!M(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=L(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return E(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 E(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)?E(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!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=L(e,t.from);P(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,_=function(e,r,n){if(!e)return Promise.resolve();var o=T.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 q(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 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===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:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.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=C.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=C.getNumStepComp(r,l),p=C.getAboveComp(r,l,c,d),f=C.getRangeComp("RangeSum",p);if(C.needDimension({modifier:r,properties:n,layout:o})){var h=C.getDimComp(u,1),m=C.getDimComp(u,0),g=C.getAggrComp(f,h,m);f=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.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!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.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=q(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 $(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.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=C.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=C.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=C.getNumStepComp(n,u),h=C.getAboveComp(n,u,p,f);if(n.nullSuppression)t=C.getRangeComp("RangeAvg",h);else{var m=C.getRangeComp("RangeSum",h),g=function(e,t){var r=C.getRowNoComp(e,t);if(!C.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(C.needDimension({modifier:n,properties:o,layout:a})){var v=C.getDimComp(c,1),y=C.getDimComp(c,0),x=C.getAggrComp(b,v,y);b=n.showExcludedValues?C.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return C.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 V="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?C.generateTSDExpression(r,t,n):t},extractInputExpression:C.extractInputExpression,initModifier:function(e,t){C.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=C.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!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.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=C.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=C.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(C.needDimension({modifier:r,properties:n,layout:o})){var f=C.getDimComp(u,1),h=C.getDimComp(u,0),m=C.getAggrComp(p,f,h);p=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!C.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 C.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(C.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(C.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.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=C.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=C.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]=C.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!C.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 C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ce="qDef.qLabelExpression",Ee="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ee,i(e,Se)),r(e,we,i(e,Ce)))},restoreBase:function(e){Pe.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ee)),r(e,Ce,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 ke=Pe;function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}var Me={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Le={modifiers:Me,apply:Te,applyModifiers:_e,cleanUpMeasure:Oe,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:ke.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);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:ze};var De={};function Te(){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;De[r.id]=De[r.id]||{isFirstTime:!0};var u=De[r.id].isFirstTime;if(De[r.id].isFirstTime=!1,n&&"object"===Ie(n))return _e({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=De[r.id].lastReloadTime;if(De[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);$e(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return h&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(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&&We(t)&&C.simplifyExpression(t.qDef.base.qDef)!==C.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),_e({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 Oe(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function _e(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),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Oe(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;ke.isValid(r)||ke.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(Me[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)");Me[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:Me[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 Me[n.type].updateModifier&&Me[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Me[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||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}),Be(r)):Oe(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 Oe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!Me[e.type]}))}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:Fe(e),properties:r,layout:n})}))}function Ne(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=Ne(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 $e(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!Me[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ue({modifiers:Fe(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||!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={},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):_(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&&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(Ue({modifiers:n,properties:e})){var i=Ve(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(De[t.id].masterItemSubscriber=De[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 Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),De[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),C=r.n(S);function E(e,t){var r=C()(!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 C()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k(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},M=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},L=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},D=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}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},_=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=E(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=E(s.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,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)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},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))},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=C()(!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=C()(!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,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 P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},$=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 k(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 k(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)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=z({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,C=y.maxMeasures,E=y.minMeasures,w=l.defaultDimension,R=void 0===w?D():w,A=l.defaultMeasure,P=void 0===A?T():A;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:C,minMeasures:E})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:C,minMeasures:E,newHyperCubeDef:v}),_({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),O({exportFormat:t,maxMeasures:C,minMeasures:E,newHyperCubeDef:v,defaultMeasure:P}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),M("qMaxStackedCells",b,v),M("qNoOfLeftDims",b,v),L("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),L("qMode",b,v,"S"),L("qReductionMode",b,v,"N"),L("qSortbyYValue",b,v),L("qIndentMode",b,v),L("qShowTotalsAbove",b,v),I(g,t,n),m.qProperty=g;var k=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:k}),p&&W(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],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},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||C()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||C()(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]&&C()(s,r.properties.measureAxes[t[0].axis])):C()(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}}},Ce={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 Ee(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=Ee(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=Ee(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",ke="measures",Ie="qDef.conditionalColoring";const Me={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:ke,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:ke,quarantineName:Pe})}};var Le="qHyperCubeDef.qMeasures",De="measures",Te="qHyperCubeDef.qDimensions",_e="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",je="qCalcCondition",Fe="conditionalShowHide";const He={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:De,itemPath:je}),we({properties:e,arrayPath:Te,quarantineName:Fe,arrayName:_e,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:De,itemPath:je}),Re({properties:e,arrayPath:Te,quarantineName:Fe,arrayName:_e,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:ze,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:ze,itemPath:je})}},$e={hypercube:V,colorChart:be,axisChart:Ce,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:He}})(),n.default})();var HC=Et(FC.exports);const $C="qHyperCubeDef.qMeasures",BC="measures",WC="qHyperCubeDef.qDimensions",VC="dimensions",GC="qDef.representation",UC="tableRepresentation",YC="qDef.conditionalColoring",KC="conditionalColoring",XC="qMiniChartDef",JC="miniChartDef",ZC=(e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return"pixels"===i?.type?i.pixels??pS.PixelsDefault:-1})(r,e,t)));return o},QC=e=>{let{propertyTree:t,hyperCubePath:r}=e;const n=HC.hypercube.exportProperties({propertyTree:t,hyperCubePath:r}),{qHyperCubeDef:{qColumnOrder:o,qDimensions:i,qMeasures:a}}=n.properties,s=ZC(i,a,o);return DC(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:s}),HC.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),HC.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),HC.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{HC.quarantineArrayProp({properties:e,arrayPath:WC,itemPath:GC,arrayName:VC,quarantineName:UC}),HC.quarantineArrayProp({properties:e,arrayPath:$C,itemPath:GC,arrayName:BC,quarantineName:UC}),HC.quarantineArrayProp({properties:e,arrayPath:$C,itemPath:YC,arrayName:BC,quarantineName:KC}),HC.quarantineArrayProp({properties:e,arrayPath:$C,itemPath:XC,arrayName:BC,quarantineName:JC})})(n.properties),n};const eE=/^q[A-Z]/,tE=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],rE=e=>"object"==typeof e&&null!==e,nE=(e,t)=>(Object.entries(e).forEach((r=>{let[n,o]=r;const i=void 0===t?n:`${t}.${n}`;((e,t)=>!eE.test(e)&&!tE.some((e=>e.test(t))))(n,i)?delete e[n]:Array.isArray(o)?e[n]=o.map(((e,t)=>rE(e)?nE(e,`${i}.${t}`):e)):rE(o)&&(e[n]=nE(o,i))})),e),oE=(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:fS.Pixels,pixels:e}:{type:fS.FitToContent}}return i},iE=e=>{let{exportFormat:t,initialProperties:r,extension:n,hypercubePath:o,defaultPropertyValues:i,viewDataMode:a}=e;if(a){try{t=structuredClone(t)}catch(e){console.error("Failed to copy source properties",e)}nE(t.properties)}const s=HC.hypercube.importProperties({exportFormat:t,initialProperties:r,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:i,hypercubePath:o,extension:n});if(HC.conditionalShow.unquarantine(s.qProperty),a)DC(s,"qProperty.totals.show",!1),DC(s,"qProperty.usePagination",!0);else{HC.unquarantineProperty(s.qProperty,"straightTableColumnOrder"),(e=>{HC.unquarantineArrayProp({properties:e,arrayPath:WC,itemPath:GC,arrayName:VC,quarantineName:UC}),HC.unquarantineArrayProp({properties:e,arrayPath:$C,itemPath:GC,arrayName:BC,quarantineName:UC}),HC.unquarantineArrayProp({properties:e,arrayPath:$C,itemPath:YC,arrayName:BC,quarantineName:KC}),HC.unquarantineArrayProp({properties:e,arrayPath:$C,itemPath:XC,arrayName:BC,quarantineName:JC})})(s.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=s.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>oE(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>oE(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(DC(s,"qProperty.qHyperCubeDef.qDimensions",o),DC(s,"qProperty.qHyperCubeDef.qMeasures",i))}return s};var aE={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function sE(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function lE(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 uE(e){return e>0?0:1}function cE(e){return e.translator.get("Visualizations.Descriptions.Column")}function dE(e){return{measures:{min:uE,max:1e3,description:()=>cE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;sE(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;lE(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:uE,max:1e3,description:()=>cE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return sE(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;lE(o,n)}}}}let pE=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}({});const hE=e=>{switch(e?.type){case"url":return pE.Link;case"image":return pE.Image;case"indicator":return pE.Indicator;case"miniChart":return pE.MiniChart;default:return pE.Text}},mE=e=>{let{isImagesEnabled:t}=e;return{uses:"dimensionRepresentationItems.representationType",options(e,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&t||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}},gE=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>hE(e.qDef.representation)===pE.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},bE=e=>{const{anything:t,flags:r}=e,n=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:mE({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>hE(e.qDef.representation)===pE.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>hE(e.qDef.representation)===pE.Link&&e.qDef.representation?.urlPosition===fE.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>hE(e.qDef.representation)===pE.Link&&e.qDef.representation?.urlPosition===fE.Attribute},...gE(n)}},vE=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[pE.Image],i=!n?.("qMiniChartDef")&&t[pE.MiniChart],a=!n?.("tableIndicators")&&t[pE.Indicator],s=o&&t[pE.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>hE(e.qDef.representation)===pE.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var yE,xE={};yE=xE,(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},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 s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(c,f),b=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function C(e){return"".concat(e,"(")}function E(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:f,getNumDimensions:E,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:C,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return C(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp: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===E({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=E({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=l.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?l.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(l.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var P=i().bind(null,!0),k={},I=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function L(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=L(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(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){_(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(!_(e[n],t[n]))return!1;return!0}return e===t}k.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?P({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);_(i,a)||D(t,o)||(L(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(k.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]&&L(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(_(t,o))return n;if(!L(t[0])&&L(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(k.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){L(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},k.apply=function(e,t){t.forEach((function(t){var r,n,o=T(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,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(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(r,e)&&delete r[e]})),P(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=T(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])}))},k.clone=function(e){return P({},e)},k.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},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):P(e,t)};const O=k,q=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 N="accumulation";function z(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 F={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 h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.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!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=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 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=z(t,e);return i&&!i.disabled}}}};var $="movingAverage";function B(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function W(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const G={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),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout: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,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(W(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(W(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(W(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(W(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=B(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=B(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(W(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($))return!1;var i=B(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),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(ee).forEach((function(t){void 0===e[t]&&(e[t]=ee[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!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 he(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function me(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=he(t,r,n),u=""===s&&""===l?"":s||l,c=me(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:he,getTotalComp:me,getSelectedDimComp:ge};var ve="library id deleted",ye="qDef.qDef",xe="qDef.base.qDef",Se="qLibraryId",Ce="qDef.base.qLibraryId",Ee="qDef.qLabel",we="qDef.qLabelExpression",Re="qDef.base.qLabel",Ae="qDef.base.qLabelExpression",Pe="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Ie="qDef.base";const Me={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,Ce)?Ce:Se},getLibraryId:function(e){return s(e,Ce)||s(e,Se)},getLabelRef:function(e){return s(e,Ie)?Re:Ee},getLabelExpressionRef:function(e){return s(e,Ie)?Ae:we}};var Le={initBase:function(e,t){(t||Le.isValid(e))&&(a(e,xe,s(e,ye)),a(e,Ce,s(e,Se)),a(e,Re,s(e,Ee)),a(e,Ae,s(e,we)))},restoreBase:function(e){Le.isValid(e)&&(a(e,ye,s(e,xe)),a(e,Se,s(e,Ce)),a(e,Ee,s(e,Re)),a(e,we,s(e,Ae)),s(e,Pe)&&s(e,ke)&&a(e,Pe,s(e,ke)),delete e.qDef.base)},isValid:function(e){var t=s(e,xe),r=s(e,Ce);return void 0!==t||void 0!==r}};const De=Le;function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}var _e={accumulation:H,movingAverage:G,difference:te,normalization:be,timeSeriesDecomposition:J};const Oe={modifiers:_e,apply:Ne,applyModifiers:ze,cleanUpMeasure:je,destroy:function(e){e&&qe[e.id]&&qe[e.id].masterItemSubscriber&&(qe[e.id].masterItemSubscriber&&qe[e.id].masterItemSubscriber.unsubscribe(),delete qe[e.id])},hasActiveModifiers:Fe,getActiveModifier:He,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return _e[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return _e[e]&&_e[e].isApplicable({properties:r,layout:n})}))},measureBase: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=We(e);Je({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||rt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:$e};var qe={};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;qe[t.id]=qe[t.id]||{isFirstTime:!0};var u=qe[t.id].isFirstTime;if(qe[t.id].isFirstTime=!1,r&&"object"===Te(r))return ze({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=qe[t.id].lastReloadTime;if(qe[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Fe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Xe({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Je({modifiers:We(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);Ge(r);var n=nt(r);return Ze({model:t}).then((function(o){return Qe({libraryIds:n,model:t}).then((function(n){return h&&function(e){var t=e.properties;Be(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"===Te(e)&&!e.disabled){if(r++,"object"!==Te(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=_e[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ye(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.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(l)}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Te(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=nt(r);return ot({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return Be(r).forEach((function(e){return je(e)})),tt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function ze(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),Ge(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=Be(r)),!t.length)return Promise.resolve();if(!o&&!Fe({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;De.isValid(t)||De.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(a++,"object"!==Te(_e[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)");_e[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:_e[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 _e[r.type].updateModifier&&_e[r.type].updateModifier(r,n.qHyperCubeDef);var a=Me.getExpression(t),s=""===a?a:_e[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||$e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&$e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),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=We(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!_e[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ue(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:We(e),properties:r,layout:n})}))}function He(e){var t=We(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(_e[n.type]&&!n.disabled)return n}}function $e(e){var t=He(e);return!t||_e[t.type].enableTotalsFunction(e)}function Be(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function We(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ve(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function Ge(e){Be(e).forEach((function(e){return function(e){var t=He(e);t&&(void 0!==t.outputExpression&&Ve(t)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Ue(e){var t=We(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!_e[t.type]&&Ve(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function 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:We(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"!==Te(e)||e.disabled||!_e[e.type])&&(void 0===o[e.type]&&(o[e.type]=_e[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function 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):q(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"===Te(e)&&!e.disabled&&_e[e.type]&&_e[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function nt(e){var t=Be(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=We(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)?(qe[t.id].masterItemSubscriber=qe[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()}))}}),qe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}yE.default=n.default,Object.defineProperty(yE,"__esModule",{value:!0})})();var SE=Et(xE);const CE={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},EE={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}},wE=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!SE.hasActiveModifiers({measures:[e],properties:t.properties})||SE.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:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),RE={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:fS.Auto,translation:"Common.Auto"},{value:fS.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:fS.Pixels,translation:"Object.Table.Column.Pixels"},{value:fS.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:fS.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===fS.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===fS.Percentage}},AE=()=>({...CE,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}]},...EE,...RE}),PE={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"}},kE=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:wE(e)}},IE=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:PE},presentation:{type:"items",translation:"properties.presentation",items:{...AE(),...bE(e)}}}}}),ME=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:kE(e)},presentation:{type:"items",translation:"properties.presentation",items:{...AE(),...vE(e,{[pE.Image]:e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[pE.Indicator]:!0,[pE.MiniChart]:!0})}}}}}),LE=e=>({...IE(e),...ME(e)}),DE=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...LE(e)},highlightSelected:e.flags.isEnabled("CLIENT_VNA_312_TABLE_HIGHLIGHT_SELECTED")},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:e.flags.isEnabled("CLIENT_VNA_312_TABLE_HIGHLIGHT_SELECTED")}}}),TE={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}},_E=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),OE=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),qE=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[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},NE=e=>{let{ref:t,themeAccessor:r,translator:n,flags:o}=e;return{component:"dropdown",ref:t,options:(e,t,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map((e=>qE(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ae(n).filter((e=>!a.includes(e))).map((e=>qE(e,!0)))];return[...s,...l.length>1?l:[]]})(r(a),a,n,o)},defaultValue:(e,t,n)=>r(n.theme.current())}},zE=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],jE=e=>{let{ref:t,themeAccessor:r,translator:n}=e;return{component:"dropdown",ref:t,options:(e,t,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>qE(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...zE.filter((e=>!i.includes(e))).map((e=>qE(e,!1)))];return[...a,...s.length>1?s:[]]})(r(i),i,n)},defaultValue:(e,t,n)=>r(n.theme.current())}},FE=e=>{let{section:t,defaultFontStyle:r,translator:n,flags:o,getThemeValue:i,translation:a,disableNoneCallback:s}=e;return{component:"panel-section",translation:a??`properties.pivot.${t}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:NE({ref:`${t}.fontFamily`,themeAccessor:e=>i(e,t,"fontFamily")??e.fontFamily,translator:n,flags:o}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${t}.fontStyle`,defaultValue:r??[]},fontSize:jE({ref:`${t}.fontSize`,themeAccessor:e=>i(e,t,"fontSize")??e.fontSize,translator:n}),fontColor:OE(`${t}.fontColor`,void 0,(e=>i(e,t,"color")??e.color))}},background:OE(`${t}.background`,"properties.background",((e,r)=>{const n=r?_x.WHITE:_x.TRANSPARENT;return i(e,t,"backgroundColor")??n}),s)}}}}},HE=e=>{let{section:t,defaultFontStyle:r,fallbackBackground:n,getThemeValue:o}=e;return{component:"panel-section",translation:`properties.pivot.${t}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${t}.fontStyle`,defaultValue:r??[]},fontColor:OE(`${t}.fontColor`,void 0,(e=>o(e,t,"color")??e.color))}},background:OE(`${t}.background`,"properties.background",(e=>o(e,t,"backgroundColor")??n??"transparent"))}}}}},$E=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},BE=e=>e.grid?.zebraStripes?.show,WE={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},VE=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"),...WE},border:OE("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??_x.BORDER_MEDIUM)),divider:OE("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??_x.BORDER_HEAVY))}}}}),GE=e=>e?.content?.hoverEffect,UE={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:GE,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:GE,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},YE=(e,t,r)=>{let{properties:n}=r;return"sn-table"===n.visualization&&!0===n.usePagination},KE=e=>{let{flags:t,translator:r}=e;return{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:FE({section:"header",defaultFontStyle:["bold"],translator:r,flags:t,getThemeValue:$E,disableNoneCallback:YE}),dimensionValueSection:FE({section:"dimensionValues",translator:r,flags:t,getThemeValue:$E}),measureValueSection:FE({section:"measureValues",translator:r,flags:t,getThemeValue:$E}),totalRowSection:FE({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:r,flags:t,getThemeValue:$E,disableNoneCallback:YE}),nullValues:HE({section:"nullValues",fallbackBackground:_x.NULL_VALUE_BACKGROUND,getThemeValue:$E}),grid:VE(t),hoverEffectSection:UE,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:BE,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:BE,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:BE,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:BE,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}},XE=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[KE(e),_E(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:"-"}]},...TE}}),JE={uses:"sorting"},ZE={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},QE=e=>({type:"items",component:"accordion",items:{data:DE(e),sorting:JE,addOns:ZE,settings:XE(e)}});function ew(e){return{definition:QE(e),exploration:aE,data:dE(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return iE({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>QC({propertyTree:e,hyperCubePath:t})}}const tw=(t,r)=>e((()=>((e,t)=>(r,n)=>{let{isDim:o,colIdx:i}=n;const a=o?i:i-e.qDimensionInfo.length,s=`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${a}/qDef/columnWidth`,l=e[o?"qDimensionInfo":"qMeasureInfo"].at(a)?.columnWidth,u=l?{qPath:s,qOp:"Replace",qValue:JSON.stringify({...l,...r})}:{qPath:s,qOp:"Add",qValue:JSON.stringify(r)};t?.applyPatches([u],!0)})(t,r)),[t,r]),rw=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,t,r)=>{let{id:n}=t;return e[n]=r,e}),{}),nw=[];for(let e=0;e<256;++e)nw.push((e+256).toString(16).slice(1));let ow;const iw=new Uint8Array(16);var aw={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function sw(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!ow){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ow=crypto.getRandomValues.bind(crypto)}return ow(iw)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(nw[e[t+0]]+nw[e[t+1]]+nw[e[t+2]]+nw[e[t+3]]+"-"+nw[e[t+4]]+nw[e[t+5]]+"-"+nw[e[t+6]]+nw[e[t+7]]+"-"+nw[e[t+8]]+nw[e[t+9]]+"-"+nw[e[t+10]]+nw[e[t+11]]+nw[e[t+12]]+nw[e[t+13]]+nw[e[t+14]]+nw[e[t+15]]).toLowerCase()}(n)}const lw=()=>{return crypto?.randomUUID?.()??(aw.randomUUID&&!e?aw.randomUUID():sw(e));var e},uw=e=>{let{qLibraryId:t,cId:r}=e;return t??r??lw()},cw=e=>"number"==typeof e&&!Number.isNaN(+e),dw=e=>cw(e.qNum),pw=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);function fw(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 hw(e,t,r){return t=vw(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,xw()?Reflect.construct(t,r||[],vw(e).constructor):t.apply(e,r))}function mw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gw(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,Ew(n.key),n)}}function bw(e,t,r){return t&&gw(e.prototype,t),r&&gw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vw(e){return vw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vw(e)}function yw(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&&Sw(e,t)}function xw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xw=function(){return!!e})()}function Sw(e,t){return Sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sw(e,t)}function Cw(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 fw(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)?fw(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 Ew(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 ww(e){return ww="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},ww(e)}var Rw={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:Aw(e),value:Aw(t),useEqualSign:r}}(r,o,i))}})),t}};function Aw(e){try{return decodeURIComponent(e)}catch(t){return e}}function Pw(e){if(!(this instanceof Pw))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 Rw.fromSearchString(t.search)}}})}function kw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}Pw.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},Pw.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=kw((t=e[n]).key),t.value?r+="=".concat(kw(t.value)):r+=t.useEqualSign?"=":"";return r};var Iw,Mw=function(){return bw((function e(t){mw(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}}])}(),Lw=function(){return bw((function e(){mw(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new Mw(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),Dw=function(e){return e>=0&&e<=1114111},Tw=function(e){return e.match(/[\s]/)},_w=function(){function e(){return mw(this,e),hw(this,e,arguments)}return yw(e,Lw),bw(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())&&!Tw(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return Dw(a)?String.fromCharCode(a):"�"}}])}(),Ow=function(){function e(t,r){mw(this,e),this._key=t,this._value=r}return bw(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}}])}(),qw=function(){function e(){mw(this,e)}return bw(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 Ow.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return Ow.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||Ow.newInstanceIfNeeded(e,t,this._value)}}])}(),Nw=function(){return bw((function e(){mw(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 qw);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),zw=function(){var e,t,r,n=[],o=[],i=new Nw;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="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["¬in"]="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}(),jw=function(){function e(){return mw(this,e),hw(this,e,arguments)}return yw(e,Lw),bw(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,zw.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=zw.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)&&Dw(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)&&Dw(n)?String.fromCharCode(n):null}}])}(),Fw=function(){function e(){return mw(this,e),hw(this,e,arguments)}return yw(e,Lw),bw(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),Dw(o))?String.fromCharCode(o):(e.reset(),null)}}])}(),Hw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(Iw=document.createElement("div"));var $w=Array.prototype.indexOf,Bw=[",",".","_"," "],Ww=[",",".","-","_"," "],Vw={width:["%"],height:["%"]},Gw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Uw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Gw.image,"background-color":Gw.color,"border-color":Gw.color,"border-image":Gw.image,color:Gw.color,icon:Gw.image,"list-style-image":Gw.image,"outline-color":Gw.color},Yw={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Kw(e,t,r){var n;if(t){if($w)return $w.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 Xw(e){if(null==e)return"";var t,r=document.createTextNode(e);return Iw.appendChild(r),t=Iw.innerHTML,Iw.removeChild(r),t}function Jw(e,t,r){var n,o,i,a,s,l,u,c,d;for(e=Qw(e).toLowerCase(),t=Qw(t),i=0;i<Yw.attr_name.length;i++)if(e.match(Yw.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Yw.attr_val.length;i++)if(t.toLowerCase().match(Yw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=Vw[e])||(n=Ww),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]/)&&Kw(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Zw(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=Qw(e).toLowerCase(),t=Qw(t),Kw(e,Yw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Yw.css_val.length;n++)if(t.toLowerCase().indexOf(Yw.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Uw[e])||(o=Gw.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]/)&&Kw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Qw(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new jw,new Fw,new _w];!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 eR=[],tR=0;tR<255;tR++)eR[tR]=tR>=48&&tR<=57||tR>=65&&tR<=90||tR>=97&&tR<=122?null:tR.toString(16);var rR=function(e){return Xw(e.unsafe)},nR=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]=Zw(t,r[t],!0),i+=Zw(t,r[t],!0),o[t]=n[t]);return e.map?o:i},oR=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]=Jw(i,t[i],!0),o+=Jw(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function iR(e,t){throw new Error(t)}var aR={canonicalize:Qw,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===ww(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?rR(e):"css"===e.context?(null!=e.map&&"object"!==ww(e.map)&&iR(this,"Invalid parameter type"),nR(e)):"attr"===e.context?(null!=e.map&&"object"!==ww(e.map)&&iR(this,"Invalid parameter type"),oR(e)):void iR(this,"Invalid parameter type")},encodeForAttr:Jw,encodeForAttr2:function(e){return Jw("nonsens",e,!0)},encodeForCSS:Zw,encodeForHref:function(e){Qw(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new Pw(e),r=Pw.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+Pw.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=Bw),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Kw(o,t)>=0||null==eR[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:Xw,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Qw(t).toLowerCase():iR(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=Cw(null!==(t=Hw.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 sR=(e,t)=>t.qAttrExps?.qValues?.[e],lR=(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"}}},uR=e=>{let{text:t,url:r,imageSize:n,imagePosition:o,labelStructure:i,imageBox:a,direction:s}=e;return o&&r&&!r.toLowerCase().includes("javascript:")&&aR.isSafeDataURL(r)?{type:pE.Image,url:r,text:t,imageSize:n,resolvedImagePosition:lR(o,s),labelStructure:i,imageBox:a}:{type:pE.Text,url:void 0,text:t,labelStructure:i}},cR=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:pE.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:pE.MiniChart,text:n,miniChart:a}},dR=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===fE.Attribute?void 0:r?.urlLabel},pR=e=>{let{labelStructure:t,text:r,url:n}=e;try{if(!n)throw Error("Invalid url");return{type:pE.Link,url:aR.encodeForHref(n),text:r,labelStructure:t}}catch{return{type:pE.Text,url:void 0,text:r,labelStructure:t}}},fR=e=>{let{cell:t,representationProperties:r,attrExprInfoIndex:n,env:o,conditionalColoring:i,miniChartOnMeasure:a,labelStructure:s,getText:l=e=>e.qText,direction:u,enabledFeatures:c}=e;const d=hE(r),p=l(t);return d===pE.Image&&c[pE.Image]&&!o.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=sR(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),uR({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return uR({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=sR(r.imageLabel??-1,e)?.qText??n;return uR({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:pE.Text,url:void 0,labelStructure:i,text:n}})(t,r,n,p,u,s):d===pE.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===fE.Attribute){const i=dR(r.url??-1,e,t);return pR({labelStructure:n,text:o||i||"",url:i})}if(i===fE.Dimension){const i=dR(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),pR({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:pE.Text,url:void 0,text:o,labelStructure:n}})(t,r,n,s,p):d===pE.Indicator&&c[pE.Indicator]&&!o.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:pE.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(r,i,p):d===pE.MiniChart&&c[pE.MiniChart]&&!o.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?cR(t,r,a,p):{type:pE.Text,url:void 0,text:p,labelStructure:s}},hR=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,mR=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",gR=1e4;function bR(e,t){return[...t].reverse().find((t=>t*e<=gR))||Math.floor(gR/e)}function vR(e,t){if(t.viewState?.skipTotals)return{atTop:!1,atBottom:!1};const[r,n,o,i,a]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function yR(e,t,r,n){return t?0===r?e.totals.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function xR(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return cw(r?.qNum)}function SR(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 CR=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const ER=(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===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===gS.Cyclic,f=t===l[0];let h,m,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:C}=d;if(c){const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles.map((e=>({label:e,enabled:!0}))),b=e.qLocked??!1,v=n,({qDimensionType:h}=e)}else({qMiniChart:m}=d);const{qFallbackTitle:E,textAlign:w,qAttrExprInfo:R,qSortIndicator:A,qReverseSort:P,qApprMaxGlyphCount:k,columnWidth:I,qLibraryId:M}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:M,pageColIdx:r,qApprMaxGlyphCount:k,qReverseSort:P,columnWidth:I??{type:fS.Auto},selectionColIdx:v,isActivelySorted:f,id:uw(d),label:E,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:R.map((e=>e.id)),qAttrExprInfoIndex:rw(d),sortDirection:A&&"N"!==A?A:"A",totalInfo:yR(e,c,r,n),...!c&&{isTotalNumeric:xR(e,n)},...SR(w,h,c,o,i),representation:S,conditionalColoring:c?void 0:C,qMiniChart:m}}(e,n,o,u[n],t,r)))};const wR=(e,t)=>!(!e.snapshotData&&!t.viewState?.visibleHeight),RR=(e,t)=>void 0!==t.viewState?.usePagination?t.viewState.usePagination:!1!==e.usePagination||wR(e,t);var AR="$$material";const PR=["values","unit","step"];function kR(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=yr(e,PR),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>yt({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function 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 yt({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 IR={borderRadius:4};function MR(e,t){return t?gp(e,t,{clone:!1}):e}const LR={xs:0,sm:600,md:900,lg:1200,xl:1536},DR={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${LR[e]}px)`};function TR(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||DR;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||DR;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||LR).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function _R(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function OR(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];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 qR(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"==typeof e?e(r):Array.isArray(e)?e[r]||o:OR(e,r)||o,t&&(n=t(n,o,e)),n}function NR(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=OR(e.theme,n)||{};return TR(e,i,(e=>{let n=qR(a,o,e);return e===n&&"string"==typeof e&&(n=qR(a,o,`${t}${"default"===e?"":Rp(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const zR={m:"margin",p:"padding"},jR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},FR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},HR=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!FR[e])return[e];e=FR[e]}const[t,r]=e.split(""),n=zR[t],o=jR[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),$R=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],BR=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function WR(e,t,r,n){var o;const i=null!=(o=OR(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 VR(e){return WR(e,"spacing",8)}function GR(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 UR(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=GR(t,r),e)),{})}(HR(r),n);return TR(e,e[r],o)}function YR(e,t){const r=VR(e.theme);return Object.keys(e).map((n=>UR(e,t,n,r))).reduce(MR,{})}function KR(e){return YR(e,$R)}function XR(e){return YR(e,BR)}function JR(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,r)=>n[r]?MR(t,n[r](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o}function ZR(e){return"number"!=typeof e?e:`${e}px solid`}function QR(e,t){return NR({prop:e,themeKey:"borders",transform:t})}KR.propTypes={},KR.filterProps=$R,XR.propTypes={},XR.filterProps=BR;const eA=QR("border",ZR),tA=QR("borderTop",ZR),rA=QR("borderRight",ZR),nA=QR("borderBottom",ZR),oA=QR("borderLeft",ZR),iA=QR("borderColor"),aA=QR("borderTopColor"),sA=QR("borderRightColor"),lA=QR("borderBottomColor"),uA=QR("borderLeftColor"),cA=QR("outline",ZR),dA=QR("outlineColor"),pA=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=WR(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:GR(t,e)});return TR(e,e.borderRadius,r)}return null};pA.propTypes={},pA.filterProps=["borderRadius"],JR(eA,tA,rA,nA,oA,iA,aA,sA,lA,uA,pA,cA,dA);const fA=e=>{if(void 0!==e.gap&&null!==e.gap){const t=WR(e.theme,"spacing",8),r=e=>({gap:GR(t,e)});return TR(e,e.gap,r)}return null};fA.propTypes={},fA.filterProps=["gap"];const hA=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=WR(e.theme,"spacing",8),r=e=>({columnGap:GR(t,e)});return TR(e,e.columnGap,r)}return null};hA.propTypes={},hA.filterProps=["columnGap"];const mA=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=WR(e.theme,"spacing",8),r=e=>({rowGap:GR(t,e)});return TR(e,e.rowGap,r)}return null};mA.propTypes={},mA.filterProps=["rowGap"];function gA(e,t){return"grey"===t?t:e}JR(fA,hA,mA,NR({prop:"gridColumn"}),NR({prop:"gridRow"}),NR({prop:"gridAutoFlow"}),NR({prop:"gridAutoColumns"}),NR({prop:"gridAutoRows"}),NR({prop:"gridTemplateColumns"}),NR({prop:"gridTemplateRows"}),NR({prop:"gridTemplateAreas"}),NR({prop:"gridArea"}));function bA(e){return e<=1&&0!==e?100*e+"%":e}JR(NR({prop:"color",themeKey:"palette",transform:gA}),NR({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gA}),NR({prop:"backgroundColor",themeKey:"palette",transform:gA}));const vA=NR({prop:"width",transform:bA}),yA=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])||LR[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:bA(t)}};return TR(e,e.maxWidth,t)}return null};yA.filterProps=["maxWidth"];const xA=NR({prop:"minWidth",transform:bA}),SA=NR({prop:"height",transform:bA}),CA=NR({prop:"maxHeight",transform:bA}),EA=NR({prop:"minHeight",transform:bA});NR({prop:"size",cssProperty:"width",transform:bA}),NR({prop:"size",cssProperty:"height",transform:bA});JR(vA,yA,xA,SA,CA,EA,NR({prop:"boxSizing"}));const wA={border:{themeKey:"borders",transform:ZR},borderTop:{themeKey:"borders",transform:ZR},borderRight:{themeKey:"borders",transform:ZR},borderBottom:{themeKey:"borders",transform:ZR},borderLeft:{themeKey:"borders",transform:ZR},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ZR},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:pA},color:{themeKey:"palette",transform:gA},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gA},backgroundColor:{themeKey:"palette",transform:gA},p:{style:XR},pt:{style:XR},pr:{style:XR},pb:{style:XR},pl:{style:XR},px:{style:XR},py:{style:XR},padding:{style:XR},paddingTop:{style:XR},paddingRight:{style:XR},paddingBottom:{style:XR},paddingLeft:{style:XR},paddingX:{style:XR},paddingY:{style:XR},paddingInline:{style:XR},paddingInlineStart:{style:XR},paddingInlineEnd:{style:XR},paddingBlock:{style:XR},paddingBlockStart:{style:XR},paddingBlockEnd:{style:XR},m:{style:KR},mt:{style:KR},mr:{style:KR},mb:{style:KR},ml:{style:KR},mx:{style:KR},my:{style:KR},margin:{style:KR},marginTop:{style:KR},marginRight:{style:KR},marginBottom:{style:KR},marginLeft:{style:KR},marginX:{style:KR},marginY:{style:KR},marginInline:{style:KR},marginInlineStart:{style:KR},marginInlineEnd:{style:KR},marginBlock:{style:KR},marginBlockStart:{style:KR},marginBlockEnd:{style:KR},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:fA},rowGap:{style:mA},columnGap:{style:hA},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bA},maxWidth:{style:yA},minWidth:{transform:bA},height:{transform:bA},maxHeight:{transform:bA},minHeight:{transform:bA},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function RA(){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=OR(r,s)||{};if(u)return u(o);return TR(o,t,(t=>{let r=qR(c,l,t);return t===r&&"string"==typeof t&&(r=qR(c,l,`${e}${"default"===t?"":Rp(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:wA;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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;const r=null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{});return r||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(n).forEach((r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=MR(u,e(r,o,i,s));else{const e=TR({theme:i},o,(e=>({[r]:e})));!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(n);return t.every((e=>o.size===Object.keys(e).length))}(e,o)?u=MR(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=MR(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":_R(l,u)}:_R(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const AA=RA();function PA(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:{}}AA.filterProps=["sx"];const kA=["breakpoints","palette","spacing","shape"];function IA(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:r={},spacing:n,shape:o={}}=e,i=yr(e,kA),a=kR(t),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=VR({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0===r.length?[1]:r).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ")};return r.mui=!0,r}(n);let l=gp({breakpoints:a,direction:"ltr",components:{},palette:yt({mode:"light"},r),spacing:s,shape:yt({},IR,o)},i);l.applyStyles=PA;for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];return l=c.reduce(((e,t)=>gp(e,t)),l),l.unstable_sxConfig=yt({},wA,null==i?void 0:i.unstable_sxConfig),l.unstable_sx=function(e){return AA({sx:e,theme:this})},l}var MA=Object.freeze({__proto__:null,default:IA,private_createBreakpoints:kR,unstable_applyStyles:PA});function LA(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=y.useContext(Jd);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const DA=IA();function TA(){return LA(arguments.length>0&&void 0!==arguments[0]?arguments[0]:DA)}function _A(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function OA(e){let{styles:t,themeId:r,defaultTheme:n={}}=e;const o=TA(n),i=r&&o[r]||o;let a="function"==typeof t?t(i):t;return i.modularCssLayers&&(a=Array.isArray(a)?a.map((e=>_A("function"==typeof e?e(i):e))):_A(a)),Rl.jsx(up,{styles:a})}const qA=["sx"];function NA(e){const{sx:t}=e,r=yr(e,qA),{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:wA;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?function(){const e=t(...arguments);return hp(e)?yt({},n,e):n}:yt({},n,t),yt({},o,{sx:i})}var zA=Object.freeze({__proto__:null,default:AA,extendSxProp:NA,unstable_createStyleFunctionSx:RA,unstable_defaultSxConfig:wA});const jA=["className","component"];function FA(e){if(e.type)return e;if("#"===e.charAt(0))return FA(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(bu(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(bu(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function HA(e,t){return e=FA(e),t=function(e){return ch(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)}(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)}const $A=["value"],BA=y.createContext();function WA(e){let{value:t}=e,r=yr(e,$A);return Rl.jsx(BA.Provider,yt({value:null==t||t},r))}const VA=y.createContext(void 0);function GA(e){let{value:t,children:r}=e;return Rl.jsx(VA.Provider,{value:t,children:r})}function UA(e){let{props:t,name:r}=e;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?lh(o.defaultProps,n):o.styleOverrides||o.variants?n:lh(o,n)}({props:t,name:r,theme:{components:y.useContext(VA)}})}const YA={};function KA(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?yt({},t,{[e]:i}):i;return n?()=>a:a}return yt({},t,e?{[e]:r}:r)}),[e,t,r,n])}function XA(e){const{children:t,theme:r,themeId:n}=e,o=LA(YA),i=Uh()||YA,a=KA(n,o,r),s=KA(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=LA(),r=Sh()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",uh((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}}),[o,r]),o?Rl.jsx(OA,{styles:o}):null}(a);return Rl.jsx(Kh,{theme:s,children:Rl.jsx(Jd.Provider,{value:a,children:Rl.jsx(WA,{value:l,children:Rl.jsxs(GA,{value:null==a?void 0:a.components,children:[u,t]})})})})}function JA(e,t){return yt({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ZA={},QA=nm;Object.defineProperty(ZA,"__esModule",{value:!0});var eP=ZA.alpha=fP;ZA.blend=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=lP(e),a=lP(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return cP({type:"rgb",values:s})},ZA.colorChannel=void 0;var tP=ZA.darken=hP;ZA.decomposeColor=lP,ZA.emphasize=gP;var rP=ZA.getContrastRatio=function(e,t){const r=pP(e),n=pP(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};ZA.getLuminance=pP,ZA.hexToRgb=sP,ZA.hslToRgb=dP;var nP=ZA.lighten=mP;ZA.private_safeAlpha=function(e,t,r){try{return fP(e,t)}catch(t){return e}},ZA.private_safeColorChannel=void 0,ZA.private_safeDarken=function(e,t,r){try{return hP(e,t)}catch(t){return e}},ZA.private_safeEmphasize=function(e,t,r){try{return gP(e,t)}catch(t){return e}},ZA.private_safeLighten=function(e,t,r){try{return mP(e,t)}catch(t){return e}},ZA.recomposeColor=cP,ZA.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=lP(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 oP=QA(om),iP=QA(im);function aP(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,iP.default)(e,t,r)}function sP(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 lP(e){if(e.type)return e;if("#"===e.charAt(0))return lP(sP(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,oP.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,oP.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const uP=e=>{const t=lP(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};ZA.colorChannel=uP;function cP(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 dP(e){e=lP(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){let 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)};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])),cP({type:s,values:l})}function pP(e){let t="hsl"===(e=lP(e)).type||"hsla"===e.type?lP(dP(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 fP(e,t){return e=lP(e),t=aP(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,cP(e)}function hP(e,t){if(e=lP(e),t=aP(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 cP(e)}function mP(e,t){if(e=lP(e),t=aP(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 cP(e)}function gP(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return pP(e)>.5?hP(e,t):mP(e,t)}ZA.private_safeColorChannel=(e,t)=>{try{return uP(e)}catch(t){return e}};const bP={black:"#000",white:"#fff"},vP={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"},yP="#f3e5f5",xP="#ce93d8",SP="#ba68c8",CP="#ab47bc",EP="#9c27b0",wP="#7b1fa2",RP="#e57373",AP="#ef5350",PP="#f44336",kP="#d32f2f",IP="#c62828",MP="#ffb74d",LP="#ffa726",DP="#ff9800",TP="#f57c00",_P="#e65100",OP="#e3f2fd",qP="#90caf9",NP="#42a5f5",zP="#1976d2",jP="#1565c0",FP="#4fc3f7",HP="#29b6f6",$P="#03a9f4",BP="#0288d1",WP="#01579b",VP="#81c784",GP="#66bb6a",UP="#4caf50",YP="#388e3c",KP="#2e7d32",XP="#1b5e20",JP=["mode","contrastThreshold","tonalOffset"],ZP={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:bP.white,default:bP.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}},QP={text:{primary:bP.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:bP.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 ek(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=nP(e.main,o):"dark"===t&&(e.dark=tP(e.main,i)))}function tk(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=yr(e,JP),i=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:qP,light:OP,dark:NP}:{main:zP,light:NP,dark:jP}}(t),a=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:xP,light:yP,dark:CP}:{main:EP,light:SP,dark:wP}}(t),s=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:PP,light:RP,dark:kP}:{main:kP,light:AP,dark:IP}}(t),l=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:HP,light:FP,dark:BP}:{main:BP,light:$P,dark:WP}}(t),u=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:GP,light:VP,dark:YP}:{main:KP,light:UP,dark:XP}}(t),c=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:LP,light:MP,dark:TP}:{main:"#ed6c02",light:DP,dark:_P}}(t);function d(e){return rP(e,QP.text.primary)>=r?QP.text.primary:ZP.text.primary}const p=e=>{let{color:t,name:r,mainShade:o=500,lightShade:i=300,darkShade:a=700}=e;if(t=yt({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error(bu(11,r?` (${r})`:"",o));if("string"!=typeof t.main)throw new Error(bu(12,r?` (${r})`:"",JSON.stringify(t.main)));return ek(t,"light",i,n),ek(t,"dark",a,n),t.contrastText||(t.contrastText=d(t.main)),t},f={dark:QP,light:ZP};return gp(yt({common:yt({},bP),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:vP,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const rk=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const nk={textTransform:"uppercase"},ok='"Roboto", "Helvetica", "Arial", sans-serif';function ik(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=ok,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=yr(r,rk),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return yt({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===ok?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,nk),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,nk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return gp(yt({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function ak(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const sk=["none",ak(0,2,1,-1,0,1,1,0,0,1,3,0),ak(0,3,1,-2,0,2,2,0,0,1,5,0),ak(0,3,3,-2,0,3,4,0,0,1,8,0),ak(0,2,4,-1,0,4,5,0,0,1,10,0),ak(0,3,5,-1,0,5,8,0,0,1,14,0),ak(0,3,5,-1,0,6,10,0,0,1,18,0),ak(0,4,5,-2,0,7,10,1,0,2,16,1),ak(0,5,5,-3,0,8,10,1,0,3,14,2),ak(0,5,6,-3,0,9,12,1,0,3,16,2),ak(0,6,6,-3,0,10,14,1,0,4,18,3),ak(0,6,7,-4,0,11,15,1,0,4,20,3),ak(0,7,8,-4,0,12,17,2,0,5,22,4),ak(0,7,8,-4,0,13,19,2,0,5,24,4),ak(0,7,9,-4,0,14,21,2,0,5,26,4),ak(0,8,9,-5,0,15,22,2,0,6,28,5),ak(0,8,10,-5,0,16,24,2,0,6,30,5),ak(0,8,11,-5,0,17,26,2,0,6,32,5),ak(0,9,11,-5,0,18,28,2,0,7,34,6),ak(0,9,12,-6,0,19,29,2,0,7,36,6),ak(0,10,13,-6,0,20,31,3,0,8,38,7),ak(0,10,13,-6,0,21,33,3,0,8,40,7),ak(0,10,14,-6,0,22,35,3,0,8,42,7),ak(0,11,14,-7,0,23,36,3,0,9,44,8),ak(0,11,15,-7,0,24,38,3,0,9,46,8)],lk=["duration","easing","delay"],uk={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)"},ck={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dk(e){return`${Math.round(e)}ms`}function pk(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function fk(e){const t=yt({},uk,e.easing),r=yt({},ck,e.duration);return yt({getAutoHeightDuration:pk,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return yr(n,lk),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:dk(o)} ${i} ${"string"==typeof a?a:dk(a)}`)).join(",")}},e,{easing:t,duration:r})}const hk={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},mk=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function gk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:r={},transitions:n={},typography:o={}}=e,i=yr(e,mk);if(e.vars&&void 0===e.generateCssVars)throw new Error(bu(18));const a=tk(r),s=IA(e);let l=gp(s,{mixins:JA(s.breakpoints,t),palette:a,shadows:sk.slice(),typography:ik(a,o),transitions:fk(n),zIndex:yt({},hk)});l=gp(l,i);for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];return l=c.reduce(((e,t)=>gp(e,t)),l),l.unstable_sxConfig=yt({},wA,null==i?void 0:i.unstable_sxConfig),l.unstable_sx=function(e){return AA({sx:e,theme:this})},l}const bk=gk();var vk={},yk=wt(MA),xk=wt(zA),Sk=nm;Object.defineProperty(vk,"__esModule",{value:!0});var Ck=vk.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r=Ok,rootShouldForwardProp:n=Tk,slotShouldForwardProp:o=Tk}=e,i=e=>(0,kk.default)((0,Ek.default)({},e,{theme:Nk((0,Ek.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,Rk.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=zk(qk(l))}=a,p=(0,wk.default)(a,Lk),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=Tk;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,Rk.default)(e,(0,Ek.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Ak.isPlainObject)(e)?n=>{const o=Nk({theme:n.theme,defaultTheme:r,themeId:t});return jk(e,(0,Ek.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=function(n){let o=v(n);for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];const c=l?l.map(v):[];s&&d&&c.push((e=>{const n=Nk((0,Ek.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=>{let[r,o]=t;i[r]=jk(o,(0,Ek.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&c.push((e=>{var n;const o=Nk((0,Ek.default)({},e,{defaultTheme:r,themeId:t}));return jk({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Ek.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||c.push(i);const p=c.length-l.length;if(Array.isArray(n)&&p>0){const e=new Array(p).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const f=b(o,...c);return e.muiName&&(f.muiName=e.muiName),f};return b.withConfig&&(y.withConfig=b.withConfig),y}};vk.shouldForwardProp=Tk,vk.systemDefaultTheme=void 0;var Ek=Sk(Km()),wk=Sk(Zm()),Rk=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Dk(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}(Qm),Ak=eg;Sk(tg),Sk(rg);var Pk=Sk(yk),kk=Sk(xk);const Ik=["ownerState"],Mk=["variants"],Lk=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Dk(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Dk=function(e){return e?r:t})(e)}function Tk(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function _k(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Ok=vk.systemDefaultTheme=(0,Pk.default)(),qk=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Nk(e){let{defaultTheme:t,theme:r,themeId:n}=e;return o=r,0===Object.keys(o).length?t:r[n]||r;var o}function zk(e){return e?(t,r)=>r[e]:null}function jk(e,t,r){let{ownerState:n}=t,o=(0,wk.default)(t,Ik);const i="function"==typeof e?e((0,Ek.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>jk(e,(0,Ek.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,wk.default)(i,Mk);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Ek.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Ek.default)({ownerState:n},o,n)):e.style;t.push(r?_k((0,Rk.internal_serializeStyles)(i),r):i)}})),t}return r?_k((0,Rk.internal_serializeStyles)(i),r):i}const Fk=Ck({themeId:AR,defaultTheme:bk,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),Hk=["theme"];function $k(e){let{theme:t}=e,r=yr(e,Hk);const n=t[AR];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=yt({},n,{vars:null}):t&&!t.vars&&(o=yt({},t,{vars:null}))),Rl.jsx(XA,yt({},r,{themeId:n?AR:void 0,theme:o}))}var Bk={exports:{}};
|
|
104
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},OC({exports:{}});var VC={exports:{}};self,VC.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Le});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const C={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function E(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={},P=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function L(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=I(e[r||t])?i:e[t],e=e[r||t]}})),e}function D(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){D(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(!D(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);D(i,a)||M(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(A.generate(a,i,s)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&I(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(D(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])&&!M(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=L(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return E(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 E(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)?E(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!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=L(e,t.from);P(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,_=function(e,r,n){if(!e)return Promise.resolve();var o=T.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 q(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 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===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:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.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=C.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=C.getNumStepComp(r,l),p=C.getAboveComp(r,l,c,d),f=C.getRangeComp("RangeSum",p);if(C.needDimension({modifier:r,properties:n,layout:o})){var h=C.getDimComp(u,1),m=C.getDimComp(u,0),g=C.getAggrComp(f,h,m);f=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.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!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.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=q(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 $(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.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=C.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=C.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=C.getNumStepComp(n,u),h=C.getAboveComp(n,u,p,f);if(n.nullSuppression)t=C.getRangeComp("RangeAvg",h);else{var m=C.getRangeComp("RangeSum",h),g=function(e,t){var r=C.getRowNoComp(e,t);if(!C.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(C.needDimension({modifier:n,properties:o,layout:a})){var v=C.getDimComp(c,1),y=C.getDimComp(c,0),x=C.getAggrComp(b,v,y);b=n.showExcludedValues?C.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return C.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 V="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?C.generateTSDExpression(r,t,n):t},extractInputExpression:C.extractInputExpression,initModifier:function(e,t){C.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=C.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!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.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=C.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=C.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(C.needDimension({modifier:r,properties:n,layout:o})){var f=C.getDimComp(u,1),h=C.getDimComp(u,0),m=C.getAggrComp(p,f,h);p=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!C.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 C.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(C.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(C.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.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=C.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=C.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]=C.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!C.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 C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ce="qDef.qLabelExpression",Ee="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ee,i(e,Se)),r(e,we,i(e,Ce)))},restoreBase:function(e){Pe.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ee)),r(e,Ce,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 ke=Pe;function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}var Me={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Le={modifiers:Me,apply:Te,applyModifiers:_e,cleanUpMeasure:Oe,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:ke.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);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:ze};var De={};function Te(){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;De[r.id]=De[r.id]||{isFirstTime:!0};var u=De[r.id].isFirstTime;if(De[r.id].isFirstTime=!1,n&&"object"===Ie(n))return _e({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=De[r.id].lastReloadTime;if(De[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);$e(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return h&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(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&&We(t)&&C.simplifyExpression(t.qDef.base.qDef)!==C.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),_e({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 Oe(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function _e(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),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Oe(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;ke.isValid(r)||ke.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(Me[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)");Me[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:Me[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 Me[n.type].updateModifier&&Me[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Me[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||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}),Be(r)):Oe(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 Oe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!Me[e.type]}))}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:Fe(e),properties:r,layout:n})}))}function Ne(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=Ne(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 $e(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!Me[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ue({modifiers:Fe(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||!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={},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):_(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&&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(Ue({modifiers:n,properties:e})){var i=Ve(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(De[t.id].masterItemSubscriber=De[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 Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),De[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),C=r.n(S);function E(e,t){var r=C()(!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 C()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k(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},M=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},L=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},D=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}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},_=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=E(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=E(s.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,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)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},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))},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=C()(!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=C()(!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,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 P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},$=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 k(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 k(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)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=z({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,C=y.maxMeasures,E=y.minMeasures,w=l.defaultDimension,R=void 0===w?D():w,A=l.defaultMeasure,P=void 0===A?T():A;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:C,minMeasures:E})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:C,minMeasures:E,newHyperCubeDef:v}),_({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),O({exportFormat:t,maxMeasures:C,minMeasures:E,newHyperCubeDef:v,defaultMeasure:P}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),M("qMaxStackedCells",b,v),M("qNoOfLeftDims",b,v),L("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),L("qMode",b,v,"S"),L("qReductionMode",b,v,"N"),L("qSortbyYValue",b,v),L("qIndentMode",b,v),L("qShowTotalsAbove",b,v),I(g,t,n),m.qProperty=g;var k=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:k}),p&&W(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],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},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||C()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||C()(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]&&C()(s,r.properties.measureAxes[t[0].axis])):C()(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}}},Ce={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 Ee(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=Ee(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=Ee(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",ke="measures",Ie="qDef.conditionalColoring";const Me={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:ke,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:ke,quarantineName:Pe})}};var Le="qHyperCubeDef.qMeasures",De="measures",Te="qHyperCubeDef.qDimensions",_e="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",je="qCalcCondition",Fe="conditionalShowHide";const He={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:De,itemPath:je}),we({properties:e,arrayPath:Te,quarantineName:Fe,arrayName:_e,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:De,itemPath:je}),Re({properties:e,arrayPath:Te,quarantineName:Fe,arrayName:_e,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:ze,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:ze,itemPath:je})}},$e={hypercube:V,colorChart:be,axisChart:Ce,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:He}})(),n.default})();var GC=Et(VC.exports);const UC="qHyperCubeDef.qMeasures",YC="measures",KC="qHyperCubeDef.qDimensions",XC="dimensions",JC="qDef.representation",ZC="tableRepresentation",QC="qDef.conditionalColoring",eE="conditionalColoring",tE="qMiniChartDef",rE="miniChartDef",nE=e=>{let{propertyTree:t,hyperCubePath:r}=e;const n=GC.hypercube.exportProperties({propertyTree:t,hyperCubePath:r}),{qHyperCubeDef:{qColumnOrder:o,qDimensions:i,qMeasures:a}}=n.properties,s=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t)));return o})(i,a,o);return NC(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:s}),GC.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),GC.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),GC.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{GC.quarantineArrayProp({properties:e,arrayPath:KC,itemPath:JC,arrayName:XC,quarantineName:ZC}),GC.quarantineArrayProp({properties:e,arrayPath:UC,itemPath:JC,arrayName:YC,quarantineName:ZC}),GC.quarantineArrayProp({properties:e,arrayPath:UC,itemPath:QC,arrayName:YC,quarantineName:eE}),GC.quarantineArrayProp({properties:e,arrayPath:UC,itemPath:tE,arrayName:YC,quarantineName:rE})})(n.properties),n};const oE=/^q[A-Z]/,iE=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],aE=e=>"object"==typeof e&&null!==e,sE=(e,t)=>(Object.entries(e).forEach((r=>{let[n,o]=r;const i=void 0===t?n:`${t}.${n}`;((e,t)=>!oE.test(e)&&!iE.some((e=>e.test(t))))(n,i)?delete e[n]:Array.isArray(o)?e[n]=o.map(((e,t)=>aE(e)?sE(e,`${i}.${t}`):e)):aE(o)&&(e[n]=sE(o,i))})),e),lE=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:vS.Pixels,pixels:e}:{type:vS.FitToContent}:i.qDef.columnWidth=e}return i},uE=e=>{let{exportFormat:t,initialProperties:r,extension:n,hypercubePath:o,defaultPropertyValues:i,viewDataMode:a}=e;if(a){try{t=structuredClone(t)}catch(e){console.error("Failed to copy source properties",e)}sE(t.properties)}const s=GC.hypercube.importProperties({exportFormat:t,initialProperties:r,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:i,hypercubePath:o,extension:n});if(GC.conditionalShow.unquarantine(s.qProperty),a)NC(s,"qProperty.totals.show",!1),NC(s,"qProperty.usePagination",!0);else{GC.unquarantineProperty(s.qProperty,"straightTableColumnOrder"),(e=>{GC.unquarantineArrayProp({properties:e,arrayPath:KC,itemPath:JC,arrayName:XC,quarantineName:ZC}),GC.unquarantineArrayProp({properties:e,arrayPath:UC,itemPath:JC,arrayName:YC,quarantineName:ZC}),GC.unquarantineArrayProp({properties:e,arrayPath:UC,itemPath:QC,arrayName:YC,quarantineName:eE}),GC.unquarantineArrayProp({properties:e,arrayPath:UC,itemPath:tE,arrayName:YC,quarantineName:rE})})(s.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=s.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>lE(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>lE(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(NC(s,"qProperty.qHyperCubeDef.qDimensions",o),NC(s,"qProperty.qHyperCubeDef.qMeasures",i))}return s};var cE={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function dE(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function pE(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 fE(e){return e>0?0:1}function hE(e){return e.translator.get("Visualizations.Descriptions.Column")}function mE(e){return{measures:{min:fE,max:1e3,description:()=>hE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;dE(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;pE(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:fE,max:1e3,description:()=>hE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return dE(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;pE(o,n)}}}}let gE=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}({}),bE=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const vE=e=>{switch(e?.type){case"url":return gE.Link;case"image":return gE.Image;case"indicator":return gE.Indicator;case"miniChart":return gE.MiniChart;default:return gE.Text}},yE=e=>{let{isImagesEnabled:t}=e;return{uses:"dimensionRepresentationItems.representationType",options(e,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&t||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}},xE=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>vE(e.qDef.representation)===gE.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},SE=e=>{const{anything:t,flags:r}=e,n=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:yE({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>vE(e.qDef.representation)===gE.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>vE(e.qDef.representation)===gE.Link&&e.qDef.representation?.urlPosition===bE.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>vE(e.qDef.representation)===gE.Link&&e.qDef.representation?.urlPosition===bE.Attribute},...xE(n)}},CE=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[gE.Image],i=!n?.("qMiniChartDef")&&t[gE.MiniChart],a=!n?.("tableIndicators")&&t[gE.Indicator],s=o&&t[gE.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>vE(e.qDef.representation)===gE.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var EE,wE={};EE=wE,(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},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 s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(c,f),b=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function C(e){return"".concat(e,"(")}function E(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:f,getNumDimensions:E,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:C,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return C(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp: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===E({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=E({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=l.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?l.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(l.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var P=i().bind(null,!0),k={},I=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function L(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=L(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(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){_(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(!_(e[n],t[n]))return!1;return!0}return e===t}k.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?P({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);_(i,a)||D(t,o)||(L(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(k.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]&&L(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(_(t,o))return n;if(!L(t[0])&&L(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(k.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){L(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},k.apply=function(e,t){t.forEach((function(t){var r,n,o=T(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,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(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(r,e)&&delete r[e]})),P(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=T(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])}))},k.clone=function(e){return P({},e)},k.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},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):P(e,t)};const O=k,q=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 N="accumulation";function z(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 F={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 h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.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!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=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 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=z(t,e);return i&&!i.disabled}}}};var $="movingAverage";function B(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function W(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const G={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),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout: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,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(W(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(W(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(W(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(W(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=B(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=B(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(W(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($))return!1;var i=B(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),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(ee).forEach((function(t){void 0===e[t]&&(e[t]=ee[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!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 he(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function me(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=he(t,r,n),u=""===s&&""===l?"":s||l,c=me(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:he,getTotalComp:me,getSelectedDimComp:ge};var ve="library id deleted",ye="qDef.qDef",xe="qDef.base.qDef",Se="qLibraryId",Ce="qDef.base.qLibraryId",Ee="qDef.qLabel",we="qDef.qLabelExpression",Re="qDef.base.qLabel",Ae="qDef.base.qLabelExpression",Pe="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Ie="qDef.base";const Me={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,Ce)?Ce:Se},getLibraryId:function(e){return s(e,Ce)||s(e,Se)},getLabelRef:function(e){return s(e,Ie)?Re:Ee},getLabelExpressionRef:function(e){return s(e,Ie)?Ae:we}};var Le={initBase:function(e,t){(t||Le.isValid(e))&&(a(e,xe,s(e,ye)),a(e,Ce,s(e,Se)),a(e,Re,s(e,Ee)),a(e,Ae,s(e,we)))},restoreBase:function(e){Le.isValid(e)&&(a(e,ye,s(e,xe)),a(e,Se,s(e,Ce)),a(e,Ee,s(e,Re)),a(e,we,s(e,Ae)),s(e,Pe)&&s(e,ke)&&a(e,Pe,s(e,ke)),delete e.qDef.base)},isValid:function(e){var t=s(e,xe),r=s(e,Ce);return void 0!==t||void 0!==r}};const De=Le;function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}var _e={accumulation:H,movingAverage:G,difference:te,normalization:be,timeSeriesDecomposition:J};const Oe={modifiers:_e,apply:Ne,applyModifiers:ze,cleanUpMeasure:je,destroy:function(e){e&&qe[e.id]&&qe[e.id].masterItemSubscriber&&(qe[e.id].masterItemSubscriber&&qe[e.id].masterItemSubscriber.unsubscribe(),delete qe[e.id])},hasActiveModifiers:Fe,getActiveModifier:He,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return _e[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return _e[e]&&_e[e].isApplicable({properties:r,layout:n})}))},measureBase: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=We(e);Je({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||rt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:$e};var qe={};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;qe[t.id]=qe[t.id]||{isFirstTime:!0};var u=qe[t.id].isFirstTime;if(qe[t.id].isFirstTime=!1,r&&"object"===Te(r))return ze({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=qe[t.id].lastReloadTime;if(qe[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Fe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Xe({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Je({modifiers:We(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);Ge(r);var n=nt(r);return Ze({model:t}).then((function(o){return Qe({libraryIds:n,model:t}).then((function(n){return h&&function(e){var t=e.properties;Be(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"===Te(e)&&!e.disabled){if(r++,"object"!==Te(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=_e[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ye(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.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(l)}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Te(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=nt(r);return ot({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return Be(r).forEach((function(e){return je(e)})),tt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function ze(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),Ge(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=Be(r)),!t.length)return Promise.resolve();if(!o&&!Fe({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;De.isValid(t)||De.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(a++,"object"!==Te(_e[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)");_e[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:_e[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 _e[r.type].updateModifier&&_e[r.type].updateModifier(r,n.qHyperCubeDef);var a=Me.getExpression(t),s=""===a?a:_e[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||$e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&$e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),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=We(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!_e[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ue(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:We(e),properties:r,layout:n})}))}function He(e){var t=We(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(_e[n.type]&&!n.disabled)return n}}function $e(e){var t=He(e);return!t||_e[t.type].enableTotalsFunction(e)}function Be(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function We(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ve(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function Ge(e){Be(e).forEach((function(e){return function(e){var t=He(e);t&&(void 0!==t.outputExpression&&Ve(t)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Ue(e){var t=We(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!_e[t.type]&&Ve(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function 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:We(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"!==Te(e)||e.disabled||!_e[e.type])&&(void 0===o[e.type]&&(o[e.type]=_e[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function 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):q(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"===Te(e)&&!e.disabled&&_e[e.type]&&_e[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function nt(e){var t=Be(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=We(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)?(qe[t.id].masterItemSubscriber=qe[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()}))}}),qe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}EE.default=n.default,Object.defineProperty(EE,"__esModule",{value:!0})})();var RE=Et(wE);const AE={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},PE={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=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!RE.hasActiveModifiers({measures:[e],properties:t.properties})||RE.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:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),IE={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:vS.Auto,translation:"Common.Auto"},{value:vS.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:vS.Pixels,translation:"Object.Table.Column.Pixels"},{value:vS.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:vS.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===vS.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===vS.Percentage}},ME=()=>({...AE,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}]},...PE,...IE}),LE={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"}},DE=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:kE(e)}},TE=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:LE},presentation:{type:"items",translation:"properties.presentation",items:{...ME(),...SE(e)}}}}}),_E=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:DE(e)},presentation:{type:"items",translation:"properties.presentation",items:{...ME(),...CE(e,{[gE.Image]:e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[gE.Indicator]:!0,[gE.MiniChart]:!0})}}}}}),OE=e=>({...TE(e),..._E(e)}),qE=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...OE(e)},highlightSelected:e.flags.isEnabled("CLIENT_VNA_312_TABLE_HIGHLIGHT_SELECTED")},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:e.flags.isEnabled("CLIENT_VNA_312_TABLE_HIGHLIGHT_SELECTED")}}}),NE={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}},zE=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),jE=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),FE=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[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},HE=e=>{let{ref:t,themeAccessor:r,translator:n,flags:o}=e;return{component:"dropdown",ref:t,options:(e,t,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map((e=>FE(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ae(n).filter((e=>!a.includes(e))).map((e=>FE(e,!0)))];return[...s,...l.length>1?l:[]]})(r(a),a,n,o)},defaultValue:(e,t,n)=>r(n.theme.current())}},$E=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],BE=e=>{let{ref:t,themeAccessor:r,translator:n}=e;return{component:"dropdown",ref:t,options:(e,t,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>FE(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...$E.filter((e=>!i.includes(e))).map((e=>FE(e,!1)))];return[...a,...s.length>1?s:[]]})(r(i),i,n)},defaultValue:(e,t,n)=>r(n.theme.current())}},WE=e=>{let{section:t,defaultFontStyle:r,translator:n,flags:o,getThemeValue:i,translation:a,disableNoneCallback:s}=e;return{component:"panel-section",translation:a??`properties.pivot.${t}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:HE({ref:`${t}.fontFamily`,themeAccessor:e=>i(e,t,"fontFamily")??e.fontFamily,translator:n,flags:o}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${t}.fontStyle`,defaultValue:r??[]},fontSize:BE({ref:`${t}.fontSize`,themeAccessor:e=>i(e,t,"fontSize")??e.fontSize,translator:n}),fontColor:jE(`${t}.fontColor`,void 0,(e=>i(e,t,"color")??e.color))}},background:jE(`${t}.background`,"properties.background",((e,r)=>{const n=r?jx.WHITE:jx.TRANSPARENT;return i(e,t,"backgroundColor")??n}),s)}}}}},VE=e=>{let{section:t,defaultFontStyle:r,fallbackBackground:n,getThemeValue:o}=e;return{component:"panel-section",translation:`properties.pivot.${t}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${t}.fontStyle`,defaultValue:r??[]},fontColor:jE(`${t}.fontColor`,void 0,(e=>o(e,t,"color")??e.color))}},background:jE(`${t}.background`,"properties.background",(e=>o(e,t,"backgroundColor")??n??"transparent"))}}}}},GE=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},UE=e=>e.grid?.zebraStripes?.show,YE={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},KE=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"),...YE},border:jE("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??jx.BORDER_MEDIUM)),divider:jE("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??jx.BORDER_HEAVY))}}}}),XE=e=>e?.content?.hoverEffect,JE={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:XE,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:XE,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},ZE=(e,t,r)=>{let{properties:n}=r;return"sn-table"===n.visualization&&!0===n.usePagination},QE=e=>{let{flags:t,translator:r}=e;return{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:WE({section:"header",defaultFontStyle:["bold"],translator:r,flags:t,getThemeValue:GE,disableNoneCallback:ZE}),dimensionValueSection:WE({section:"dimensionValues",translator:r,flags:t,getThemeValue:GE}),measureValueSection:WE({section:"measureValues",translator:r,flags:t,getThemeValue:GE}),totalRowSection:WE({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:r,flags:t,getThemeValue:GE,disableNoneCallback:ZE}),nullValues:VE({section:"nullValues",fallbackBackground:jx.NULL_VALUE_BACKGROUND,getThemeValue:GE}),grid:KE(t),hoverEffectSection:JE,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:UE,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:UE,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:UE,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:UE,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}},ew=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[QE(e),zE(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:"-"}]},...NE}}),tw={uses:"sorting"},rw={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},nw=e=>({type:"items",component:"accordion",items:{data:qE(e),sorting:tw,addOns:rw,settings:ew(e)}});function ow(e){return{definition:nw(e),exploration:cE,data:mE(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return uE({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>nE({propertyTree:e,hyperCubePath:t})}}const iw=(t,r)=>e((()=>((e,t)=>(r,n)=>{let{isDim:o,colIdx:i}=n;const a=o?i:i-e.qDimensionInfo.length,s=`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${a}/qDef/columnWidth`,l=e[o?"qDimensionInfo":"qMeasureInfo"].at(a)?.columnWidth,u=l?{qPath:s,qOp:"Replace",qValue:JSON.stringify({...l,...r})}:{qPath:s,qOp:"Add",qValue:JSON.stringify(r)};t?.applyPatches([u],!0)})(t,r)),[t,r]),aw=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,t,r)=>{let{id:n}=t;return e[n]=r,e}),{}),sw=[];for(let e=0;e<256;++e)sw.push((e+256).toString(16).slice(1));let lw;const uw=new Uint8Array(16);var cw={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function dw(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!lw){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");lw=crypto.getRandomValues.bind(crypto)}return lw(uw)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(sw[e[t+0]]+sw[e[t+1]]+sw[e[t+2]]+sw[e[t+3]]+"-"+sw[e[t+4]]+sw[e[t+5]]+"-"+sw[e[t+6]]+sw[e[t+7]]+"-"+sw[e[t+8]]+sw[e[t+9]]+"-"+sw[e[t+10]]+sw[e[t+11]]+sw[e[t+12]]+sw[e[t+13]]+sw[e[t+14]]+sw[e[t+15]]).toLowerCase()}(n)}const pw=()=>{return crypto?.randomUUID?.()??(cw.randomUUID&&!e?cw.randomUUID():dw(e));var e},fw=e=>{let{qLibraryId:t,cId:r}=e;return t??r??pw()},hw=e=>"number"==typeof e&&!Number.isNaN(+e),mw=e=>hw(e.qNum),gw=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);function bw(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 vw(e,t,r){return t=Cw(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,ww()?Reflect.construct(t,r||[],Cw(e).constructor):t.apply(e,r))}function yw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xw(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,Pw(n.key),n)}}function Sw(e,t,r){return t&&xw(e.prototype,t),r&&xw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cw(e){return Cw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cw(e)}function Ew(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&&Rw(e,t)}function ww(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ww=function(){return!!e})()}function Rw(e,t){return Rw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rw(e,t)}function Aw(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 bw(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)?bw(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 Pw(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 kw(e){return kw="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},kw(e)}var Iw={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:Mw(e),value:Mw(t),useEqualSign:r}}(r,o,i))}})),t}};function Mw(e){try{return decodeURIComponent(e)}catch(t){return e}}function Lw(e){if(!(this instanceof Lw))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 Iw.fromSearchString(t.search)}}})}function Dw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}Lw.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},Lw.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=Dw((t=e[n]).key),t.value?r+="=".concat(Dw(t.value)):r+=t.useEqualSign?"=":"";return r};var Tw,_w=function(){return Sw((function e(t){yw(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}}])}(),Ow=function(){return Sw((function e(){yw(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new _w(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),qw=function(e){return e>=0&&e<=1114111},Nw=function(e){return e.match(/[\s]/)},zw=function(){function e(){return yw(this,e),vw(this,e,arguments)}return Ew(e,Ow),Sw(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())&&!Nw(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return qw(a)?String.fromCharCode(a):"�"}}])}(),jw=function(){function e(t,r){yw(this,e),this._key=t,this._value=r}return Sw(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}}])}(),Fw=function(){function e(){yw(this,e)}return Sw(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 jw.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return jw.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||jw.newInstanceIfNeeded(e,t,this._value)}}])}(),Hw=function(){return Sw((function e(){yw(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 Fw);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),$w=function(){var e,t,r,n=[],o=[],i=new Hw;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="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["¬in"]="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}(),Bw=function(){function e(){return yw(this,e),vw(this,e,arguments)}return Ew(e,Ow),Sw(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,$w.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=$w.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)&&qw(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)&&qw(n)?String.fromCharCode(n):null}}])}(),Ww=function(){function e(){return yw(this,e),vw(this,e,arguments)}return Ew(e,Ow),Sw(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),qw(o))?String.fromCharCode(o):(e.reset(),null)}}])}(),Vw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(Tw=document.createElement("div"));var Gw=Array.prototype.indexOf,Uw=[",",".","_"," "],Yw=[",",".","-","_"," "],Kw={width:["%"],height:["%"]},Xw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Jw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Xw.image,"background-color":Xw.color,"border-color":Xw.color,"border-image":Xw.image,color:Xw.color,icon:Xw.image,"list-style-image":Xw.image,"outline-color":Xw.color},Zw={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Qw(e,t,r){var n;if(t){if(Gw)return Gw.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 eR(e){if(null==e)return"";var t,r=document.createTextNode(e);return Tw.appendChild(r),t=Tw.innerHTML,Tw.removeChild(r),t}function tR(e,t,r){var n,o,i,a,s,l,u,c,d;for(e=nR(e).toLowerCase(),t=nR(t),i=0;i<Zw.attr_name.length;i++)if(e.match(Zw.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Zw.attr_val.length;i++)if(t.toLowerCase().match(Zw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=Kw[e])||(n=Yw),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]/)&&Qw(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function rR(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=nR(e).toLowerCase(),t=nR(t),Qw(e,Zw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Zw.css_val.length;n++)if(t.toLowerCase().indexOf(Zw.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Jw[e])||(o=Xw.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]/)&&Qw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function nR(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new Bw,new Ww,new zw];!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 oR=[],iR=0;iR<255;iR++)oR[iR]=iR>=48&&iR<=57||iR>=65&&iR<=90||iR>=97&&iR<=122?null:iR.toString(16);var aR=function(e){return eR(e.unsafe)},sR=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]=rR(t,r[t],!0),i+=rR(t,r[t],!0),o[t]=n[t]);return e.map?o:i},lR=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]=tR(i,t[i],!0),o+=tR(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function uR(e,t){throw new Error(t)}var cR={canonicalize:nR,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===kw(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?aR(e):"css"===e.context?(null!=e.map&&"object"!==kw(e.map)&&uR(this,"Invalid parameter type"),sR(e)):"attr"===e.context?(null!=e.map&&"object"!==kw(e.map)&&uR(this,"Invalid parameter type"),lR(e)):void uR(this,"Invalid parameter type")},encodeForAttr:tR,encodeForAttr2:function(e){return tR("nonsens",e,!0)},encodeForCSS:rR,encodeForHref:function(e){nR(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new Lw(e),r=Lw.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+Lw.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=Uw),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Qw(o,t)>=0||null==oR[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:eR,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=nR(t).toLowerCase():uR(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=Aw(null!==(t=Vw.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 dR=(e,t)=>t.qAttrExps?.qValues?.[e],pR=(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"}}},fR=e=>{let{text:t,url:r,imageSize:n,imagePosition:o,labelStructure:i,imageBox:a,direction:s}=e;return o&&r&&!r.toLowerCase().includes("javascript:")&&cR.isSafeDataURL(r)?{type:gE.Image,url:r,text:t,imageSize:n,resolvedImagePosition:pR(o,s),labelStructure:i,imageBox:a}:{type:gE.Text,url:void 0,text:t,labelStructure:i}},hR=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:gE.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:gE.MiniChart,text:n,miniChart:a}},mR=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===bE.Attribute?void 0:r?.urlLabel},gR=e=>{let{labelStructure:t,text:r,url:n}=e;try{if(!n)throw Error("Invalid url");return{type:gE.Link,url:cR.encodeForHref(n),text:r,labelStructure:t}}catch{return{type:gE.Text,url:void 0,text:r,labelStructure:t}}},bR=e=>{let{cell:t,representationProperties:r,attrExprInfoIndex:n,env:o,conditionalColoring:i,miniChartOnMeasure:a,labelStructure:s,getText:l=e=>e.qText,direction:u,enabledFeatures:c}=e;const d=vE(r),p=l(t);return d===gE.Image&&c[gE.Image]&&!o.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=dR(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),fR({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return fR({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=dR(r.imageLabel??-1,e)?.qText??n;return fR({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:gE.Text,url:void 0,labelStructure:i,text:n}})(t,r,n,p,u,s):d===gE.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===bE.Attribute){const i=mR(r.url??-1,e,t);return gR({labelStructure:n,text:o||i||"",url:i})}if(i===bE.Dimension){const i=mR(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),gR({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:gE.Text,url:void 0,text:o,labelStructure:n}})(t,r,n,s,p):d===gE.Indicator&&c[gE.Indicator]&&!o.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:gE.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(r,i,p):d===gE.MiniChart&&c[gE.MiniChart]&&!o.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?hR(t,r,a,p):{type:gE.Text,url:void 0,text:p,labelStructure:s}},vR=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,yR=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",xR=1e4;function SR(e,t){return[...t].reverse().find((t=>t*e<=xR))||Math.floor(xR/e)}function CR(e,t){if(t.viewState?.skipTotals)return{atTop:!1,atBottom:!1};const[r,n,o,i,a]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function ER(e,t,r,n){return t?0===r?e.totals.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function wR(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return hw(r?.qNum)}function RR(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 AR=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const PR=(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===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===SS.Cyclic,f=t===l[0];let h,m,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:C}=d;if(c){const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles.map((e=>({label:e,enabled:!0}))),b=e.qLocked??!1,v=n,({qDimensionType:h}=e)}else({qMiniChart:m}=d);const{qFallbackTitle:E,textAlign:w,qAttrExprInfo:R,qSortIndicator:A,qReverseSort:P,qApprMaxGlyphCount:k,columnWidth:I,qLibraryId:M}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:M,pageColIdx:r,qApprMaxGlyphCount:k,qReverseSort:P,columnWidth:I??{type:vS.Auto},selectionColIdx:v,isActivelySorted:f,id:fw(d),label:E,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:R.map((e=>e.id)),qAttrExprInfoIndex:aw(d),sortDirection:A&&"N"!==A?A:"A",totalInfo:ER(e,c,r,n),...!c&&{isTotalNumeric:wR(e,n)},...RR(w,h,c,o,i),representation:S,conditionalColoring:c?void 0:C,qMiniChart:m}}(e,n,o,u[n],t,r)))};const kR=(e,t)=>!(!e.snapshotData&&!t.viewState?.visibleHeight),IR=(e,t)=>void 0!==t.viewState?.usePagination?t.viewState.usePagination:!1!==e.usePagination||kR(e,t);var MR="$$material";const LR=["values","unit","step"];function DR(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=yr(e,LR),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>yt({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function 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 yt({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 TR={borderRadius:4};function _R(e,t){return t?Ep(e,t,{clone:!1}):e}const OR={xs:0,sm:600,md:900,lg:1200,xl:1536},qR={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${OR[e]}px)`};function NR(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||qR;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||qR;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||OR).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function zR(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function jR(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];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 FR(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"==typeof e?e(r):Array.isArray(e)?e[r]||o:jR(e,r)||o,t&&(n=t(n,o,e)),n}function HR(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=jR(e.theme,n)||{};return NR(e,i,(e=>{let n=FR(a,o,e);return e===n&&"string"==typeof e&&(n=FR(a,o,`${t}${"default"===e?"":Dp(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const $R={m:"margin",p:"padding"},BR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},WR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},VR=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!WR[e])return[e];e=WR[e]}const[t,r]=e.split(""),n=$R[t],o=BR[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),GR=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],UR=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function YR(e,t,r,n){var o;const i=null!=(o=jR(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 KR(e){return YR(e,"spacing",8)}function XR(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 JR(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=XR(t,r),e)),{})}(VR(r),n);return NR(e,e[r],o)}function ZR(e,t){const r=KR(e.theme);return Object.keys(e).map((n=>JR(e,t,n,r))).reduce(_R,{})}function QR(e){return ZR(e,GR)}function eA(e){return ZR(e,UR)}function tA(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,r)=>n[r]?_R(t,n[r](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o}function rA(e){return"number"!=typeof e?e:`${e}px solid`}function nA(e,t){return HR({prop:e,themeKey:"borders",transform:t})}QR.propTypes={},QR.filterProps=GR,eA.propTypes={},eA.filterProps=UR;const oA=nA("border",rA),iA=nA("borderTop",rA),aA=nA("borderRight",rA),sA=nA("borderBottom",rA),lA=nA("borderLeft",rA),uA=nA("borderColor"),cA=nA("borderTopColor"),dA=nA("borderRightColor"),pA=nA("borderBottomColor"),fA=nA("borderLeftColor"),hA=nA("outline",rA),mA=nA("outlineColor"),gA=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=YR(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:XR(t,e)});return NR(e,e.borderRadius,r)}return null};gA.propTypes={},gA.filterProps=["borderRadius"],tA(oA,iA,aA,sA,lA,uA,cA,dA,pA,fA,gA,hA,mA);const bA=e=>{if(void 0!==e.gap&&null!==e.gap){const t=YR(e.theme,"spacing",8),r=e=>({gap:XR(t,e)});return NR(e,e.gap,r)}return null};bA.propTypes={},bA.filterProps=["gap"];const vA=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=YR(e.theme,"spacing",8),r=e=>({columnGap:XR(t,e)});return NR(e,e.columnGap,r)}return null};vA.propTypes={},vA.filterProps=["columnGap"];const yA=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=YR(e.theme,"spacing",8),r=e=>({rowGap:XR(t,e)});return NR(e,e.rowGap,r)}return null};yA.propTypes={},yA.filterProps=["rowGap"];function xA(e,t){return"grey"===t?t:e}tA(bA,vA,yA,HR({prop:"gridColumn"}),HR({prop:"gridRow"}),HR({prop:"gridAutoFlow"}),HR({prop:"gridAutoColumns"}),HR({prop:"gridAutoRows"}),HR({prop:"gridTemplateColumns"}),HR({prop:"gridTemplateRows"}),HR({prop:"gridTemplateAreas"}),HR({prop:"gridArea"}));function SA(e){return e<=1&&0!==e?100*e+"%":e}tA(HR({prop:"color",themeKey:"palette",transform:xA}),HR({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xA}),HR({prop:"backgroundColor",themeKey:"palette",transform:xA}));const CA=HR({prop:"width",transform:SA}),EA=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])||OR[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:SA(t)}};return NR(e,e.maxWidth,t)}return null};EA.filterProps=["maxWidth"];const wA=HR({prop:"minWidth",transform:SA}),RA=HR({prop:"height",transform:SA}),AA=HR({prop:"maxHeight",transform:SA}),PA=HR({prop:"minHeight",transform:SA});HR({prop:"size",cssProperty:"width",transform:SA}),HR({prop:"size",cssProperty:"height",transform:SA});tA(CA,EA,wA,RA,AA,PA,HR({prop:"boxSizing"}));const kA={border:{themeKey:"borders",transform:rA},borderTop:{themeKey:"borders",transform:rA},borderRight:{themeKey:"borders",transform:rA},borderBottom:{themeKey:"borders",transform:rA},borderLeft:{themeKey:"borders",transform:rA},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rA},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gA},color:{themeKey:"palette",transform:xA},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xA},backgroundColor:{themeKey:"palette",transform:xA},p:{style:eA},pt:{style:eA},pr:{style:eA},pb:{style:eA},pl:{style:eA},px:{style:eA},py:{style:eA},padding:{style:eA},paddingTop:{style:eA},paddingRight:{style:eA},paddingBottom:{style:eA},paddingLeft:{style:eA},paddingX:{style:eA},paddingY:{style:eA},paddingInline:{style:eA},paddingInlineStart:{style:eA},paddingInlineEnd:{style:eA},paddingBlock:{style:eA},paddingBlockStart:{style:eA},paddingBlockEnd:{style:eA},m:{style:QR},mt:{style:QR},mr:{style:QR},mb:{style:QR},ml:{style:QR},mx:{style:QR},my:{style:QR},margin:{style:QR},marginTop:{style:QR},marginRight:{style:QR},marginBottom:{style:QR},marginLeft:{style:QR},marginX:{style:QR},marginY:{style:QR},marginInline:{style:QR},marginInlineStart:{style:QR},marginInlineEnd:{style:QR},marginBlock:{style:QR},marginBlockStart:{style:QR},marginBlockEnd:{style:QR},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:bA},rowGap:{style:yA},columnGap:{style:vA},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:SA},maxWidth:{style:EA},minWidth:{transform:SA},height:{transform:SA},maxHeight:{transform:SA},minHeight:{transform:SA},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function IA(){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=jR(r,s)||{};if(u)return u(o);return NR(o,t,(t=>{let r=FR(c,l,t);return t===r&&"string"==typeof t&&(r=FR(c,l,`${e}${"default"===t?"":Dp(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:kA;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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;const r=null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{});return r||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(n).forEach((r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=_R(u,e(r,o,i,s));else{const e=NR({theme:i},o,(e=>({[r]:e})));!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(n);return t.every((e=>o.size===Object.keys(e).length))}(e,o)?u=_R(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=_R(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":zR(l,u)}:zR(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const MA=IA();function LA(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:{}}MA.filterProps=["sx"];const DA=["breakpoints","palette","spacing","shape"];function TA(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:r={},spacing:n,shape:o={}}=e,i=yr(e,DA),a=DR(t),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=KR({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0===r.length?[1]:r).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ")};return r.mui=!0,r}(n);let l=Ep({breakpoints:a,direction:"ltr",components:{},palette:yt({mode:"light"},r),spacing:s,shape:yt({},TR,o)},i);l.applyStyles=LA;for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];return l=c.reduce(((e,t)=>Ep(e,t)),l),l.unstable_sxConfig=yt({},kA,null==i?void 0:i.unstable_sxConfig),l.unstable_sx=function(e){return MA({sx:e,theme:this})},l}var _A=Object.freeze({__proto__:null,default:TA,private_createBreakpoints:DR,unstable_applyStyles:LA});function OA(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=y.useContext(op);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const qA=TA();function NA(){return OA(arguments.length>0&&void 0!==arguments[0]?arguments[0]:qA)}function zA(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function jA(e){let{styles:t,themeId:r,defaultTheme:n={}}=e;const o=NA(n),i=r&&o[r]||o;let a="function"==typeof t?t(i):t;return i.modularCssLayers&&(a=Array.isArray(a)?a.map((e=>zA("function"==typeof e?e(i):e))):zA(a)),Dl.jsx(gp,{styles:a})}const FA=["sx"];function HA(e){const{sx:t}=e,r=yr(e,FA),{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:kA;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?function(){const e=t(...arguments);return Sp(e)?yt({},n,e):n}:yt({},n,t),yt({},o,{sx:i})}var $A=Object.freeze({__proto__:null,default:MA,extendSxProp:HA,unstable_createStyleFunctionSx:IA,unstable_defaultSxConfig:kA});const BA=["className","component"];function WA(e){if(e.type)return e;if("#"===e.charAt(0))return WA(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(wu(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(wu(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function VA(e,t){return e=WA(e),t=function(e){return bh(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)}(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)}const GA=["value"],UA=y.createContext();function YA(e){let{value:t}=e,r=yr(e,GA);return Dl.jsx(UA.Provider,yt({value:null==t||t},r))}const KA=y.createContext(void 0);function XA(e){let{value:t,children:r}=e;return Dl.jsx(KA.Provider,{value:t,children:r})}function JA(e){let{props:t,name:r}=e;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?mh(o.defaultProps,n):o.styleOverrides||o.variants?n:mh(o,n)}({props:t,name:r,theme:{components:y.useContext(KA)}})}const ZA={};function QA(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?yt({},t,{[e]:i}):i;return n?()=>a:a}return yt({},t,e?{[e]:r}:r)}),[e,t,r,n])}function eP(e){const{children:t,theme:r,themeId:n}=e,o=OA(ZA),i=em()||ZA,a=QA(n,o,r),s=QA(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=OA(),r=kh()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",gh((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}}),[o,r]),o?Dl.jsx(jA,{styles:o}):null}(a);return Dl.jsx(rm,{theme:s,children:Dl.jsx(op.Provider,{value:a,children:Dl.jsx(YA,{value:l,children:Dl.jsxs(XA,{value:null==a?void 0:a.components,children:[u,t]})})})})}function tP(e,t){return yt({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var rP={},nP={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(nP);var oP=nP.exports,iP=oP;Object.defineProperty(rP,"__esModule",{value:!0});var aP=rP.alpha=yP;rP.blend=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=hP(e),a=hP(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return gP({type:"rgb",values:s})},rP.colorChannel=void 0;var sP=rP.darken=xP;rP.decomposeColor=hP,rP.emphasize=CP;var lP=rP.getContrastRatio=function(e,t){const r=vP(e),n=vP(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};rP.getLuminance=vP,rP.hexToRgb=fP,rP.hslToRgb=bP;var uP=rP.lighten=SP;rP.private_safeAlpha=function(e,t,r){try{return yP(e,t)}catch(t){return e}},rP.private_safeColorChannel=void 0,rP.private_safeDarken=function(e,t,r){try{return xP(e,t)}catch(t){return e}},rP.private_safeEmphasize=function(e,t,r){try{return CP(e,t)}catch(t){return e}},rP.private_safeLighten=function(e,t,r){try{return SP(e,t)}catch(t){return e}},rP.recomposeColor=gP,rP.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=hP(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 cP=iP(dm),dP=iP(pm);function pP(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,dP.default)(e,t,r)}function fP(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 hP(e){if(e.type)return e;if("#"===e.charAt(0))return hP(fP(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,cP.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,cP.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const mP=e=>{const t=hP(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};rP.colorChannel=mP;function gP(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 bP(e){e=hP(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){let 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)};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])),gP({type:s,values:l})}function vP(e){let t="hsl"===(e=hP(e)).type||"hsla"===e.type?hP(bP(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 yP(e,t){return e=hP(e),t=pP(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,gP(e)}function xP(e,t){if(e=hP(e),t=pP(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 gP(e)}function SP(e,t){if(e=hP(e),t=pP(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 gP(e)}function CP(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return vP(e)>.5?xP(e,t):SP(e,t)}rP.private_safeColorChannel=(e,t)=>{try{return mP(e)}catch(t){return e}};const EP={black:"#000",white:"#fff"},wP={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"},RP="#f3e5f5",AP="#ce93d8",PP="#ba68c8",kP="#ab47bc",IP="#9c27b0",MP="#7b1fa2",LP="#e57373",DP="#ef5350",TP="#f44336",_P="#d32f2f",OP="#c62828",qP="#ffb74d",NP="#ffa726",zP="#ff9800",jP="#f57c00",FP="#e65100",HP="#e3f2fd",$P="#90caf9",BP="#42a5f5",WP="#1976d2",VP="#1565c0",GP="#4fc3f7",UP="#29b6f6",YP="#03a9f4",KP="#0288d1",XP="#01579b",JP="#81c784",ZP="#66bb6a",QP="#4caf50",ek="#388e3c",tk="#2e7d32",rk="#1b5e20",nk=["mode","contrastThreshold","tonalOffset"],ok={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:EP.white,default:EP.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}},ik={text:{primary:EP.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:EP.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 ak(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=uP(e.main,o):"dark"===t&&(e.dark=sP(e.main,i)))}function sk(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=yr(e,nk),i=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:$P,light:HP,dark:BP}:{main:WP,light:BP,dark:VP}}(t),a=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:AP,light:RP,dark:kP}:{main:IP,light:PP,dark:MP}}(t),s=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:TP,light:LP,dark:_P}:{main:_P,light:DP,dark:OP}}(t),l=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:UP,light:GP,dark:KP}:{main:KP,light:YP,dark:XP}}(t),u=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:ZP,light:JP,dark:ek}:{main:tk,light:QP,dark:rk}}(t),c=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:NP,light:qP,dark:jP}:{main:"#ed6c02",light:zP,dark:FP}}(t);function d(e){return lP(e,ik.text.primary)>=r?ik.text.primary:ok.text.primary}const p=e=>{let{color:t,name:r,mainShade:o=500,lightShade:i=300,darkShade:a=700}=e;if(t=yt({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error(wu(11,r?` (${r})`:"",o));if("string"!=typeof t.main)throw new Error(wu(12,r?` (${r})`:"",JSON.stringify(t.main)));return ak(t,"light",i,n),ak(t,"dark",a,n),t.contrastText||(t.contrastText=d(t.main)),t},f={dark:ik,light:ok};return Ep(yt({common:yt({},EP),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:wP,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const lk=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const uk={textTransform:"uppercase"},ck='"Roboto", "Helvetica", "Arial", sans-serif';function dk(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=ck,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=yr(r,lk),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return yt({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===ck?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,uk),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,uk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ep(yt({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function pk(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const fk=["none",pk(0,2,1,-1,0,1,1,0,0,1,3,0),pk(0,3,1,-2,0,2,2,0,0,1,5,0),pk(0,3,3,-2,0,3,4,0,0,1,8,0),pk(0,2,4,-1,0,4,5,0,0,1,10,0),pk(0,3,5,-1,0,5,8,0,0,1,14,0),pk(0,3,5,-1,0,6,10,0,0,1,18,0),pk(0,4,5,-2,0,7,10,1,0,2,16,1),pk(0,5,5,-3,0,8,10,1,0,3,14,2),pk(0,5,6,-3,0,9,12,1,0,3,16,2),pk(0,6,6,-3,0,10,14,1,0,4,18,3),pk(0,6,7,-4,0,11,15,1,0,4,20,3),pk(0,7,8,-4,0,12,17,2,0,5,22,4),pk(0,7,8,-4,0,13,19,2,0,5,24,4),pk(0,7,9,-4,0,14,21,2,0,5,26,4),pk(0,8,9,-5,0,15,22,2,0,6,28,5),pk(0,8,10,-5,0,16,24,2,0,6,30,5),pk(0,8,11,-5,0,17,26,2,0,6,32,5),pk(0,9,11,-5,0,18,28,2,0,7,34,6),pk(0,9,12,-6,0,19,29,2,0,7,36,6),pk(0,10,13,-6,0,20,31,3,0,8,38,7),pk(0,10,13,-6,0,21,33,3,0,8,40,7),pk(0,10,14,-6,0,22,35,3,0,8,42,7),pk(0,11,14,-7,0,23,36,3,0,9,44,8),pk(0,11,15,-7,0,24,38,3,0,9,46,8)],hk=["duration","easing","delay"],mk={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)"},gk={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bk(e){return`${Math.round(e)}ms`}function vk(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function yk(e){const t=yt({},mk,e.easing),r=yt({},gk,e.duration);return yt({getAutoHeightDuration:vk,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return yr(n,hk),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:bk(o)} ${i} ${"string"==typeof a?a:bk(a)}`)).join(",")}},e,{easing:t,duration:r})}const xk={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Sk=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ck(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:r={},transitions:n={},typography:o={}}=e,i=yr(e,Sk);if(e.vars&&void 0===e.generateCssVars)throw new Error(wu(18));const a=sk(r),s=TA(e);let l=Ep(s,{mixins:tP(s.breakpoints,t),palette:a,shadows:fk.slice(),typography:dk(a,o),transitions:yk(n),zIndex:yt({},xk)});l=Ep(l,i);for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];return l=c.reduce(((e,t)=>Ep(e,t)),l),l.unstable_sxConfig=yt({},kA,null==i?void 0:i.unstable_sxConfig),l.unstable_sx=function(e){return MA({sx:e,theme:this})},l}const Ek=Ck();var wk,Rk={},Ak={exports:{}};function Pk(){return wk||(wk=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}(Ak)),Ak.exports}var kk,Ik={exports:{}};function Mk(){return kk||(kk=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Ik)),Ik.exports}var Lk=wt(_A),Dk=wt($A),Tk=oP;Object.defineProperty(Rk,"__esModule",{value:!0});var _k=Rk.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r=Uk,rootShouldForwardProp:n=Vk,slotShouldForwardProp:o=Vk}=e,i=e=>(0,Fk.default)((0,Ok.default)({},e,{theme:Kk((0,Ok.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,Nk.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Xk(Yk(l))}=a,p=(0,qk.default)(a,Bk),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=Vk;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,Nk.default)(e,(0,Ok.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,zk.isPlainObject)(e)?n=>{const o=Kk({theme:n.theme,defaultTheme:r,themeId:t});return Jk(e,(0,Ok.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=function(n){let o=v(n);for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];const c=l?l.map(v):[];s&&d&&c.push((e=>{const n=Kk((0,Ok.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=>{let[r,o]=t;i[r]=Jk(o,(0,Ok.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&c.push((e=>{var n;const o=Kk((0,Ok.default)({},e,{defaultTheme:r,themeId:t}));return Jk({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Ok.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||c.push(i);const p=c.length-l.length;if(Array.isArray(n)&&p>0){const e=new Array(p).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const f=b(o,...c);return e.muiName&&(f.muiName=e.muiName),f};return b.withConfig&&(y.withConfig=b.withConfig),y}};Rk.shouldForwardProp=Vk,Rk.systemDefaultTheme=void 0;var Ok=Tk(Pk()),qk=Tk(Mk()),Nk=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Wk(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}(og),zk=ig;Tk(ag),Tk(sg);var jk=Tk(Lk),Fk=Tk(Dk);const Hk=["ownerState"],$k=["variants"],Bk=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Wk(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Wk=function(e){return e?r:t})(e)}function Vk(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Gk(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Uk=Rk.systemDefaultTheme=(0,jk.default)(),Yk=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Kk(e){let{defaultTheme:t,theme:r,themeId:n}=e;return o=r,0===Object.keys(o).length?t:r[n]||r;var o}function Xk(e){return e?(t,r)=>r[e]:null}function Jk(e,t,r){let{ownerState:n}=t,o=(0,qk.default)(t,Hk);const i="function"==typeof e?e((0,Ok.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>Jk(e,(0,Ok.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,qk.default)(i,$k);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Ok.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Ok.default)({ownerState:n},o,n)):e.style;t.push(r?Gk((0,Nk.internal_serializeStyles)(i),r):i)}})),t}return r?Gk((0,Nk.internal_serializeStyles)(i),r):i}const Zk=_k({themeId:MR,defaultTheme:Ek,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),Qk=["theme"];function eI(e){let{theme:t}=e,r=yr(e,Qk);const n=t[MR];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=yt({},n,{vars:null}):t&&!t.vars&&(o=yt({},t,{vars:null}))),Dl.jsx(eP,yt({},r,{themeId:n?MR:void 0,theme:o}))}var tI={exports:{}};
|
|
105
105
|
/*!
|
|
106
106
|
* CSSJanus. https://github.com/cssjanus/cssjanus
|
|
107
107
|
*
|
|
@@ -120,4 +120,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.le
|
|
|
120
120
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
121
121
|
* See the License for the specific language governing permissions and
|
|
122
122
|
* limitations under the License.
|
|
123
|
-
*/!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.,%-]+\\))",h="(?:[!#$%&*-~]|"+r+"|"+u+")*?",m="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+h+a+"\\))",v="(?="+h+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),C=new RegExp("("+l+g+"[^;}]+;?)","gi"),E=new RegExp("("+l+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(s+"(left)"+m+b+g,"gi"),P=new RegExp(s+"(right)"+m+b+g,"gi"),k=new RegExp(s+"(left)"+v,"gi"),I=new RegExp(s+"(right)"+v,"gi"),M=new RegExp(s+"(ltr)"+v,"gi"),L=new RegExp(s+"(rtl)"+v,"gi"),D=new RegExp(s+"([ns]?)e-resize","gi"),T=new RegExp(s+"([ns]?)w-resize","gi"),_=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"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=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"),$=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function V(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function G(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?G(n)+" / "+G(o):G(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(C,"`NOFLIP_SINGLE`"),a=new n(E,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(M,"$1"+e).replace(L,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(k,"$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(P,"$1left").replace(x,"right").replace(D,"$1$2"+e).replace(T,"$1$2e-resize").replace(x,"w-resize").replace(z,U).replace(j,K).replace(F,J).replace(H,J).replace($,K).replace(B,X).replace(W,X).replace(_,"$1$2$3$8$5$6$7$4$9").replace(O,"$1$2$3$8$5$6$7$4$9").replace(q,V).replace(N,V),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)}(Bk,Bk.exports);var Wk=Et(Bk.exports),Vk="comm",Gk="rule",Uk="decl",Yk=Math.abs,Kk=String.fromCharCode;function Xk(e){return e.trim()}function Jk(e,t,r){return e.replace(t,r)}function Zk(e,t,r){return e.indexOf(t,r)}function Qk(e,t){return 0|e.charCodeAt(t)}function eI(e,t,r){return e.slice(t,r)}function tI(e){return e.length}function rI(e,t){return t.push(e),e}var nI=1,oI=1,iI=0,aI=0,sI=0,lI="";function uI(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:nI,column:oI,length:a,return:"",siblings:s}}function cI(){return sI=aI>0?Qk(lI,--aI):0,oI--,10===sI&&(oI=1,nI--),sI}function dI(){return sI=aI<iI?Qk(lI,aI++):0,oI++,10===sI&&(oI=1,nI++),sI}function pI(){return Qk(lI,aI)}function fI(){return aI}function hI(e,t){return eI(lI,e,t)}function mI(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 gI(e){return Xk(hI(aI-1,yI(91===e?e+2:40===e?e+1:e)))}function bI(e){for(;(sI=pI())&&sI<33;)dI();return mI(e)>2||mI(sI)>3?"":" "}function vI(e,t){for(;--t&&dI()&&!(sI<48||sI>102||sI>57&&sI<65||sI>70&&sI<97););return hI(e,fI()+(t<6&&32==pI()&&32==dI()))}function yI(e){for(;dI();)switch(sI){case e:return aI;case 34:case 39:34!==e&&39!==e&&yI(sI);break;case 40:41===e&&yI(e);break;case 92:dI()}return aI}function xI(e,t){for(;dI()&&e+sI!==57&&(e+sI!==84||47!==pI()););return"/*"+hI(t,aI-1)+"*"+Kk(47===e?e:dI())}function SI(e){for(;!mI(pI());)dI();return hI(e,aI)}function CI(e){return function(e){return lI="",e}(EI("",null,null,null,[""],e=function(e){return nI=oI=1,iI=tI(lI=e),aI=0,[]}(e),0,[0],e))}function EI(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,C=n,E=y;g;)switch(h=v,v=dI()){case 40:if(108!=h&&58==Qk(E,d-1)){-1!=Zk(E+=Jk(gI(v),"&","&\f"),"&\f",Yk(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:E+=gI(v);break;case 9:case 10:case 13:case 32:E+=bI(h);break;case 92:E+=vI(fI()-1,7);continue;case 47:switch(pI()){case 42:case 47:rI(RI(xI(dI(),fI()),t,r,l),l),5!=mI(h||1)&&5!=mI(pI()||1)||!tI(E)||" "===eI(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[u++]=tI(E)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(E=Jk(E,/\f/g,"")),f>0&&(tI(E)-d||0===m&&47===h)&&rI(f>32?AI(E+";",n,r,d-1,l):AI(Jk(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(rI(C=wI(E,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)EI(E,t,C,C,x,i,d,s,S);else{switch(p){case 99:if(110===Qk(E,3))break;case 108:if(97===Qk(E,2))break;default:c=0;case 100:case 109:case 115:}c?EI(e,C,C,n&&rI(wI(e,C,C,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):EI(E,C,C,C,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=E="",d=a;break;case 58:d=1+tI(E),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==cI())continue;switch(E+=Kk(v),v*m){case 38:b=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(tI(E)-1)*b,b=1;break;case 64:45===pI()&&(E+=gI(dI())),p=pI(),c=d=tI(y=E+=SI(fI())),v++;break;case 45:45===h&&2==tI(E)&&(m=0)}}return i}function wI(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=eI(e,p+1,p=Yk(g=a[m])),x=e;v<h;++v)(x=Xk(g>0?f[v]+" "+y:Jk(y,/&\f/g,f[v])))&&(l[b++]=x);return uI(e,t,r,0===o?Gk:s,l,u,c,d)}function RI(e,t,r,n){return uI(e,t,r,Vk,Kk(sI),eI(e,2,-2),0,n)}function AI(e,t,r,n,o){return uI(e,t,r,Uk,eI(e,0,n),eI(e,n+1,-1),n,o)}function PI(e,t,r){switch(e.type){case"@import":case Uk:case Vk:return e.return=e.return||e.value;case Gk:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Vk&&(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),PI);return tI(n)?e.return=e.value+"{"+n+"}":""}function kI(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===Gk&&(!e.parent||"@media"===e.parent.type||e.parent.type===Gk)){var o=Wk.transform(PI(e));e.children=o?CI(o)[0].children:[],e.return=""}}Object.defineProperty(kI,"name",{value:"stylisRTLPlugin"});let II=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),MI=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),LI=function(e){return e.A="ascending",e.D="descending",e}({}),DI=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const TI=[0,0],_I={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_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)"},OI=12,qI=14,NI=16,zI=24,jI=3,FI=300,HI=400,$I=600,BI=700,WI={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function VI(e){return UA(e)}const GI=zf("MuiBox",["root"]),UI=gk(),YI=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=cp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(AA);return y.forwardRef((function(e,a){const s=TA(r),l=NA(e),{className:u,component:c="div"}=l,d=yr(l,jA);return Rl.jsx(i,yt({as:c,ref:a,className:_f(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:AR,defaultTheme:UI,defaultClassName:GI.root,generateClassName:Df.generate}),KI=y.createContext();function XI(e){return Nf("MuiTable",e)}zf("MuiTable",["root","stickyHeader"]);const JI=["className","component","padding","size","stickyHeader"],ZI=Fk("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return yt({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":yt({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),QI="table",eM=y.forwardRef((function(e,t){const r=VI({props:e,name:"MuiTable"}),{className:n,component:o=QI,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=yr(r,JI),u=yt({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return jh({root:["root",r&&"stickyHeader"]},XI,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return Rl.jsx(KI.Provider,{value:d,children:Rl.jsx(ZI,yt({as:o,role:o===QI?null:"table",ref:t,className:_f(c.root,n),ownerState:u},l))})})),tM=y.createContext();function rM(e){return Nf("MuiTableBody",e)}zf("MuiTableBody",["root"]);const nM=["className","component"],oM=Fk("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),iM={variant:"body"},aM="tbody",sM=y.forwardRef((function(e,t){const r=VI({props:e,name:"MuiTableBody"}),{className:n,component:o=aM}=r,i=yr(r,nM),a=yt({},r,{component:o}),s=(e=>{const{classes:t}=e;return jh({root:["root"]},rM,t)})(a);return Rl.jsx(tM.Provider,{value:iM,children:Rl.jsx(oM,yt({className:_f(s.root,n),as:o,ref:t,role:o===aM?null:"rowgroup",ownerState:a},i))})}));function lM(e){return Nf("MuiTableCell",e)}const uM=zf("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),cM=["align","className","component","padding","scope","size","sortDirection","variant"],dM=Fk("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Rp(r.size)}`],"normal"!==r.padding&&t[`padding${Rp(r.padding)}`],"inherit"!==r.align&&t[`align${Rp(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return yt({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid\n ${"light"===t.palette.mode?nP(eP(t.palette.divider,1),.88):tP(eP(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",[`&.${uM.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),pM=y.forwardRef((function(e,t){const r=VI({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=yr(r,cM),p=y.useContext(KI),f=y.useContext(tM),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=c||f&&f.variant,v=yt({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return jh({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Rp(n)}`,"normal"!==o&&`padding${Rp(o)}`,`size${Rp(i)}`]},lM,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Rl.jsx(dM,yt({as:m,ref:t,className:_f(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function fM(e){return Nf("MuiTableContainer",e)}zf("MuiTableContainer",["root"]);const hM=["className","component"],mM=Fk("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),gM=y.forwardRef((function(e,t){const r=VI({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=yr(r,hM),a=yt({},r,{component:o}),s=(e=>{const{classes:t}=e;return jh({root:["root"]},fM,t)})(a);return Rl.jsx(mM,yt({ref:t,as:o,className:_f(s.root,n),ownerState:a},i))}));function bM(e){return Nf("MuiTableHead",e)}zf("MuiTableHead",["root"]);const vM=["className","component"],yM=Fk("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),xM={variant:"head"},SM="thead",CM=y.forwardRef((function(e,t){const r=VI({props:e,name:"MuiTableHead"}),{className:n,component:o=SM}=r,i=yr(r,vM),a=yt({},r,{component:o}),s=(e=>{const{classes:t}=e;return jh({root:["root"]},bM,t)})(a);return Rl.jsx(tM.Provider,{value:xM,children:Rl.jsx(yM,yt({as:o,className:_f(s.root,n),ref:t,role:o===SM?null:"rowgroup",ownerState:a},i))})}));function EM(e){return Nf("MuiTableRow",e)}const wM=zf("MuiTableRow",["root","selected","hover","head","footer"]),RM=["className","component","hover","selected"],AM=Fk("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${wM.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${wM.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:eP(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:eP(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),PM="tr",kM=y.forwardRef((function(e,t){const r=VI({props:e,name:"MuiTableRow"}),{className:n,component:o=PM,hover:i=!1,selected:a=!1}=r,s=yr(r,RM),l=y.useContext(tM),u=yt({},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 jh({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},EM,t)})(u);return Rl.jsx(AM,yt({as:o,ref:t,className:_f(c.root,n),role:o===PM?null:"row",ownerState:u},s))}));function IM(e){return Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Rl.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var MM=function(){let{fontSize:e="medium",children:t=null,className:r=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rl.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function LM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rl.jsx(MM,{...e,children:Rl.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Rl.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Rl.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 DM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rl.jsx(MM,{fontSize:"medium",...e,children:Rl.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Rl.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Rl.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 TM(e){return Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Rl.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function _M(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rl.jsx(MM,{...e,children:Rl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Rl.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Rl.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Rl.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function OM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rl.jsx(MM,{fontSize:"medium",...e,children:Rl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Rl.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Rl.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function qM(e){let{className:t}=e;return Rl.jsx(MM,{fontSize:"small",className:t,children:Rl.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Rl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Rl.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Rl.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Rl.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"}),Rl.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 NM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rl.jsx(MM,{...e,children:Rl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Rl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Rl.jsx("rect",{stroke:_I.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const zM={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:jI,"& > 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 jM=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:_I.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:_I.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Rl.jsx(IM,{"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 ${_I.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:_I.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${_I.MISC_FOCUS_BORDER}`,borderRadius:jI,backgroundColor:_I.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 ${_I.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:_I.WHITE,color:_I.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:jI},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_I.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:_I.GREYSCALE_0_15,backgroundColor:_I.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:_I.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_I.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:_I.GREEN_PALE},"&:active":{backgroundColor:_I.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_I.GREEN_PALE,boxShadow:`0 0 0 3px ${HA(_I.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:_I.BLUE_PALE},"&:active":{backgroundColor:_I.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_I.BLUE_PALE,boxShadow:`0 0 0 3px ${HA(_I.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:jI,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:_I.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_I.MISC_FOCUS_BORDER}`}},outlined:e=>{let{ownerState:t}=e;return{padding:"7px 16px",borderColor:_I.GREYSCALE_0_15,backgroundColor:_I.GREYSCALE_100_60,"&:active":{backgroundColor:_I.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:_I.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_I.MISC_FOCUS_BORDER}`},..."amethyst"===t.color&&{borderColor:_I.PURPLE,"&.Mui-focusVisible":{borderColor:_I.PURPLE,boxShadow:`0 0 0 3px ${HA(_I.PURPLE_PALE,.5)}`}}}},outlinedPrimary:{borderColor:_I.GREEN,"&.Mui-focusVisible":{borderColor:_I.GREEN,boxShadow:`0 0 0 3px ${HA(_I.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:_I.BLUE,"&.Mui-focusVisible":{borderColor:_I.BLUE,boxShadow:`0 0 0 3px ${HA(_I.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:_I.ORANGE,"&.Mui-focusVisible":{borderColor:_I.ORANGE,boxShadow:`0 0 0 3px ${HA(_I.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:_I.RED,"&.Mui-focusVisible":{borderColor:_I.RED,boxShadow:`0 0 0 3px ${HA(_I.RED_PALE,.5)}`}},contained:e=>{let{ownerState:t}=e;return{color:_I.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===t.color&&{"&:hover":{backgroundColor:_I.PURPLE_PALE},"&:active":{backgroundColor:_I.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:_I.PURPLE_PALE,boxShadow:`0 0 0 3px ${HA(_I.PURPLE_PALE,.5)}`}}}},containedPrimary:{"&:hover":{backgroundColor:_I.GREEN_PALE},"&:active":{backgroundColor:_I.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_I.GREEN_PALE,boxShadow:`0 0 0 3px ${HA(_I.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:_I.BLUE_PALE},"&:active":{backgroundColor:_I.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_I.BLUE_PALE,boxShadow:`0 0 0 3px ${HA(_I.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:_I.ORANGE_PALE},"&:active":{backgroundColor:_I.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:_I.ORANGE_PALE,boxShadow:`0 0 0 3px ${HA(_I.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:_I.RED_PALE},"&:active":{backgroundColor:_I.RED_DARK},"&.Mui-focusVisible":{borderColor:_I.RED_PALE,boxShadow:`0 0 0 3px ${HA(_I.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:_I.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:_I.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:jI,boxShadow:`inset 0 0 0 2px ${_I.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Rl.jsx(TM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:OI,borderRadius:jI,color:_I.TEXT_PRIMARY,backgroundColor:_I.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:_I.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${_I.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:_I.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:_I.GREYSCALE_0_05,color:_I.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:_I.GREEN,borderColor:_I.GREEN},"&.MuiChip-outlinedInfo":{color:_I.BLUE,borderColor:_I.BLUE},"&.MuiChip-outlinedWarning":{color:_I.ORANGE,borderColor:_I.ORANGE},"&.MuiChip-outlinedError":{color:_I.RED,borderColor:_I.RED}},outlined:{border:`solid 1px ${_I.GREYSCALE_0_15}`,backgroundColor:_I.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:jI,boxShadow:"none",backgroundColor:_I.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:_I.GREEN,borderColor:_I.GREEN},outlinedSecondary:{color:_I.BLUE,borderColor:_I.BLUE},label:{fontFamily:WI.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Rl.jsx(TM,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Rl.jsx(IM,{"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:jI},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:jI,fontSize:qI,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:_I.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${_I.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:_I.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:_I.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:_I.GREYSCALE_0_05}}},popupIndicator:{borderRadius:jI,border:`solid 1px ${_I.GREYSCALE_0_15}`,color:_I.GREYSCALE_0_60,marginRight:0,width:zI,height:zI},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${_I.GREYSCALE_0_15}`},clearIndicator:{borderRadius:jI,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:_I.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:qI}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:OI,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:_I.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:_I.GREYSCALE_25,fontSize:OI,fontFamily:WI.FONT_FAMILY,fontWeight:$I,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:_I.TEXT_PRIMARY},"&.Mui-error":{color:_I.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:_I.TEXT_SECONDARY,content:"'(optional)'",fontWeight:HI,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:_I.TEXT_SECONDARY,content:"'(required)'",fontWeight:HI,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:qI,lineHeight:"16px",backgroundColor:_I.WHITE,borderRadius:jI,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_I.GREYSCALE_0_05}`,borderColor:_I.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_I.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${_I.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${_I.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_I.RED}`,boxShadow:`0px 0px 0px 1px ${_I.RED}, inset 0 2px 0 0 ${_I.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_I.GREYSCALE_0_10}`,borderColor:_I.GREYSCALE_0_10,backgroundColor:_I.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:_I.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:_I.GREYSCALE_0_15,borderRadius:jI,boxShadow:`inset 0 2px 0 0 ${_I.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Rl.jsx(IM,{...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:_I.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:_I.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:_I.GREYSCALE_0_03},"&:active":{backgroundColor:_I.GREYSCALE_0_10},"&:focus":{backgroundColor:_I.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${_I.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${_I.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:_I.GREYSCALE_0_30,"&:hover":{backgroundColor:_I.GREYSCALE_0_0,borderColor:_I.GREYSCALE_0_15},"& ~svg":{color:_I.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${_I.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:jI}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:_I.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${_I.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:_I.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:qI,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:OI,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:OI,fontWeight:$I,color:_I.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:$I}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${_I.GREYSCALE_0_15}, 0px 0px 0px 1px ${_I.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Rl.jsx(OM,{}),checkedIcon:Rl.jsx(DM,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:_I.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${_I.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:_I.GREEN_PALE,boxShadow:`0 0 0 3px ${HA(_I.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:_I.BLUE_PALE,boxShadow:`0 0 0 3px ${HA(_I.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:_I.GREYSCALE_0_20}},"&.Mui-disabled":{fill:_I.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Rl.jsx(NM,{}),checkedIcon:Rl.jsx(LM,{}),indeterminateIcon:Rl.jsx(_M,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:jI,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:_I.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:_I.GREYSCALE_0_55,color:_I.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:_I.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:_I.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:_I.GREYSCALE_0_55,"&:hover":{color:_I.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:_I.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:_I.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:qI,color:_I.TEXT_PRIMARY,lineHeight:"16px",fontWeight:$I},secondary:{fontSize:OI,color:_I.GREYSCALE_45,fontWeight:HI,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:qI,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:qI,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:_I.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:OI,borderBottom:`solid 1px ${_I.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:qI,color:_I.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:_I.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:_I.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:_I.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:_I.RED}}},"&.Mui-focusVisible":{backgroundColor:_I.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:_I.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:_I.GREEN,height:"24px","&.Mui-disabled":{color:_I.GREYSCALE_0_15}},rail:{backgroundColor:_I.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${_I.GREYSCALE_0_05}`,borderRadius:jI,boxShadow:`inset 0px 0px 0px 1px ${_I.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${_I.GREYSCALE_0_05}`,borderRadius:jI},thumb:{height:"16px",width:"16px",borderRadius:jI,backgroundColor:_I.WHITE,boxShadow:`0px 1px 2px 0px ${_I.GREYSCALE_0_15}, 0px 0px 0px 1px ${_I.GREYSCALE_0_05}`,"&:hover":{borderRadius:jI,boxShadow:`0 2px 4px 0 ${_I.GREYSCALE_0_30}, 0 0 0 1px ${_I.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${_I.GREYSCALE_0_15}, 0 0 0 1px ${_I.GREYSCALE_0_06}, 0 0 0 2px ${_I.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${_I.GREYSCALE_0_15}, 0 0 0 1px ${_I.GREYSCALE_0_06}, 0 0 0 2px ${_I.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:_I.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:_I.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:_I.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:_I.GREYSCALE_0_15},markLabel:{color:_I.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:_I.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:_I.WHITE,color:_I.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:_I.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:_I.GREEN_PALE,boxShadow:`0 0 0 3px ${HA(_I.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:_I.BLUE_PALE,boxShadow:`0 0 0 3px ${HA(_I.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:_I.GREYSCALE_0_15,borderRadius:jI},thumb:{height:"16px",width:"16px",borderRadius:jI,backgroundColor:_I.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:qI,fontWeight:$I,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${_I.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${_I.MISC_FOCUS_BORDER}`,backgroundColor:_I.GREYSCALE_0_03,borderRadius:jI},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:_I.GREYSCALE_25,"&.Mui-selected":{color:_I.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:qI,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:jI,"&:hover":{backgroundColor:_I.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 ${_I.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${_I.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:jI,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:_I.GREYSCALE_0_05},"&:hover":{backgroundColor:_I.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${_I.GREYSCALE_85}`,borderRight:`1px solid ${_I.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:$I,backgroundColor:_I.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:_I.GREYSCALE_98,borderBottom:`1px solid ${_I.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${_I.GREYSCALE_85}`,borderTop:`1px solid ${_I.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:_I.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:_I.GREYSCALE_0_05,"&:hover":{backgroundColor:_I.GREYSCALE_0_03}},"&&:hover":{backgroundColor:_I.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:e=>{let{className:t}=e;return Rl.jsx(qM,{className:t})}},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 ${_I.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:qI,borderRadius:jI,padding:"7px 16px",border:`1px solid ${_I.GREYSCALE_0_15}`,backgroundColor:_I.GREYSCALE_100_60,color:_I.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:_I.GREYSCALE_0_10,border:`1px solid ${_I.GREYSCALE_0_30}`},"&:hover":{backgroundColor:_I.GREYSCALE_0_03,border:`1px solid ${_I.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:_I.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${_I.MISC_FOCUS_BORDER}`,border:`1px solid ${_I.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:_I.GREYSCALE_25,backgroundColor:_I.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:_I.GREYSCALE_0_10,border:`1px solid ${_I.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:OI,height:24,width:24,padding:7},sizeLarge:{fontSize:NI,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:qI,borderRadius:jI}}},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:_I.GREYSCALE_20},tooltip:{backgroundColor:_I.GREYSCALE_20,fontSize:OI,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...zM}:{}});var FM=()=>({mode:"light",primary:{ultraLight:_I.GREEN_ULTRA_LIGHT,light:_I.GREEN_PALE,main:_I.GREEN,dark:_I.GREEN_DARK,extraDark:_I.GREEN_EXTRA_DARK,contrastText:_I.WHITE},secondary:{ultraLight:_I.BLUE_ULTRA_LIGHT,light:_I.BLUE_PALE,main:_I.BLUE,dark:_I.BLUE_DARK,extraDark:_I.BLUE_EXTRA_DARK,contrastText:_I.WHITE},error:{ultraLight:_I.RED_ULTRA_LIGHT,light:_I.RED_PALE,main:_I.RED,dark:_I.RED_DARK,extraDark:_I.RED_EXTRA_DARK,contrastText:_I.WHITE},warning:{ultraLight:_I.ORANGE_ULTRA_LIGHT,light:_I.ORANGE_PALE,main:_I.ORANGE,dark:_I.ORANGE_DARK,extraDark:_I.ORANGE_EXTRA_DARK,contrastText:_I.WHITE},success:{ultraLight:_I.GREEN_ULTRA_LIGHT,light:_I.GREEN_PALE,main:_I.GREEN,dark:_I.GREEN_DARK,extraDark:_I.GREEN_EXTRA_DARK,contrastText:_I.WHITE},info:{ultraLight:_I.BLUE_ULTRA_LIGHT,light:_I.BLUE_PALE,main:_I.BLUE,dark:_I.BLUE_DARK,extraDark:_I.BLUE_EXTRA_DARK,contrastText:_I.WHITE},text:{primary:_I.TEXT_PRIMARY,secondary:_I.TEXT_SECONDARY,disabled:_I.GREYSCALE_0_30},action:{hover:_I.GREYSCALE_0_03,hoverOpacity:.03,selected:_I.GREYSCALE_0_05,selectedOpacity:.05,focus:_I.MISC_FOCUS_BORDER},amethyst:{ultraLight:_I.WHITE,main:_I.PURPLE,light:_I.PURPLE_PALE,dark:_I.PURPLE_DARK,extraDark:_I.GREYSCALE_0_0,contrastText:_I.WHITE},background:{paper:_I.WHITE,default:_I.GREYSCALE_95},divider:_I.GREYSCALE_0_15});var HM=e=>FM();var $M=function(e){const t=((e,t)=>jM(t))(0,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);return{components:t,palette:HM(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:qI,fontWeightLight:FI,fontWeightRegular:HI,fontWeightMedium:$I,fontWeightBold:BI,htmlFontSize:qI,fontFamily:WI.FONT_FAMILY,button:{fontWeight:$I,fontSize:qI,textTransform:"none"},body1:{fontSize:NI,lineHeight:"24px"},body2:{fontSize:qI,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:zI,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:NI,fontWeight:$I,lineHeight:"16px"},h6:{fontSize:qI,fontWeight:$I,lineHeight:"16px"},caption:{color:_I.TEXT_SECONDARY},subtitle1:{fontSize:qI,color:_I.TEXT_SECONDARY},subtitle2:{fontSize:OI,color:_I.TEXT_SECONDARY}},shape:{borderRadius:jI}}},BM={},WM={exports:{}},VM={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}(VM);var GM=VM.exports;!function(e){var t=GM.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}(WM);var UM=WM.exports,YM={},KM=wt(gr);Object.defineProperty(YM,"__esModule",{value:!0}),YM.hexToRgb=ZM,YM.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=eL(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(""))},YM.hslToRgb=QM,YM.decomposeColor=eL,YM.recomposeColor=tL,YM.getContrastRatio=function(e,t){var r=rL(e),n=rL(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},YM.getLuminance=rL,YM.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return rL(e)>.5?oL(e,t):iL(e,t)},YM.fade=function(e,t){return nL(e,t)},YM.alpha=nL,YM.darken=oL,YM.lighten=iL;var XM=KM;function JM(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 ZM(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 QM(e){var t=(e=eL(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])),tL({type:s,values:l})}function eL(e){if(e.type)return e;if("#"===e.charAt(0))return eL(ZM(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,XM.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 tL(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 rL(e){var t="hsl"===(e=eL(e)).type?eL(QM(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 nL(e,t){return e=eL(e),t=JM(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,tL(e)}function oL(e,t){if(e=eL(e),t=JM(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 tL(e)}function iL(e,t){if(e=eL(e),t=JM(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 tL(e)}var aL,sL,lL,uL={},cL={exports:{}},dL={exports:{}},pL={exports:{}};function fL(){return aL||(aL=1,function(e){var t=GM.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}(pL)),pL.exports}function hL(){return sL||(sL=1,function(e){var t=GM.default,r=fL();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(dL)),dL.exports}function mL(){return lL||(lL=1,function(e){var t=hL();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}(cL)),cL.exports}var gL,bL={exports:{}};function vL(){return gL||(gL=1,function(e){var t=Zm();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}(bL)),bL.exports}var yL,xL={};var SL,CL={};var EL,wL={},RL={};var AL,PL={};var kL,IL={};var ML,LL={};var DL,TL={};var _L,OL={};var qL,NL={};var zL,jL,FL={};function HL(){if(jL)return wL;jL=1;var e=nm;Object.defineProperty(wL,"__esModule",{value:!0}),wL.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,C=e.warning,E=void 0===C?{light:u.default[300],main:u.default[500],dark:u.default[700]}:C,w=e.info,R=void 0===w?{light:c.default[300],main:c.default[500],dark:c.default[700]}:w,A=e.success,P=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,k=e.type,I=void 0===k?"light":k,M=e.contrastThreshold,L=void 0===M?3:M,D=e.tonalOffset,T=void 0===D?.2:D,_=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function O(e){return(0,p.getContrastRatio)(e,h.text.primary)>=L?h.text.primary:f.text.primary}var q=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,T),m(e,"dark",i,T),e.contrastText||(e.contrastText=O(e.main)),e},N={dark:h,light:f},z=(0,n.deepmerge)((0,t.default)({common:o.default,type:I,primary:q(b),secondary:q(y,"A400","A200","A700"),error:q(S),warning:q(E),info:q(R),success:q(P),grey:i.default,contrastThreshold:L,getContrastText:O,augmentColor:q,tonalOffset:T},N[I]),_);return z},wL.dark=wL.light=void 0;var t=e(Km()),r=e(vL()),n=KM,o=e(function(){if(EL)return RL;EL=1,Object.defineProperty(RL,"__esModule",{value:!0}),RL.default=void 0;var e={black:"#000",white:"#fff"};return RL.default=e,RL}()),i=e(function(){if(AL)return PL;AL=1,Object.defineProperty(PL,"__esModule",{value:!0}),PL.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 PL.default=e,PL}()),a=e(function(){if(kL)return IL;kL=1,Object.defineProperty(IL,"__esModule",{value:!0}),IL.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 IL.default=e,IL}()),s=e(function(){if(ML)return LL;ML=1,Object.defineProperty(LL,"__esModule",{value:!0}),LL.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 LL.default=e,LL}()),l=e(function(){if(DL)return TL;DL=1,Object.defineProperty(TL,"__esModule",{value:!0}),TL.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 TL.default=e,TL}()),u=e(function(){if(_L)return OL;_L=1,Object.defineProperty(OL,"__esModule",{value:!0}),OL.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 OL.default=e,OL}()),c=e(function(){if(qL)return NL;qL=1,Object.defineProperty(NL,"__esModule",{value:!0}),NL.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 NL.default=e,NL}()),d=e(function(){if(zL)return FL;zL=1,Object.defineProperty(FL,"__esModule",{value:!0}),FL.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 FL.default=e,FL}()),p=YM,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}};wL.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return wL.dark=h,wL}var $L,BL={};var WL,VL={};var GL,UL={};var YL,KL={},XL=wt(ro);var JL,ZL={};function QL(){if(JL)return ZL;JL=1;var e=nm;Object.defineProperty(ZL,"__esModule",{value:!0}),ZL.default=ZL.duration=ZL.easing=void 0;var t=e(vL()),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)"};ZL.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")}ZL.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 ZL.default=i,ZL}var eD,tD,rD={};function nD(){if(tD)return uL;tD=1;var e=nm;Object.defineProperty(uL,"__esModule",{value:!0}),uL.createMuiTheme=function(){return p.apply(void 0,arguments)},uL.default=void 0,e(mL());var t=e(vL()),r=KM,n=e(function(){if(yL)return xL;yL=1;var e=nm;Object.defineProperty(xL,"__esModule",{value:!0}),xL.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)},xL.keys=void 0;var t=e(Km()),r=e(vL()),n=["xs","sm","md","lg","xl"];return xL.keys=n,xL}()),o=e(function(){if(SL)return CL;SL=1;var e=nm;Object.defineProperty(CL,"__esModule",{value:!0}),CL.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(mL()),r=e(Km());return CL}()),i=e(HL()),a=e(function(){if($L)return BL;$L=1;var e=nm;Object.defineProperty(BL,"__esModule",{value:!0}),BL.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,C=u.htmlFontSize,E=void 0===C?16:C,w=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=f/14,k=R||function(e){return"".concat(e/E*P,"rem")},I=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:k(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,w)},M={h1:I(m,96,1.167,-1.5),h2:I(m,60,1.2,-.5),h3:I(b,48,1.167,0),h4:I(b,34,1.235,.25),h5:I(b,24,1.334,0),h6:I(y,20,1.6,.15),subtitle1:I(b,16,1.75,.15),subtitle2:I(y,14,1.57,.1),body1:I(b,16,1.5,.15),body2:I(b,14,1.43,.15),button:I(y,14,1.75,.4,a),caption:I(b,12,1.66,.4),overline:I(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:E,pxToRem:k,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},M),A,{clone:!1})};var t=e(Km()),r=e(vL()),n=KM;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 BL}()),s=e(function(){if(WL)return VL;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(",")}WL=1,Object.defineProperty(VL,"__esModule",{value:!0}),VL.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 VL.default=t,VL}()),l=e(function(){if(GL)return UL;GL=1,Object.defineProperty(UL,"__esModule",{value:!0}),UL.default=void 0;var e={borderRadius:4};return UL.default=e,UL}()),u=e(function(){if(YL)return KL;YL=1,Object.defineProperty(KL,"__esModule",{value:!0}),KL.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=XL;return KL}()),c=e(QL()),d=e(function(){if(eD)return rD;eD=1,Object.defineProperty(rD,"__esModule",{value:!0}),rD.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return rD.default=e,rD}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),C=(0,i.default)(b),E=(0,n.default)(f),w=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:E,direction:"ltr",mixins:(0,o.default)(E,w,m),overrides:{},palette:C,props:{},shadows:s.default,typography:(0,a.default)(C,x),spacing:w,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,P=new Array(A>1?A-1:0),k=1;k<A;k++)P[k-1]=arguments[k];return R=P.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return uL.default=f,uL}var oD,iD={};var aD,sD={},lD=wt(rl);var uD,cD,dD={},pD={};function fD(){if(uD)return pD;uD=1;var e=nm;Object.defineProperty(pD,"__esModule",{value:!0}),pD.default=void 0;var t=(0,e(nD()).default)();return pD.default=t,pD}var hD,mD,gD={},bD={};function vD(){if(mD)return gD;mD=1;var e=nm;Object.defineProperty(gD,"__esModule",{value:!0}),gD.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(Km()),r=KM,n=function(){if(hD)return bD;hD=1;var e=nm;Object.defineProperty(bD,"__esModule",{value:!0}),bD.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},bD.getUnit=r,bD.toUnitless=n,bD.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}},bD.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},bD.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},bD.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(mL());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return bD}();return gD}var yD,xD={};var SD,CD={};var ED,wD={};var RD,AD={};!function(e){var t=nm,r=UM;Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=YM;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(nD()),a=t(function(){if(oD)return iD;oD=1;var e=nm;Object.defineProperty(iD,"__esModule",{value:!0}),iD.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=KM,r=e(nD());return iD}()),s=t(function(){if(aD)return sD;aD=1,Object.defineProperty(sD,"__esModule",{value:!0}),sD.default=function(t){return(0,e.createStyles)(t)};var e=lD;return sD}()),l=t(function(){if(cD)return dD;cD=1;var e=nm;Object.defineProperty(dD,"__esModule",{value:!0}),dD.default=void 0;var t=e(Km()),r=lD,n=e(fD()),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 dD.default=o,dD}()),u=t(vD()),c=t(function(){if(yD)return xD;yD=1;var e=nm;Object.defineProperty(xD,"__esModule",{value:!0}),xD.default=void 0;var t=e(Km()),r=lD,n=e(fD()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return xD.default=o,xD}()),d=QL();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(SD)return CD;SD=1;var e=nm;Object.defineProperty(CD,"__esModule",{value:!0}),CD.default=function(){return(0,t.useTheme)()||r.default};var t=lD;e(x);var r=e(fD());return CD}()),f=t(function(){if(ED)return wD;ED=1;var e=nm;Object.defineProperty(wD,"__esModule",{value:!0}),wD.default=void 0;var t=e(Km()),r=lD,n=e(fD()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return wD.default=o,wD}()),h=t(function(){if(RD)return AD;RD=1;var e=nm;Object.defineProperty(AD,"__esModule",{value:!0}),AD.default=void 0;var t=lD,r=e(fD()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return AD.default=n,AD}()),m=lD}(BM),BM.alpha(_I.GREYSCALE_0,.05),BM.alpha(_I.GREEN_PALE,.5),BM.alpha(_I.BLUE_PALE,.5),BM.alpha(_I.GREEN_PALE,.5),BM.alpha(_I.BLUE_PALE,.5),BM.alpha(_I.GREEN_PALE,.5),BM.alpha(_I.BLUE_PALE,.5),BM.alpha(_I.GREEN_PALE,.5),BM.alpha(_I.BLUE_PALE,.5),BM.alpha(_I.GREEN_PALE,.5),BM.alpha(_I.BLUE_PALE,.5);const PD=function(){return $M(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light",arguments.length>1&&void 0!==arguments[1]&&arguments[1])},kD=(PD().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),ID=4/3,MD="12px",LD="600",DD="Source Sans Pro, sans-serif",TD={height:"auto",fontSize:MD,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"}},_D={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:LD},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},OD=25e4,qD=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(pS.PixelsMax,Math.max(pS.PixelsMin,f)),i-=n[a]};switch(s){case fS.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?pS.PixelsDefault:+e)(l),h();break;case fS.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?pS.PercentageDefault:+e)(u)/100*t,h();break;case fS.FitToContent:e.representation?.type===pE.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim),h());break;case fS.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(pS.AutoMinTable,e)}))}return n},ND=(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"]})},zD=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},jD=e=>e.ctrlKey||e.metaKey,FD=e=>e.shiftKey&&jD(e),HD=e=>[cS.Left,cS.Right,cS.Up,cS.Down].includes(e),$D=e=>e.shiftKey&&HD(e.key),BD=e=>(e=>HD(e)||[cS.Home,cS.End,cS.PageUp,cS.PageDown].includes(e))(e.key)&&!FD(e),WD=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),ND(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},VD=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&$D(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&$D(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===cS.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return ND(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},GD=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},UD=(e,t)=>{switch(t.type){case MI.Select:return WD(e,t.payload);case MI.SelectMouseDown:return((e,t)=>{let{cell:r,mouseupOutsideCallback:n}=t;return!n||-1!==e.colIdx&&e.colIdx!==r.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:r,mouseupOutsideCallback:n})})(e,t.payload);case MI.SelectMouseUp:return((e,t)=>GD(e.isSelectMultiValues||e.firstCell!==t.cell?e:WD(e,t)))(e,t.payload);case MI.SelectMultiAdd:return VD(e,t.payload);case MI.SelectMultiEnd:return GD(e);case MI.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case MI.Clear:return e.rows.size?{...e,rows:new Map}:e;case MI.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},YD=4/3,KD=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function XD(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{index:-1};const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const JD=(e,t)=>e?{borderBottomColor:_x.DARK_MODE_BORDER,borderRightColor:_x.DARK_MODE_BORDER,borderLeftColor:_x.DARK_MODE_BORDER,borderTopColor:_x.DARK_MODE_BORDER}:{borderLeftColor:_x.BORDER_MEDIUM,borderRightColor:_x.BORDER_MEDIUM,borderTopColor:_x.BORDER_HEAVY,borderBottomColor:t?_x.BORDER_HEAVY:_x.BORDER_LIGHT},ZD=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*YD+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},QD=e=>e.components?.find((e=>"theme"===e.key)),eT=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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:KD(r?.fontColor)?XD(_x.TEXT,t,r?.fontColor):i||_x.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...JD(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function tT(e,t,r){const n=QD(e)?.header,o=eT("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ee(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=Nx(o.background??_x.WHITE,hS),o.activeBackground=Nx(o.background??_x.WHITE,mS),o}const rT=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in _D)(e)&&Object.assign(t,_D[e]))),t};function nT(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach(((e,t)=>{const i=e.qText,a=i&&jx(i);a&&"none"!==a&&(n[r[t]]=a),o=i?rT(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=Ox(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const oT=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},iT=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=oT(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},aT=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_x.WHITE;const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=iT(e,t,r);return Wx(i,o,a,n)??n},sT=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return MD}},lT=e=>e?.some((e=>"italic"===e))?"italic":"normal",uT=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?LD:"normal",cT=e=>!1===e?1:3,dT=e=>parseInt(e??TD.fontSize,10)*ID,pT=e=>e?.some((e=>"underline"===e))?"underline":"none",fT=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=QD(t)??{},p=!0===t.usePagination?_x.WHITE:_x.TRANSPARENT,f=aT(n,i,"object.straightTableV2.dimension.label.name.backgroundColor",p),h=o.viewState?.maxLineCount??d?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),m={header:{fontFamily:i?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??r.head.fontFamily??DD,fontSize:sT(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:lT(i?.fontStyle),fontWeight:uT(i?.fontStyle,LD),textDecoration:pT(i?.fontStyle),color:oT(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??_x.TEXT,background:f},headerMenuHoverBackground:Nx(f,hS),headerMenuActiveBackground:Nx(f,mS),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??DD,fontSize:sT(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:lT(a?.fontStyle),fontWeight:uT(a?.fontStyle,"normal"),textDecoration:pT(a?.fontStyle),color:oT(n,a?.fontColor)??oT(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??_x.TEXT,background:iT(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??_x.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??DD,fontSize:sT(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:lT(s?.fontStyle),fontWeight:uT(s?.fontStyle,"normal"),textDecoration:pT(s?.fontStyle),color:oT(n,s?.fontColor)??oT(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??_x.TEXT,background:iT(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??_x.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??DD,fontSize:sT(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:lT(l?.fontStyle),fontWeight:uT(l?.fontStyle,LD),textDecoration:pT(l?.fontStyle),color:oT(n,l?.fontColor)??oT(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??_x.TEXT,background:aT(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:lT(u?.fontStyle),fontWeight:uT(u?.fontStyle,"normal"),textDecoration:pT(u?.fontStyle),color:oT(n,u?.fontColor)??oT(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??_x.TEXT,background:oT(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??_x.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??cT(t.multiline?.wrapTextInCells),headerLineClamp:cT(t.multiline?.wrapTextInHeaders),border:oT(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?_x.DARK_MODE_BORDER:_x.BORDER_MEDIUM),divider:oT(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??_x.BORDER_HEAVY,hoverColors:{color:oT(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:oT(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:oT(n,c?.zebraStripes?.color?.odd),background:oT(n,c?.zebraStripes?.background?.odd)},even:{color:oT(n,c?.zebraStripes?.color?.even),background:oT(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===oT(n,u?.background),overrideNullValueColor:void 0===oT(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:qx(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:h},{headerMinRowHeight:g,totalRowLineHeight:b,totalRowMinHeight:v,contentLineHeight:y,contentMinRowHeight:x}=(e=>{const t=Math.max(dT(e.header.fontSize)+8,32),r=dT(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(dT(e.dimension.values.fontSize),dT(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)}})(m);return m.headerMinRowHeight=g,m.totalRowLineHeight=b,m.totalRowMinHeight=v,m.contentLineHeight=y,m.contentMinRowHeight=x,m},hT=(e,t,r,n)=>{const o=E((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=QD(e)?.content,i=eT("content",t,o);i.background=t.background.color;const a=ZD(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=KD(l)||!!c,p=KD(s)||!!u,f=d||p;let h;h=KD(s)?XD(_x.HOVER,t,s):u||(d?"":_x.HOVER);const m=f?XD(Ox(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=tT(e,t,!o),s=function(e,t,r){const n=QD(e)?.content,o=eT("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=tT(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},mT=new Map;const gT=M({}),bT=function(e){const t=M([()=>{},new Set]);return mT.set(e,t),r=>{let{children:n,value:o}=r;const i=L(o),a=L(new Set);w((()=>{i.current=o,a.current.forEach((e=>{e(o)}))}),[o]);const s=D((()=>i.current),[i]),l=E((()=>[s,a.current]),[s]);return x.createElement(e.Provider,{value:o},x.createElement(t.Provider,{value:l},n))}}(gT),vT={rows:[],columns:[],totalsPosition:{}},yT=e=>{let{app:t,children:r,tableData:n=vT,selectionsAPI:o,cellCoordMock:i,layout:a,model:s,translator:l,interactions:u,theme:c,keyboard:d,rootElement:p,embed:f,changeSortOrder:h,applyColumnWidths:m,setPage:g,pageInfo:b,initialDataPages:v,rect:y,viewService:S,downloadService:w,env:R,direction:A}=e;const[P,k]=C(0),[M,L]=C(i||TI),[D,T]=((e,t)=>{const[r,n]=I(UD,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(n.rows,o),[_,O]=C(-1),q=hT(a,c,n,p),N=((e,t,r,n,o)=>E((()=>fT(0,t,r,n,o)),[t,r,e,n,o]))(R,a,q,c,S),[z,j,F,H]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=Jx({...n.header,fontWeight:LD},{maxNbrLinesOfText:3}).measureText,a=Jx({...n.totalRow,fontWeight:LD},{maxNbrLinesOfText:3}).measureText,{estimateWidth:s}=Jx(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:l}=Jx(n.measure.values,{maxNbrLinesOfText:3}),u=E((()=>(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]=C(0),[p,f]=C((()=>qD(e,r,u)));tS((()=>{f(qD(e,r-c,u))}),[e,r,c,u]);const h=E((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,h]})(n.columns,n.totalsPosition,y.width,N),$=E((()=>({app:t,selectionsAPI:o,layout:a,model:s,translator:l,interactions:u,theme:c,keyboard:d,rootElement:p,embed:f,changeSortOrder:h,applyColumnWidths:m,rect:y,viewService:S,styleService:N,direction:A,downloadService:w})),[t,o,a,s,l,u,c,d.active,p,f,h,m,y,S,N,A,w]);return x.createElement(bT,{value:{headRowHeight:P,setHeadRowHeight:k,focusedCellCoord:M,setFocusedCellCoord:L,selectionState:D,selectionDispatch:T,hoverIndex:_,setHoverIndex:O,columnWidths:z,setColumnWidths:j,baseProps:$,tableData:n,setYScrollbarWidth:F,setPage:g,pageInfo:b,initialDataPages:v,showRightBorder:H,env:R}},r)};function xT(e,t){const r=function(e){return mT.get(e)}(e),[n,o]=S(r),[,i]=I((e=>e+1),0),a=L(t),s=L(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=E((()=>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 ST(e){const t=PD();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),gk({...t,direction:e})}function CT(){return CT=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},CT.apply(null,arguments)}const ET={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},wT={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},RT=Rg("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((e=>{let{isLastColumn:t,hoverColor:r,dir:n}=e;return{position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(t?4:9)+"px",justifyContent:t?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...ET},"&::-moz-range-track":{...ET},"&::-ms-track":{...ET},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...wT},"&::-moz-range-thumb":{...wT},"&::-ms-thumb":{...wT},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:r||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:t?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}})),AT=e=>{let{columnWidth:t,keyValue:r,isLastColumn:n,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:s,handleBlur:l,setIsAdjustingWidth:u,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"}=e;const f=nS({translator:d.translator}),h=L({initWidth:t,columnWidth:t,initX:0}),m=n?0:1,g=o&&!c,b=()=>g?h.current.columnWidth-m:"100%",v={left:"rtl"!==p?b():void 0,right:"rtl"===p?b():void 0},y=e=>{h.current={initWidth:t,columnWidth:t,initX:e??h.current.initX}};tS((()=>{g&&y()}),[t]);const S=e=>{const t=Math.max(e,pS.PixelsMin);h.current.columnWidth=t,a(t)},C=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:fS.Pixels,pixels:h.current.columnWidth};s(e)}else u?.(!1)},E=e=>{const t="rtl"===p?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;S(t)},w=e=>{Hx(e),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",w),C()},R=e=>{const t="rtl"===p?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;S(t)},A=e=>{Hx(e),document.removeEventListener("touchmove",R),document.removeEventListener("touchend",A),C()},P=!o&&l?e=>{if(e.key===cS.Left||e.key===cS.Right){Hx(e);const t=5,r=e.key===cS.Left?t:-t,n="rtl"===p?r:-r;S(h.current.columnWidth+n)}else e.key===cS.Space||e.key===cS.Enter?(Hx(e),l(e),C()):e.key===cS.Esc&&(Hx(e),l(e),S(h.current.initWidth))}:void 0,k=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return x.createElement(RT,{style:v,key:r,hoverColor:i,isLastColumn:n,className:dS,"data-testid":dS,onMouseDown:e=>{Hx(e),document.addEventListener("mousemove",E),document.addEventListener("mouseup",w),u?.(!0),y(e.clientX)},onDoubleClick:()=>{s({type:fS.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Hx(e),document.addEventListener("touchmove",R),document.addEventListener("touchend",A),u?.(!0),y(e.touches[0].clientX))},onKeyDown:P,onBlur:l,onFocus:()=>{y()},type:"range",tabIndex:-1,"aria-label":k,"aria-valuemin":pS.PixelsMin,"aria-valuemax":pS.PixelsMax,"aria-valuenow":Number(t.toFixed(1)),dir:p})},PT=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),kT=Rg(sv,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((e=>{let{rightAligned:t,shouldShowMenuIcon:r}=e;return{...t?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:r?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}})),IT=Rg(PT,{shouldForwardProp:e=>"isInteractionsActive"!==e})((e=>{let{isInteractionsActive:t}=e;return{minWidth:"unset",position:"relative",cursor:t?"pointer":"default"}})),MT=Rg($y)((e=>{let{theme:t}=e;return{".MuiList-root":{padding:t.spacing(.5,0)}}})),LT=Rg(jv)((e=>{let{theme:t}=e;return{"&.MuiDivider-root":{margin:t.spacing(.5)}}})),DT=Rg(Uy)((e=>{let{theme:t}=e;return{fontSize:"12px",height:24,fontWeight:"bold",padding:`${t.spacing(.25,2)} !important`,marginBottom:t.spacing(.5)}})),TT=Rg(Uy,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((e=>{let{theme:t,isSubMenu:r,isActive:n}=e;return{width:`calc(220px - ${t.spacing(1)} - ${r?10:0}px)`,maxHeight:32,borderRadius:`${t.spacing(.5)} !important`,margin:`${t.spacing(.25,.5)} !important`,padding:`${t.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:n?"rgba(0, 0, 0, 0.05)":"transparent"}})),_T=Rg("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((e=>{let{theme:t,direction:r,isPagination:n}=e;return{position:"absolute",width:t.spacing(.5),height:16,left:0,right:n||"rtl"!==r?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}})),OT=Rg("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),qT=Rg(Eb)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),NT=Rg(my,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((e=>{let{theme:t,direction:r,isPagination:n}=e;return{width:16,minWidth:"unset !important",marginRight:n||"rtl"!==r?t.spacing(1.5):0,marginLeft:n||"rtl"!==r?void 0:t.spacing(1.5),lineHeight:0}})),zT=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),jT=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?jT(t):t:e.parentElement?.children?.[0]},FT=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?FT(t):t},HT=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===cS.Down||t===cS.Up){const r=e=>t===cS.Down?jT(e):FT(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},$T=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((e=>{let{onClick:r,...n}=e;return{...n,...r?{onClick:async e=>{Object.entries(t).forEach((e=>{let[,t]=e;t(!1)})),await r(e)}}:{}}}))})))));let BT={};const WT=e=>{let{autoFocus:t,id:r,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:s,isSubMenu:l,isActive:u,direction:c,isPagination:d}=e;const[p,f]=C(!1),h=L(null),m=D((e=>{e.stopPropagation(),f(!1)}),[f]);return x.createElement(x.Fragment,null,x.createElement(TT,{ref:s?h:null,key:r,"data-testid":`menu-item-${r}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),BT={}),s?.length&&(f(!0),BT[o]=f))},disabled:!a,autoFocus:t,isSubMenu:!!l,isActive:!!u,onKeyDown:HT},u?x.createElement(_T,{direction:c,isPagination:d}):null,x.createElement(OT,null,x.createElement(NT,{direction:c,isPagination:d},x.createElement(i,null)),x.createElement(qT,{variant:"body2"},o)),s?.length?x.createElement(zT,null):null),s?.length?x.createElement(UT,{isSubMenu:!0,open:p,anchorEl:h.current,onClose:m,menuGroups:$T(s,BT),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null)},VT=e=>{let{menuGroup:t,isSubMenu:r,direction:n,isPagination:o}=e;return t.map((e=>[[e.groupHeading&&x.createElement(DT,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>x.createElement(WT,CT({key:e.id},e,{isSubMenu:r,direction:n,isPagination:o}))))].filter(Boolean)]))},GT={appear:0,enter:0,exit:0},UT=e=>{let{anchorEl:t,open:r,onClose:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:s,direction:l,isPagination:u}=e;return o.length?x.createElement(MT,CT({className:sS,open:r,anchorEl:t,onClose:n,transitionDuration:GT,MenuListProps:{id:lS}},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{},{dir:l}),(e=>{let{itemGroups:t,isSubMenu:r,direction:n,isPagination:o}=e;return t.map(((e,i)=>[VT({menuGroup:e,isSubMenu:r,direction:n,isPagination:o}),i<t.length-1?x.createElement(LT,{"data-testid":"group-divider",variant:"middle"}):void 0]))})({itemGroups:o,isSubMenu:s,direction:l,isPagination:u})):null},YT=(e,t)=>e.some((e=>t[e]>0)),KT={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},XT=e=>{let{open:t,qStateName:r="$",headerData:n,app:o}=e;const[i,a]=C(null),[s,l]=C(KT);return tS((()=>{t||(l(KT),a(null))}),[t]),w((()=>{if(!o?.createSessionObject||!n.isDim||!t)return()=>{};let e,i=!1;const s=()=>{e&&o.destroySessionObject(e)};return(async()=>{try{const t=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(r,n),u=await o.createSessionObject(t),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};e=c.qInfo?.qId,i?s():(a(u),d&&l((e=>({canSelectAll:YT(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:YT(["qSelected"],e),canSelectPossible:YT(["qOption"],e),canSelectAlternative:YT(["qAlternative"],e),canSelectExcluded:YT(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{i=!0,s()}}),[t,o,n,r]),{fieldInstance:i,selectionActionsEnabledStatus:s}},JT=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),ZT=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),QT=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),e_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),t_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),r_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),n_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),o_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),i_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),a_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),s_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),l_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),u_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),c_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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 d_=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const p_="/qListObjectDef",f_=e=>{let{headerData:t,translator:r,menuAvailabilityFlags:n,setOpen:o,sortFromMenu:i,interactions:a,embedListbox:s,fieldInstance:l,selectionActionsEnabledStatus:u,anchorRef:c,focusColumnAdjuster:d,setActiveFieldCallback:p,expandOrCollapseArgs:f}=e;const h=[];if(n[d_.Sorting]){const{isActivelySorted:e,sortDirection:n}=t,{ascendingEnabled:a,descendingEnabled:s}=(e=>{let{isActivelySorted:t,sortDirection:r,isPivot:n,isSortedByFirstMeasure:o}=e,i=!n&&!t||"D"===r,a=!n&&!t||"A"===r;return o&&(i=!1,a=!1),{ascendingEnabled:i,descendingEnabled:a}})(t);h.push([{groupHeading:r.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"A")),o(!1)},icon:JT,enabled:a,isActive:!!e&&"A"===n,autoFocus:a},{id:2,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"D")),o(!1)},icon:e_,enabled:s,isActive:!!e&&"D"===n,autoFocus:!a&&s}]}])}if(t.isCyclic&&p){const e=[];e.push([{items:[{id:1,itemTitle:t.groupDimensionLabels[t.groupDimensionPos].label,enabled:!0,icon:o_,subMenus:[[{items:t.groupDimensionLabels.map(((e,r)=>{let{label:n,enabled:i}=e;return{id:r+1,itemTitle:n,onClick:async e=>{e.stopPropagation(),o(!1),p(r)},enabled:i,icon:t_,isActive:t.groupDimensionPos===r}}))}]]}]}]),e.length>0&&h.push(...e)}if(t.isDim&&a?.select){const e=[];n[d_.Searching]&&e.push([{items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),o(!1),s()},icon:i_,enabled:!0}]}]),n[d_.Selections]&&e.push([{items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:c_,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),o(!1),await(l?.selectListObjectAll(p_))},icon:a_,enabled:u.canSelectAll},{id:2,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),o(!1),await(l?.selectListObjectPossible(p_))},icon:u_,enabled:u.canSelectPossible},{id:3,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),o(!1),await(l?.selectListObjectAlternative(p_))},icon:s_,enabled:u.canSelectAlternative},{id:4,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),o(!1),await(l?.selectListObjectExcluded(p_))},icon:l_,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),o(!1),await(l?.clearSelections(p_))},icon:ZT,enabled:u.canClearSelections}]}]]}]}]),f&&h.push([{items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),o(!1),await f.expandCallback()},icon:n_,enabled:!0},{id:2,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),o(!1),await f.collapseCallback()},icon:r_,enabled:!0}]}]),e.length>0&&h.push(...e)}return n[d_.AdjusterHeaderSize]&&h.push([{items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),o(!1),d?.(c)},icon:QT,enabled:!0}]}]),h},h_=e=>{let{open:t,setOpen:r,anchorRef:n,headerData:o,translator:i,interactions:a,menuAvailabilityFlags:s,shouldShowMenuIcon:l=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:f,model:h,direction:m="ltr",isPagination:g}=e;const b=nS({translator:i}),{qLibraryId:v,fieldId:y,headTextAlign:S}=o,C=d?.app,{fieldInstance:E,selectionActionsEnabledStatus:w}=XT({open:t,headerData:o,app:C,qStateName:d?.qStateName});let R=null;if(h&&"setActiveField"in h&&void 0!==o.dimensionInfoIndex){const e=o.dimensionInfoIndex;R=async t=>{try{await h.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const A=D((()=>{const e=v?{qLibraryId:v,type:"dimension"}:y;if(c?.embed){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===m?"right":"left"},sortCriteria:c.sortCriteria,stateName:d?.qStateName,direction:m})}}),[v,y,c,d?.qStateName,m]),P=D((e=>{e.stopPropagation(),r(!1)}),[r]);return a.active?x.createElement(kT,{rightAligned:"right"===S,shouldShowMenuIcon:l,className:aS},l?x.createElement(IT,{height:oS,className:iS,"data-testid":iS,isInteractionsActive:a.active??!1},x.createElement(PT,null)):null,x.createElement(UT,{open:t,anchorEl:n.current,onClose:P,menuGroups:f_({headerData:o,translator:b,menuAvailabilityFlags:s,setOpen:r,...u,embedListbox:A,interactions:a,fieldInstance:E,selectionActionsEnabledStatus:w,anchorRef:n,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:f}),direction:m,isPagination:g})):null},m_=e=>e.isDark?{background:e.color,borderColor:_x.DARK_MODE_BORDER,color:_x.DARK_MODE_TEXT,disabledColor:_x.DARK_MODE_DISABLED,iconColor:_x.DARK_MODE_TEXT}:{background:e.color,borderColor:_x.BORDER_MEDIUM,color:_x.TEXT,disabledColor:_x.DISABLED},g_=Rg(sv,{shouldForwardProp:e=>"footerStyle"!==e})((e=>{let{footerStyle:t,theme:r}=e;return{height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:r.spacing(0,1,0,1),color:t.color,background:t.background,borderTop:`1px solid ${t.borderColor}`}})),b_=Rg(Px,{shouldForwardProp:e=>"footerStyle"!==e})((e=>{let{footerStyle:t,theme:r}=e;return{background:"inherit",marginRight:r.spacing(1),color:t.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:t.iconColor}}})),v_=Rg(bv,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((e=>{let{disabledCondition:t,footerStyle:r,theme:n}=e;return{color:t?r.disabledColor:r.color,cursor:t?"default":"pointer",marginLeft:n.spacing(1)}})),y_=Rg(Eb)((e=>{let{theme:t}=e;return{color:"inherit",margin:t.spacing(0,1,0,1)}})),x_=e=>{let{children:t,footerContainer:r,interactions:n,theme:o,paginationNeeded:i=!0}=e;const a=E((()=>m_(o.background)),[o]);if(!n.active)return null;const s=i?x.createElement(g_,{footerStyle:a},t):null;return r?F.createPortal(t,r):s},S_=M({}),C_=()=>S(S_),E_=e=>{let{children:t,direction:r,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:s,totalRowCount:l,totalColumnCount:u,totalPages:c,keyboard:d,translator:p,theme:f,interactions:h,rect:m,layout:g}=e;const b=(e=>!e.enabled||e.active)(d)?0:-1,v=E((()=>m_(f.background)),[f]),y=i?i.getBoundingClientRect().width:m.width,S=nS({translator:p}),C=E((()=>({direction:r,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:s,totalRowCount:l,totalColumnCount:u,totalPages:c,keyboard:d,translator:S,theme:f,interactions:h,rect:m,layout:g,footerStyle:v,tabIndex:b,width:y})),[r,n,o,i,a,s,l,u,c,d,S,f,h,m,g,v,b,y]);return x.createElement(S_.Provider,{value:C},t)};let w_=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),R_=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 A_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),P_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),k_=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),I_={FirstPage:P_,PreviousPage:A_,NextPage:zT,LastPage:k_,FirstPageRTL:k_,PreviousPageRTL:zT,NextPageRTL:A_,LastPageRTL:P_},M_=e=>{let{disabledCondition:t,pageNumber:r,type:n}=e;const{direction:o,footerStyle:i,handleChangePage:a,translator:s,interactions:l,tabIndex:u}=C_(),c=n.concat("rtl"===o?"RTL":""),d=I_[c];return{styledProps:{footerStyle:i,disabledCondition:t,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":t,"aria-label":s.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?s.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:u,onClick:t?void 0:()=>{a(r)}},IconComponent:d}},L_=()=>{const{pageInfo:e,width:t,interactions:r}=C_(),n=0===e.page,{IconComponent:o,styledProps:i}=M_({type:w_.FirstPage,disabledCondition:n,pageNumber:0});return t<=R_.FirstPage?null:x.createElement(v_,CT({},i,{disabled:!r.active}),x.createElement(o,{height:oS}))},D_=function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&e.key===cS.Tab&&!e.shiftKey&&(Hx(e),Fx(e.target,t,!1))},T_=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=C_(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=M_({type:w_.LastPage,disabledCondition:a,pageNumber:r-1}),u=t.enabled?e=>{D_(e,t,n)}:void 0;return o<=R_.LastPage?null:x.createElement(v_,CT({},l,{onKeyDown:u,disabled:!i.active}),x.createElement(s,{height:oS}))},__=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=C_(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=M_({type:w_.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>R_.FirstPage&&o>R_.LastPage)&&t.enabled?e=>{D_(e,t,n)}:void 0;return x.createElement(v_,CT({},l,{onKeyDown:u,disabled:!i.active}),x.createElement(s,{height:oS}))},O_=()=>{const{pageInfo:e,interactions:t}=C_(),r=0===e.page,{IconComponent:n,styledProps:o}=M_({type:w_.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return x.createElement(v_,CT({},o,{disabled:!t.active}),x.createElement(n,{height:oS}))},q_=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=C_(),{page:o,rowsPerPage:i}=r;if(t<=R_.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(y_,{variant:"caption",dir:"ltr"},a)},N_=e=>{let{name:t,value:r,options:n,handleChange:o}=e;const{layout:i,footerStyle:a,translator:s,tabIndex:l,interactions:u}=C_(),c=i.qInfo.qId,d=s.get(`NebulaTableUtils.Pagination.${t}`),p=`${t}-dropdown`,f=`${p}-label-${c}`,h={tabIndex:l,id:`${p}-${c}`,"data-testid":p,"aria-labelledby":f};return x.createElement(x.Fragment,null,x.createElement(y_,{variant:"caption",id:f},d,":"),x.createElement(b_,{footerStyle:a,size:"small",native:!0,value:r,onChange:o,inputProps:h,disabled:!u.active},n))},z_=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o}=C_();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>R_.RowsPerPage&&r<=100)||void 0===e.rowsPerPageOptions)return null;const i=x.createElement(x.Fragment,null,e.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(N_,{name:"RowsPerPage",value:e.rowsPerPage,options:i,handleChange:e=>{o?.(+e.target.value)}})},j_=1e3,F_="…",H_=e=>{let{totalPages:t,page:r}=e;const n=Math.min(t,j_),o=n<t&&r>500,i=o?Math.min(500+r,t):n,a=o?Math.max(0,i-j_):0,s=Array.from(Array(n).keys()).map((e=>{const t=e+a;return x.createElement("option",{key:t,value:t},t+1)}));return a>0&&s.unshift(x.createElement("option",{key:"startMoreOptions",value:F_,disabled:!0},F_)),i<t-1&&s.push(x.createElement("option",{key:"endMoreOptions",value:F_,disabled:!0},F_)),x.createElement(x.Fragment,null,s)},$_=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=C_(),{page:o}=e;if(t<=R_.SelectPage)return null;const i=x.createElement(H_,{totalPages:r,page:o});return x.createElement(N_,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var B_=_((e=>x.createElement(E_,e,x.createElement(z_,null),x.createElement($_,null),x.createElement(q_,null),x.createElement(L_,null),x.createElement(O_,null),x.createElement(__,null),x.createElement(T_,null))));const W_=e=>x.createElement(x_,e,x.createElement(B_,e)),V_={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},G_=Fk(YI,{shouldForwardProp:e=>"background"!==e})((e=>{let{background:t}=e;return{height:"100%",background:t.color}})),U_=Fk("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})((e=>{let{lineClamp:t,isHeadCell:r=!1,isPagination:n=!1,isNumeric:o=!1}=e;return o||1===t&&!r?{...V_,whiteSpace:"nowrap",display:n?"block":void 0}:{...V_,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}}));function Y_(e,t){const r=L(!1);w((()=>{r.current?e():r.current=!0}),t)}const K_=e=>{let{colIdx:t,rowIdx:r,firstColIdx:n,lastColIdx:o}=e;return t>n?t--:r>n&&(r--,t=o),[r,t]},X_=e=>{let{colIdx:t,rowIdx:r,firstColIdx:n,lastColIdx:o,lastRowIdx:i}=e;return t<o?t++:r<i&&(r++,t=n),[r,t]},J_=e=>e.atTop?2:1,Z_=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],Q_=e=>e?.setAttribute("tabIndex","0"),eO=e=>e?.setAttribute("tabIndex","-1"),tO=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(eO)},rO=e=>{e?.focus(),Q_(e)},nO=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${dS}`);rO(t)}),0)},oO=e=>{let{evt:t,rootElement:r,cellCoord:n,setFocusedCellCoord:o,allowedRows:i,direction:a}=e;tO(r);const s=function(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{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 cS.Down:u<s&&u++;break;case cS.Up:u>a&&u--;break;case cS.Right:if(i)break;[u,c]="rtl"===n?K_({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):X_({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case cS.Left:if(i)break;[u,c]="rtl"===n?X_({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):K_({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case cS.Home:(jD(e)||i)&&(u=a),i||(c=0);break;case cS.End:(jD(e)||i)&&(u=s),i||(c=l);break;case cS.PageDown:u=Math.min(s,u+10);break;case cS.PageUp:u=Math.max(a,u-10)}return[u,c]}(t,r,n,a,i),l=Z_(r,s);return rO(l),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(s,r),o(s),{nextCell:l,nextCellCoord:s}},iO=(e,t,r,n)=>{tO(t),r(e),n.enabled&&!n.active?n.focus?.():rO(Z_(t,e))},aO=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${sS}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${DI.First}`),r=e.querySelector(`.${DI.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},sO=()=>{const{downloadService:e}=xT(gT,(e=>e.baseProps));w((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},lO=(e,t,r)=>{const{rootElement:n,keyboard:o}=xT(gT,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=xT(gT,(e=>e.tableData)),u=xT(gT,(e=>e.focusedCellCoord)),c=xT(gT,(e=>e.setFocusedCellCoord)),d=xT(gT,(e=>e.baseProps.selectionsAPI?.isModal()));Y_((()=>{const r=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=[J_(t),e[1]];return r?n:TI}(u,l,d);(e=>{let{resetCellCoord:t,rootElement:r,shouldRefocus:n,isSelectionMode:o,setFocusedCellCoord:i,keyboard:a,announce:s}=e;if(tO(r),i(t),!(e=>!e.enabled||e.active)(a))return;const l=Z_(r,t);n.current?(rO(l),n.current=!1):Q_(l),o&&(s({keys:[l?.textContent??""]}),zD(s,l,o))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},uO=(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=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},cO=e=>{Hx(e),jD(e)&&yS(e.currentTarget)},dO=e=>{BD(e.evt)&&(Hx(e.evt),oO(e))},pO=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!BD(t))return;Hx(t);const i=((e,t)=>[e.pageRowIdx+J_(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?J_(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=oO({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(e=>{let{evt:t,isSelectionsEnabled:r,cell:n,selectionDispatch:o,announce:i,isSelectionMode:a,nextCell:s}=e;t.shiftKey&&r&&n.isSelectable?o({type:MI.SelectMultiAdd,payload:{cell:n,evt:t,announce:i}}):zD(i,s,a)})({...e,nextCell:s})},fO=e=>{const{evt:t}=e;FD(t)?(e=>{let{evt:t,totalRowCount:r,rowsPerPage:n,page:o,updateShouldRefocus:i,handleChangePage:a}=e;Hx(t);const s=Math.ceil(r/n)-1;t.key===cS.Right&&o<s?(i(),a(o+1)):t.key===cS.Left&&o>0&&(i(),a(o-1))})(e):t.key===cS.Esc?(e=>{let{evt:t,keyboard:r,isSelectionMode:n}=e;r.enabled&&!n&&(Hx(t),r.blur?.(!0))})(e):HD(t.key)&&Hx(t)},hO=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(II.Disabled))return void Hx(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case cS.Space:(e=>{let{evt:t,cell:r,isSelectionsEnabled:n,selectionDispatch:o,announce:i}=e;Hx(t),r.isSelectable&&n&&o({type:MI.Select,payload:{cell:r,evt:t,announce:i}})})(n);break;case cS.Enter:(e=>{let{isSelectionMode:t,selectionsAPI:r,evt:n,announce:o}=e;Hx(n),t&&(r?.confirm(),o({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case cS.Esc:(e=>{let{isSelectionMode:t,selectionsAPI:r,evt:n,announce:o}=e;t&&(Hx(n),r?.cancel(),o({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case cS.C:cO(t);break;case cS.Tab:(e=>{let{evt:t,keyboard:r,isSelectionMode:n,paginationNeeded:o}=e;const i=t.shiftKey||!o;r.enabled&&n&&i&&(Hx(t),Fx(t.currentTarget,r,t.shiftKey))})(n);break;default:pO(n)}},mO=e=>{const{layout:t,rect:r,theme:n}=xT(gT,(e=>e.baseProps)),[o,i]=C(0),[a,s]=C(0);return O((()=>{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}},gO=Fk("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),bO=Fk(gM,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((e=>{let{fullHeight:t,interactions:r}=e;return{height:t?"100%":"calc(100% - 41px)",overflow:r.scroll?"auto":"hidden",border:"none"}})),vO=Fk(eM,{shouldForwardProp:e=>"borderRight"!==e})((e=>{let{borderRight:t}=e;return{tableLayout:"fixed",width:"min-content",borderRight:t}})),yO=()=>x.createElement(x.Fragment,null,x.createElement(gO,{className:DI.First,"data-testid":DI.First,"aria-live":"polite","aria-atomic":"true"}),x.createElement(gO,{className:DI.Second,"data-testid":DI.Second,"aria-live":"polite","aria-atomic":"true"})),xO=e=>{const t=L(new Map),r=L(null);w((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=D(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=D((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return E((()=>({addTask:n,removeTask:o})),[n,o])},SO=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),CO=()=>xO(SO),EO=e=>{let{selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:n,keyboard:o,tableWrapperRef:i}=e;w((()=>{const e=()=>{r({type:MI.Reset})},a=()=>{r({type:MI.Clear})},s=()=>{i.current?.contains(document.activeElement)?n():o.enabled&&o.blur?.(!0),e()};return t?.on("deactivated",e),t?.on("canceled",e),t?.on("confirmed",s),t?.on("cleared",a),()=>{t?.removeListener("deactivated",e),t?.removeListener("canceled",e),t?.removeListener("confirmed",s),t?.removeListener("cleared",a)}}),[t,o,r,n,i])},wO=e=>{e.stopPropagation()},RO=e=>{let{href:t,text:r,interactions:n,color:o}=e;return x.createElement(iy,(e=>{let{href:t,text:r,interactions:n,color:o}=e;return{href:t,title:r,rel:"noreferrer",target:"_blank",underline:"hover",onClick:wO,color:_x.LINK,style:{pointerEvents:n.active?"auto":"none",color:o??void 0,opacity:n.active&&n.passive||o?void 0:.4}}})({href:t,text:r,interactions:n,color:o}),r)},AO=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),PO=window.cancelIdleCallback??(e=>{clearTimeout(e)}),kO="qDimensionInfo/0",IO="qMeasureInfo/0",MO="x",LO="y",DO=e=>({key:"bars",type:"box",data:{extract:{field:kO,props:{start:0,end:{field:IO}}}},settings:{major:{scale:MO},minor:{scale:LO},box:{maxWidthPx:8,fill:{fn:e}}}}),TO=e=>({key:"p",type:"point",data:{extract:{field:kO,props:{y:{field:IO}}}},settings:{x:{scale:MO},y:{scale:LO},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),_O=e=>{let{qNum:t}=e;return void 0===t?0:Math.sign(t)},OO=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=zx(e,t?.negative,r),a=zx(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:kO,props:{start:0,end:{field:IO,value:_O}}}},settings:{major:{scale:MO},minor:{scale:LO},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}}}}},qO=(e,t)=>{let{type:r,showDots:n,colors:o,colorMin:i,colorMax:a}=t;const s=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=zx(e,t?.main,o),l=zx(e,t?.max,s),u=zx(e,t?.min,s),c=zx(e,t?.first,s),d=zx(e,t?.last,s);return e=>{const t=LO in e.datum?LO:"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,o,i,a);switch(r){case"bars":return[DO(s)];case"dots":return[TO(s)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:kO,props:{v:{field:IO}}}},settings:{coordinates:{major:{scale:MO},minor:{scale:LO,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(zx(e,o?.main,e.getDataColorSpecials().primary));return n?[t,TO(s)]:[t]}case"posNeg":return[OO(e,o)];default:return[]}},NO=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"}),zO=(e,t,r,n)=>({y:{data:{field:IO},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:kO}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),jO=$();jO.use(H),jO.renderer.prio(["canvas"]);const FO={resolve:()=>{},promise:{}},HO=e=>{let{chart:t,element:r,requestId:n,theme:o,isSnapshot:i,direction:a,miniChartData:s,downloadService:l}=e;const{resolveChartPromise:u,addChartPromiseToQueue:c}=(e=>{const t=L(e.isDownloadedAsPDForImage?ht():FO);return{addChartPromiseToQueue:D((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(l),d=D((()=>{if(null===r.current||null!==t.current)return;c();n.current=AO((()=>{r.current&&(t.current=(e=>{let{element:t,theme:r,isSnapshot:n,miniChartData:o,onChartRendered:i,direction:a}=e;const{type:s,qMatrix:l,minY:u,maxY:c}=o;return jO.chart({element:t,data:{type:"q",key:"qHyperCube",data:NO(l)},settings:{scales:zO(s,u,c,a),components:qO(r,o),strategy:n?{size:{width:t.offsetWidth,height:t.offsetHeight}}:void 0},mounted:()=>{i()}})})({element:r.current,theme:o,isSnapshot:i,miniChartData:s,direction:a,onChartRendered:u}))}),{timeout:2e3})}),[r,t,c,n,o,i,s,a,u]);return{renderChartWithRequestIdleCallback:d,safeCancelIdleCallback:D((()=>{null!==n.current&&PO(n.current),n.current=null,u()}),[n,u])}},$O=e=>{const t=L(null),r=L(!1);return D((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(PO(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=AO((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},BO=e=>{let{intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s}=e;const l=L(null),u=L(null),c=L(null),{renderChartWithRequestIdleCallback:d,safeCancelIdleCallback:p}=HO({element:l,chart:u,requestId:c,theme:n,isSnapshot:o,direction:s,miniChartData:i,downloadService:a});return(e=>{let{element:t,intersectionObserverTaskScheduler:r,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:o,chart:i}=e;const a=D((e=>{e.isIntersecting?o():n()}),[o,n]);w((()=>{if(!t.current||!r)return()=>{};const e=t.current;return r.addTask(e,a),()=>{r.removeTask(e),n(),i.current?.destroy(),i.current=null}}),[i,t,r,n,a])})({element:l,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:p,renderChartWithRequestIdleCallback:d,chart:u}),(e=>{let{renderChartWithRequestIdleCallback:t,safeCancelIdleCallback:r,chart:n,intersectionObserverTaskScheduler:o}=e;w((()=>o?()=>{}:(t(),()=>{r(),n.current?.destroy(),n.current=null})),[o,r,t,n])})({intersectionObserverTaskScheduler:t,safeCancelIdleCallback:p,renderChartWithRequestIdleCallback:d,chart:u}),(e=>{let{element:t,chart:r,resizeObserverTaskScheduler:n}=e;const o=$O(r);w((()=>{const e=t.current;return e?(n.addTask(e,o),()=>{n.removeTask(e)}):()=>{}}),[t,o,n])})({element:l,chart:u,resizeObserverTaskScheduler:r}),l},WO=e=>{let{height:t,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:n,theme:o,isSnapshot:i,miniChartData:a,downloadService:s,direction:l}=e;const u=BO({intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:n,theme:o,isSnapshot:i,miniChartData:a,downloadService:s,direction:l});return x.createElement("div",{"data-testid":"picasso-container",ref:u,style:{position:"relative",width:"100%",height:t,overflow:"hidden"}})},VO="cell-text",GO=e=>{let{children:t,forwardRef:r,isNumeric:n=!1,isPagination:o=!1,isHeadCell:i=!1,lineClamp:a}=e;const{styleService:s}=xT(gT,(e=>e.baseProps));return i?x.createElement(U_,{"data-testid":VO,ref:r,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:o,isHeadCell:!0,style:{direction:n?"ltr":void 0}},t):x.createElement(U_,{"data-testid":VO,ref:r,className:"sn-table-cell-text",isNumeric:n,lineClamp:a??s.grid.contentLineClamp,isPagination:o,style:{direction:n?"ltr":void 0}},t)},UO=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),YO=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},KO=(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)},XO=(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:UO(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:YO(n,t,r)})))),n},JO=(e,t,r,n)=>{const o=XO(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=KO(e,a,t);break}n=i}return r})(o,t);return a},ZO=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!cw(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||!cw(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)},QO=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=ZO(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!cw(t))return 0;let a=r&&cw(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}},eq=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=QO(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return YO(o,r.limitPaletteColorIndex,n);const a=UO(r.limitRange,t);return JO(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},tq=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,rq=(e,t)=>e.representation.type===pE.Image&&"fitHeight"===e.representation.imageSize?tq(t,e.representation):e.align,nq=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",oq=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},iq=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,aq=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",sq=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",lq=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},uq=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},cq=e=>{let{representation:t,textStyle:r,maxImageHeight:n,wrapInContainer:o}=e;const{direction:i}=xT(gT,(e=>e.baseProps)),{url:a,text:s,imageSize:l,resolvedImagePosition:u}=t,c="fitHeight"===l,d=x.createElement("img",{src:a,alt:s,style:{...r,width:c?"auto":"100%",height:"100%",maxHeight:n,objectFit:uq(l),objectPosition:lq(u),overflow:"hidden"}});return o?x.createElement("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?n:"100%",overflow:"hidden",display:"flex",justifyContent:c?tq(i,t):void 0}},d):d},dq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),pq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),fq=T(((e,t)=>Rl.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:[Rl.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"}),Rl.jsx("use",{fillRule:"evenodd"})]}))),hq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),mq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),gq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),bq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.jsx("path",{d:"M2 7h12v2H2z"})}))),vq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),yq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),xq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),Sq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),Cq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),Eq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),wq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),Rq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),Aq={m:Cq,"ï":xq,R:T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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:Eq,T:wq,U:Rq,P:yq,Q:gq,"è":T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),"¢":hq,"©":fq,"23F4":mq,2013:Sq,"&":vq,add:dq,"minus-2":bq,dot:pq},Pq=e=>{let{size:t,iconKey:r,color:n,pvStyle:o}=e;const i=r&&Aq[r];return i&&x.createElement("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:t,...o}},x.createElement(i,{style:{height:t}}))},kq=e=>{let{representation:t,cellValue:r,paginationCellAlign:n}=e;const{styleService:o,theme:i,direction:a}=xT(gT,(e=>e.baseProps)),{text:s,indicator:l}=t,{showTextValues:u,applySegmentColors:c}=l??{},d=eq(t,r,a,i),p=(e=>parseInt(e||MD,10))(o.measure.values.fontSize),{color:f,iconKey:h,position:m}=d||{};return u?x.createElement("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?f:void 0}},"left"===m&&Pq({size:p,iconKey:h,color:f}),x.createElement(GO,{isNumeric:!0},s),"right"===m&&Pq({size:p,iconKey:h,color:f})):Pq({size:p,iconKey:h,color:f})},Iq=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,Mq=e=>{let{forwardRef:t,cell:r,style:n,virtualizedCell:o,lineClamp:i,intersectionObserverTaskScheduler:a,resizeObserverTaskScheduler:s,paginationCellAlign:l}=e;const{interactions:u,styleService:c,theme:d,layout:p,downloadService:f,direction:h}=xT(gT,(e=>e.baseProps)),m=xT(gT,(e=>e.selectionState.api?.isActive()));let g=r.representation.text;if(r.representation.type!==pE.Link||m||(g=x.createElement(RO,{href:r.representation.url,text:r.representation.text,interactions:u,color:n.cellForegroundColor})),r.representation.type===pE.Image)return x.createElement(cq,{representation:r.representation,textStyle:n,maxImageHeight:Iq(c,i),wrapInContainer:!o});const b="string"==typeof(v=r.qIsNull?r.representation.text:r.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return r.representation.type!==pE.Indicator||Number.isNaN(b)?r.representation.type===pE.MiniChart&&r.representation.miniChart&&!r.isNull?x.createElement(WO,{height:Iq(c,i),intersectionObserverTaskScheduler:a,resizeObserverTaskScheduler:s,miniChartData:r.representation.miniChart,theme:d,isSnapshot:!!p.snapshotData,direction:h,downloadService:f}):x.createElement(GO,{forwardRef:t,isNumeric:r.isNumeric,lineClamp:i,isPagination:!o},g):x.createElement(kq,{representation:r.representation,cellValue:b,paginationCellAlign:o?void 0:l})},Lq=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:MI.SelectMultiEnd})};r({type:MI.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:MI.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:MI.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),Dq=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=xT(gT,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=xT(gT,(e=>e.baseProps)),u=xT(gT,(e=>e.setFocusedCellCoord)),c=xT(gT,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{hO({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===cS.Shift&&t({type:MI.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;iO([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:h};const{handleMouseDown:m,handleMouseOver:g,handleMouseUp:b}=Lq(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},Tq=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=II.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?II.Disabled:n.has(e.qElemNumber)?II.Selected:II.Possible),i},_q=(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},Oq=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},qq=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return Oq(t,e,n?"even":"odd")}return e},Nq=(e,t)=>{const{styleService:r}=xT(gT,(e=>e.baseProps)),n=xT(gT,(t=>Tq(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=qq(o,r,e),o=_q(o,r,e);const i=nT(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===II.Selected?{...e,...r}:t===II.Disabled?{...e,background:`${kD}, ${e.background}`}:e}(E((()=>e.isNull?o:nT(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}},zq=Fk(sM,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((e=>{let{lastRowBottomBorder:t}=e;return{"& tr:last-child":{"& td, th":{borderBottomWidth:t}}}})),jq=Fk(kM,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((e=>{let{hover:t,hoverColors:r,height:n}=e;return{height:n,"&&:hover":{background:"none"},...t&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":r}}}})),Fq=Fk(pM,{shouldForwardProp:e=>"cellStyle"!==e})((e=>{let{cellStyle:t,theme:r}=e;return{...TD,...t,padding:r.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}})),Hq=Fk(pM,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((e=>{let{totalsStyle:t,atTop:r,headRowHeight:n,theme:o}=e;return{...TD,...t,fontWeight:LD,position:"sticky",padding:o.spacing(.5,1.5),borderWidth:r?"0px 1px 1px 0px":"1px 1px 1px 0px",top:r?n:void 0,bottom:r?void 0:0,verticalAlign:r?"bottom":"top",zIndex:r?1:void 0}})),$q=e=>{let{cell:t,announce:r,column:n,columnIndex:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a}=e;const{interactions:s,direction:l}=xT(gT,(e=>e.baseProps)),{onKeyDown:u,onKeyUp:c,onMouseDown:d,onMouseUp:p,onMouseOver:f}=Dq(t,r),{cellStyle:h,representationStyle:m,cellSelectionState:g}=Nq(t,n);return x.createElement(Fq,{cellStyle:h,scope:0===o?"row":void 0,component:0===o?"th":void 0,align:t.align,tabIndex:-1,className:`sn-table-cell ${g} ${uS}`,title:s.passive?t.representation.text:void 0,onKeyDown:u,onKeyUp:c,onMouseDown:d,onMouseUp:p,onMouseOver:f},x.createElement(Mq,{cell:t,style:m,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:iq(l,t.align)}))},Bq=(e,t,r)=>{let{atTop:n,atBottom:o}=t;return{borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!r&&o?e.grid.divider:e.grid.border,borderBottomColor:r&&!n||!r&&n?e.grid.divider:e.grid.border}},Wq=()=>{const{columns:e,totalsPosition:t,rows:r}=xT(gT,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:s,direction:l}=xT(gT,(e=>e.baseProps)),u=xT(gT,(e=>e.headRowHeight)),c=xT(gT,(e=>e.setFocusedCellCoord)),d=!!o?.isModal(),p=!!s.active;return x.createElement(kM,{className:"sn-table-row sn-table-totals-row"},e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return x.createElement(Hq,{totalsStyle:{...a.totalRow,...Bq(a,t,!1)},headRowHeight:u,atTop:t.atTop,key:e.id,align:e.totalsTextAlign,className:`sn-table-cell ${uS}`,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 cS.C:cO(r);break;case cS.Space:r.preventDefault();break;default:dO(e)}else Hx(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:l})},onMouseDown:()=>{iO(f,n,c,i)}},x.createElement(GO,{isNumeric:e.isTotalNumeric,isPagination:!0},e.totalInfo))})))};var Vq=_(Wq);const Gq=e=>{let{updateShouldRefocus:t,tableWrapperRef:r,announce:n}=e;const{rows:o,columns:i,totalsPosition:a}=xT(gT,(e=>e.tableData)),{selectionsAPI:s,keyboard:l,layout:u,styleService:c}=xT(gT,(e=>e.baseProps)),d=xT(gT,(e=>e.selectionDispatch)),p=!!QD(u)?.content?.hoverEffect;EO({keyboard:l,selectionDispatch:d,selectionsAPI:s,updateShouldRefocus:t,tableWrapperRef:r});const f=(e=>{const t=D((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return xO(t)})(r),h=CO();return x.createElement(zq,{lastRowBottomBorder:c.grid.lastRowBottomBorder},a.atTop?x.createElement(Vq,null):void 0,o.map(((e,t)=>x.createElement(jq,{hoverColors:c.grid.hoverColors,hover:p,tabIndex:-1,key:`row-${t}`,className:"sn-table-row sn-table-data-row",height:c.contentMinRowHeight},i.map(((t,r)=>{const{id:o}=t,i=e[r];return x.createElement($q,{key:o,columnIndex:r,cell:i,column:t,announce:n,intersectionObserverTaskScheduler:f,resizeObserverTaskScheduler:h})}))))),a.atBottom?x.createElement(Vq,null):void 0)};var Uq=_(Gq);const Yq=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,Kq=e=>{let{column:t,isLastColumn:r,onColumnResize:n,setIsAdjustingWidth:o}=e;const{pageColIdx:i,label:a}=t,{applyColumnWidths:s,interactions:l,translator:u,direction:c}=xT(gT,(e=>e.baseProps)),d=xT(gT,(e=>e.columnWidths)),p=xT(gT,(e=>e.setColumnWidths));if(!l.active)return null;return x.createElement(AT,{columnWidth:d[i],isLastColumn:r,keyValue:`adjuster-${i}`,updateWidthCallback:e=>{n?.();const t=[...d];t[i]=e,p(t)},confirmWidthCallback:e=>{s(e,t)},handleBlur:e=>{(e=>{eO(e);const t=e.closest(".sn-table-cell");rO(t)})(e.currentTarget)},setIsAdjustingWidth:o,accessibilityRelatedArgs:{translator:u,columnLabel:a},direction:c})},Xq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),Jq=T(((e,t)=>Rl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Rl.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"})}))),Zq=T(((e,t)=>Rl.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:[Rl.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"}),Rl.jsx("use",{fillRule:"evenodd"})]}))),Qq=Fk("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((e=>{let{direction:t,isPagination:r}=e;return{position:"absolute",left:r&&"rtl"===t?0:void 0,bottom:0}})),eN=Fk(YI,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})((e=>{let{textAlign:t,theme:r,direction:n,isPagination:o}=e;return{textAlign:t,height:"auto",padding:r.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:t,alignSelf:"center",flexDirection:"rtl"===n?nq(t,o):void 0}})),tN=Fk(YI,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((e=>{let{shouldShowMenuIcon:t,shouldShowLockIcon:r,alignment:n}=e;const o=t?"24px":"";let i;switch(n){case"left":i={gridTemplateColumns:r?`20px 2fr ${o}`:`1fr ${o}`};break;case"center":{const e=t||r;i={gridTemplateColumns:e?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:e?2:1},[`& .${aS}`]:{gridColumn:3}};break}case"right":i={gridTemplateColumns:r?`${o} 2fr 20px`:`${o} 1fr`,"& .sn-table-lock-icon":{gridColumn:r?3:"unset"},"& .sn-table-head-label":{gridColumn:t?2:"span 2"},[`& .${aS}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...i}})),rN=Fk(YI,{shouldForwardProp:e=>"rightAligned"!==e})((e=>{let{rightAligned:t}=e;return{display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:t?"flex-start":"flex-end"}})),nN=Fk(pM,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((e=>{let{headerStyle:t,interactions:r,hoverBackground:n,background:o}=e;return{...TD,...t,cursor:r.active?"pointer":"default",background:o,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:r.active?n:o}}})),oN=Fk("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((e=>{let{align:t,dir:r}=e;return{minWidth:MD,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===t||"rtl"===r&&"center"===t?{paddingRight:"8px"}:{paddingLeft:"8px"}}})),iN=e=>{let{column:t,isInteractionEnabled:r,open:n,setOpen:o,allColumnsIconVisibilityStatusRef:i,isPagination:a,forwardRef:s}=e;const{translator:l,changeSortOrder:u,interactions:c,embed:d,app:p,styleService:f,layout:h,direction:m}=xT(gT,(e=>e.baseProps)),g=xT(gT,(e=>e.columnWidths[t.pageColIdx])),b=xT(gT,(e=>e.baseProps.model)),v=L(null),y=L(null),S=(e=>{let{styleService:t,column:r,columnWidth:n}=e;const{measureText:o}=Jx({fontSize:t.header.fontSize,fontFamily:t.header.fontFamily,fontWeight:LD});return D((()=>{let e=!1,t=!1,i=!1;const a=r.isLocked,s=r.isActivelySorted,l=n-25,u=a?20:0,c=s?20:0;let d=o(r.label);return a&&d+u<=l&&(i=!0,d+=u,s&&d+c<=l&&(t=!0,d+=c)),!a&&s&&d+c<=l&&(t=!0,d+=c),d+24<=l&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:t,shouldShowLockIcon:i}}),[r.isLocked,r.label,r.isActivelySorted,n,o])})({styleService:f,column:t,columnWidth:g}),C=S(),{StartIcon:E,EndIcon:w,LockIcon:R}=((e,t,r)=>{let{sortDirection:n,headTextAlign:o}=e,{shouldShowSortIcon:i,shouldShowLockIcon:a}=t;const s="A"===n?x.createElement(Xq,{height:MD,"data-testid":"head-cell-sort-ascending-icon"}):x.createElement(Jq,{height:MD,"data-testid":"head-cell-sort-descending-icon"}),l=i?x.createElement(oN,{align:o,dir:r},s):void 0,u=a?x.createElement(rN,{rightAligned:"right"===o,className:"sn-table-lock-icon"},x.createElement(Zq,{height:MD,"data-testid":"head-cell-lock-icon"})):void 0;return"right"===o?{StartIcon:l,LockIcon:u}:{EndIcon:l,LockIcon:u}})(t,C,m);i&&(i.current[t.pageColIdx]=C);return x.createElement(tN,{shouldShowMenuIcon:C.shouldShowMenuIcon,shouldShowLockIcon:C.shouldShowLockIcon,alignment:oq(t,a,m)},R,x.createElement(eN,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:m,isPagination:a},E,x.createElement(GO,{forwardRef:s,isPagination:a,isHeadCell:!0},t.label),w),r?x.createElement(x.Fragment,null,x.createElement(h_,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:l,anchorRef:v,menuAvailabilityFlags:{[d_.Sorting]:!0,[d_.Searching]:!0,[d_.Selections]:!0,[d_.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),u(t,r))},searchRelatedArgs:{embed:d,listboxRef:y},selectionRelatedArgs:{app:p,qStateName:h.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:nO},shouldShowMenuIcon:C.shouldShowMenuIcon,model:b,direction:m,isPagination:a}),x.createElement(Qq,{ref:y,direction:m,isPagination:a}),x.createElement(Qq,{ref:v,direction:m})):null)},aN=e=>{let{isInteractionEnabled:t,columnsData:r}=e;const[n,o]=C(!1),{isAdjustingWidth:i,setIsAdjustingWidth:a}=(e=>{const[t,r]=C(!1);return tS((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([r]);return{open:n,setOpen:o,handleOpenMenu:e=>{!t||(e=>e.target?.getAttribute("class")?.includes(dS))(e)||i||o(!0)},setIsAdjustingWidth:a}},sN=e=>{let{column:t,columnIndex:r,columnsLength:n}=e;const{interactions:o,rootElement:i,keyboard:a,styleService:s,direction:l}=xT(gT,(e=>e.baseProps)),{columns:u,totalsPosition:c}=xT(gT,(e=>e.tableData)),d=xT(gT,(e=>e.columnWidths[r])),p=xT(gT,(e=>e.baseProps.selectionsAPI?.isModal())),f=xT(gT,(e=>e.setFocusedCellCoord)),h=xT(gT,(e=>{let{focusedCellCoord:[t,n]}=e;return 0===t&&n===r})),m=!!o.active&&!p,{open:g,setOpen:b,handleOpenMenu:v,setIsAdjustingWidth:y}=aN({isInteractionEnabled:m,columnsData:u}),S=t.isActivelySorted?LI[t.sortDirection]:void 0,C=g?lS:void 0,E=g?"true":void 0,w=r===n-1,R=[0,t.pageColIdx],A={width:d-(w?8:9),zIndex:u.length-r},P=h&&0===r&&!a.enabled&&m?0:-1;return x.createElement(nN,{headerStyle:{...s.header,...Bq(s,c,!0)},background:g?s.headerMenuActiveBackground:s.header.background,hoverBackground:s.headerMenuHoverBackground,interactions:o,style:A,key:t.id,align:t.headTextAlign,className:`sn-table-head-cell sn-table-cell ${uS}`,tabIndex:P,title:o.passive?t.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case cS.C:cO(r);break;case cS.Enter:case cS.Space:n?.(r);break;default:dO(e)}else Hx(r)})({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,isInteractionEnabled:m,handleOpenMenu:v,direction:l})},onMouseDown:e=>{(e=>{let{evt:t,rootElement:r,cellCoord:n,setFocusedCellCoord:o,keyboard:i,isInteractionEnabled:a}=e;t.preventDefault(),a&&iO(n,r,o,i)})({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,keyboard:a,isInteractionEnabled:m})},onClick:v,"aria-sort":S,"aria-controls":C,"aria-expanded":E,"aria-haspopup":"true"},x.createElement(iN,{column:t,isInteractionEnabled:m,open:g,setOpen:b,isPagination:!0}),x.createElement(Kq,{column:t,isLastColumn:w,setIsAdjustingWidth:y}))},lN=()=>{const{columns:e}=xT(gT,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=xT(gT,(e=>e.baseProps)),o=xT(gT,(e=>e.setHeadRowHeight)),i=xT(gT,(e=>e.columnWidths)),a=L(null),s=Yq(r,n);return w((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),x.createElement(CM,{style:{visibility:s?"collapse":void 0}},x.createElement(kM,{ref:a,className:"sn-table-row sn-table-head-row"},e.map(((t,r)=>x.createElement(sN,{key:t.id,column:t,columnIndex:r,columnsLength:e.length})))))};var uN=_(lN);const cN=e=>{const{pageInfo:t,setPageInfo:r,footerContainer:n,announce:o}=e,{page:i,rowsPerPage:a}=t,{totalColumnCount:s,totalRowCount:l,totalPages:u,paginationNeeded:c,rows:d,columns:p}=xT(gT,(e=>e.tableData)),{rootElement:f,keyboard:h,translator:m,theme:g,interactions:b,styleService:v,viewService:y,layout:S,rect:C,direction:E}=xT(gT,(e=>e.baseProps)),R=xT(gT,(e=>e.setYScrollbarWidth)),A=xT(gT,(e=>e.showRightBorder)),P=xT(gT,(e=>e.selectionDispatch)),k=xT(gT,(e=>e.baseProps.selectionsAPI?.isModal())),I=L(!1),M=L(null),T=L(null),{yScrollbarWidth:_}=mO(M),O=`${m.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${m.get("SNTable.Accessibility.NavigationInstructions")}`,q=wR(S,y),N=q?y.scrollLeft??0:0,z=q?y.rowPartialHeight??0:0,j=D((()=>{I.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),F=D((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),H=D((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return uO(M,E,y),((e,t)=>{const{keyboard:r}=xT(gT,(e=>e.baseProps));w((()=>{const n=e.current;if(!n)return;const o=e=>{aO(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(T,I),(()=>{const{rootElement:e,keyboard:t}=xT(gT,(e=>e.baseProps)),r=xT(gT,(e=>e.focusedCellCoord));tS((()=>{const n=Z_(e,r);t.active?rO(n):(n?.blur(),tO(e))}),[t.active,e])})(),lO(I,o,i),w((()=>{const e=M.current;e&&(e.scrollLeft=N,e.scrollTop=z)}),[t,l,N,z]),Y_((()=>{R(_)}),[_]),Y_((()=>{P({type:MI.UpdatePageRows,payload:{pageRows:d}})}),[d]),sO(),x.createElement(G_,{ref:T,background:g.background,dir:E,onKeyDown:e=>{fO({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:F,updateShouldRefocus:j,keyboard:h,isSelectionMode:k})},"data-testid":"sn-table"},x.createElement(yO,null),x.createElement(bO,{ref:M,className:"sn-table-container",fullHeight:!!n||!b.active||!c,interactions:b,tabIndex:-1,role:"application","data-testid":"table-container"},x.createElement(vO,{stickyHeader:!0,"aria-label":O,borderRight:A?`1px solid ${v.grid.border}`:void 0},x.createElement(uN,null),x.createElement(Uq,CT({},e,{updateShouldRefocus:j,tableWrapperRef:T})))),x.createElement(W_,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:g,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:m,interactions:b,rect:C,layout:S,handleChangePage:F,handleChangeRowsPerPage:H,isSelectionMode:k,direction:E}))};var dN=_(cN),pN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fN(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||pN(n)&&pN(o)))return!1;var n,o;return!0}function hN(e,t){var r;void 0===t&&(t=fN);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 mN="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function gN(e){cancelAnimationFrame(e.id)}function bN(e,t){var r=mN();var n={id:requestAnimationFrame((function o(){mN()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var vN=-1;function yN(e){if(void 0===e&&(e=!1),-1===vN||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),vN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return vN}var xN=null;function SN(e){if(void 0===e&&(e=!1),null===xN||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?xN="positive-descending":(t.scrollLeft=1,xN=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),xN}return xN}var CN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function EN(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,fo(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:fo(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=hN((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=hN((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=hN((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(SN()){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&&gN(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=bN(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}po(t,e),t.getDerivedStateFromProps=function(e,t){return wN(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=yN();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(SN()){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&&gN(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?CN:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],w=this._getVerticalRangeToRender(),A=w[0],P=w[1],k=[];if(n>0&&g)for(var I=A;I<=P;I++)for(var M=C;M<=E;M++)k.push(R(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,M)}));var L=a(this.props,this._instanceProps),D=s(this.props,this._instanceProps);return R(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:yt({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:k,ref:l,style:{height:L,pointerEvents:x?"none":void 0,width:D}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var wN=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},RN=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},AN=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},PN=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]},kN=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?IN(e,t,r,i,0,n):MN(e,t,r,Math.max(0,i),n)},IN=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=PN(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},MN=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&PN(e,t,n,r).offset<o;)n+=a,a*=2;return IN(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},LN=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=PN(e,t,r,i),u="column"===e?AN(t,i):RN(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}},DN=EN({getColumnOffset:function(e,t,r){return PN("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return kN("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=PN("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=PN("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:RN,getEstimatedTotalWidth:AN,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return LN("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return LN("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return PN("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return kN("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=PN("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=PN("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}}),TN=function(e,t){return e};function _N(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,fo(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:fo(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=hN((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=hN((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=hN((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(SN()){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&&gN(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=bN(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}po(t,e),t.getDerivedStateFromProps=function(e,t){return ON(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?yN():0:l.scrollHeight>l.clientHeight?yN():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(SN()){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&&gN(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?TN:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],w=C[1],A=[];if(u>0)for(var P=E;P<=w;P++)A.push(R(t,{data:c,key:p(P,c),index:P,isScrolling:b?y:void 0,style:this._getItemStyle(P)}));var k=n(this.props,this._instanceProps);return R(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:yt({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(s||l||"div",{children:A,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],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}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ON=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},qN=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]},NN=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=qN(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},zN=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&qN(e,r,t).offset<n;)r+=i,i*=2;return NN(e,t,Math.min(r,o-1),Math.floor(r/2),n)},jN=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},FN=_N({getItemOffset:function(e,t,r){return qN(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:jN,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=qN(e,t,o),p=jN(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?NN(e,t,o,0,r):zN(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=qN(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=qN(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 HN(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 $N=["style"],BN=["style"];function WN(e,t){var r=e.style,n=yr(e,$N),o=t.style,i=yr(t,BN);return!HN(r,o)&&!HN(n,i)}const VN=e=>{let{style:t}=e;return x.createElement("div",{className:"sn-table-cell",style:{...t,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}})};var GN=x.memo(VN,WN);const UN=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,YN=(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])},KN=()=>{},XN=e=>{e.preventDefault()};const JN=e=>{let{columnIndex:t,rowIndex:r,style:n,data:o}=e;const{rowsInPage:i,columns:a,isHoverEnabled:s,setMeasuredCellHeight:l,lineClamp:u,resizeObserverTaskScheduler:c}=o,d=xT(gT,(e=>e.hoverIndex===r)),p=xT(gT,(e=>e.setHoverIndex)),{interactions:f,styleService:h,direction:m}=xT(gT,(e=>e.baseProps)),g=xT(gT,(e=>e.showRightBorder)),b=i[r]?.[t],{handleMouseDown:v,handleMouseOver:y,handleMouseUp:S,cellSelectionState:C}=function(e){const{interactions:t}=xT(gT,(e=>e.baseProps)),r=xT(gT,(e=>e.selectionDispatch)),n="object"==typeof e,o=xT(gT,(t=>n?Tq(e,t.selectionState):II.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=Lq(XN,e,r,KN);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(b),E=((e,t,r,n)=>{const o=L(null),i=r&&!r.isNumeric,a=D((r=>{const o=UN(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return YN(o,a),o})(r,t,b,l),w=a[t]?.isDim?h.dimension.values:h.measure.values;if("object"==typeof b){const e=((e,t,r,n,o,i)=>{let a=qq(o,i,e);a=_q(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?nT(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===II.Selected?{...s,...i.selectedColors}:n===II.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${kD}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(b,a[t],s&&d,C,w,h),o={rowindex:r,columnindex:t};return x.createElement("div",CT({className:`sn-table-cell ${C} ${uS}`,style:{...n,...e,display:"flex",alignItems:"start",borderColor:h.grid.border,borderTop:"0px",borderBottomWidth:b.isLastRow?"0px":"1px",borderRightWidth:aq(m,b.isLastColumn,g),borderLeftWidth:sq(m,b.isLastColumn,g),justifyContent:rq(b,m),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:b.align},onMouseDown:v,onMouseUp:S,onMouseOver:y,onMouseEnter:s?()=>{p(r)}:void 0,onMouseLeave:s?()=>{p(-1)}:void 0,title:f.passive?b.representation.text:void 0},o),x.createElement(Mq,{forwardRef:h.contentStaticLineCount||1===u?void 0:E,cell:b,style:e,lineClamp:u,virtualizedCell:!0,resizeObserverTaskScheduler:c}))}return x.createElement(GN,{style:{...n,...w,borderColor:h.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var ZN=_(JN,WN);const QN=e=>{const t=L(e);return t.current=e,t},ez=e=>{let{qLeft:t,qTop:r,qWidth:n,qHeight:o}=e;return`${t}-${r}-${n}-${o}`},tz=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},rz=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},nz=(e,t,r,n,o,i,a,s)=>{e.forEach((e=>{e.qMatrix.forEach(((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],C=mR(h,e,a),E=!h&&e.qIsNull,w=E?pw(C):dw(e);f[r]={id:lw(),...e,align:CR(w,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:w,isNull:(!E||!w)&&hR(e,h),representation:fR({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>E?C:e.qText,direction:u,enabledFeatures:{[pE.Image]:s.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[pE.Indicator]:!0,[pE.MiniChart]:!0}})},l(f[r],d,r)})),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},oz=e=>{let{layout:t,model:r,theme:n,initialDataPages:o,pageInfo:i,rowCount:a,visibleRowCount:s,visibleColumnCount:l,columns:u,gridState:c,setEstimatedCellHeight:d}=e;const p=xT(gT,(e=>e.env)),{direction:f}=xT(gT,(e=>e.baseProps)),h=L([]),m=D(((e,r)=>{const n=Array.isArray(r)?r.slice(0,a):(e=>Array(e).fill(void 0))(a);return nz(e,i,n,u,t,p,d,f),h.current=n,n}),[a,i,u,t,p,d,f]),[g,b]=C((()=>m(o??[])));tS((()=>{b(m(o??[]))}),[o,f]);const v=((e,t)=>{const r=L(new Set),n=L(new Set),o=L(new Set),i=QN(e),a=QN(t),s=E((()=>({enqueue:e=>{const t=ez(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(ez(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=>r&&"getHyperCubeData"in r?r.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{b((t=>m(e,t)))})),y=D(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(rz(h.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};v.enqueue(e)}}),[h,v]),x=D(((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-i.page*i.rowsPerPage);if(tz(h.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};v.enqueue(t)}}}),[h,v,i]);return w((()=>{const{qcx:e,qcy:r}=t.qHyperCube.qSize,n=c.current.overscanRowStartIndex,o=c.current.overscanColumnStartIndex,a=n+i.page*i.rowsPerPage,u=e-o,d=i.rowsPerPage-n,p=Math.min(100,u,e,l+5),f=Math.min(100,d,r,s+25);return x(o,a,p,f),()=>{v.clear()}}),[t,s,l,i,v,x,c,n]),{rowsInPage:g,loadRows:x,loadColumns:y}},iz=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},az=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,sz=e=>{let{isSnapshot:t,isStaticNbrOfLines:r,lineClamp:n,setCellHeight:o}=e;const i=xT(gT,(e=>e.baseProps.styleService)),a=xT(gT,(e=>e.columnWidths)),{estimateLineCount:s}=Jx(i.dimension.values),l=dT(i.dimension.values.fontSize),u=t||r||1===n;return D(((e,t,r)=>{if(u||e.representation.type===pE.Image||e.isNumeric)return;const i=(e=>Math.max(0,e-24-1))(a[r]),c=e.representation.text?s({text:e.representation.text,maxWidth:i,isNumeric:!1}):1,d=Math.min(n,Math.max(1,c));o(d*l,t,r)}),[u,a,s,n,l,o])},lz=e=>{let{isStaticNbrOfLines:t,minRowHeight:r,state:n,rowCount:o,staticRowHeight:i,viewService:a}=e;return E((()=>{const{estimatedRowHeight:e,totalRowHeight:s}=t?{totalRowHeight:o*i,estimatedRowHeight:i}:(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}})(n.rowHeights);return a.estimatedRowHeight=Math.max(e,r),Math.max(o*r,s)}),[t,r,o,n,i,a])},uz=e=>{let{rowCount:t,isSnapshot:r,viewService:n,gridRef:o,pageInfo:i}=e;const{styleService:a}=xT(gT,(e=>e.baseProps)),[s,l]=C({rowHeights:new Map,cellHeightsInGrid:new Map}),u=a.contentLineHeight,c=a.contentMinRowHeight,d=!!a.contentStaticLineCount,p=Math.max(8e6/t,c)-9,f=p+9,h=Math.max(1,Math.min(a.grid.contentLineClamp,Math.round(p/u))),m=(e=>{let{lineClamp:t,lineHeight:r,isStaticNbrOfLines:n}=e;return n?r*t+8+1:void 0})({lineClamp:h,lineHeight:u,isStaticNbrOfLines:d});(e=>{let{gridRef:t,setState:r,pageInfo:n}=e;const{layout:o}=xT(gT,(e=>e.baseProps)),i=xT(gT,(e=>e.columnWidths)),a=o.multiline?.wrapTextInCells,s=o.nullValueRepresentation?.text;tS((()=>{t.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),r({rowHeights:new Map,cellHeightsInGrid:new Map})}),[o.qHyperCube.qSize.qcx,o.qHyperCube.qSize.qcy,n.page,a,s]),tS((()=>{t.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[i])})({gridRef:o,setState:l,pageInfo:i});const g=(e=>{let{setState:t,maxCellHeight:r,minRowHeight:n,gridRef:o}=e;return D(((e,i,a)=>{N((()=>{t((t=>{const s=Math.max(n,e+9),l=Math.min(r,s),u=t.cellHeightsInGrid.get(i)??t.cellHeightsInGrid.set(i,new Map).get(i);if(!az(u.get(a),l))return t;const c={...t};return u.set(a,l),c.rowHeights.set(i,iz(u)),o.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[t,n,r,o])})({maxCellHeight:f,minRowHeight:c,setState:l,gridRef:o}),b=(e=>{let{isSnapshot:t,isStaticNbrOfLines:r,lineClamp:n,setCellHeight:o}=e;return D(((e,i,a)=>{t||r||1===n||o(e,i,a)}),[t,r,n,o])})({isSnapshot:r,isStaticNbrOfLines:d,lineClamp:h,setCellHeight:g});return{setMeasuredCellHeight:b,setEstimatedCellHeight:sz({isSnapshot:r,isStaticNbrOfLines:d,lineClamp:h,setCellHeight:g}),getRowHeight:D((e=>d?m:s.rowHeights.get(e)??c),[d,c,s.rowHeights,m]),totalRowHeight:lz({isStaticNbrOfLines:d,minRowHeight:c,state:s,staticRowHeight:m,rowCount:t,viewService:n}),lineClamp:h}},cz=(e,t)=>{O((()=>()=>{t(0)}),[e,t]);const r=D((e=>{const r=UN(e);void 0!==r&&t(r)}),[t]);YN(e,r)};let dz=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const pz=e=>{let{layout:t,loadRows:r,loadColumns:n,rowCount:o,pageInfo:i,gridState:a,viewService:s}=e;const l=D((e=>{let{overscanColumnStartIndex:l,overscanColumnStopIndex:u,overscanRowStartIndex:c,overscanRowStopIndex:d,visibleColumnStartIndex:p,visibleColumnStopIndex:f,visibleRowStartIndex:h,visibleRowStopIndex:m}=e;const{verticalScrollDirection:g,horizontalScrollDirection:b}=((e,t,r)=>{let{overscanColumnStartIndex:n,overscanRowStartIndex:o}=e,i=dz.None,a=dz.None;return i=r>o?dz.Down:r<o?dz.Up:dz.None,a=t>n?dz.Right:t<n?dz.Left:dz.None,{verticalScrollDirection:i,horizontalScrollDirection:a}})(a.current,l,c);if(a.current.overscanColumnStartIndex=l,a.current.overscanColumnStopIndex=u,a.current.overscanRowStartIndex=c,a.current.overscanRowStopIndex=d,c>o)return;const v=l,y=c+i.page*i.rowsPerPage,x=u-l+1,S=d-c+1;if(s.visibleLeft=p,s.visibleWidth=f-p+1,s.visibleTop=h+i.page*i.rowsPerPage,s.visibleHeight=m-h+1,s.page=i.page,s.rowsPerPage=i.rowsPerPage,g===dz.Down){const e=S+25;r(v,y,x,c+e>o?o-c:e)}else if(g===dz.Up){const e=S+25,t=i.page*i.rowsPerPage,n=Math.max(t,y-25);r(v,n,x,e)}if(b===dz.Right){const e=t.qHyperCube.qSize.qcx-v,r=x+5,o=Math.min(e,r);n(v,y,o,S)}else if(b===dz.Left){const e=Math.max(0,v-5),r=Math.min(t.qHyperCube.qSize.qcx,x+5);n(e,y,r,S)}}),[a,o,i.page,i.rowsPerPage,s,r,t.qHyperCube.qSize.qcx,n]);return l},fz={enabled:!1},hz=()=>{},mz={current:null};const gz=(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=E((()=>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}},bz=e=>{let{columnIndex:t,data:r,rowIndex:n}=e;const o=r.rowsInPage[n]?.[t];return o?.id??`${n}-${t}`},vz={overflow:"hidden",willChange:"auto"};var yz=_(T(((e,t)=>{const{rect:r,columns:n,pageInfo:o,headerAndTotalsHeight:i,setInnerBodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=xT(gT,(e=>e.baseProps)),f=xT(gT,(e=>e.columnWidths)),h=xT(gT,(e=>e.initialDataPages)),m=L(null),g=L(null),b=L({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=L(0),y=!!QD(s)?.content?.hoverEffect,{rowCount:S,visibleRowCount:C,visibleColumnCount:R}=gz(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:A,setEstimatedCellHeight:P,getRowHeight:k,lineClamp:I,totalRowHeight:M}=uz({rowCount:S,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:D,loadRows:T,loadColumns:_}=oz({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:S,visibleRowCount:C,visibleColumnCount:R,columns:n,gridState:b,setEstimatedCellHeight:P}),q=pz({layout:s,loadRows:T,loadColumns:_,rowCount:S,pageInfo:o,gridState:b,viewService:c}),N=CO(),j=E((()=>({rowsInPage:D,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:A,resizeObserverTaskScheduler:N})),[D,n,y,I,A,N]),F=((e,t,r)=>Math.min(e.height-t,r))(r,i,M);return O((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:S-1,align:"start"})})),function(e){const{selectionsAPI:t}=xT(gT,(e=>e.baseProps)),r=xT(gT,(e=>e.selectionDispatch));w((()=>{r({type:MI.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),EO({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:hz,keyboard:fz,tableWrapperRef:mz})}(D),z(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??F)-F,n=Math.round(r*e);v.current=e,1===v.current?(m.current?.scrollToItem({rowIndex:S-1,align:"start"}),m.current?.scrollTo({scrollLeft:t})):m.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[g,F,S]),cz(g,a),x.createElement(DN,{"data-key":"body",ref:m,innerRef:g,style:vz,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:F,rowCount:S,rowHeight:k,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:j,onItemsRendered:q,itemKey:bz,className:"sn-table-body",direction:p},ZN)})));const xz=e=>{let{width:t,height:r,children:n}=e;return x.createElement("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r}},n)},Sz=(e,t)=>{const r=L(null),n=xT(gT,(e=>e.columnWidths));O((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=D((r=>{const n=UN(r);n&&t(n+9,e)}),[e,t]);return YN(r,o),r},Cz=Fk("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((e=>{let{interactions:t,hoverBackground:r,background:n,applicableStyle:o}=e;return{...o,background:n,"&&:hover":{background:t.active?r:void 0}}})),Ez=e=>{let{index:t,style:r,data:n}=e;const{columns:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:s}=n,{interactions:l,styleService:u,direction:c}=xT(gT,(e=>e.baseProps)),d=xT(gT,(e=>e.baseProps.selectionsAPI?.isModal())),p=xT(gT,(e=>e.showRightBorder)),f=xT(gT,(e=>e.tableData.totalsPosition)),h=!!l.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v}=aN({isInteractionEnabled:h,columnsData:o}),y=Sz(t,s),S=o[t],C=o.length-1===t;return x.createElement(Cz,{className:`sn-table-cell ${uS}`,title:l.passive?S.label:void 0,onClick:b,applicableStyle:{...u.header,...Bq(u,f,!0)},style:{...r,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:aq(c,C,p),borderLeftWidth:sq(c,C,p),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:S.headTextAlign,boxSizing:"border-box",zIndex:o.length-t,flexDirection:"right"===S.headTextAlign?"row-reverse":"row",userSelect:"none"},interactions:l,hoverBackground:u.headerMenuHoverBackground,background:m?u.headerMenuActiveBackground:u.header.background},x.createElement(iN,{forwardRef:y,column:S,isInteractionEnabled:h,open:m,setOpen:g,allColumnsIconVisibilityStatusRef:a}),x.createElement(Kq,{column:S,isLastColumn:C,onColumnResize:i,setIsAdjustingWidth:v}))},wz=e=>{const[t,r]=C(new Map);tS((()=>{r(new Map)}),[e.length]);const n=D(((e,t)=>{r((r=>az(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:E((()=>iz(t)),[t]),setMeasuredCellHeight:n}},Rz=(e,t)=>{z(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},Az=(e,t,r,n,o)=>{tS((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},Pz={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},kz=T(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setHeaderRowHeight:s}=e,l=L(null),u=L(null),{layout:c,theme:d,styleService:p,direction:f,viewService:h}=xT(gT,(e=>e.baseProps)),m=xT(gT,(e=>e.columnWidths)),{rowHeight:g,setMeasuredCellHeight:b}=wz(n),v=Yq(h,c);return Rz(t,l),Az(l,c,o,m,d),cz(u,s),x.createElement(FN,{ref:l,outerRef:u,layout:"horizontal",style:{...Pz,...v?{display:"none"}:void 0},itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>m[e],height:Math.max(g+8,p.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:b},direction:f},Ez)}));var Iz=_(kz);const Mz=T(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=xT(gT,(e=>e.baseProps));return x.createElement("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s},r)})),Lz=e=>{let{children:t,rect:r}=e;const{direction:n}=xT(gT,(e=>e.baseProps));return x.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==n?"0px":void 0,right:"rtl"===n?"0px":void 0,width:r.width,height:r.height}},t)},Dz=e=>{let{index:t,style:r,data:n}=e;const{columns:o,totals:i,setMeasuredCellHeight:a}=n,{layout:s,interactions:l,styleService:u,direction:c}=xT(gT,(e=>e.baseProps)),d=xT(gT,(e=>e.showRightBorder)),p=Sz(t,a),f=o[t].totalInfo,{totalsTextAlign:h,isTotalNumeric:m}=o[t],g=s.qHyperCube.qSize.qcx-1===t;return x.createElement("div",{className:`sn-table-cell ${uS}`,title:l.passive?f:void 0,style:{...r,...u.totalRow,...Bq(u,i,!1),background:u.totalRow.background,display:"flex",alignItems:i.atTop?"end":"start",borderStyle:"solid",borderRightWidth:aq(c,g,d),borderLeftWidth:sq(c,g,d),borderTopWidth:i.atBottom?"1px":"0px",borderBottomWidth:i.atTop?"1px":"0px",padding:"4px 12px",justifyContent:h,textAlign:h,boxSizing:"border-box",cursor:"default"}},x.createElement(GO,{forwardRef:m?void 0:p,isNumeric:m},f))},Tz=T(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=L(null),l=L(null),{layout:u,theme:c,styleService:d,direction:p}=xT(gT,(e=>e.baseProps)),f=xT(gT,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=wz(i);return Rz(t,s),Az(s,u,n,f,c),cz(l,a),x.createElement(FN,{ref:s,outerRef:l,layout:"horizontal",style:Pz,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(h,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:m},direction:p},Dz)}));var _z=_(Tz);const Oz=(e,t,r,n,o)=>D((i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),c=Math.max(0,Math.min(1,l/(a-s)));n.scrollTopRatio=c,n.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[n,r,e,t,o]),qz=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=xT(gT,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=xT(gT,(e=>e.baseProps)),c=xT(gT,(e=>e.columnWidths)),d=xT(gT,(e=>e.setYScrollbarWidth)),p=L(null),f=L(null),h=L(null),m=L(null),{xScrollbarWidth:g,yScrollbarWidth:b}=mO(p),v=L([]),y=E((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),S=E((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:w}=gz(i,t,S,c,0),{headerAndTotalsHeight:R,innerBodyHeight:A,setHeaderRowHeight:P,setTotalsRowHeight:k,setInnerBodyHeight:I}=(()=>{const[e,t]=C(0),[r,n]=C(0),[o,i]=C(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:M,height:T}=(e=>{let{innerBodyHeight:t,headerAndTotalsHeight:r,rowCount:n,stickyContainerRect:o,columnWidths:i}=e;const{styleService:a}=xT(gT,(e=>e.baseProps)),s=t+r,l=n*a.contentMinRowHeight+r;let u=l;return l<o.height&&s>o.height&&(u=s),{width:i.reduce(((e,t)=>e+t),0),height:u}})({innerBodyHeight:A,headerAndTotalsHeight:R,rowCount:w,stickyContainerRect:S,columnWidths:c}),_=Oz(f,h,m,l,u),q=D((()=>{p.current&&(p.current.scrollTop=0)}),[p]);sO(),O((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),O((()=>{p.current&&(p.current.scrollTop=0)}),[t,w,a]),Y_((()=>{d(b)}),[b]);const N=x.createElement(_z,{key:"totals",rect:S,pageInfo:t,columns:n,ref:h,totals:r,setTotalsRowHeight:k});return x.createElement(Mz,{ref:p,width:y.width,height:y.height,onScroll:_},x.createElement(xz,{width:M,height:T},x.createElement(Lz,{rect:S},x.createElement(Iz,{rect:S,pageInfo:t,columns:n,ref:f,columResizeHandler:q,allColumnsIconVisibilityStatusRef:v,setHeaderRowHeight:P}),r.atTop?N:null,x.createElement(yz,{ref:m,rect:S,pageInfo:t,columns:n,headerAndTotalsHeight:R,setInnerBodyHeight:I}),r.atBottom?N:null)))};var Nz=_(qz);const zz=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=xT(gT,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=xT(gT,(e=>e.tableData)),c=xT(gT,(e=>e.pageInfo)),d=xT(gT,(e=>e.setPage));return x.createElement(G_,{"data-testid":"sn-table",background:e.background},x.createElement(Nz,{pageInfo:c}),x.createElement(W_,{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 jz=_(zz);var Fz={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 Hz=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(Fz).forEach((t=>{e.add(Fz[t])}))}(r),((e,t)=>{let r;return n=>{let{keys:o,politeness:i="polite"}=n;const a=o.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),s=e.querySelector(`.${DI.First}`),l=e.querySelector(`.${DI.Second}`);if(!s||!l)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let u;r===DI.First?(u=l,r=DI.Second):(u=s,r=DI.First),u.innerHTML=u.innerHTML.endsWith(" ")?a:`${a} `,u.setAttribute("aria-live",i)}})(t,r))),[t,r.language()]),$z={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},Bz=e=>{const{app:r,model:i,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:h}=t(),m=RR(s,d),g=Hz(a,l),[b,v]=n(((e,t)=>wR(e,t)?{page:t.page||$z.page,rowsPerPage:t.rowsPerPage||$z.rowsPerPage,rowsPerPageOptions:$z.rowsPerPageOptions}:$z)(s,d)),[y,S]=n(!0);y||S(!0);const[C,E]=Yx((async()=>m?async function(e,t,r,n,o,i,a,s){const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),h=o.visibleTop??l*u,m=o.visibleHeight??Math.min(u,p-h);if(l>0&&h>=p)return n({...r,page:0}),null;if(m*d>gR)return n({...r,rowsPerPage:bR(d,c),page:0}),null;const g=p>10,b=vR(t,o),v=ER(t,a,s),y=!!t.snapshotData,x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});y||(o.qTop=h,o.qHeight=m,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=x.at(0)?.qMatrix.map(((e,r)=>{const n=[];return v.forEach(((o,l)=>{const u=e[l],c=mR(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?pw(c):dw(u);n[l]={id:lw(),...u,align:CR(p,o.bodyTextAlign,s,a),rowIdx:r+h,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===m-1,isNumeric:p,isNull:(!d||!p)&&hR(u,o.isDim),representation:fR({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[pE.Image]:i.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[pE.Indicator]:!0,[pE.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(i,s,b,v,d,p,y,f):null),[s,b,i,m,f]);o((()=>{m&&e.model&&e.changeSortOrder&&C&&c&&!E&&function(e,t){const{direction:r,...n}=e,o=ST(r);t.render(x.createElement(Hd,{stylisPlugins:"rtl"===r?[kI]:void 0},x.createElement($k,{theme:o},x.createElement(yT,e,x.createElement(dN,n)))))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:C,pageInfo:b,setPageInfo:v,direction:f,footerContainer:h,announce:g},u)}),[g,r,f,h,c,b,u,e,m,C,E])},Wz=(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){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const Vz=e=>{let{model:t,layout:r,shouldRender:n,page:o}=e;const[i,a]=Yx((async()=>{if(n&&t)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(OD,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return[...n]})(t,r,o)}),[t,r,o]);return{initialDataPages:i,isLoading:a}},Gz=t=>{const{layout:r,model:i,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=t,p=!RR(r,c),[f,h]=n(!1);f&&h(!1);const m=e((()=>function(e,t,r,n,o){const i=ER(e,o,n),a=vR(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(OD,s),u=s>OD&&!!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(OD,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/OD);e<o&&i(e)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=Vz({model:i,layout:r,page:g.page,shouldRender:p});o((()=>{p&&a.active&&a.blur?.(!1)}),[a,p]),o((()=>{p&&t.model&&t.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=ST(r);t.render(x.createElement(x.StrictMode,null,x.createElement($k,{theme:n},x.createElement(yT,e,x.createElement(jz,null)))))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:m,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,t,b,p,m])},Uz={version:JSON.stringify("6.0.12"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};function Yz(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const Kz=(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]}},Xz=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const Jz=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||$z.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},Zz=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=vR(e,t);if(RR(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=Yz(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:Jz(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=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=Kz(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(Xz(h,m,g)?d:d+1)+c;let v=p+c;const y=Kz(p,o),x=y?.getBoundingClientRect();return y&&x&&(Xz(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:Jz(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},Qz=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),ej=e=>e.getStyle("object","straightTableV2","backgroundColor");function tj(r){return{qae:{properties:{initial:Uz},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>iE({...e}),exportProperties:QC,exploration:aE},ext:ew(r),component(){const n=c(),i=(t=>{const r=e((()=>Zx(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(n),y=d(),x=p(),S=f(),C=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!y.snapshotData),E=h(),w=m(),R=g(),A=t(),{freeResize:P}=A,k=b(),I=e((()=>y.snapshotData?.content&&!P?{...k,...y.snapshotData.content.size}:k),[k,P,y.snapshotData?.content]),M=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(y),L=v(),D=Ux(y,n,Qz,ej),T=r.flags.isEnabled("CLIENT_IM_7150_TABLE_RTL")?A.direction:"ltr",_=Wz(y.qHyperCube,S),O=tw(y.qHyperCube,S),q=((e,t,r)=>{const[,n,o]=Yx((async()=>{const t=ae(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,eS].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})(D,y,r),N=bt(),z={app:x,layout:y,model:S,rect:I,theme:D,keyboard:R,translator:E,interactions:C,selectionsAPI:w,changeSortOrder:_,rootElement:n,embed:L,reactRoot:i,applyColumnWidths:O,isFontLoaded:q,downloadService:N,viewService:M,direction:T,env:r};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${uS}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{yS(n)}})})),(e=>{let{layout:t,viewService:r,model:n,rootElement:o,contentRect:i}=e;l((async e=>{const a=e;if(!a.snapshotData||!n||a.snapshotData.content)return a;if("getHyperCubeData"in n){const{rowPartialHeight:e,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h}=Zz(t,r,o);a.qHyperCube.qDataPages=await n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:t.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:e,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h,size:{width:i.width,height:i.height},estimatedRowHeight:r.estimatedRowHeight}}return a})),u((()=>({getViewState:()=>Zz(t,r,o)})),[t,r,o])})({layout:y,viewService:M,model:S,rootElement:n,contentRect:k}),Gz(z),Bz(z)}}}export{tj as default};
|
|
123
|
+
*/!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.,%-]+\\))",h="(?:[!#$%&*-~]|"+r+"|"+u+")*?",m="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+h+a+"\\))",v="(?="+h+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),C=new RegExp("("+l+g+"[^;}]+;?)","gi"),E=new RegExp("("+l+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(s+"(left)"+m+b+g,"gi"),P=new RegExp(s+"(right)"+m+b+g,"gi"),k=new RegExp(s+"(left)"+v,"gi"),I=new RegExp(s+"(right)"+v,"gi"),M=new RegExp(s+"(ltr)"+v,"gi"),L=new RegExp(s+"(rtl)"+v,"gi"),D=new RegExp(s+"([ns]?)e-resize","gi"),T=new RegExp(s+"([ns]?)w-resize","gi"),_=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"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=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"),$=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function V(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function G(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?G(n)+" / "+G(o):G(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(C,"`NOFLIP_SINGLE`"),a=new n(E,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(M,"$1"+e).replace(L,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(k,"$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(P,"$1left").replace(x,"right").replace(D,"$1$2"+e).replace(T,"$1$2e-resize").replace(x,"w-resize").replace(z,U).replace(j,K).replace(F,J).replace(H,J).replace($,K).replace(B,X).replace(W,X).replace(_,"$1$2$3$8$5$6$7$4$9").replace(O,"$1$2$3$8$5$6$7$4$9").replace(q,V).replace(N,V),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)}(tI,tI.exports);var rI=Et(tI.exports),nI="comm",oI="rule",iI="decl",aI=Math.abs,sI=String.fromCharCode;function lI(e){return e.trim()}function uI(e,t,r){return e.replace(t,r)}function cI(e,t,r){return e.indexOf(t,r)}function dI(e,t){return 0|e.charCodeAt(t)}function pI(e,t,r){return e.slice(t,r)}function fI(e){return e.length}function hI(e,t){return t.push(e),e}var mI=1,gI=1,bI=0,vI=0,yI=0,xI="";function SI(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:mI,column:gI,length:a,return:"",siblings:s}}function CI(){return yI=vI>0?dI(xI,--vI):0,gI--,10===yI&&(gI=1,mI--),yI}function EI(){return yI=vI<bI?dI(xI,vI++):0,gI++,10===yI&&(gI=1,mI++),yI}function wI(){return dI(xI,vI)}function RI(){return vI}function AI(e,t){return pI(xI,e,t)}function PI(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 kI(e){return lI(AI(vI-1,LI(91===e?e+2:40===e?e+1:e)))}function II(e){for(;(yI=wI())&&yI<33;)EI();return PI(e)>2||PI(yI)>3?"":" "}function MI(e,t){for(;--t&&EI()&&!(yI<48||yI>102||yI>57&&yI<65||yI>70&&yI<97););return AI(e,RI()+(t<6&&32==wI()&&32==EI()))}function LI(e){for(;EI();)switch(yI){case e:return vI;case 34:case 39:34!==e&&39!==e&&LI(yI);break;case 40:41===e&&LI(e);break;case 92:EI()}return vI}function DI(e,t){for(;EI()&&e+yI!==57&&(e+yI!==84||47!==wI()););return"/*"+AI(t,vI-1)+"*"+sI(47===e?e:EI())}function TI(e){for(;!PI(wI());)EI();return AI(e,vI)}function _I(e){return function(e){return xI="",e}(OI("",null,null,null,[""],e=function(e){return mI=gI=1,bI=fI(xI=e),vI=0,[]}(e),0,[0],e))}function OI(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,C=n,E=y;g;)switch(h=v,v=EI()){case 40:if(108!=h&&58==dI(E,d-1)){-1!=cI(E+=uI(kI(v),"&","&\f"),"&\f",aI(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:E+=kI(v);break;case 9:case 10:case 13:case 32:E+=II(h);break;case 92:E+=MI(RI()-1,7);continue;case 47:switch(wI()){case 42:case 47:hI(NI(DI(EI(),RI()),t,r,l),l),5!=PI(h||1)&&5!=PI(wI()||1)||!fI(E)||" "===pI(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[u++]=fI(E)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(E=uI(E,/\f/g,"")),f>0&&(fI(E)-d||0===m&&47===h)&&hI(f>32?zI(E+";",n,r,d-1,l):zI(uI(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(hI(C=qI(E,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)OI(E,t,C,C,x,i,d,s,S);else{switch(p){case 99:if(110===dI(E,3))break;case 108:if(97===dI(E,2))break;default:c=0;case 100:case 109:case 115:}c?OI(e,C,C,n&&hI(qI(e,C,C,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):OI(E,C,C,C,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=E="",d=a;break;case 58:d=1+fI(E),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==CI())continue;switch(E+=sI(v),v*m){case 38:b=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(fI(E)-1)*b,b=1;break;case 64:45===wI()&&(E+=kI(EI())),p=wI(),c=d=fI(y=E+=TI(RI())),v++;break;case 45:45===h&&2==fI(E)&&(m=0)}}return i}function qI(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=pI(e,p+1,p=aI(g=a[m])),x=e;v<h;++v)(x=lI(g>0?f[v]+" "+y:uI(y,/&\f/g,f[v])))&&(l[b++]=x);return SI(e,t,r,0===o?oI:s,l,u,c,d)}function NI(e,t,r,n){return SI(e,t,r,nI,sI(yI),pI(e,2,-2),0,n)}function zI(e,t,r,n,o){return SI(e,t,r,iI,pI(e,0,n),pI(e,n+1,-1),n,o)}function jI(e,t,r){switch(e.type){case"@import":case iI:case nI:return e.return=e.return||e.value;case oI:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===nI&&(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),jI);return fI(n)?e.return=e.value+"{"+n+"}":""}function FI(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===oI&&(!e.parent||"@media"===e.parent.type||e.parent.type===oI)){var o=rI.transform(jI(e));e.children=o?_I(o)[0].children:[],e.return=""}}Object.defineProperty(FI,"name",{value:"stylisRTLPlugin"});let HI=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),$I=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),BI=function(e){return e.A="ascending",e.D="descending",e}({}),WI=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const VI=[0,0],GI={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_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)"},UI=12,YI=14,KI=16,XI=24,JI=3,ZI=300,QI=400,eM=600,tM=700,rM={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function nM(e){return JA(e)}const oM=Vf("MuiBox",["root"]),iM=Ck(),aM=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=bp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(MA);return y.forwardRef((function(e,a){const s=NA(r),l=HA(e),{className:u,component:c="div"}=l,d=yr(l,BA);return Dl.jsx(i,yt({as:c,ref:a,className:Hf(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:MR,defaultTheme:iM,defaultClassName:oM.root,generateClassName:jf.generate}),sM=y.createContext();function lM(e){return Wf("MuiTable",e)}Vf("MuiTable",["root","stickyHeader"]);const uM=["className","component","padding","size","stickyHeader"],cM=Zk("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return yt({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":yt({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),dM="table",pM=y.forwardRef((function(e,t){const r=nM({props:e,name:"MuiTable"}),{className:n,component:o=dM,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=yr(r,uM),u=yt({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Gh({root:["root",r&&"stickyHeader"]},lM,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return Dl.jsx(sM.Provider,{value:d,children:Dl.jsx(cM,yt({as:o,role:o===dM?null:"table",ref:t,className:Hf(c.root,n),ownerState:u},l))})})),fM=y.createContext();function hM(e){return Wf("MuiTableBody",e)}Vf("MuiTableBody",["root"]);const mM=["className","component"],gM=Zk("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),bM={variant:"body"},vM="tbody",yM=y.forwardRef((function(e,t){const r=nM({props:e,name:"MuiTableBody"}),{className:n,component:o=vM}=r,i=yr(r,mM),a=yt({},r,{component:o}),s=(e=>{const{classes:t}=e;return Gh({root:["root"]},hM,t)})(a);return Dl.jsx(fM.Provider,{value:bM,children:Dl.jsx(gM,yt({className:Hf(s.root,n),as:o,ref:t,role:o===vM?null:"rowgroup",ownerState:a},i))})}));function xM(e){return Wf("MuiTableCell",e)}const SM=Vf("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),CM=["align","className","component","padding","scope","size","sortDirection","variant"],EM=Zk("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Dp(r.size)}`],"normal"!==r.padding&&t[`padding${Dp(r.padding)}`],"inherit"!==r.align&&t[`align${Dp(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return yt({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid\n ${"light"===t.palette.mode?uP(aP(t.palette.divider,1),.88):sP(aP(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",[`&.${SM.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),wM=y.forwardRef((function(e,t){const r=nM({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=yr(r,CM),p=y.useContext(sM),f=y.useContext(fM),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=c||f&&f.variant,v=yt({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Gh({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Dp(n)}`,"normal"!==o&&`padding${Dp(o)}`,`size${Dp(i)}`]},xM,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Dl.jsx(EM,yt({as:m,ref:t,className:Hf(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function RM(e){return Wf("MuiTableContainer",e)}Vf("MuiTableContainer",["root"]);const AM=["className","component"],PM=Zk("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),kM=y.forwardRef((function(e,t){const r=nM({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=yr(r,AM),a=yt({},r,{component:o}),s=(e=>{const{classes:t}=e;return Gh({root:["root"]},RM,t)})(a);return Dl.jsx(PM,yt({ref:t,as:o,className:Hf(s.root,n),ownerState:a},i))}));function IM(e){return Wf("MuiTableHead",e)}Vf("MuiTableHead",["root"]);const MM=["className","component"],LM=Zk("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),DM={variant:"head"},TM="thead",_M=y.forwardRef((function(e,t){const r=nM({props:e,name:"MuiTableHead"}),{className:n,component:o=TM}=r,i=yr(r,MM),a=yt({},r,{component:o}),s=(e=>{const{classes:t}=e;return Gh({root:["root"]},IM,t)})(a);return Dl.jsx(fM.Provider,{value:DM,children:Dl.jsx(LM,yt({as:o,className:Hf(s.root,n),ref:t,role:o===TM?null:"rowgroup",ownerState:a},i))})}));function OM(e){return Wf("MuiTableRow",e)}const qM=Vf("MuiTableRow",["root","selected","hover","head","footer"]),NM=["className","component","hover","selected"],zM=Zk("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${qM.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${qM.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:aP(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:aP(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),jM="tr",FM=y.forwardRef((function(e,t){const r=nM({props:e,name:"MuiTableRow"}),{className:n,component:o=jM,hover:i=!1,selected:a=!1}=r,s=yr(r,NM),l=y.useContext(fM),u=yt({},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 Gh({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},OM,t)})(u);return Dl.jsx(zM,yt({as:o,ref:t,className:Hf(c.root,n),role:o===jM?null:"row",ownerState:u},s))}));function HM(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"})})}var $M=function(){let{fontSize:e="medium",children:t=null,className:r=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dl.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function BM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dl.jsx($M,{...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 WM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dl.jsx($M,{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 VM(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"})})}function GM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dl.jsx($M,{...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 UM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dl.jsx($M,{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 YM(e){let{className:t}=e;return Dl.jsx($M,{fontSize:"small",className:t,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 KM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Dl.jsx($M,{...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:GI.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const XM={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:JI,"& > 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 JM=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:GI.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:GI.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Dl.jsx(HM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${GI.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:GI.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${GI.MISC_FOCUS_BORDER}`,borderRadius:JI,backgroundColor:GI.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 ${GI.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:GI.WHITE,color:GI.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:JI},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${GI.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:GI.GREYSCALE_0_15,backgroundColor:GI.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:GI.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${GI.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:GI.GREEN_PALE},"&:active":{backgroundColor:GI.GREEN_DARK},"&.Mui-focusVisible":{borderColor:GI.GREEN_PALE,boxShadow:`0 0 0 3px ${VA(GI.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:GI.BLUE_PALE},"&:active":{backgroundColor:GI.BLUE_DARK},"&.Mui-focusVisible":{borderColor:GI.BLUE_PALE,boxShadow:`0 0 0 3px ${VA(GI.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:JI,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:GI.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${GI.MISC_FOCUS_BORDER}`}},outlined:e=>{let{ownerState:t}=e;return{padding:"7px 16px",borderColor:GI.GREYSCALE_0_15,backgroundColor:GI.GREYSCALE_100_60,"&:active":{backgroundColor:GI.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:GI.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${GI.MISC_FOCUS_BORDER}`},..."amethyst"===t.color&&{borderColor:GI.PURPLE,"&.Mui-focusVisible":{borderColor:GI.PURPLE,boxShadow:`0 0 0 3px ${VA(GI.PURPLE_PALE,.5)}`}}}},outlinedPrimary:{borderColor:GI.GREEN,"&.Mui-focusVisible":{borderColor:GI.GREEN,boxShadow:`0 0 0 3px ${VA(GI.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:GI.BLUE,"&.Mui-focusVisible":{borderColor:GI.BLUE,boxShadow:`0 0 0 3px ${VA(GI.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:GI.ORANGE,"&.Mui-focusVisible":{borderColor:GI.ORANGE,boxShadow:`0 0 0 3px ${VA(GI.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:GI.RED,"&.Mui-focusVisible":{borderColor:GI.RED,boxShadow:`0 0 0 3px ${VA(GI.RED_PALE,.5)}`}},contained:e=>{let{ownerState:t}=e;return{color:GI.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===t.color&&{"&:hover":{backgroundColor:GI.PURPLE_PALE},"&:active":{backgroundColor:GI.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:GI.PURPLE_PALE,boxShadow:`0 0 0 3px ${VA(GI.PURPLE_PALE,.5)}`}}}},containedPrimary:{"&:hover":{backgroundColor:GI.GREEN_PALE},"&:active":{backgroundColor:GI.GREEN_DARK},"&.Mui-focusVisible":{borderColor:GI.GREEN_PALE,boxShadow:`0 0 0 3px ${VA(GI.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:GI.BLUE_PALE},"&:active":{backgroundColor:GI.BLUE_DARK},"&.Mui-focusVisible":{borderColor:GI.BLUE_PALE,boxShadow:`0 0 0 3px ${VA(GI.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:GI.ORANGE_PALE},"&:active":{backgroundColor:GI.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:GI.ORANGE_PALE,boxShadow:`0 0 0 3px ${VA(GI.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:GI.RED_PALE},"&:active":{backgroundColor:GI.RED_DARK},"&.Mui-focusVisible":{borderColor:GI.RED_PALE,boxShadow:`0 0 0 3px ${VA(GI.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:GI.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:GI.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:JI,boxShadow:`inset 0 0 0 2px ${GI.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Dl.jsx(VM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:UI,borderRadius:JI,color:GI.TEXT_PRIMARY,backgroundColor:GI.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:GI.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${GI.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:GI.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:GI.GREYSCALE_0_05,color:GI.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:GI.GREEN,borderColor:GI.GREEN},"&.MuiChip-outlinedInfo":{color:GI.BLUE,borderColor:GI.BLUE},"&.MuiChip-outlinedWarning":{color:GI.ORANGE,borderColor:GI.ORANGE},"&.MuiChip-outlinedError":{color:GI.RED,borderColor:GI.RED}},outlined:{border:`solid 1px ${GI.GREYSCALE_0_15}`,backgroundColor:GI.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:JI,boxShadow:"none",backgroundColor:GI.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:GI.GREEN,borderColor:GI.GREEN},outlinedSecondary:{color:GI.BLUE,borderColor:GI.BLUE},label:{fontFamily:rM.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Dl.jsx(VM,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Dl.jsx(HM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:JI},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:JI,fontSize:YI,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:GI.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${GI.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:GI.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:GI.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:GI.GREYSCALE_0_05}}},popupIndicator:{borderRadius:JI,border:`solid 1px ${GI.GREYSCALE_0_15}`,color:GI.GREYSCALE_0_60,marginRight:0,width:XI,height:XI},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${GI.GREYSCALE_0_15}`},clearIndicator:{borderRadius:JI,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:GI.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:YI}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:UI,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:GI.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:GI.GREYSCALE_25,fontSize:UI,fontFamily:rM.FONT_FAMILY,fontWeight:eM,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:GI.TEXT_PRIMARY},"&.Mui-error":{color:GI.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:GI.TEXT_SECONDARY,content:"'(optional)'",fontWeight:QI,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:GI.TEXT_SECONDARY,content:"'(required)'",fontWeight:QI,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:YI,lineHeight:"16px",backgroundColor:GI.WHITE,borderRadius:JI,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${GI.GREYSCALE_0_05}`,borderColor:GI.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${GI.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${GI.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${GI.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${GI.RED}`,boxShadow:`0px 0px 0px 1px ${GI.RED}, inset 0 2px 0 0 ${GI.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${GI.GREYSCALE_0_10}`,borderColor:GI.GREYSCALE_0_10,backgroundColor:GI.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:GI.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:GI.GREYSCALE_0_15,borderRadius:JI,boxShadow:`inset 0 2px 0 0 ${GI.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Dl.jsx(HM,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:GI.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:GI.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:GI.GREYSCALE_0_03},"&:active":{backgroundColor:GI.GREYSCALE_0_10},"&:focus":{backgroundColor:GI.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${GI.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${GI.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:GI.GREYSCALE_0_30,"&:hover":{backgroundColor:GI.GREYSCALE_0_0,borderColor:GI.GREYSCALE_0_15},"& ~svg":{color:GI.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${GI.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:JI}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:GI.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${GI.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:GI.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:YI,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:UI,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:UI,fontWeight:eM,color:GI.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:eM}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${GI.GREYSCALE_0_15}, 0px 0px 0px 1px ${GI.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Dl.jsx(UM,{}),checkedIcon:Dl.jsx(WM,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:GI.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${GI.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:GI.GREEN_PALE,boxShadow:`0 0 0 3px ${VA(GI.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:GI.BLUE_PALE,boxShadow:`0 0 0 3px ${VA(GI.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:GI.GREYSCALE_0_20}},"&.Mui-disabled":{fill:GI.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Dl.jsx(KM,{}),checkedIcon:Dl.jsx(BM,{}),indeterminateIcon:Dl.jsx(GM,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:JI,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:GI.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:GI.GREYSCALE_0_55,color:GI.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:GI.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:GI.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:GI.GREYSCALE_0_55,"&:hover":{color:GI.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:GI.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:GI.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:YI,color:GI.TEXT_PRIMARY,lineHeight:"16px",fontWeight:eM},secondary:{fontSize:UI,color:GI.GREYSCALE_45,fontWeight:QI,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:YI,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:YI,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:GI.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:UI,borderBottom:`solid 1px ${GI.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:YI,color:GI.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:GI.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:GI.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:GI.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:GI.RED}}},"&.Mui-focusVisible":{backgroundColor:GI.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:GI.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:GI.GREEN,height:"24px","&.Mui-disabled":{color:GI.GREYSCALE_0_15}},rail:{backgroundColor:GI.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${GI.GREYSCALE_0_05}`,borderRadius:JI,boxShadow:`inset 0px 0px 0px 1px ${GI.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${GI.GREYSCALE_0_05}`,borderRadius:JI},thumb:{height:"16px",width:"16px",borderRadius:JI,backgroundColor:GI.WHITE,boxShadow:`0px 1px 2px 0px ${GI.GREYSCALE_0_15}, 0px 0px 0px 1px ${GI.GREYSCALE_0_05}`,"&:hover":{borderRadius:JI,boxShadow:`0 2px 4px 0 ${GI.GREYSCALE_0_30}, 0 0 0 1px ${GI.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${GI.GREYSCALE_0_15}, 0 0 0 1px ${GI.GREYSCALE_0_06}, 0 0 0 2px ${GI.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${GI.GREYSCALE_0_15}, 0 0 0 1px ${GI.GREYSCALE_0_06}, 0 0 0 2px ${GI.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:GI.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:GI.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:GI.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:GI.GREYSCALE_0_15},markLabel:{color:GI.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:GI.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:GI.WHITE,color:GI.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:GI.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:GI.GREEN_PALE,boxShadow:`0 0 0 3px ${VA(GI.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:GI.BLUE_PALE,boxShadow:`0 0 0 3px ${VA(GI.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:GI.GREYSCALE_0_15,borderRadius:JI},thumb:{height:"16px",width:"16px",borderRadius:JI,backgroundColor:GI.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:YI,fontWeight:eM,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${GI.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${GI.MISC_FOCUS_BORDER}`,backgroundColor:GI.GREYSCALE_0_03,borderRadius:JI},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:GI.GREYSCALE_25,"&.Mui-selected":{color:GI.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:YI,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:JI,"&:hover":{backgroundColor:GI.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 ${GI.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${GI.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:JI,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:GI.GREYSCALE_0_05},"&:hover":{backgroundColor:GI.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${GI.GREYSCALE_85}`,borderRight:`1px solid ${GI.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:eM,backgroundColor:GI.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:GI.GREYSCALE_98,borderBottom:`1px solid ${GI.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${GI.GREYSCALE_85}`,borderTop:`1px solid ${GI.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:GI.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:GI.GREYSCALE_0_05,"&:hover":{backgroundColor:GI.GREYSCALE_0_03}},"&&:hover":{backgroundColor:GI.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:e=>{let{className:t}=e;return Dl.jsx(YM,{className:t})}},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 ${GI.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:YI,borderRadius:JI,padding:"7px 16px",border:`1px solid ${GI.GREYSCALE_0_15}`,backgroundColor:GI.GREYSCALE_100_60,color:GI.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:GI.GREYSCALE_0_10,border:`1px solid ${GI.GREYSCALE_0_30}`},"&:hover":{backgroundColor:GI.GREYSCALE_0_03,border:`1px solid ${GI.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:GI.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${GI.MISC_FOCUS_BORDER}`,border:`1px solid ${GI.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:GI.GREYSCALE_25,backgroundColor:GI.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:GI.GREYSCALE_0_10,border:`1px solid ${GI.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:UI,height:24,width:24,padding:7},sizeLarge:{fontSize:KI,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:YI,borderRadius:JI}}},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:GI.GREYSCALE_20},tooltip:{backgroundColor:GI.GREYSCALE_20,fontSize:UI,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...XM}:{}});var ZM=()=>({mode:"light",primary:{ultraLight:GI.GREEN_ULTRA_LIGHT,light:GI.GREEN_PALE,main:GI.GREEN,dark:GI.GREEN_DARK,extraDark:GI.GREEN_EXTRA_DARK,contrastText:GI.WHITE},secondary:{ultraLight:GI.BLUE_ULTRA_LIGHT,light:GI.BLUE_PALE,main:GI.BLUE,dark:GI.BLUE_DARK,extraDark:GI.BLUE_EXTRA_DARK,contrastText:GI.WHITE},error:{ultraLight:GI.RED_ULTRA_LIGHT,light:GI.RED_PALE,main:GI.RED,dark:GI.RED_DARK,extraDark:GI.RED_EXTRA_DARK,contrastText:GI.WHITE},warning:{ultraLight:GI.ORANGE_ULTRA_LIGHT,light:GI.ORANGE_PALE,main:GI.ORANGE,dark:GI.ORANGE_DARK,extraDark:GI.ORANGE_EXTRA_DARK,contrastText:GI.WHITE},success:{ultraLight:GI.GREEN_ULTRA_LIGHT,light:GI.GREEN_PALE,main:GI.GREEN,dark:GI.GREEN_DARK,extraDark:GI.GREEN_EXTRA_DARK,contrastText:GI.WHITE},info:{ultraLight:GI.BLUE_ULTRA_LIGHT,light:GI.BLUE_PALE,main:GI.BLUE,dark:GI.BLUE_DARK,extraDark:GI.BLUE_EXTRA_DARK,contrastText:GI.WHITE},text:{primary:GI.TEXT_PRIMARY,secondary:GI.TEXT_SECONDARY,disabled:GI.GREYSCALE_0_30},action:{hover:GI.GREYSCALE_0_03,hoverOpacity:.03,selected:GI.GREYSCALE_0_05,selectedOpacity:.05,focus:GI.MISC_FOCUS_BORDER},amethyst:{ultraLight:GI.WHITE,main:GI.PURPLE,light:GI.PURPLE_PALE,dark:GI.PURPLE_DARK,extraDark:GI.GREYSCALE_0_0,contrastText:GI.WHITE},background:{paper:GI.WHITE,default:GI.GREYSCALE_95},divider:GI.GREYSCALE_0_15});var QM=e=>ZM();var eL=function(e){const t=((e,t)=>JM(t))(0,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);return{components:t,palette:QM(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:YI,fontWeightLight:ZI,fontWeightRegular:QI,fontWeightMedium:eM,fontWeightBold:tM,htmlFontSize:YI,fontFamily:rM.FONT_FAMILY,button:{fontWeight:eM,fontSize:YI,textTransform:"none"},body1:{fontSize:KI,lineHeight:"24px"},body2:{fontSize:YI,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:XI,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:KI,fontWeight:eM,lineHeight:"16px"},h6:{fontSize:YI,fontWeight:eM,lineHeight:"16px"},caption:{color:GI.TEXT_SECONDARY},subtitle1:{fontSize:YI,color:GI.TEXT_SECONDARY},subtitle2:{fontSize:UI,color:GI.TEXT_SECONDARY}},shape:{borderRadius:JI}}},tL={},rL={exports:{}},nL={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}(nL);var oL=nL.exports;!function(e){var t=oL.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(rL);var iL=rL.exports,aL={},sL=wt(gr);Object.defineProperty(aL,"__esModule",{value:!0}),aL.hexToRgb=cL,aL.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=pL(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(""))},aL.hslToRgb=dL,aL.decomposeColor=pL,aL.recomposeColor=fL,aL.getContrastRatio=function(e,t){var r=hL(e),n=hL(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},aL.getLuminance=hL,aL.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return hL(e)>.5?gL(e,t):bL(e,t)},aL.fade=function(e,t){return mL(e,t)},aL.alpha=mL,aL.darken=gL,aL.lighten=bL;var lL=sL;function uL(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 cL(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 dL(e){var t=(e=pL(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])),fL({type:s,values:l})}function pL(e){if(e.type)return e;if("#"===e.charAt(0))return pL(cL(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,lL.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 fL(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 hL(e){var t="hsl"===(e=pL(e)).type?pL(dL(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 mL(e,t){return e=pL(e),t=uL(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,fL(e)}function gL(e,t){if(e=pL(e),t=uL(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 fL(e)}function bL(e,t){if(e=pL(e),t=uL(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 fL(e)}var vL,yL,xL,SL={},CL={exports:{}},EL={exports:{}},wL={exports:{}};function RL(){return vL||(vL=1,function(e){var t=oL.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}(wL)),wL.exports}function AL(){return yL||(yL=1,function(e){var t=oL.default,r=RL();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(EL)),EL.exports}function PL(){return xL||(xL=1,function(e){var t=AL();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}(CL)),CL.exports}var kL,IL={exports:{}};function ML(){return kL||(kL=1,function(e){var t=Mk();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(IL)),IL.exports}var LL,DL={};var TL,_L={};var OL,qL={},NL={};var zL,jL={};var FL,HL={};var $L,BL={};var WL,VL={};var GL,UL={};var YL,KL={};var XL,JL,ZL={};function QL(){if(JL)return qL;JL=1;var e=oP;Object.defineProperty(qL,"__esModule",{value:!0}),qL.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,C=e.warning,E=void 0===C?{light:u.default[300],main:u.default[500],dark:u.default[700]}:C,w=e.info,R=void 0===w?{light:c.default[300],main:c.default[500],dark:c.default[700]}:w,A=e.success,P=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,k=e.type,I=void 0===k?"light":k,M=e.contrastThreshold,L=void 0===M?3:M,D=e.tonalOffset,T=void 0===D?.2:D,_=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function O(e){return(0,p.getContrastRatio)(e,h.text.primary)>=L?h.text.primary:f.text.primary}var q=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,T),m(e,"dark",i,T),e.contrastText||(e.contrastText=O(e.main)),e},N={dark:h,light:f},z=(0,n.deepmerge)((0,t.default)({common:o.default,type:I,primary:q(b),secondary:q(y,"A400","A200","A700"),error:q(S),warning:q(E),info:q(R),success:q(P),grey:i.default,contrastThreshold:L,getContrastText:O,augmentColor:q,tonalOffset:T},N[I]),_);return z},qL.dark=qL.light=void 0;var t=e(Pk()),r=e(ML()),n=sL,o=e(function(){if(OL)return NL;OL=1,Object.defineProperty(NL,"__esModule",{value:!0}),NL.default=void 0;var e={black:"#000",white:"#fff"};return NL.default=e,NL}()),i=e(function(){if(zL)return jL;zL=1,Object.defineProperty(jL,"__esModule",{value:!0}),jL.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 jL.default=e,jL}()),a=e(function(){if(FL)return HL;FL=1,Object.defineProperty(HL,"__esModule",{value:!0}),HL.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 HL.default=e,HL}()),s=e(function(){if($L)return BL;$L=1,Object.defineProperty(BL,"__esModule",{value:!0}),BL.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 BL.default=e,BL}()),l=e(function(){if(WL)return VL;WL=1,Object.defineProperty(VL,"__esModule",{value:!0}),VL.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 VL.default=e,VL}()),u=e(function(){if(GL)return UL;GL=1,Object.defineProperty(UL,"__esModule",{value:!0}),UL.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 UL.default=e,UL}()),c=e(function(){if(YL)return KL;YL=1,Object.defineProperty(KL,"__esModule",{value:!0}),KL.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 KL.default=e,KL}()),d=e(function(){if(XL)return ZL;XL=1,Object.defineProperty(ZL,"__esModule",{value:!0}),ZL.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 ZL.default=e,ZL}()),p=aL,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}};qL.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return qL.dark=h,qL}var eD,tD={};var rD,nD={};var oD,iD={};var aD,sD={},lD=wt(ro);var uD,cD={};function dD(){if(uD)return cD;uD=1;var e=oP;Object.defineProperty(cD,"__esModule",{value:!0}),cD.default=cD.duration=cD.easing=void 0;var t=e(ML()),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)"};cD.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")}cD.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 cD.default=i,cD}var pD,fD,hD={};function mD(){if(fD)return SL;fD=1;var e=oP;Object.defineProperty(SL,"__esModule",{value:!0}),SL.createMuiTheme=function(){return p.apply(void 0,arguments)},SL.default=void 0,e(PL());var t=e(ML()),r=sL,n=e(function(){if(LL)return DL;LL=1;var e=oP;Object.defineProperty(DL,"__esModule",{value:!0}),DL.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)},DL.keys=void 0;var t=e(Pk()),r=e(ML()),n=["xs","sm","md","lg","xl"];return DL.keys=n,DL}()),o=e(function(){if(TL)return _L;TL=1;var e=oP;Object.defineProperty(_L,"__esModule",{value:!0}),_L.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(PL()),r=e(Pk());return _L}()),i=e(QL()),a=e(function(){if(eD)return tD;eD=1;var e=oP;Object.defineProperty(tD,"__esModule",{value:!0}),tD.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,C=u.htmlFontSize,E=void 0===C?16:C,w=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=f/14,k=R||function(e){return"".concat(e/E*P,"rem")},I=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:k(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,w)},M={h1:I(m,96,1.167,-1.5),h2:I(m,60,1.2,-.5),h3:I(b,48,1.167,0),h4:I(b,34,1.235,.25),h5:I(b,24,1.334,0),h6:I(y,20,1.6,.15),subtitle1:I(b,16,1.75,.15),subtitle2:I(y,14,1.57,.1),body1:I(b,16,1.5,.15),body2:I(b,14,1.43,.15),button:I(y,14,1.75,.4,a),caption:I(b,12,1.66,.4),overline:I(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:E,pxToRem:k,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},M),A,{clone:!1})};var t=e(Pk()),r=e(ML()),n=sL;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 tD}()),s=e(function(){if(rD)return nD;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(",")}rD=1,Object.defineProperty(nD,"__esModule",{value:!0}),nD.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 nD.default=t,nD}()),l=e(function(){if(oD)return iD;oD=1,Object.defineProperty(iD,"__esModule",{value:!0}),iD.default=void 0;var e={borderRadius:4};return iD.default=e,iD}()),u=e(function(){if(aD)return sD;aD=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=lD;return sD}()),c=e(dD()),d=e(function(){if(pD)return hD;pD=1,Object.defineProperty(hD,"__esModule",{value:!0}),hD.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return hD.default=e,hD}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),C=(0,i.default)(b),E=(0,n.default)(f),w=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:E,direction:"ltr",mixins:(0,o.default)(E,w,m),overrides:{},palette:C,props:{},shadows:s.default,typography:(0,a.default)(C,x),spacing:w,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,P=new Array(A>1?A-1:0),k=1;k<A;k++)P[k-1]=arguments[k];return R=P.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return SL.default=f,SL}var gD,bD={};var vD,yD={},xD=wt(ul);var SD,CD,ED={},wD={};function RD(){if(SD)return wD;SD=1;var e=oP;Object.defineProperty(wD,"__esModule",{value:!0}),wD.default=void 0;var t=(0,e(mD()).default)();return wD.default=t,wD}var AD,PD,kD={},ID={};function MD(){if(PD)return kD;PD=1;var e=oP;Object.defineProperty(kD,"__esModule",{value:!0}),kD.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(Pk()),r=sL,n=function(){if(AD)return ID;AD=1;var e=oP;Object.defineProperty(ID,"__esModule",{value:!0}),ID.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},ID.getUnit=r,ID.toUnitless=n,ID.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}},ID.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},ID.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},ID.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(PL());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return ID}();return kD}var LD,DD={};var TD,_D={};var OD,qD={};var ND,zD={};!function(e){var t=oP,r=iL;Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=aL;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(mD()),a=t(function(){if(gD)return bD;gD=1;var e=oP;Object.defineProperty(bD,"__esModule",{value:!0}),bD.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=sL,r=e(mD());return bD}()),s=t(function(){if(vD)return yD;vD=1,Object.defineProperty(yD,"__esModule",{value:!0}),yD.default=function(t){return(0,e.createStyles)(t)};var e=xD;return yD}()),l=t(function(){if(CD)return ED;CD=1;var e=oP;Object.defineProperty(ED,"__esModule",{value:!0}),ED.default=void 0;var t=e(Pk()),r=xD,n=e(RD()),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 ED.default=o,ED}()),u=t(MD()),c=t(function(){if(LD)return DD;LD=1;var e=oP;Object.defineProperty(DD,"__esModule",{value:!0}),DD.default=void 0;var t=e(Pk()),r=xD,n=e(RD()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return DD.default=o,DD}()),d=dD();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(TD)return _D;TD=1;var e=oP;Object.defineProperty(_D,"__esModule",{value:!0}),_D.default=function(){return(0,t.useTheme)()||r.default};var t=xD;e(x);var r=e(RD());return _D}()),f=t(function(){if(OD)return qD;OD=1;var e=oP;Object.defineProperty(qD,"__esModule",{value:!0}),qD.default=void 0;var t=e(Pk()),r=xD,n=e(RD()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return qD.default=o,qD}()),h=t(function(){if(ND)return zD;ND=1;var e=oP;Object.defineProperty(zD,"__esModule",{value:!0}),zD.default=void 0;var t=xD,r=e(RD()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return zD.default=n,zD}()),m=xD}(tL),tL.alpha(GI.GREYSCALE_0,.05),tL.alpha(GI.GREEN_PALE,.5),tL.alpha(GI.BLUE_PALE,.5),tL.alpha(GI.GREEN_PALE,.5),tL.alpha(GI.BLUE_PALE,.5),tL.alpha(GI.GREEN_PALE,.5),tL.alpha(GI.BLUE_PALE,.5),tL.alpha(GI.GREEN_PALE,.5),tL.alpha(GI.BLUE_PALE,.5),tL.alpha(GI.GREEN_PALE,.5),tL.alpha(GI.BLUE_PALE,.5);const jD=function(){return eL(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light",arguments.length>1&&void 0!==arguments[1]&&arguments[1])},FD=(jD().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),HD=4/3,$D="12px",BD="600",WD="Source Sans Pro, sans-serif",VD={height:"auto",fontSize:$D,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"}},GD={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:BD},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},UD=25e4,YD=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(bS.PixelsMax,Math.max(bS.PixelsMin,f)),i-=n[a]};switch(s){case vS.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?bS.PixelsDefault:+e)(l),h();break;case vS.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?bS.PercentageDefault:+e)(u)/100*t,h();break;case vS.FitToContent:e.representation?.type===gE.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim),h());break;case vS.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(bS.AutoMinTable,e)}))}return n},KD=(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"]})},XD=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},JD=e=>e.ctrlKey||e.metaKey,ZD=e=>e.shiftKey&&JD(e),QD=e=>[mS.Left,mS.Right,mS.Up,mS.Down].includes(e),eT=e=>e.shiftKey&&QD(e.key),tT=e=>(e=>QD(e)||[mS.Home,mS.End,mS.PageUp,mS.PageDown].includes(e))(e.key)&&!ZD(e),rT=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),KD(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},nT=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&eT(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&eT(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===mS.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return KD(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},oT=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},iT=(e,t)=>{switch(t.type){case $I.Select:return rT(e,t.payload);case $I.SelectMouseDown:return((e,t)=>{let{cell:r,mouseupOutsideCallback:n}=t;return!n||-1!==e.colIdx&&e.colIdx!==r.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:r,mouseupOutsideCallback:n})})(e,t.payload);case $I.SelectMouseUp:return((e,t)=>oT(e.isSelectMultiValues||e.firstCell!==t.cell?e:rT(e,t)))(e,t.payload);case $I.SelectMultiAdd:return nT(e,t.payload);case $I.SelectMultiEnd:return oT(e);case $I.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case $I.Clear:return e.rows.size?{...e,rows:new Map}:e;case $I.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},aT=4/3,sT=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function lT(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{index:-1};const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const uT=(e,t)=>e?{borderBottomColor:jx.DARK_MODE_BORDER,borderRightColor:jx.DARK_MODE_BORDER,borderLeftColor:jx.DARK_MODE_BORDER,borderTopColor:jx.DARK_MODE_BORDER}:{borderLeftColor:jx.BORDER_MEDIUM,borderRightColor:jx.BORDER_MEDIUM,borderTopColor:jx.BORDER_HEAVY,borderBottomColor:t?jx.BORDER_HEAVY:jx.BORDER_LIGHT},cT=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*aT+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},dT=e=>e.components?.find((e=>"theme"===e.key)),pT=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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:sT(r?.fontColor)?lT(jx.TEXT,t,r?.fontColor):i||jx.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...uT(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function fT(e,t,r){const n=dT(e)?.header,o=pT("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ee(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=$x(o.background??jx.WHITE,yS),o.activeBackground=$x(o.background??jx.WHITE,xS),o}const hT=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in GD)(e)&&Object.assign(t,GD[e]))),t};function mT(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach(((e,t)=>{const i=e.qText,a=i&&Wx(i);a&&"none"!==a&&(n[r[t]]=a),o=i?hT(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=Fx(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const gT=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},bT=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=gT(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},vT=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:jx.WHITE;const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=bT(e,t,r);return Kx(i,o,a,n)??n},yT=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return $D}},xT=e=>e?.some((e=>"italic"===e))?"italic":"normal",ST=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?BD:"normal",CT=e=>!1===e?1:3,ET=e=>parseInt(e??VD.fontSize,10)*HD,wT=e=>e?.some((e=>"underline"===e))?"underline":"none",RT=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=dT(t)??{},p=!0===t.usePagination?jx.WHITE:jx.TRANSPARENT,f=vT(n,i,"object.straightTableV2.dimension.label.name.backgroundColor",p),h=o.viewState?.maxLineCount??d?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),m={header:{fontFamily:i?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??r.head.fontFamily??WD,fontSize:yT(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:xT(i?.fontStyle),fontWeight:ST(i?.fontStyle,BD),textDecoration:wT(i?.fontStyle),color:gT(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??jx.TEXT,background:f},headerMenuHoverBackground:$x(f,yS),headerMenuActiveBackground:$x(f,xS),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??WD,fontSize:yT(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:xT(a?.fontStyle),fontWeight:ST(a?.fontStyle,"normal"),textDecoration:wT(a?.fontStyle),color:gT(n,a?.fontColor)??gT(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??jx.TEXT,background:bT(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??jx.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??WD,fontSize:yT(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:xT(s?.fontStyle),fontWeight:ST(s?.fontStyle,"normal"),textDecoration:wT(s?.fontStyle),color:gT(n,s?.fontColor)??gT(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??jx.TEXT,background:bT(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??jx.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??WD,fontSize:yT(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:xT(l?.fontStyle),fontWeight:ST(l?.fontStyle,BD),textDecoration:wT(l?.fontStyle),color:gT(n,l?.fontColor)??gT(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??jx.TEXT,background:vT(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:xT(u?.fontStyle),fontWeight:ST(u?.fontStyle,"normal"),textDecoration:wT(u?.fontStyle),color:gT(n,u?.fontColor)??gT(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??jx.TEXT,background:gT(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??jx.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??CT(t.multiline?.wrapTextInCells),headerLineClamp:CT(t.multiline?.wrapTextInHeaders),border:gT(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?jx.DARK_MODE_BORDER:jx.BORDER_MEDIUM),divider:gT(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??jx.BORDER_HEAVY,hoverColors:{color:gT(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:gT(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:gT(n,c?.zebraStripes?.color?.odd),background:gT(n,c?.zebraStripes?.background?.odd)},even:{color:gT(n,c?.zebraStripes?.color?.even),background:gT(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===gT(n,u?.background),overrideNullValueColor:void 0===gT(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:Hx(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:h},{headerMinRowHeight:g,totalRowLineHeight:b,totalRowMinHeight:v,contentLineHeight:y,contentMinRowHeight:x}=(e=>{const t=Math.max(ET(e.header.fontSize)+8,32),r=ET(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(ET(e.dimension.values.fontSize),ET(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)}})(m);return m.headerMinRowHeight=g,m.totalRowLineHeight=b,m.totalRowMinHeight=v,m.contentLineHeight=y,m.contentMinRowHeight=x,m},AT=(e,t,r,n)=>{const o=E((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=dT(e)?.content,i=pT("content",t,o);i.background=t.background.color;const a=cT(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=sT(l)||!!c,p=sT(s)||!!u,f=d||p;let h;h=sT(s)?lT(jx.HOVER,t,s):u||(d?"":jx.HOVER);const m=f?lT(Fx(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=fT(e,t,!o),s=function(e,t,r){const n=dT(e)?.content,o=pT("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=fT(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},PT=new Map;const kT=M({}),IT=function(e){const t=M([()=>{},new Set]);return PT.set(e,t),r=>{let{children:n,value:o}=r;const i=L(o),a=L(new Set);w((()=>{i.current=o,a.current.forEach((e=>{e(o)}))}),[o]);const s=D((()=>i.current),[i]),l=E((()=>[s,a.current]),[s]);return x.createElement(e.Provider,{value:o},x.createElement(t.Provider,{value:l},n))}}(kT),MT={rows:[],columns:[],totalsPosition:{}},LT=e=>{let{app:t,children:r,tableData:n=MT,selectionsAPI:o,cellCoordMock:i,layout:a,model:s,translator:l,interactions:u,theme:c,keyboard:d,rootElement:p,embed:f,changeSortOrder:h,applyColumnWidths:m,setPage:g,pageInfo:b,initialDataPages:v,rect:y,viewService:S,downloadService:w,env:R,direction:A}=e;const[P,k]=C(0),[M,L]=C(i||VI),[D,T]=((e,t)=>{const[r,n]=I(iT,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(n.rows,o),[_,O]=C(-1),q=AT(a,c,n,p),N=((e,t,r,n,o)=>E((()=>RT(0,t,r,n,o)),[t,r,e,n,o]))(R,a,q,c,S),[z,j,F,H]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=rS({...n.header,fontWeight:BD},{maxNbrLinesOfText:3}).measureText,a=rS({...n.totalRow,fontWeight:BD},{maxNbrLinesOfText:3}).measureText,{estimateWidth:s}=rS(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:l}=rS(n.measure.values,{maxNbrLinesOfText:3}),u=E((()=>(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]=C(0),[p,f]=C((()=>YD(e,r,u)));aS((()=>{f(YD(e,r-c,u))}),[e,r,c,u]);const h=E((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,h]})(n.columns,n.totalsPosition,y.width,N),$=E((()=>({app:t,selectionsAPI:o,layout:a,model:s,translator:l,interactions:u,theme:c,keyboard:d,rootElement:p,embed:f,changeSortOrder:h,applyColumnWidths:m,rect:y,viewService:S,styleService:N,direction:A,downloadService:w})),[t,o,a,s,l,u,c,d.active,p,f,h,m,y,S,N,A,w]);return x.createElement(IT,{value:{headRowHeight:P,setHeadRowHeight:k,focusedCellCoord:M,setFocusedCellCoord:L,selectionState:D,selectionDispatch:T,hoverIndex:_,setHoverIndex:O,columnWidths:z,setColumnWidths:j,baseProps:$,tableData:n,setYScrollbarWidth:F,setPage:g,pageInfo:b,initialDataPages:v,showRightBorder:H,env:R}},r)};function DT(e,t){const r=function(e){return PT.get(e)}(e),[n,o]=S(r),[,i]=I((e=>e+1),0),a=L(t),s=L(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=E((()=>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 TT(e){const t=jD();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Ck({...t,direction:e})}function _T(){return _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},_T.apply(null,arguments)}const OT={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},qT={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},NT=Mg("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((e=>{let{isLastColumn:t,hoverColor:r,dir:n}=e;return{position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(t?4:9)+"px",justifyContent:t?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...OT},"&::-moz-range-track":{...OT},"&::-ms-track":{...OT},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...qT},"&::-moz-range-thumb":{...qT},"&::-ms-thumb":{...qT},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:r||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:t?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}})),zT=e=>{let{columnWidth:t,keyValue:r,isLastColumn:n,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:s,handleBlur:l,setIsAdjustingWidth:u,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"}=e;const f=lS({translator:d.translator}),h=L({initWidth:t,columnWidth:t,initX:0}),m=n?0:1,g=o&&!c,b=()=>g?h.current.columnWidth-m:"100%",v={left:"rtl"!==p?b():void 0,right:"rtl"===p?b():void 0},y=e=>{h.current={initWidth:t,columnWidth:t,initX:e??h.current.initX}};aS((()=>{g&&y()}),[t]);const S=e=>{const t=Math.max(e,bS.PixelsMin);h.current.columnWidth=t,a(t)},C=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:vS.Pixels,pixels:h.current.columnWidth};s(e)}else u?.(!1)},E=e=>{const t="rtl"===p?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;S(t)},w=e=>{Gx(e),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",w),C()},R=e=>{const t="rtl"===p?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;S(t)},A=e=>{Gx(e),document.removeEventListener("touchmove",R),document.removeEventListener("touchend",A),C()},P=!o&&l?e=>{if(e.key===mS.Left||e.key===mS.Right){Gx(e);const t=5,r=e.key===mS.Left?t:-t,n="rtl"===p?r:-r;S(h.current.columnWidth+n)}else e.key===mS.Space||e.key===mS.Enter?(Gx(e),l(e),C()):e.key===mS.Esc&&(Gx(e),l(e),S(h.current.initWidth))}:void 0,k=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return x.createElement(NT,{style:v,key:r,hoverColor:i,isLastColumn:n,className:gS,"data-testid":gS,onMouseDown:e=>{Gx(e),document.addEventListener("mousemove",E),document.addEventListener("mouseup",w),u?.(!0),y(e.clientX)},onDoubleClick:()=>{s({type:vS.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Gx(e),document.addEventListener("touchmove",R),document.addEventListener("touchend",A),u?.(!0),y(e.touches[0].clientX))},onKeyDown:P,onBlur:l,onFocus:()=>{y()},type:"range",tabIndex:-1,"aria-label":k,"aria-valuemin":bS.PixelsMin,"aria-valuemax":bS.PixelsMax,"aria-valuenow":Number(t.toFixed(1)),dir:p})},jT=T(((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"})}))),FT=Mg(pv,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((e=>{let{rightAligned:t,shouldShowMenuIcon:r}=e;return{...t?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:r?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}})),HT=Mg(jT,{shouldForwardProp:e=>"isInteractionsActive"!==e})((e=>{let{isInteractionsActive:t}=e;return{minWidth:"unset",position:"relative",cursor:t?"pointer":"default"}})),$T=Mg(Uy)((e=>{let{theme:t}=e;return{".MuiList-root":{padding:t.spacing(.5,0)}}})),BT=Mg(Wv)((e=>{let{theme:t}=e;return{"&.MuiDivider-root":{margin:t.spacing(.5)}}})),WT=Mg(Zy)((e=>{let{theme:t}=e;return{fontSize:"12px",height:24,fontWeight:"bold",padding:`${t.spacing(.25,2)} !important`,marginBottom:t.spacing(.5)}})),VT=Mg(Zy,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((e=>{let{theme:t,isSubMenu:r,isActive:n}=e;return{width:`calc(220px - ${t.spacing(1)} - ${r?10:0}px)`,maxHeight:32,borderRadius:`${t.spacing(.5)} !important`,margin:`${t.spacing(.25,.5)} !important`,padding:`${t.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:n?"rgba(0, 0, 0, 0.05)":"transparent"}})),GT=Mg("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((e=>{let{theme:t,direction:r,isPagination:n}=e;return{position:"absolute",width:t.spacing(.5),height:16,left:0,right:n||"rtl"!==r?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}})),UT=Mg("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),YT=Mg(kb)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),KT=Mg(xy,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((e=>{let{theme:t,direction:r,isPagination:n}=e;return{width:16,minWidth:"unset !important",marginRight:n||"rtl"!==r?t.spacing(1.5):0,marginLeft:n||"rtl"!==r?void 0:t.spacing(1.5),lineHeight:0}})),XT=T(((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"})}))),JT=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?JT(t):t:e.parentElement?.children?.[0]},ZT=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?ZT(t):t},QT=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===mS.Down||t===mS.Up){const r=e=>t===mS.Down?JT(e):ZT(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},e_=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((e=>{let{onClick:r,...n}=e;return{...n,...r?{onClick:async e=>{Object.entries(t).forEach((e=>{let[,t]=e;t(!1)})),await r(e)}}:{}}}))})))));let t_={};const r_=e=>{let{autoFocus:t,id:r,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:s,isSubMenu:l,isActive:u,direction:c,isPagination:d}=e;const[p,f]=C(!1),h=L(null),m=D((e=>{e.stopPropagation(),f(!1)}),[f]);return x.createElement(x.Fragment,null,x.createElement(VT,{ref:s?h:null,key:r,"data-testid":`menu-item-${r}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),t_={}),s?.length&&(f(!0),t_[o]=f))},disabled:!a,autoFocus:t,isSubMenu:!!l,isActive:!!u,onKeyDown:QT},u?x.createElement(GT,{direction:c,isPagination:d}):null,x.createElement(UT,null,x.createElement(KT,{direction:c,isPagination:d},x.createElement(i,null)),x.createElement(YT,{variant:"body2"},o)),s?.length?x.createElement(XT,null):null),s?.length?x.createElement(i_,{isSubMenu:!0,open:p,anchorEl:h.current,onClose:m,menuGroups:e_(s,t_),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null)},n_=e=>{let{menuGroup:t,isSubMenu:r,direction:n,isPagination:o}=e;return t.map((e=>[[e.groupHeading&&x.createElement(WT,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>x.createElement(r_,_T({key:e.id},e,{isSubMenu:r,direction:n,isPagination:o}))))].filter(Boolean)]))},o_={appear:0,enter:0,exit:0},i_=e=>{let{anchorEl:t,open:r,onClose:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:s,direction:l,isPagination:u}=e;return o.length?x.createElement($T,_T({className:pS,open:r,anchorEl:t,onClose:n,transitionDuration:o_,MenuListProps:{id:fS}},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{},{dir:l}),(e=>{let{itemGroups:t,isSubMenu:r,direction:n,isPagination:o}=e;return t.map(((e,i)=>[n_({menuGroup:e,isSubMenu:r,direction:n,isPagination:o}),i<t.length-1?x.createElement(BT,{"data-testid":"group-divider",variant:"middle"}):void 0]))})({itemGroups:o,isSubMenu:s,direction:l,isPagination:u})):null},a_=(e,t)=>e.some((e=>t[e]>0)),s_={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},l_=e=>{let{open:t,qStateName:r="$",headerData:n,app:o}=e;const[i,a]=C(null),[s,l]=C(s_);return aS((()=>{t||(l(s_),a(null))}),[t]),w((()=>{if(!o?.createSessionObject||!n.isDim||!t)return()=>{};let e,i=!1;const s=()=>{e&&o.destroySessionObject(e)};return(async()=>{try{const t=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(r,n),u=await o.createSessionObject(t),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};e=c.qInfo?.qId,i?s():(a(u),d&&l((e=>({canSelectAll:a_(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:a_(["qSelected"],e),canSelectPossible:a_(["qOption"],e),canSelectAlternative:a_(["qAlternative"],e),canSelectExcluded:a_(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{i=!0,s()}}),[t,o,n,r]),{fieldInstance:i,selectionActionsEnabledStatus:s}},u_=T(((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"})}))),c_=T(((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"})}))),d_=T(((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"})}))),p_=T(((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"})}))),f_=T(((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"})}))),h_=T(((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"})}))),m_=T(((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"})}))),g_=T(((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"})}))),b_=T(((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"})}))),v_=T(((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"})}))),y_=T(((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"})}))),x_=T(((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"})}))),S_=T(((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"})}))),C_=T(((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 E_=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const w_="/qListObjectDef",R_=e=>{let{headerData:t,translator:r,menuAvailabilityFlags:n,setOpen:o,sortFromMenu:i,interactions:a,embedListbox:s,fieldInstance:l,selectionActionsEnabledStatus:u,anchorRef:c,focusColumnAdjuster:d,setActiveFieldCallback:p,expandOrCollapseArgs:f}=e;const h=[];if(n[E_.Sorting]){const{isActivelySorted:e,sortDirection:n}=t,{ascendingEnabled:a,descendingEnabled:s}=(e=>{let{isActivelySorted:t,sortDirection:r,isPivot:n,isSortedByFirstMeasure:o}=e,i=!n&&!t||"D"===r,a=!n&&!t||"A"===r;return o&&(i=!1,a=!1),{ascendingEnabled:i,descendingEnabled:a}})(t);h.push([{groupHeading:r.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"A")),o(!1)},icon:u_,enabled:a,isActive:!!e&&"A"===n,autoFocus:a},{id:2,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"D")),o(!1)},icon:p_,enabled:s,isActive:!!e&&"D"===n,autoFocus:!a&&s}]}])}if(t.isCyclic&&p){const e=[];e.push([{items:[{id:1,itemTitle:t.groupDimensionLabels[t.groupDimensionPos].label,enabled:!0,icon:g_,subMenus:[[{items:t.groupDimensionLabels.map(((e,r)=>{let{label:n,enabled:i}=e;return{id:r+1,itemTitle:n,onClick:async e=>{e.stopPropagation(),o(!1),p(r)},enabled:i,icon:f_,isActive:t.groupDimensionPos===r}}))}]]}]}]),e.length>0&&h.push(...e)}if(t.isDim&&a?.select){const e=[];n[E_.Searching]&&e.push([{items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),o(!1),s()},icon:b_,enabled:!0}]}]),n[E_.Selections]&&e.push([{items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:C_,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),o(!1),await(l?.selectListObjectAll(w_))},icon:v_,enabled:u.canSelectAll},{id:2,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),o(!1),await(l?.selectListObjectPossible(w_))},icon:S_,enabled:u.canSelectPossible},{id:3,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),o(!1),await(l?.selectListObjectAlternative(w_))},icon:y_,enabled:u.canSelectAlternative},{id:4,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),o(!1),await(l?.selectListObjectExcluded(w_))},icon:x_,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),o(!1),await(l?.clearSelections(w_))},icon:c_,enabled:u.canClearSelections}]}]]}]}]),f&&h.push([{items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),o(!1),await f.expandCallback()},icon:m_,enabled:!0},{id:2,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),o(!1),await f.collapseCallback()},icon:h_,enabled:!0}]}]),e.length>0&&h.push(...e)}return n[E_.AdjusterHeaderSize]&&h.push([{items:[{id:1,itemTitle:r.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),o(!1),d?.(c)},icon:d_,enabled:!0}]}]),h},A_=e=>{let{open:t,setOpen:r,anchorRef:n,headerData:o,translator:i,interactions:a,menuAvailabilityFlags:s,shouldShowMenuIcon:l=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:f,model:h,direction:m="ltr",isPagination:g}=e;const b=lS({translator:i}),{qLibraryId:v,fieldId:y,headTextAlign:S}=o,C=d?.app,{fieldInstance:E,selectionActionsEnabledStatus:w}=l_({open:t,headerData:o,app:C,qStateName:d?.qStateName});let R=null;if(h&&"setActiveField"in h&&void 0!==o.dimensionInfoIndex){const e=o.dimensionInfoIndex;R=async t=>{try{await h.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const A=D((()=>{const e=v?{qLibraryId:v,type:"dimension"}:y;if(c?.embed){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===m?"right":"left"},sortCriteria:c.sortCriteria,stateName:d?.qStateName,direction:m})}}),[v,y,c,d?.qStateName,m]),P=D((e=>{e.stopPropagation(),r(!1)}),[r]);return a.active?x.createElement(FT,{rightAligned:"right"===S,shouldShowMenuIcon:l,className:dS},l?x.createElement(HT,{height:uS,className:cS,"data-testid":cS,isInteractionsActive:a.active??!1},x.createElement(jT,null)):null,x.createElement(i_,{open:t,anchorEl:n.current,onClose:P,menuGroups:R_({headerData:o,translator:b,menuAvailabilityFlags:s,setOpen:r,...u,embedListbox:A,interactions:a,fieldInstance:E,selectionActionsEnabledStatus:w,anchorRef:n,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:f}),direction:m,isPagination:g})):null},P_=e=>e.isDark?{background:e.color,borderColor:jx.DARK_MODE_BORDER,color:jx.DARK_MODE_TEXT,disabledColor:jx.DARK_MODE_DISABLED,iconColor:jx.DARK_MODE_TEXT}:{background:e.color,borderColor:jx.BORDER_MEDIUM,color:jx.TEXT,disabledColor:jx.DISABLED},k_=Mg(pv,{shouldForwardProp:e=>"footerStyle"!==e})((e=>{let{footerStyle:t,theme:r}=e;return{height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:r.spacing(0,1,0,1),color:t.color,background:t.background,borderTop:`1px solid ${t.borderColor}`}})),I_=Mg(Dx,{shouldForwardProp:e=>"footerStyle"!==e})((e=>{let{footerStyle:t,theme:r}=e;return{background:"inherit",marginRight:r.spacing(1),color:t.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:t.iconColor}}})),M_=Mg(Cv,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((e=>{let{disabledCondition:t,footerStyle:r,theme:n}=e;return{color:t?r.disabledColor:r.color,cursor:t?"default":"pointer",marginLeft:n.spacing(1)}})),L_=Mg(kb)((e=>{let{theme:t}=e;return{color:"inherit",margin:t.spacing(0,1,0,1)}})),D_=e=>{let{children:t,footerContainer:r,interactions:n,theme:o,paginationNeeded:i=!0}=e;const a=E((()=>P_(o.background)),[o]);if(!n.active)return null;const s=i?x.createElement(k_,{footerStyle:a},t):null;return r?F.createPortal(t,r):s},T_=M({}),__=()=>S(T_),O_=e=>{let{children:t,direction:r,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:s,totalRowCount:l,totalColumnCount:u,totalPages:c,keyboard:d,translator:p,theme:f,interactions:h,rect:m,layout:g}=e;const b=(e=>!e.enabled||e.active)(d)?0:-1,v=E((()=>P_(f.background)),[f]),y=i?i.getBoundingClientRect().width:m.width,S=lS({translator:p}),C=E((()=>({direction:r,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:s,totalRowCount:l,totalColumnCount:u,totalPages:c,keyboard:d,translator:S,theme:f,interactions:h,rect:m,layout:g,footerStyle:v,tabIndex:b,width:y})),[r,n,o,i,a,s,l,u,c,d,S,f,h,m,g,v,b,y]);return x.createElement(T_.Provider,{value:C},t)};let q_=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),N_=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 z_=T(((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"})}))),j_=T(((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"})}))),F_=T(((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"})}))),H_={FirstPage:j_,PreviousPage:z_,NextPage:XT,LastPage:F_,FirstPageRTL:F_,PreviousPageRTL:XT,NextPageRTL:z_,LastPageRTL:j_},$_=e=>{let{disabledCondition:t,pageNumber:r,type:n}=e;const{direction:o,footerStyle:i,handleChangePage:a,translator:s,interactions:l,tabIndex:u}=__(),c=n.concat("rtl"===o?"RTL":""),d=H_[c];return{styledProps:{footerStyle:i,disabledCondition:t,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":t,"aria-label":s.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?s.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:u,onClick:t?void 0:()=>{a(r)}},IconComponent:d}},B_=()=>{const{pageInfo:e,width:t,interactions:r}=__(),n=0===e.page,{IconComponent:o,styledProps:i}=$_({type:q_.FirstPage,disabledCondition:n,pageNumber:0});return t<=N_.FirstPage?null:x.createElement(M_,_T({},i,{disabled:!r.active}),x.createElement(o,{height:uS}))},W_=function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&e.key===mS.Tab&&!e.shiftKey&&(Gx(e),Vx(e.target,t,!1))},V_=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=__(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=$_({type:q_.LastPage,disabledCondition:a,pageNumber:r-1}),u=t.enabled?e=>{W_(e,t,n)}:void 0;return o<=N_.LastPage?null:x.createElement(M_,_T({},l,{onKeyDown:u,disabled:!i.active}),x.createElement(s,{height:uS}))},G_=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=__(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=$_({type:q_.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>N_.FirstPage&&o>N_.LastPage)&&t.enabled?e=>{W_(e,t,n)}:void 0;return x.createElement(M_,_T({},l,{onKeyDown:u,disabled:!i.active}),x.createElement(s,{height:uS}))},U_=()=>{const{pageInfo:e,interactions:t}=__(),r=0===e.page,{IconComponent:n,styledProps:o}=$_({type:q_.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return x.createElement(M_,_T({},o,{disabled:!t.active}),x.createElement(n,{height:uS}))},Y_=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=__(),{page:o,rowsPerPage:i}=r;if(t<=N_.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(L_,{variant:"caption",dir:"ltr"},a)},K_=e=>{let{name:t,value:r,options:n,handleChange:o}=e;const{layout:i,footerStyle:a,translator:s,tabIndex:l,interactions:u}=__(),c=i.qInfo.qId,d=s.get(`NebulaTableUtils.Pagination.${t}`),p=`${t}-dropdown`,f=`${p}-label-${c}`,h={tabIndex:l,id:`${p}-${c}`,"data-testid":p,"aria-labelledby":f};return x.createElement(x.Fragment,null,x.createElement(L_,{variant:"caption",id:f},d,":"),x.createElement(I_,{footerStyle:a,size:"small",native:!0,value:r,onChange:o,inputProps:h,disabled:!u.active},n))},X_=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o}=__();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>N_.RowsPerPage&&r<=100)||void 0===e.rowsPerPageOptions)return null;const i=x.createElement(x.Fragment,null,e.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(K_,{name:"RowsPerPage",value:e.rowsPerPage,options:i,handleChange:e=>{o?.(+e.target.value)}})},J_=1e3,Z_="…",Q_=e=>{let{totalPages:t,page:r}=e;const n=Math.min(t,J_),o=n<t&&r>500,i=o?Math.min(500+r,t):n,a=o?Math.max(0,i-J_):0,s=Array.from(Array(n).keys()).map((e=>{const t=e+a;return x.createElement("option",{key:t,value:t},t+1)}));return a>0&&s.unshift(x.createElement("option",{key:"startMoreOptions",value:Z_,disabled:!0},Z_)),i<t-1&&s.push(x.createElement("option",{key:"endMoreOptions",value:Z_,disabled:!0},Z_)),x.createElement(x.Fragment,null,s)},eO=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=__(),{page:o}=e;if(t<=N_.SelectPage)return null;const i=x.createElement(Q_,{totalPages:r,page:o});return x.createElement(K_,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var tO=_((e=>x.createElement(O_,e,x.createElement(X_,null),x.createElement(eO,null),x.createElement(Y_,null),x.createElement(B_,null),x.createElement(U_,null),x.createElement(G_,null),x.createElement(V_,null))));const rO=e=>x.createElement(D_,e,x.createElement(tO,e)),nO={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},oO=Zk(aM,{shouldForwardProp:e=>"background"!==e})((e=>{let{background:t}=e;return{height:"100%",background:t.color}})),iO=Zk("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})((e=>{let{lineClamp:t,isHeadCell:r=!1,isPagination:n=!1,isNumeric:o=!1}=e;return o||1===t&&!r?{...nO,whiteSpace:"nowrap",display:n?"block":void 0}:{...nO,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}}));function aO(e,t){const r=L(!1);w((()=>{r.current?e():r.current=!0}),t)}const sO=e=>{let{colIdx:t,rowIdx:r,firstColIdx:n,lastColIdx:o}=e;return t>n?t--:r>n&&(r--,t=o),[r,t]},lO=e=>{let{colIdx:t,rowIdx:r,firstColIdx:n,lastColIdx:o,lastRowIdx:i}=e;return t<o?t++:r<i&&(r++,t=n),[r,t]},uO=e=>e.atTop?2:1,cO=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],dO=e=>e?.setAttribute("tabIndex","0"),pO=e=>e?.setAttribute("tabIndex","-1"),fO=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(pO)},hO=e=>{e?.focus(),dO(e)},mO=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${gS}`);hO(t)}),0)},gO=e=>{let{evt:t,rootElement:r,cellCoord:n,setFocusedCellCoord:o,allowedRows:i,direction:a}=e;fO(r);const s=function(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{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 mS.Down:u<s&&u++;break;case mS.Up:u>a&&u--;break;case mS.Right:if(i)break;[u,c]="rtl"===n?sO({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):lO({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case mS.Left:if(i)break;[u,c]="rtl"===n?lO({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):sO({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case mS.Home:(JD(e)||i)&&(u=a),i||(c=0);break;case mS.End:(JD(e)||i)&&(u=s),i||(c=l);break;case mS.PageDown:u=Math.min(s,u+10);break;case mS.PageUp:u=Math.max(a,u-10)}return[u,c]}(t,r,n,a,i),l=cO(r,s);return hO(l),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(s,r),o(s),{nextCell:l,nextCellCoord:s}},bO=(e,t,r,n)=>{fO(t),r(e),n.enabled&&!n.active?n.focus?.():hO(cO(t,e))},vO=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${pS}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${WI.First}`),r=e.querySelector(`.${WI.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},yO=()=>{const{downloadService:e}=DT(kT,(e=>e.baseProps));w((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},xO=(e,t,r)=>{const{rootElement:n,keyboard:o}=DT(kT,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=DT(kT,(e=>e.tableData)),u=DT(kT,(e=>e.focusedCellCoord)),c=DT(kT,(e=>e.setFocusedCellCoord)),d=DT(kT,(e=>e.baseProps.selectionsAPI?.isModal()));aO((()=>{const r=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=[uO(t),e[1]];return r?n:VI}(u,l,d);(e=>{let{resetCellCoord:t,rootElement:r,shouldRefocus:n,isSelectionMode:o,setFocusedCellCoord:i,keyboard:a,announce:s}=e;if(fO(r),i(t),!(e=>!e.enabled||e.active)(a))return;const l=cO(r,t);n.current?(hO(l),n.current=!1):dO(l),o&&(s({keys:[l?.textContent??""]}),XD(s,l,o))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},SO=(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=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},CO=e=>{Gx(e),JD(e)&&wS(e.currentTarget)},EO=e=>{tT(e.evt)&&(Gx(e.evt),gO(e))},wO=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!tT(t))return;Gx(t);const i=((e,t)=>[e.pageRowIdx+uO(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?uO(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=gO({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(e=>{let{evt:t,isSelectionsEnabled:r,cell:n,selectionDispatch:o,announce:i,isSelectionMode:a,nextCell:s}=e;t.shiftKey&&r&&n.isSelectable?o({type:$I.SelectMultiAdd,payload:{cell:n,evt:t,announce:i}}):XD(i,s,a)})({...e,nextCell:s})},RO=e=>{const{evt:t}=e;ZD(t)?(e=>{let{evt:t,totalRowCount:r,rowsPerPage:n,page:o,updateShouldRefocus:i,handleChangePage:a}=e;Gx(t);const s=Math.ceil(r/n)-1;t.key===mS.Right&&o<s?(i(),a(o+1)):t.key===mS.Left&&o>0&&(i(),a(o-1))})(e):t.key===mS.Esc?(e=>{let{evt:t,keyboard:r,isSelectionMode:n}=e;r.enabled&&!n&&(Gx(t),r.blur?.(!0))})(e):QD(t.key)&&Gx(t)},AO=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(HI.Disabled))return void Gx(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case mS.Space:(e=>{let{evt:t,cell:r,isSelectionsEnabled:n,selectionDispatch:o,announce:i}=e;Gx(t),r.isSelectable&&n&&o({type:$I.Select,payload:{cell:r,evt:t,announce:i}})})(n);break;case mS.Enter:(e=>{let{isSelectionMode:t,selectionsAPI:r,evt:n,announce:o}=e;Gx(n),t&&(r?.confirm(),o({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case mS.Esc:(e=>{let{isSelectionMode:t,selectionsAPI:r,evt:n,announce:o}=e;t&&(Gx(n),r?.cancel(),o({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case mS.C:CO(t);break;case mS.Tab:(e=>{let{evt:t,keyboard:r,isSelectionMode:n,paginationNeeded:o}=e;const i=t.shiftKey||!o;r.enabled&&n&&i&&(Gx(t),Vx(t.currentTarget,r,t.shiftKey))})(n);break;default:wO(n)}},PO=e=>{const{layout:t,rect:r,theme:n}=DT(kT,(e=>e.baseProps)),[o,i]=C(0),[a,s]=C(0);return O((()=>{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}},kO=Zk("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),IO=Zk(kM,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((e=>{let{fullHeight:t,interactions:r}=e;return{height:t?"100%":"calc(100% - 41px)",overflow:r.scroll?"auto":"hidden",border:"none"}})),MO=Zk(pM,{shouldForwardProp:e=>"borderRight"!==e})((e=>{let{borderRight:t}=e;return{tableLayout:"fixed",width:"min-content",borderRight:t}})),LO=()=>x.createElement(x.Fragment,null,x.createElement(kO,{className:WI.First,"data-testid":WI.First,"aria-live":"polite","aria-atomic":"true"}),x.createElement(kO,{className:WI.Second,"data-testid":WI.Second,"aria-live":"polite","aria-atomic":"true"})),DO=e=>{const t=L(new Map),r=L(null);w((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=D(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=D((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return E((()=>({addTask:n,removeTask:o})),[n,o])},TO=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),_O=()=>DO(TO),OO=e=>{let{selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:n,keyboard:o,tableWrapperRef:i}=e;w((()=>{const e=()=>{r({type:$I.Reset})},a=()=>{r({type:$I.Clear})},s=()=>{i.current?.contains(document.activeElement)?n():o.enabled&&o.blur?.(!0),e()};return t?.on("deactivated",e),t?.on("canceled",e),t?.on("confirmed",s),t?.on("cleared",a),()=>{t?.removeListener("deactivated",e),t?.removeListener("canceled",e),t?.removeListener("confirmed",s),t?.removeListener("cleared",a)}}),[t,o,r,n,i])},qO=e=>{e.stopPropagation()},NO=e=>{let{href:t,text:r,interactions:n,color:o}=e;return x.createElement(cy,(e=>{let{href:t,text:r,interactions:n,color:o}=e;return{href:t,title:r,rel:"noreferrer",target:"_blank",underline:"hover",onClick:qO,color:jx.LINK,style:{pointerEvents:n.active?"auto":"none",color:o??void 0,opacity:n.active&&n.passive||o?void 0:.4}}})({href:t,text:r,interactions:n,color:o}),r)},zO=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),jO=window.cancelIdleCallback??(e=>{clearTimeout(e)}),FO="qDimensionInfo/0",HO="qMeasureInfo/0",$O="x",BO="y",WO=e=>({key:"bars",type:"box",data:{extract:{field:FO,props:{start:0,end:{field:HO}}}},settings:{major:{scale:$O},minor:{scale:BO},box:{maxWidthPx:8,fill:{fn:e}}}}),VO=e=>({key:"p",type:"point",data:{extract:{field:FO,props:{y:{field:HO}}}},settings:{x:{scale:$O},y:{scale:BO},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),GO=e=>{let{qNum:t}=e;return void 0===t?0:Math.sign(t)},UO=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=Bx(e,t?.negative,r),a=Bx(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:FO,props:{start:0,end:{field:HO,value:GO}}}},settings:{major:{scale:$O},minor:{scale:BO},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}}}}},YO=(e,t)=>{let{type:r,showDots:n,colors:o,colorMin:i,colorMax:a}=t;const s=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=Bx(e,t?.main,o),l=Bx(e,t?.max,s),u=Bx(e,t?.min,s),c=Bx(e,t?.first,s),d=Bx(e,t?.last,s);return e=>{const t=BO in e.datum?BO:"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,o,i,a);switch(r){case"bars":return[WO(s)];case"dots":return[VO(s)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:FO,props:{v:{field:HO}}}},settings:{coordinates:{major:{scale:$O},minor:{scale:BO,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Bx(e,o?.main,e.getDataColorSpecials().primary));return n?[t,VO(s)]:[t]}case"posNeg":return[UO(e,o)];default:return[]}},KO=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"}),XO=(e,t,r,n)=>({y:{data:{field:HO},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:FO}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),JO=$();JO.use(H),JO.renderer.prio(["canvas"]);const ZO={resolve:()=>{},promise:{}},QO=e=>{let{chart:t,element:r,requestId:n,theme:o,isSnapshot:i,direction:a,miniChartData:s,downloadService:l}=e;const{resolveChartPromise:u,addChartPromiseToQueue:c}=(e=>{const t=L(e.isDownloadedAsPDForImage?ht():ZO);return{addChartPromiseToQueue:D((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(l),d=D((()=>{if(null===r.current||null!==t.current)return;c();n.current=zO((()=>{r.current&&(t.current=(e=>{let{element:t,theme:r,isSnapshot:n,miniChartData:o,onChartRendered:i,direction:a}=e;const{type:s,qMatrix:l,minY:u,maxY:c}=o;return JO.chart({element:t,data:{type:"q",key:"qHyperCube",data:KO(l)},settings:{scales:XO(s,u,c,a),components:YO(r,o),strategy:n?{size:{width:t.offsetWidth,height:t.offsetHeight}}:void 0},mounted:()=>{i()}})})({element:r.current,theme:o,isSnapshot:i,miniChartData:s,direction:a,onChartRendered:u}))}),{timeout:2e3})}),[r,t,c,n,o,i,s,a,u]);return{renderChartWithRequestIdleCallback:d,safeCancelIdleCallback:D((()=>{null!==n.current&&jO(n.current),n.current=null,u()}),[n,u])}},eq=e=>{const t=L(null),r=L(!1);return D((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(jO(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=zO((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},tq=e=>{let{intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s}=e;const l=L(null),u=L(null),c=L(null),{renderChartWithRequestIdleCallback:d,safeCancelIdleCallback:p}=QO({element:l,chart:u,requestId:c,theme:n,isSnapshot:o,direction:s,miniChartData:i,downloadService:a});return(e=>{let{element:t,intersectionObserverTaskScheduler:r,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:o,chart:i}=e;const a=D((e=>{e.isIntersecting?o():n()}),[o,n]);w((()=>{if(!t.current||!r)return()=>{};const e=t.current;return r.addTask(e,a),()=>{r.removeTask(e),n(),i.current?.destroy(),i.current=null}}),[i,t,r,n,a])})({element:l,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:p,renderChartWithRequestIdleCallback:d,chart:u}),(e=>{let{renderChartWithRequestIdleCallback:t,safeCancelIdleCallback:r,chart:n,intersectionObserverTaskScheduler:o}=e;w((()=>o?()=>{}:(t(),()=>{r(),n.current?.destroy(),n.current=null})),[o,r,t,n])})({intersectionObserverTaskScheduler:t,safeCancelIdleCallback:p,renderChartWithRequestIdleCallback:d,chart:u}),(e=>{let{element:t,chart:r,resizeObserverTaskScheduler:n}=e;const o=eq(r);w((()=>{const e=t.current;return e?(n.addTask(e,o),()=>{n.removeTask(e)}):()=>{}}),[t,o,n])})({element:l,chart:u,resizeObserverTaskScheduler:r}),l},rq=e=>{let{height:t,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:n,theme:o,isSnapshot:i,miniChartData:a,downloadService:s,direction:l}=e;const u=tq({intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:n,theme:o,isSnapshot:i,miniChartData:a,downloadService:s,direction:l});return x.createElement("div",{"data-testid":"picasso-container",ref:u,style:{position:"relative",width:"100%",height:t,overflow:"hidden"}})},nq="cell-text",oq=e=>{let{children:t,forwardRef:r,isNumeric:n=!1,isPagination:o=!1,isHeadCell:i=!1,lineClamp:a}=e;const{styleService:s}=DT(kT,(e=>e.baseProps));return i?x.createElement(iO,{"data-testid":nq,ref:r,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:o,isHeadCell:!0,style:{direction:n?"ltr":void 0}},t):x.createElement(iO,{"data-testid":nq,ref:r,className:"sn-table-cell-text",isNumeric:n,lineClamp:a??s.grid.contentLineClamp,isPagination:o,style:{direction:n?"ltr":void 0}},t)},iq=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),aq=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},sq=(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)},lq=(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:iq(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:aq(n,t,r)})))),n},uq=(e,t,r,n)=>{const o=lq(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=sq(e,a,t);break}n=i}return r})(o,t);return a},cq=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!hw(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||!hw(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)},dq=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=cq(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!hw(t))return 0;let a=r&&hw(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}},pq=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=dq(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return aq(o,r.limitPaletteColorIndex,n);const a=iq(r.limitRange,t);return uq(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},fq=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,hq=(e,t)=>e.representation.type===gE.Image&&"fitHeight"===e.representation.imageSize?fq(t,e.representation):e.align,mq=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",gq=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},bq=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,vq=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",yq=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",xq=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},Sq=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},Cq=e=>{let{representation:t,textStyle:r,maxImageHeight:n,wrapInContainer:o}=e;const{direction:i}=DT(kT,(e=>e.baseProps)),{url:a,text:s,imageSize:l,resolvedImagePosition:u}=t,c="fitHeight"===l,d=x.createElement("img",{src:a,alt:s,style:{...r,width:c?"auto":"100%",height:"100%",maxHeight:n,objectFit:Sq(l),objectPosition:xq(u),overflow:"hidden"}});return o?x.createElement("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?n:"100%",overflow:"hidden",display:"flex",justifyContent:c?fq(i,t):void 0}},d):d},Eq=T(((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"})}))),wq=T(((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"})}))),Rq=T(((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"})]}))),Aq=T(((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"})}))),Pq=T(((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"})}))),kq=T(((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"})}))),Iq=T(((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"})}))),Mq=T(((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"})}))),Lq=T(((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"})}))),Dq=T(((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"})}))),Tq=T(((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"})}))),_q=T(((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"})}))),Oq=T(((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"})}))),qq=T(((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"})}))),Nq=T(((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"})}))),zq={m:_q,"ï":Dq,R:T(((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:Oq,T:qq,U:Nq,P:Lq,Q:kq,"è":T(((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"})}))),"¢":Aq,"©":Rq,"23F4":Pq,2013:Tq,"&":Mq,add:Eq,"minus-2":Iq,dot:wq},jq=e=>{let{size:t,iconKey:r,color:n,pvStyle:o}=e;const i=r&&zq[r];return i&&x.createElement("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:t,...o}},x.createElement(i,{style:{height:t}}))},Fq=e=>{let{representation:t,cellValue:r,paginationCellAlign:n}=e;const{styleService:o,theme:i,direction:a}=DT(kT,(e=>e.baseProps)),{text:s,indicator:l}=t,{showTextValues:u,applySegmentColors:c}=l??{},d=pq(t,r,a,i),p=(e=>parseInt(e||$D,10))(o.measure.values.fontSize),{color:f,iconKey:h,position:m}=d||{};return u?x.createElement("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?f:void 0}},"left"===m&&jq({size:p,iconKey:h,color:f}),x.createElement(oq,{isNumeric:!0},s),"right"===m&&jq({size:p,iconKey:h,color:f})):jq({size:p,iconKey:h,color:f})},Hq=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,$q=e=>{let{forwardRef:t,cell:r,style:n,virtualizedCell:o,lineClamp:i,intersectionObserverTaskScheduler:a,resizeObserverTaskScheduler:s,paginationCellAlign:l}=e;const{interactions:u,styleService:c,theme:d,layout:p,downloadService:f,direction:h}=DT(kT,(e=>e.baseProps)),m=DT(kT,(e=>e.selectionState.api?.isActive()));let g=r.representation.text;if(r.representation.type!==gE.Link||m||(g=x.createElement(NO,{href:r.representation.url,text:r.representation.text,interactions:u,color:n.cellForegroundColor})),r.representation.type===gE.Image)return x.createElement(Cq,{representation:r.representation,textStyle:n,maxImageHeight:Hq(c,i),wrapInContainer:!o});const b="string"==typeof(v=r.qIsNull?r.representation.text:r.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return r.representation.type!==gE.Indicator||Number.isNaN(b)?r.representation.type===gE.MiniChart&&r.representation.miniChart&&!r.isNull?x.createElement(rq,{height:Hq(c,i),intersectionObserverTaskScheduler:a,resizeObserverTaskScheduler:s,miniChartData:r.representation.miniChart,theme:d,isSnapshot:!!p.snapshotData,direction:h,downloadService:f}):x.createElement(oq,{forwardRef:t,isNumeric:r.isNumeric,lineClamp:i,isPagination:!o},g):x.createElement(Fq,{representation:r.representation,cellValue:b,paginationCellAlign:o?void 0:l})},Bq=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:$I.SelectMultiEnd})};r({type:$I.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:$I.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:$I.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),Wq=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=DT(kT,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=DT(kT,(e=>e.baseProps)),u=DT(kT,(e=>e.setFocusedCellCoord)),c=DT(kT,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{AO({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===mS.Shift&&t({type:$I.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;bO([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:h};const{handleMouseDown:m,handleMouseOver:g,handleMouseUp:b}=Bq(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},Vq=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=HI.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?HI.Disabled:n.has(e.qElemNumber)?HI.Selected:HI.Possible),i},Gq=(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},Uq=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},Yq=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return Uq(t,e,n?"even":"odd")}return e},Kq=(e,t)=>{const{styleService:r}=DT(kT,(e=>e.baseProps)),n=DT(kT,(t=>Vq(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=Yq(o,r,e),o=Gq(o,r,e);const i=mT(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===HI.Selected?{...e,...r}:t===HI.Disabled?{...e,background:`${FD}, ${e.background}`}:e}(E((()=>e.isNull?o:mT(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}},Xq=Zk(yM,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((e=>{let{lastRowBottomBorder:t}=e;return{"& tr:last-child":{"& td, th":{borderBottomWidth:t}}}})),Jq=Zk(FM,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((e=>{let{hover:t,hoverColors:r,height:n}=e;return{height:n,"&&:hover":{background:"none"},...t&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":r}}}})),Zq=Zk(wM,{shouldForwardProp:e=>"cellStyle"!==e})((e=>{let{cellStyle:t,theme:r}=e;return{...VD,...t,padding:r.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}})),Qq=Zk(wM,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((e=>{let{totalsStyle:t,atTop:r,headRowHeight:n,theme:o}=e;return{...VD,...t,fontWeight:BD,position:"sticky",padding:o.spacing(.5,1.5),borderWidth:r?"0px 1px 1px 0px":"1px 1px 1px 0px",top:r?n:void 0,bottom:r?void 0:0,verticalAlign:r?"bottom":"top",zIndex:r?1:void 0}})),eN=e=>{let{cell:t,announce:r,column:n,columnIndex:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a}=e;const{interactions:s,direction:l}=DT(kT,(e=>e.baseProps)),{onKeyDown:u,onKeyUp:c,onMouseDown:d,onMouseUp:p,onMouseOver:f}=Wq(t,r),{cellStyle:h,representationStyle:m,cellSelectionState:g}=Kq(t,n);return x.createElement(Zq,{cellStyle:h,scope:0===o?"row":void 0,component:0===o?"th":void 0,align:t.align,tabIndex:-1,className:`sn-table-cell ${g} ${hS}`,title:s.passive?t.representation.text:void 0,onKeyDown:u,onKeyUp:c,onMouseDown:d,onMouseUp:p,onMouseOver:f},x.createElement($q,{cell:t,style:m,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:bq(l,t.align)}))},tN=(e,t,r)=>{let{atTop:n,atBottom:o}=t;return{borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!r&&o?e.grid.divider:e.grid.border,borderBottomColor:r&&!n||!r&&n?e.grid.divider:e.grid.border}},rN=()=>{const{columns:e,totalsPosition:t,rows:r}=DT(kT,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:s,direction:l}=DT(kT,(e=>e.baseProps)),u=DT(kT,(e=>e.headRowHeight)),c=DT(kT,(e=>e.setFocusedCellCoord)),d=!!o?.isModal(),p=!!s.active;return x.createElement(FM,{className:"sn-table-row sn-table-totals-row"},e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return x.createElement(Qq,{totalsStyle:{...a.totalRow,...tN(a,t,!1)},headRowHeight:u,atTop:t.atTop,key:e.id,align:e.totalsTextAlign,className:`sn-table-cell ${hS}`,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 mS.C:CO(r);break;case mS.Space:r.preventDefault();break;default:EO(e)}else Gx(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:l})},onMouseDown:()=>{bO(f,n,c,i)}},x.createElement(oq,{isNumeric:e.isTotalNumeric,isPagination:!0},e.totalInfo))})))};var nN=_(rN);const oN=e=>{let{updateShouldRefocus:t,tableWrapperRef:r,announce:n}=e;const{rows:o,columns:i,totalsPosition:a}=DT(kT,(e=>e.tableData)),{selectionsAPI:s,keyboard:l,layout:u,styleService:c}=DT(kT,(e=>e.baseProps)),d=DT(kT,(e=>e.selectionDispatch)),p=!!dT(u)?.content?.hoverEffect;OO({keyboard:l,selectionDispatch:d,selectionsAPI:s,updateShouldRefocus:t,tableWrapperRef:r});const f=(e=>{const t=D((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return DO(t)})(r),h=_O();return x.createElement(Xq,{lastRowBottomBorder:c.grid.lastRowBottomBorder},a.atTop?x.createElement(nN,null):void 0,o.map(((e,t)=>x.createElement(Jq,{hoverColors:c.grid.hoverColors,hover:p,tabIndex:-1,key:`row-${t}`,className:"sn-table-row sn-table-data-row",height:c.contentMinRowHeight},i.map(((t,r)=>{const{id:o}=t,i=e[r];return x.createElement(eN,{key:o,columnIndex:r,cell:i,column:t,announce:n,intersectionObserverTaskScheduler:f,resizeObserverTaskScheduler:h})}))))),a.atBottom?x.createElement(nN,null):void 0)};var iN=_(oN);const aN=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,sN=e=>{let{column:t,isLastColumn:r,onColumnResize:n,setIsAdjustingWidth:o}=e;const{pageColIdx:i,label:a}=t,{applyColumnWidths:s,interactions:l,translator:u,direction:c}=DT(kT,(e=>e.baseProps)),d=DT(kT,(e=>e.columnWidths)),p=DT(kT,(e=>e.setColumnWidths));if(!l.active)return null;return x.createElement(zT,{columnWidth:d[i],isLastColumn:r,keyValue:`adjuster-${i}`,updateWidthCallback:e=>{n?.();const t=[...d];t[i]=e,p(t)},confirmWidthCallback:e=>{s(e,t)},handleBlur:e=>{(e=>{pO(e);const t=e.closest(".sn-table-cell");hO(t)})(e.currentTarget)},setIsAdjustingWidth:o,accessibilityRelatedArgs:{translator:u,columnLabel:a},direction:c})},lN=T(((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"})}))),uN=T(((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"})}))),cN=T(((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"})]}))),dN=Zk("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((e=>{let{direction:t,isPagination:r}=e;return{position:"absolute",left:r&&"rtl"===t?0:void 0,bottom:0}})),pN=Zk(aM,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})((e=>{let{textAlign:t,theme:r,direction:n,isPagination:o}=e;return{textAlign:t,height:"auto",padding:r.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:t,alignSelf:"center",flexDirection:"rtl"===n?mq(t,o):void 0}})),fN=Zk(aM,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((e=>{let{shouldShowMenuIcon:t,shouldShowLockIcon:r,alignment:n}=e;const o=t?"24px":"";let i;switch(n){case"left":i={gridTemplateColumns:r?`20px 2fr ${o}`:`1fr ${o}`};break;case"center":{const e=t||r;i={gridTemplateColumns:e?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:e?2:1},[`& .${dS}`]:{gridColumn:3}};break}case"right":i={gridTemplateColumns:r?`${o} 2fr 20px`:`${o} 1fr`,"& .sn-table-lock-icon":{gridColumn:r?3:"unset"},"& .sn-table-head-label":{gridColumn:t?2:"span 2"},[`& .${dS}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...i}})),hN=Zk(aM,{shouldForwardProp:e=>"rightAligned"!==e})((e=>{let{rightAligned:t}=e;return{display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:t?"flex-start":"flex-end"}})),mN=Zk(wM,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((e=>{let{headerStyle:t,interactions:r,hoverBackground:n,background:o}=e;return{...VD,...t,cursor:r.active?"pointer":"default",background:o,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:r.active?n:o}}})),gN=Zk("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((e=>{let{align:t,dir:r}=e;return{minWidth:$D,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===t||"rtl"===r&&"center"===t?{paddingRight:"8px"}:{paddingLeft:"8px"}}})),bN=e=>{let{column:t,isInteractionEnabled:r,open:n,setOpen:o,allColumnsIconVisibilityStatusRef:i,isPagination:a,forwardRef:s}=e;const{translator:l,changeSortOrder:u,interactions:c,embed:d,app:p,styleService:f,layout:h,direction:m}=DT(kT,(e=>e.baseProps)),g=DT(kT,(e=>e.columnWidths[t.pageColIdx])),b=DT(kT,(e=>e.baseProps.model)),v=L(null),y=L(null),S=(e=>{let{styleService:t,column:r,columnWidth:n}=e;const{measureText:o}=rS({fontSize:t.header.fontSize,fontFamily:t.header.fontFamily,fontWeight:BD});return D((()=>{let e=!1,t=!1,i=!1;const a=r.isLocked,s=r.isActivelySorted,l=n-25,u=a?20:0,c=s?20:0;let d=o(r.label);return a&&d+u<=l&&(i=!0,d+=u,s&&d+c<=l&&(t=!0,d+=c)),!a&&s&&d+c<=l&&(t=!0,d+=c),d+24<=l&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:t,shouldShowLockIcon:i}}),[r.isLocked,r.label,r.isActivelySorted,n,o])})({styleService:f,column:t,columnWidth:g}),C=S(),{StartIcon:E,EndIcon:w,LockIcon:R}=((e,t,r)=>{let{sortDirection:n,headTextAlign:o}=e,{shouldShowSortIcon:i,shouldShowLockIcon:a}=t;const s="A"===n?x.createElement(lN,{height:$D,"data-testid":"head-cell-sort-ascending-icon"}):x.createElement(uN,{height:$D,"data-testid":"head-cell-sort-descending-icon"}),l=i?x.createElement(gN,{align:o,dir:r},s):void 0,u=a?x.createElement(hN,{rightAligned:"right"===o,className:"sn-table-lock-icon"},x.createElement(cN,{height:$D,"data-testid":"head-cell-lock-icon"})):void 0;return"right"===o?{StartIcon:l,LockIcon:u}:{EndIcon:l,LockIcon:u}})(t,C,m);i&&(i.current[t.pageColIdx]=C);return x.createElement(fN,{shouldShowMenuIcon:C.shouldShowMenuIcon,shouldShowLockIcon:C.shouldShowLockIcon,alignment:gq(t,a,m)},R,x.createElement(pN,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:m,isPagination:a},E,x.createElement(oq,{forwardRef:s,isPagination:a,isHeadCell:!0},t.label),w),r?x.createElement(x.Fragment,null,x.createElement(A_,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:l,anchorRef:v,menuAvailabilityFlags:{[E_.Sorting]:!0,[E_.Searching]:!0,[E_.Selections]:!0,[E_.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),u(t,r))},searchRelatedArgs:{embed:d,listboxRef:y},selectionRelatedArgs:{app:p,qStateName:h.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:mO},shouldShowMenuIcon:C.shouldShowMenuIcon,model:b,direction:m,isPagination:a}),x.createElement(dN,{ref:y,direction:m,isPagination:a}),x.createElement(dN,{ref:v,direction:m})):null)},vN=e=>{let{isInteractionEnabled:t,columnsData:r}=e;const[n,o]=C(!1),{isAdjustingWidth:i,setIsAdjustingWidth:a}=(e=>{const[t,r]=C(!1);return aS((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([r]);return{open:n,setOpen:o,handleOpenMenu:e=>{!t||(e=>e.target?.getAttribute("class")?.includes(gS))(e)||i||o(!0)},setIsAdjustingWidth:a}},yN=e=>{let{column:t,columnIndex:r,columnsLength:n}=e;const{interactions:o,rootElement:i,keyboard:a,styleService:s,direction:l}=DT(kT,(e=>e.baseProps)),{columns:u,totalsPosition:c}=DT(kT,(e=>e.tableData)),d=DT(kT,(e=>e.columnWidths[r])),p=DT(kT,(e=>e.baseProps.selectionsAPI?.isModal())),f=DT(kT,(e=>e.setFocusedCellCoord)),h=DT(kT,(e=>{let{focusedCellCoord:[t,n]}=e;return 0===t&&n===r})),m=!!o.active&&!p,{open:g,setOpen:b,handleOpenMenu:v,setIsAdjustingWidth:y}=vN({isInteractionEnabled:m,columnsData:u}),S=t.isActivelySorted?BI[t.sortDirection]:void 0,C=g?fS:void 0,E=g?"true":void 0,w=r===n-1,R=[0,t.pageColIdx],A={width:d-(w?8:9),zIndex:u.length-r},P=h&&0===r&&!a.enabled&&m?0:-1;return x.createElement(mN,{headerStyle:{...s.header,...tN(s,c,!0)},background:g?s.headerMenuActiveBackground:s.header.background,hoverBackground:s.headerMenuHoverBackground,interactions:o,style:A,key:t.id,align:t.headTextAlign,className:`sn-table-head-cell sn-table-cell ${hS}`,tabIndex:P,title:o.passive?t.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case mS.C:CO(r);break;case mS.Enter:case mS.Space:n?.(r);break;default:EO(e)}else Gx(r)})({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,isInteractionEnabled:m,handleOpenMenu:v,direction:l})},onMouseDown:e=>{(e=>{let{evt:t,rootElement:r,cellCoord:n,setFocusedCellCoord:o,keyboard:i,isInteractionEnabled:a}=e;t.preventDefault(),a&&bO(n,r,o,i)})({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,keyboard:a,isInteractionEnabled:m})},onClick:v,"aria-sort":S,"aria-controls":C,"aria-expanded":E,"aria-haspopup":"true"},x.createElement(bN,{column:t,isInteractionEnabled:m,open:g,setOpen:b,isPagination:!0}),x.createElement(sN,{column:t,isLastColumn:w,setIsAdjustingWidth:y}))},xN=()=>{const{columns:e}=DT(kT,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=DT(kT,(e=>e.baseProps)),o=DT(kT,(e=>e.setHeadRowHeight)),i=DT(kT,(e=>e.columnWidths)),a=L(null),s=aN(r,n);return w((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),x.createElement(_M,{style:{visibility:s?"collapse":void 0}},x.createElement(FM,{ref:a,className:"sn-table-row sn-table-head-row"},e.map(((t,r)=>x.createElement(yN,{key:t.id,column:t,columnIndex:r,columnsLength:e.length})))))};var SN=_(xN);const CN=e=>{const{pageInfo:t,setPageInfo:r,footerContainer:n,announce:o}=e,{page:i,rowsPerPage:a}=t,{totalColumnCount:s,totalRowCount:l,totalPages:u,paginationNeeded:c,rows:d,columns:p}=DT(kT,(e=>e.tableData)),{rootElement:f,keyboard:h,translator:m,theme:g,interactions:b,styleService:v,viewService:y,layout:S,rect:C,direction:E}=DT(kT,(e=>e.baseProps)),R=DT(kT,(e=>e.setYScrollbarWidth)),A=DT(kT,(e=>e.showRightBorder)),P=DT(kT,(e=>e.selectionDispatch)),k=DT(kT,(e=>e.baseProps.selectionsAPI?.isModal())),I=L(!1),M=L(null),T=L(null),{yScrollbarWidth:_}=PO(M),O=`${m.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${m.get("SNTable.Accessibility.NavigationInstructions")}`,q=kR(S,y),N=q?y.scrollLeft??0:0,z=q?y.rowPartialHeight??0:0,j=D((()=>{I.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),F=D((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),H=D((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return SO(M,E,y),((e,t)=>{const{keyboard:r}=DT(kT,(e=>e.baseProps));w((()=>{const n=e.current;if(!n)return;const o=e=>{vO(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(T,I),(()=>{const{rootElement:e,keyboard:t}=DT(kT,(e=>e.baseProps)),r=DT(kT,(e=>e.focusedCellCoord));aS((()=>{const n=cO(e,r);t.active?hO(n):(n?.blur(),fO(e))}),[t.active,e])})(),xO(I,o,i),w((()=>{const e=M.current;e&&(e.scrollLeft=N,e.scrollTop=z)}),[t,l,N,z]),aO((()=>{R(_)}),[_]),aO((()=>{P({type:$I.UpdatePageRows,payload:{pageRows:d}})}),[d]),yO(),x.createElement(oO,{ref:T,background:g.background,dir:E,onKeyDown:e=>{RO({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:F,updateShouldRefocus:j,keyboard:h,isSelectionMode:k})},"data-testid":"sn-table"},x.createElement(LO,null),x.createElement(IO,{ref:M,className:"sn-table-container",fullHeight:!!n||!b.active||!c,interactions:b,tabIndex:-1,role:"application","data-testid":"table-container"},x.createElement(MO,{stickyHeader:!0,"aria-label":O,borderRight:A?`1px solid ${v.grid.border}`:void 0},x.createElement(SN,null),x.createElement(iN,_T({},e,{updateShouldRefocus:j,tableWrapperRef:T})))),x.createElement(rO,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:g,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:m,interactions:b,rect:C,layout:S,handleChangePage:F,handleChangeRowsPerPage:H,isSelectionMode:k,direction:E}))};var EN=_(CN),wN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function RN(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||wN(n)&&wN(o)))return!1;var n,o;return!0}function AN(e,t){var r;void 0===t&&(t=RN);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 PN="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function kN(e){cancelAnimationFrame(e.id)}function IN(e,t){var r=PN();var n={id:requestAnimationFrame((function o(){PN()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var MN=-1;function LN(e){if(void 0===e&&(e=!1),-1===MN||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),MN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return MN}var DN=null;function TN(e){if(void 0===e&&(e=!1),null===DN||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?DN="positive-descending":(t.scrollLeft=1,DN=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),DN}return DN}var _N=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ON(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,go(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:go(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=AN((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=AN((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=AN((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(TN()){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&&kN(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=IN(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 qN(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=LN();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(TN()){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&&kN(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?_N:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],w=this._getVerticalRangeToRender(),A=w[0],P=w[1],k=[];if(n>0&&g)for(var I=A;I<=P;I++)for(var M=C;M<=E;M++)k.push(R(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,M)}));var L=a(this.props,this._instanceProps),D=s(this.props,this._instanceProps);return R(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:so({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:k,ref:l,style:{height:L,pointerEvents:x?"none":void 0,width:D}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var qN=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},NN=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},zN=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},jN=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]},FN=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?HN(e,t,r,i,0,n):$N(e,t,r,Math.max(0,i),n)},HN=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=jN(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},$N=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&jN(e,t,n,r).offset<o;)n+=a,a*=2;return HN(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},BN=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=jN(e,t,r,i),u="column"===e?zN(t,i):NN(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}},WN=ON({getColumnOffset:function(e,t,r){return jN("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return FN("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=jN("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=jN("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:NN,getEstimatedTotalWidth:zN,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return BN("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return BN("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return jN("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return FN("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=jN("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=jN("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}}),VN=function(e,t){return e};function GN(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,go(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:go(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=AN((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=AN((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=AN((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(TN()){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&&kN(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=IN(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 UN(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?LN():0:l.scrollHeight>l.clientHeight?LN():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(TN()){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&&kN(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?VN:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],w=C[1],A=[];if(u>0)for(var P=E;P<=w;P++)A.push(R(t,{data:c,key:p(P,c),index:P,isScrolling:b?y:void 0,style:this._getItemStyle(P)}));var k=n(this.props,this._instanceProps);return R(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:so({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%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],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}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var UN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},YN=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]},KN=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=YN(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},XN=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&YN(e,r,t).offset<n;)r+=i,i*=2;return KN(e,t,Math.min(r,o-1),Math.floor(r/2),n)},JN=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},ZN=GN({getItemOffset:function(e,t,r){return YN(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:JN,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=YN(e,t,o),p=JN(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?KN(e,t,o,0,r):XN(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=YN(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=YN(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 QN(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 ez=["style"],tz=["style"];function rz(e,t){var r=e.style,n=bo(e,ez),o=t.style,i=bo(t,tz);return!QN(r,o)&&!QN(n,i)}const nz=e=>{let{style:t}=e;return x.createElement("div",{className:"sn-table-cell",style:{...t,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}})};var oz=x.memo(nz,rz);const iz=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,az=(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])},sz=()=>{},lz=e=>{e.preventDefault()};const uz=e=>{let{columnIndex:t,rowIndex:r,style:n,data:o}=e;const{rowsInPage:i,columns:a,isHoverEnabled:s,setMeasuredCellHeight:l,lineClamp:u,resizeObserverTaskScheduler:c}=o,d=DT(kT,(e=>e.hoverIndex===r)),p=DT(kT,(e=>e.setHoverIndex)),{interactions:f,styleService:h,direction:m}=DT(kT,(e=>e.baseProps)),g=DT(kT,(e=>e.showRightBorder)),b=i[r]?.[t],{handleMouseDown:v,handleMouseOver:y,handleMouseUp:S,cellSelectionState:C}=function(e){const{interactions:t}=DT(kT,(e=>e.baseProps)),r=DT(kT,(e=>e.selectionDispatch)),n="object"==typeof e,o=DT(kT,(t=>n?Vq(e,t.selectionState):HI.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=Bq(lz,e,r,sz);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(b),E=((e,t,r,n)=>{const o=L(null),i=r&&!r.isNumeric,a=D((r=>{const o=iz(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return az(o,a),o})(r,t,b,l),w=a[t]?.isDim?h.dimension.values:h.measure.values;if("object"==typeof b){const e=((e,t,r,n,o,i)=>{let a=Yq(o,i,e);a=Gq(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?mT(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===HI.Selected?{...s,...i.selectedColors}:n===HI.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${FD}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(b,a[t],s&&d,C,w,h),o={rowindex:r,columnindex:t};return x.createElement("div",_T({className:`sn-table-cell ${C} ${hS}`,style:{...n,...e,display:"flex",alignItems:"start",borderColor:h.grid.border,borderTop:"0px",borderBottomWidth:b.isLastRow?"0px":"1px",borderRightWidth:vq(m,b.isLastColumn,g),borderLeftWidth:yq(m,b.isLastColumn,g),justifyContent:hq(b,m),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:b.align},onMouseDown:v,onMouseUp:S,onMouseOver:y,onMouseEnter:s?()=>{p(r)}:void 0,onMouseLeave:s?()=>{p(-1)}:void 0,title:f.passive?b.representation.text:void 0},o),x.createElement($q,{forwardRef:h.contentStaticLineCount||1===u?void 0:E,cell:b,style:e,lineClamp:u,virtualizedCell:!0,resizeObserverTaskScheduler:c}))}return x.createElement(oz,{style:{...n,...w,borderColor:h.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var cz=_(uz,rz);const dz=e=>{const t=L(e);return t.current=e,t},pz=e=>{let{qLeft:t,qTop:r,qWidth:n,qHeight:o}=e;return`${t}-${r}-${n}-${o}`},fz=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},hz=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},mz=(e,t,r,n,o,i,a,s)=>{e.forEach((e=>{e.qMatrix.forEach(((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],C=yR(h,e,a),E=!h&&e.qIsNull,w=E?gw(C):mw(e);f[r]={id:pw(),...e,align:AR(w,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:w,isNull:(!E||!w)&&vR(e,h),representation:bR({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>E?C:e.qText,direction:u,enabledFeatures:{[gE.Image]:s.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[gE.Indicator]:!0,[gE.MiniChart]:!0}})},l(f[r],d,r)})),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},gz=e=>{let{layout:t,model:r,theme:n,initialDataPages:o,pageInfo:i,rowCount:a,visibleRowCount:s,visibleColumnCount:l,columns:u,gridState:c,setEstimatedCellHeight:d}=e;const p=DT(kT,(e=>e.env)),{direction:f}=DT(kT,(e=>e.baseProps)),h=L([]),m=D(((e,r)=>{const n=Array.isArray(r)?r.slice(0,a):(e=>Array(e).fill(void 0))(a);return mz(e,i,n,u,t,p,d,f),h.current=n,n}),[a,i,u,t,p,d,f]),[g,b]=C((()=>m(o??[])));aS((()=>{b(m(o??[]))}),[o,f]);const v=((e,t)=>{const r=L(new Set),n=L(new Set),o=L(new Set),i=dz(e),a=dz(t),s=E((()=>({enqueue:e=>{const t=pz(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(pz(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=>r&&"getHyperCubeData"in r?r.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{b((t=>m(e,t)))})),y=D(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(hz(h.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};v.enqueue(e)}}),[h,v]),x=D(((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-i.page*i.rowsPerPage);if(fz(h.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};v.enqueue(t)}}}),[h,v,i]);return w((()=>{const{qcx:e,qcy:r}=t.qHyperCube.qSize,n=c.current.overscanRowStartIndex,o=c.current.overscanColumnStartIndex,a=n+i.page*i.rowsPerPage,u=e-o,d=i.rowsPerPage-n,p=Math.min(100,u,e,l+5),f=Math.min(100,d,r,s+25);return x(o,a,p,f),()=>{v.clear()}}),[t,s,l,i,v,x,c,n]),{rowsInPage:g,loadRows:x,loadColumns:y}},bz=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},vz=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,yz=e=>{let{isSnapshot:t,isStaticNbrOfLines:r,lineClamp:n,setCellHeight:o}=e;const i=DT(kT,(e=>e.baseProps.styleService)),a=DT(kT,(e=>e.columnWidths)),{estimateLineCount:s}=rS(i.dimension.values),l=ET(i.dimension.values.fontSize),u=t||r||1===n;return D(((e,t,r)=>{if(u||e.representation.type===gE.Image||e.isNumeric)return;const i=(e=>Math.max(0,e-24-1))(a[r]),c=e.representation.text?s({text:e.representation.text,maxWidth:i,isNumeric:!1}):1,d=Math.min(n,Math.max(1,c));o(d*l,t,r)}),[u,a,s,n,l,o])},xz=e=>{let{isStaticNbrOfLines:t,minRowHeight:r,state:n,rowCount:o,staticRowHeight:i,viewService:a}=e;return E((()=>{const{estimatedRowHeight:e,totalRowHeight:s}=t?{totalRowHeight:o*i,estimatedRowHeight:i}:(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}})(n.rowHeights);return a.estimatedRowHeight=Math.max(e,r),Math.max(o*r,s)}),[t,r,o,n,i,a])},Sz=e=>{let{rowCount:t,isSnapshot:r,viewService:n,gridRef:o,pageInfo:i}=e;const{styleService:a}=DT(kT,(e=>e.baseProps)),[s,l]=C({rowHeights:new Map,cellHeightsInGrid:new Map}),u=a.contentLineHeight,c=a.contentMinRowHeight,d=!!a.contentStaticLineCount,p=Math.max(8e6/t,c)-9,f=p+9,h=Math.max(1,Math.min(a.grid.contentLineClamp,Math.round(p/u))),m=(e=>{let{lineClamp:t,lineHeight:r,isStaticNbrOfLines:n}=e;return n?r*t+8+1:void 0})({lineClamp:h,lineHeight:u,isStaticNbrOfLines:d});(e=>{let{gridRef:t,setState:r,pageInfo:n}=e;const{layout:o}=DT(kT,(e=>e.baseProps)),i=DT(kT,(e=>e.columnWidths)),a=o.multiline?.wrapTextInCells,s=o.nullValueRepresentation?.text;aS((()=>{t.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),r({rowHeights:new Map,cellHeightsInGrid:new Map})}),[o.qHyperCube.qSize.qcx,o.qHyperCube.qSize.qcy,n.page,a,s]),aS((()=>{t.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[i])})({gridRef:o,setState:l,pageInfo:i});const g=(e=>{let{setState:t,maxCellHeight:r,minRowHeight:n,gridRef:o}=e;return D(((e,i,a)=>{N((()=>{t((t=>{const s=Math.max(n,e+9),l=Math.min(r,s),u=t.cellHeightsInGrid.get(i)??t.cellHeightsInGrid.set(i,new Map).get(i);if(!vz(u.get(a),l))return t;const c={...t};return u.set(a,l),c.rowHeights.set(i,bz(u)),o.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[t,n,r,o])})({maxCellHeight:f,minRowHeight:c,setState:l,gridRef:o}),b=(e=>{let{isSnapshot:t,isStaticNbrOfLines:r,lineClamp:n,setCellHeight:o}=e;return D(((e,i,a)=>{t||r||1===n||o(e,i,a)}),[t,r,n,o])})({isSnapshot:r,isStaticNbrOfLines:d,lineClamp:h,setCellHeight:g});return{setMeasuredCellHeight:b,setEstimatedCellHeight:yz({isSnapshot:r,isStaticNbrOfLines:d,lineClamp:h,setCellHeight:g}),getRowHeight:D((e=>d?m:s.rowHeights.get(e)??c),[d,c,s.rowHeights,m]),totalRowHeight:xz({isStaticNbrOfLines:d,minRowHeight:c,state:s,staticRowHeight:m,rowCount:t,viewService:n}),lineClamp:h}},Cz=(e,t)=>{O((()=>()=>{t(0)}),[e,t]);const r=D((e=>{const r=iz(e);void 0!==r&&t(r)}),[t]);az(e,r)};let Ez=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const wz=e=>{let{layout:t,loadRows:r,loadColumns:n,rowCount:o,pageInfo:i,gridState:a,viewService:s}=e;const l=D((e=>{let{overscanColumnStartIndex:l,overscanColumnStopIndex:u,overscanRowStartIndex:c,overscanRowStopIndex:d,visibleColumnStartIndex:p,visibleColumnStopIndex:f,visibleRowStartIndex:h,visibleRowStopIndex:m}=e;const{verticalScrollDirection:g,horizontalScrollDirection:b}=((e,t,r)=>{let{overscanColumnStartIndex:n,overscanRowStartIndex:o}=e,i=Ez.None,a=Ez.None;return i=r>o?Ez.Down:r<o?Ez.Up:Ez.None,a=t>n?Ez.Right:t<n?Ez.Left:Ez.None,{verticalScrollDirection:i,horizontalScrollDirection:a}})(a.current,l,c);if(a.current.overscanColumnStartIndex=l,a.current.overscanColumnStopIndex=u,a.current.overscanRowStartIndex=c,a.current.overscanRowStopIndex=d,c>o)return;const v=l,y=c+i.page*i.rowsPerPage,x=u-l+1,S=d-c+1;if(s.visibleLeft=p,s.visibleWidth=f-p+1,s.visibleTop=h+i.page*i.rowsPerPage,s.visibleHeight=m-h+1,s.page=i.page,s.rowsPerPage=i.rowsPerPage,g===Ez.Down){const e=S+25;r(v,y,x,c+e>o?o-c:e)}else if(g===Ez.Up){const e=S+25,t=i.page*i.rowsPerPage,n=Math.max(t,y-25);r(v,n,x,e)}if(b===Ez.Right){const e=t.qHyperCube.qSize.qcx-v,r=x+5,o=Math.min(e,r);n(v,y,o,S)}else if(b===Ez.Left){const e=Math.max(0,v-5),r=Math.min(t.qHyperCube.qSize.qcx,x+5);n(e,y,r,S)}}),[a,o,i.page,i.rowsPerPage,s,r,t.qHyperCube.qSize.qcx,n]);return l},Rz={enabled:!1},Az=()=>{},Pz={current:null};const kz=(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=E((()=>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}},Iz=e=>{let{columnIndex:t,data:r,rowIndex:n}=e;const o=r.rowsInPage[n]?.[t];return o?.id??`${n}-${t}`},Mz={overflow:"hidden",willChange:"auto"};var Lz=_(T(((e,t)=>{const{rect:r,columns:n,pageInfo:o,headerAndTotalsHeight:i,setInnerBodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=DT(kT,(e=>e.baseProps)),f=DT(kT,(e=>e.columnWidths)),h=DT(kT,(e=>e.initialDataPages)),m=L(null),g=L(null),b=L({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=L(0),y=!!dT(s)?.content?.hoverEffect,{rowCount:S,visibleRowCount:C,visibleColumnCount:R}=kz(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:A,setEstimatedCellHeight:P,getRowHeight:k,lineClamp:I,totalRowHeight:M}=Sz({rowCount:S,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:D,loadRows:T,loadColumns:_}=gz({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:S,visibleRowCount:C,visibleColumnCount:R,columns:n,gridState:b,setEstimatedCellHeight:P}),q=wz({layout:s,loadRows:T,loadColumns:_,rowCount:S,pageInfo:o,gridState:b,viewService:c}),N=_O(),j=E((()=>({rowsInPage:D,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:A,resizeObserverTaskScheduler:N})),[D,n,y,I,A,N]),F=((e,t,r)=>Math.min(e.height-t,r))(r,i,M);return O((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:S-1,align:"start"})})),function(e){const{selectionsAPI:t}=DT(kT,(e=>e.baseProps)),r=DT(kT,(e=>e.selectionDispatch));w((()=>{r({type:$I.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),OO({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:Az,keyboard:Rz,tableWrapperRef:Pz})}(D),z(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??F)-F,n=Math.round(r*e);v.current=e,1===v.current?(m.current?.scrollToItem({rowIndex:S-1,align:"start"}),m.current?.scrollTo({scrollLeft:t})):m.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[g,F,S]),Cz(g,a),x.createElement(WN,{"data-key":"body",ref:m,innerRef:g,style:Mz,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:F,rowCount:S,rowHeight:k,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:j,onItemsRendered:q,itemKey:Iz,className:"sn-table-body",direction:p},cz)})));const Dz=e=>{let{width:t,height:r,children:n}=e;return x.createElement("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r}},n)},Tz=(e,t)=>{const r=L(null),n=DT(kT,(e=>e.columnWidths));O((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=D((r=>{const n=iz(r);n&&t(n+9,e)}),[e,t]);return az(r,o),r},_z=Zk("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((e=>{let{interactions:t,hoverBackground:r,background:n,applicableStyle:o}=e;return{...o,background:n,"&&:hover":{background:t.active?r:void 0}}})),Oz=e=>{let{index:t,style:r,data:n}=e;const{columns:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:s}=n,{interactions:l,styleService:u,direction:c}=DT(kT,(e=>e.baseProps)),d=DT(kT,(e=>e.baseProps.selectionsAPI?.isModal())),p=DT(kT,(e=>e.showRightBorder)),f=DT(kT,(e=>e.tableData.totalsPosition)),h=!!l.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v}=vN({isInteractionEnabled:h,columnsData:o}),y=Tz(t,s),S=o[t],C=o.length-1===t;return x.createElement(_z,{className:`sn-table-cell ${hS}`,title:l.passive?S.label:void 0,onClick:b,applicableStyle:{...u.header,...tN(u,f,!0)},style:{...r,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:vq(c,C,p),borderLeftWidth:yq(c,C,p),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:S.headTextAlign,boxSizing:"border-box",zIndex:o.length-t,flexDirection:"right"===S.headTextAlign?"row-reverse":"row",userSelect:"none"},interactions:l,hoverBackground:u.headerMenuHoverBackground,background:m?u.headerMenuActiveBackground:u.header.background},x.createElement(bN,{forwardRef:y,column:S,isInteractionEnabled:h,open:m,setOpen:g,allColumnsIconVisibilityStatusRef:a}),x.createElement(sN,{column:S,isLastColumn:C,onColumnResize:i,setIsAdjustingWidth:v}))},qz=e=>{const[t,r]=C(new Map);aS((()=>{r(new Map)}),[e.length]);const n=D(((e,t)=>{r((r=>vz(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:E((()=>bz(t)),[t]),setMeasuredCellHeight:n}},Nz=(e,t)=>{z(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},zz=(e,t,r,n,o)=>{aS((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},jz={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},Fz=T(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setHeaderRowHeight:s}=e,l=L(null),u=L(null),{layout:c,theme:d,styleService:p,direction:f,viewService:h}=DT(kT,(e=>e.baseProps)),m=DT(kT,(e=>e.columnWidths)),{rowHeight:g,setMeasuredCellHeight:b}=qz(n),v=aN(h,c);return Nz(t,l),zz(l,c,o,m,d),Cz(u,s),x.createElement(ZN,{ref:l,outerRef:u,layout:"horizontal",style:{...jz,...v?{display:"none"}:void 0},itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>m[e],height:Math.max(g+8,p.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:b},direction:f},Oz)}));var Hz=_(Fz);const $z=T(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=DT(kT,(e=>e.baseProps));return x.createElement("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s},r)})),Bz=e=>{let{children:t,rect:r}=e;const{direction:n}=DT(kT,(e=>e.baseProps));return x.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==n?"0px":void 0,right:"rtl"===n?"0px":void 0,width:r.width,height:r.height}},t)},Wz=e=>{let{index:t,style:r,data:n}=e;const{columns:o,totals:i,setMeasuredCellHeight:a}=n,{layout:s,interactions:l,styleService:u,direction:c}=DT(kT,(e=>e.baseProps)),d=DT(kT,(e=>e.showRightBorder)),p=Tz(t,a),f=o[t].totalInfo,{totalsTextAlign:h,isTotalNumeric:m}=o[t],g=s.qHyperCube.qSize.qcx-1===t;return x.createElement("div",{className:`sn-table-cell ${hS}`,title:l.passive?f:void 0,style:{...r,...u.totalRow,...tN(u,i,!1),background:u.totalRow.background,display:"flex",alignItems:i.atTop?"end":"start",borderStyle:"solid",borderRightWidth:vq(c,g,d),borderLeftWidth:yq(c,g,d),borderTopWidth:i.atBottom?"1px":"0px",borderBottomWidth:i.atTop?"1px":"0px",padding:"4px 12px",justifyContent:h,textAlign:h,boxSizing:"border-box",cursor:"default"}},x.createElement(oq,{forwardRef:m?void 0:p,isNumeric:m},f))},Vz=T(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=L(null),l=L(null),{layout:u,theme:c,styleService:d,direction:p}=DT(kT,(e=>e.baseProps)),f=DT(kT,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=qz(i);return Nz(t,s),zz(s,u,n,f,c),Cz(l,a),x.createElement(ZN,{ref:s,outerRef:l,layout:"horizontal",style:jz,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(h,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:m},direction:p},Wz)}));var Gz=_(Vz);const Uz=(e,t,r,n,o)=>D((i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),c=Math.max(0,Math.min(1,l/(a-s)));n.scrollTopRatio=c,n.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[n,r,e,t,o]),Yz=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=DT(kT,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=DT(kT,(e=>e.baseProps)),c=DT(kT,(e=>e.columnWidths)),d=DT(kT,(e=>e.setYScrollbarWidth)),p=L(null),f=L(null),h=L(null),m=L(null),{xScrollbarWidth:g,yScrollbarWidth:b}=PO(p),v=L([]),y=E((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),S=E((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:w}=kz(i,t,S,c,0),{headerAndTotalsHeight:R,innerBodyHeight:A,setHeaderRowHeight:P,setTotalsRowHeight:k,setInnerBodyHeight:I}=(()=>{const[e,t]=C(0),[r,n]=C(0),[o,i]=C(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:M,height:T}=(e=>{let{innerBodyHeight:t,headerAndTotalsHeight:r,rowCount:n,stickyContainerRect:o,columnWidths:i}=e;const{styleService:a}=DT(kT,(e=>e.baseProps)),s=t+r,l=n*a.contentMinRowHeight+r;let u=l;return l<o.height&&s>o.height&&(u=s),{width:i.reduce(((e,t)=>e+t),0),height:u}})({innerBodyHeight:A,headerAndTotalsHeight:R,rowCount:w,stickyContainerRect:S,columnWidths:c}),_=Uz(f,h,m,l,u),q=D((()=>{p.current&&(p.current.scrollTop=0)}),[p]);yO(),O((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),O((()=>{p.current&&(p.current.scrollTop=0)}),[t,w,a]),aO((()=>{d(b)}),[b]);const N=x.createElement(Gz,{key:"totals",rect:S,pageInfo:t,columns:n,ref:h,totals:r,setTotalsRowHeight:k});return x.createElement($z,{ref:p,width:y.width,height:y.height,onScroll:_},x.createElement(Dz,{width:M,height:T},x.createElement(Bz,{rect:S},x.createElement(Hz,{rect:S,pageInfo:t,columns:n,ref:f,columResizeHandler:q,allColumnsIconVisibilityStatusRef:v,setHeaderRowHeight:P}),r.atTop?N:null,x.createElement(Lz,{ref:m,rect:S,pageInfo:t,columns:n,headerAndTotalsHeight:R,setInnerBodyHeight:I}),r.atBottom?N:null)))};var Kz=_(Yz);const Xz=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=DT(kT,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=DT(kT,(e=>e.tableData)),c=DT(kT,(e=>e.pageInfo)),d=DT(kT,(e=>e.setPage));return x.createElement(oO,{"data-testid":"sn-table",background:e.background},x.createElement(Kz,{pageInfo:c}),x.createElement(rO,{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 Jz=_(Xz);var Zz={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 Qz=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(Zz).forEach((t=>{e.add(Zz[t])}))}(r),((e,t)=>{let r;return n=>{let{keys:o,politeness:i="polite"}=n;const a=o.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),s=e.querySelector(`.${WI.First}`),l=e.querySelector(`.${WI.Second}`);if(!s||!l)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let u;r===WI.First?(u=l,r=WI.Second):(u=s,r=WI.First),u.innerHTML=u.innerHTML.endsWith(" ")?a:`${a} `,u.setAttribute("aria-live",i)}})(t,r))),[t,r.language()]),ej={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},tj=e=>{const{app:r,model:i,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:h}=t(),m=IR(s,d),g=Qz(a,l),[b,v]=n(((e,t)=>kR(e,t)?{page:t.page||ej.page,rowsPerPage:t.rowsPerPage||ej.rowsPerPage,rowsPerPageOptions:ej.rowsPerPageOptions}:ej)(s,d)),[y,S]=n(!0);y||S(!0);const[C,E]=Qx((async()=>m?async function(e,t,r,n,o,i,a,s){const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),h=o.visibleTop??l*u,m=o.visibleHeight??Math.min(u,p-h);if(l>0&&h>=p)return n({...r,page:0}),null;if(m*d>xR)return n({...r,rowsPerPage:SR(d,c),page:0}),null;const g=p>10,b=CR(t,o),v=PR(t,a,s),y=!!t.snapshotData,x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});y||(o.qTop=h,o.qHeight=m,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=x.at(0)?.qMatrix.map(((e,r)=>{const n=[];return v.forEach(((o,l)=>{const u=e[l],c=yR(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?gw(c):mw(u);n[l]={id:pw(),...u,align:AR(p,o.bodyTextAlign,s,a),rowIdx:r+h,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===m-1,isNumeric:p,isNull:(!d||!p)&&vR(u,o.isDim),representation:bR({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[gE.Image]:i.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[gE.Indicator]:!0,[gE.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(i,s,b,v,d,p,y,f):null),[s,b,i,m,f]);o((()=>{m&&e.model&&e.changeSortOrder&&C&&c&&!E&&function(e,t){const{direction:r,...n}=e,o=TT(r);t.render(x.createElement(Yd,{stylisPlugins:"rtl"===r?[FI]:void 0},x.createElement(eI,{theme:o},x.createElement(LT,e,x.createElement(EN,n)))))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:C,pageInfo:b,setPageInfo:v,direction:f,footerContainer:h,announce:g},u)}),[g,r,f,h,c,b,u,e,m,C,E])},rj=(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){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const nj=e=>{let{model:t,layout:r,shouldRender:n,page:o}=e;const[i,a]=Qx((async()=>{if(n&&t)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(UD,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return[...n]})(t,r,o)}),[t,r,o]);return{initialDataPages:i,isLoading:a}},oj=t=>{const{layout:r,model:i,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=t,p=!IR(r,c),[f,h]=n(!1);f&&h(!1);const m=e((()=>function(e,t,r,n,o){const i=PR(e,o,n),a=CR(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(UD,s),u=s>UD&&!!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(UD,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/UD);e<o&&i(e)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=nj({model:i,layout:r,page:g.page,shouldRender:p});o((()=>{p&&a.active&&a.blur?.(!1)}),[a,p]),o((()=>{p&&t.model&&t.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=TT(r);t.render(x.createElement(x.StrictMode,null,x.createElement(eI,{theme:n},x.createElement(LT,e,x.createElement(Jz,null)))))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:m,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,t,b,p,m])},ij={version:JSON.stringify("6.0.13"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};function aj(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const sj=(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]}},lj=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const uj=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||ej.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},cj=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=CR(e,t);if(IR(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=aj(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:uj(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=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=sj(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(lj(h,m,g)?d:d+1)+c;let v=p+c;const y=sj(p,o),x=y?.getBoundingClientRect();return y&&x&&(lj(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:uj(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},dj=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),pj=e=>e.getStyle("object","straightTableV2","backgroundColor");function fj(r){return{qae:{properties:{initial:ij},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>uE({...e}),exportProperties:nE,exploration:cE},ext:ow(r),component(){const n=c(),i=(t=>{const r=e((()=>nS(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(n),y=d(),x=p(),S=f(),C=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!y.snapshotData),E=h(),w=m(),R=g(),A=t(),{freeResize:P}=A,k=b(),I=e((()=>y.snapshotData?.content&&!P?{...k,...y.snapshotData.content.size}:k),[k,P,y.snapshotData?.content]),M=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(y),L=v(),D=Zx(y,n,dj,pj),T=r.flags.isEnabled("CLIENT_IM_7150_TABLE_RTL")?A.direction:"ltr",_=rj(y.qHyperCube,S),O=iw(y.qHyperCube,S),q=((e,t,r)=>{const[,n,o]=Qx((async()=>{const t=ae(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,iS].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})(D,y,r),N=bt(),z={app:x,layout:y,model:S,rect:I,theme:D,keyboard:R,translator:E,interactions:C,selectionsAPI:w,changeSortOrder:_,rootElement:n,embed:L,reactRoot:i,applyColumnWidths:O,isFontLoaded:q,downloadService:N,viewService:M,direction:T,env:r};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${hS}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{wS(n)}})})),(e=>{let{layout:t,viewService:r,model:n,rootElement:o,contentRect:i}=e;l((async e=>{const a=e;if(!a.snapshotData||!n||a.snapshotData.content)return a;if("getHyperCubeData"in n){const{rowPartialHeight:e,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h}=cj(t,r,o);a.qHyperCube.qDataPages=await n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:t.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:e,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h,size:{width:i.width,height:i.height},estimatedRowHeight:r.estimatedRowHeight}}return a})),u((()=>({getViewState:()=>cj(t,r,o)})),[t,r,o])})({layout:y,viewService:M,model:S,rootElement:n,contentRect:k}),oj(z),tj(z)}}}export{fj as default};
|