@nebula.js/sn-pivot-table 2.6.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +1,20 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v2.6.1
2
+ * @nebula.js/sn-pivot-table v3.0.0
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,w,C,D,R,L,I,M,A,q,P,k,O,T;return{setters:[function(e){t=e.useMemo,n=e.usePromise,r=e.useEffect,o=e.useTheme,i=e.useState,a=e.onTakeSnapshot,l=e.useTranslator,s=e.useElement,u=e.useStaleLayout,c=e.useModel,d=e.useApp,p=e.useEmbed,f=e.useKeyboard,m=e.useInteractionState,h=e.useSelections,g=e.useRect},function(e){v=e.useState,b=e.useMemo,y=e,x=e.forwardRef,S=e.useContext,E=e.default,w=e.useEffect,C=e.useCallback,D=e.Children,R=e.isValidElement,L=e.cloneElement,I=e.useRef,M=e.createContext,A=e.memo,q=e.useLayoutEffect,P=e.createElement,k=e.PureComponent},function(e){O=e.default,T=e}],execute:function(){e("default",(function(e){return{qae:{properties:{initial:Yx},data:nt(e)},ext:un(e),component(){Ux(e)}}}));var _=Object.prototype.hasOwnProperty,N=Object.prototype.toString,F=Object.defineProperty,H=Object.getOwnPropertyDescriptor,$=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===N.call(e)},z=function(e){if(!e||"[object Object]"!==N.call(e))return!1;var t,n=_.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&_.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||_.call(e,t)},j=function(e,t){F&&"__proto__"===t.name?F(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},W=function(e,t){if("__proto__"===t){if(!_.call(e,t))return;if(H)return H(e,t).value}return e[t]};function V(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function B(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function G(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=W(l,n),l!==(o=W(t,n))&&(c&&o&&(z(o)||(i=$(o)))?(i?(i=!1,a=r&&$(r)?r:[]):a=r&&z(r)?r:{},j(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&j(l,{name:n,newValue:o}));return l}));var U=1/.7,Y="\\s*([+-]?\\d+)\\s*",K="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",X="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Z=/^#([0-9a-f]{3,8})$/,J=new RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`),Q=new RegExp(`^rgb\\(${X},${X},${X}\\)$`),ee=new RegExp(`^rgba\\(${Y},${Y},${Y},${K}\\)$`),te=new RegExp(`^rgba\\(${X},${X},${X},${K}\\)$`),ne=new RegExp(`^hsl\\(${K},${X},${X}\\)$`),re=new RegExp(`^hsla\\(${K},${X},${X},${K}\\)$`),oe={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 ie(){return this.rgb().formatHex()}function ae(){return this.rgb().formatRgb()}function le(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Z.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?se(t):3===n?new pe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ue(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=J.exec(e))?new pe(t[1],t[2],t[3],1):(t=Q.exec(e))?new pe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ee.exec(e))?ue(t[1],t[2],t[3],t[4]):(t=te.exec(e))?ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ne.exec(e))?be(t[1],t[2]/100,t[3]/100,1):(t=re.exec(e))?be(t[1],t[2]/100,t[3]/100,t[4]):oe.hasOwnProperty(e)?se(oe[e]):"transparent"===e?new pe(NaN,NaN,NaN,0):null}function se(e){return new pe(e>>16&255,e>>8&255,255&e,1)}function ue(e,t,n,r){return r<=0&&(e=t=n=NaN),new pe(e,t,n,r)}function ce(e){return e instanceof G||(e=le(e)),e?new pe((e=e.rgb()).r,e.g,e.b,e.opacity):new pe}function de(e,t,n,r){return 1===arguments.length?ce(e):new pe(e,t,n,null==r?1:r)}function pe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function fe(){return`#${ve(this.r)}${ve(this.g)}${ve(this.b)}`}function me(){const e=he(this.opacity);return`${1===e?"rgb(":"rgba("}${ge(this.r)}, ${ge(this.g)}, ${ge(this.b)}${1===e?")":`, ${e})`}`}function he(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ge(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ve(e){return((e=ge(e))<16?"0":"")+e.toString(16)}function be(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xe(e,t,n,r)}function ye(e){if(e instanceof xe)return new xe(e.h,e.s,e.l,e.opacity);if(e instanceof G||(e=le(e)),!e)return new xe;if(e instanceof xe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new xe(a,l,s,e.opacity)}function xe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Se(e){return(e=(e||0)%360)<0?e+360:e}function Ee(e){return Math.max(0,Math.min(1,e||0))}function we(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}V(G,le,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ie,formatHex:ie,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ye(this).formatHsl()},formatRgb:ae,toString:ae}),V(pe,de,B(G,{brighter(e){return e=null==e?U:Math.pow(U,e),new pe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new pe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pe(ge(this.r),ge(this.g),ge(this.b),he(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:fe,formatHex:fe,formatHex8:function(){return`#${ve(this.r)}${ve(this.g)}${ve(this.b)}${ve(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:me,toString:me})),V(xe,(function(e,t,n,r){return 1===arguments.length?ye(e):new xe(e,t,n,null==r?1:r)}),B(G,{brighter(e){return e=null==e?U:Math.pow(U,e),new xe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new xe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new pe(we(e>=240?e-240:e+120,o,r),we(e,o,r),we(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new xe(Se(this.h),Ee(this.s),Ee(this.l),he(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=he(this.opacity);return`${1===e?"hsl(":"hsla("}${Se(this.h)}, ${100*Ee(this.s)}%, ${100*Ee(this.l)}%${1===e?")":`, ${e})`}`}}));const Ce=Math.PI/180,De=180/Math.PI,Re=4/29,Le=6/29,Ie=3*Le*Le;function Me(e){if(e instanceof Ae)return new Ae(e.l,e.a,e.b,e.opacity);if(e instanceof Te)return _e(e);e instanceof pe||(e=ce(e));var t,n,r=Oe(e.r),o=Oe(e.g),i=Oe(e.b),a=qe((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=qe((.4360747*r+.3850649*o+.1430804*i)/.96422),n=qe((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Ae(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Ae(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function qe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ie+Re}function Pe(e){return e>Le?e*e*e:Ie*(e-Re)}function ke(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Oe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Te(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function _e(e){if(isNaN(e.h))return new Ae(e.l,0,0,e.opacity);var t=e.h*Ce;return new Ae(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}V(Ae,(function(e,t,n,r){return 1===arguments.length?Me(e):new Ae(e,t,n,null==r?1:r)}),B(G,{brighter(e){return new Ae(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ae(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new pe(ke(3.1338561*(t=.96422*Pe(t))-1.6168667*(e=1*Pe(e))-.4906146*(n=.82521*Pe(n))),ke(-.9787684*t+1.9161415*e+.033454*n),ke(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),V(Te,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Te)return new Te(e.h,e.c,e.l,e.opacity);if(e instanceof Ae||(e=Me(e)),0===e.a&&0===e.b)return new Te(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*De;return new Te(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Te(e,t,n,null==r?1:r)}),B(G,{brighter(e){return new Te(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Te(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return _e(this).rgb()}}));var Ne=e=>()=>e;function Fe(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ne(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Fe:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ne(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=de(e)).r,(t=de(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Fe(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var He,$e=["__proto__","constructor"];function ze(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!$e.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function We(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ve(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ge)):void 0===t&&(t=Be);for(var n,r,o,i,a,l=new Ke(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Ke(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Ye)}function Be(e){return e.children}function Ge(e){return Array.isArray(e)?e[1]:null}function Ue(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ye(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ke(e){this.data=e,this.depth=this.height=0,this.parent=null}Ke.prototype=Ve.prototype={constructor:Ke,count:function(){return this.eachAfter(We)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Ve(this).eachBefore(Ue)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},He=function(e){
7
+ System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,L,A,D,_,I,M,P,O,k,T;return{setters:[function(e){t=e.useMemo,r=e.usePromise,n=e.useEffect,o=e.useTheme,i=e.useState,a=e.onTakeSnapshot,l=e.useTranslator,s=e.useElement,u=e.useStaleLayout,c=e.useModel,d=e.useApp,p=e.useEmbed,f=e.useKeyboard,m=e.useInteractionState,h=e.useSelections,g=e.useRect},function(e){b=e.useState,v=e.useMemo,y=e.default,x=e.createElement,S=e.useContext,E=e,C=e.useEffect,w=e.useCallback,R=e.Children,L=e.isValidElement,A=e.cloneElement,D=e.forwardRef,_=e.useRef,I=e.createContext,M=e.memo,P=e.useLayoutEffect,O=e.PureComponent},function(e){k=e.default,T=e}],execute:function(){e("default",(function(e){return{qae:{properties:{initial:CC},data:rt(e)},ext:dr(e),component(){EC(e)}}}));var q=Object.prototype.hasOwnProperty,N=Object.prototype.toString,F=Object.defineProperty,z=Object.getOwnPropertyDescriptor,G=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===N.call(e)},$=function(e){if(!e||"[object Object]"!==N.call(e))return!1;var t,r=q.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&q.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||q.call(e,t)},H=function(e,t){F&&"__proto__"===t.name?F(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},B=function(e,t){if("__proto__"===t){if(!q.call(e,t))return;if(z)return z(e,t).value}return e[t]};function W(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function j(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function V(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(r in t)n=B(l,r),l!==(o=B(t,r))&&(c&&o&&($(o)||(i=G(o)))?(i?(i=!1,a=n&&G(n)?n:[]):a=n&&$(n)?n:{},H(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&H(l,{name:r,newValue:o}));return l}));var Y=1/.7,U="\\s*([+-]?\\d+)\\s*",K="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",X="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Z=/^#([0-9a-f]{3,8})$/,J=new RegExp(`^rgb\\(${U},${U},${U}\\)$`),Q=new RegExp(`^rgb\\(${X},${X},${X}\\)$`),ee=new RegExp(`^rgba\\(${U},${U},${U},${K}\\)$`),te=new RegExp(`^rgba\\(${X},${X},${X},${K}\\)$`),re=new RegExp(`^hsl\\(${K},${X},${X}\\)$`),ne=new RegExp(`^hsla\\(${K},${X},${X},${K}\\)$`),oe={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 ie(){return this.rgb().formatHex()}function ae(){return this.rgb().formatRgb()}function le(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Z.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?se(t):3===r?new pe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ue(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=J.exec(e))?new pe(t[1],t[2],t[3],1):(t=Q.exec(e))?new pe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ee.exec(e))?ue(t[1],t[2],t[3],t[4]):(t=te.exec(e))?ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=re.exec(e))?ve(t[1],t[2]/100,t[3]/100,1):(t=ne.exec(e))?ve(t[1],t[2]/100,t[3]/100,t[4]):oe.hasOwnProperty(e)?se(oe[e]):"transparent"===e?new pe(NaN,NaN,NaN,0):null}function se(e){return new pe(e>>16&255,e>>8&255,255&e,1)}function ue(e,t,r,n){return n<=0&&(e=t=r=NaN),new pe(e,t,r,n)}function ce(e){return e instanceof V||(e=le(e)),e?new pe((e=e.rgb()).r,e.g,e.b,e.opacity):new pe}function de(e,t,r,n){return 1===arguments.length?ce(e):new pe(e,t,r,null==n?1:n)}function pe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function fe(){return`#${be(this.r)}${be(this.g)}${be(this.b)}`}function me(){const e=he(this.opacity);return`${1===e?"rgb(":"rgba("}${ge(this.r)}, ${ge(this.g)}, ${ge(this.b)}${1===e?")":`, ${e})`}`}function he(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ge(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function be(e){return((e=ge(e))<16?"0":"")+e.toString(16)}function ve(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xe(e,t,r,n)}function ye(e){if(e instanceof xe)return new xe(e.h,e.s,e.l,e.opacity);if(e instanceof V||(e=le(e)),!e)return new xe;if(e instanceof xe)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new xe(a,l,s,e.opacity)}function xe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Se(e){return(e=(e||0)%360)<0?e+360:e}function Ee(e){return Math.max(0,Math.min(1,e||0))}function Ce(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}W(V,le,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ie,formatHex:ie,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ye(this).formatHsl()},formatRgb:ae,toString:ae}),W(pe,de,j(V,{brighter(e){return e=null==e?Y:Math.pow(Y,e),new pe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new pe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pe(ge(this.r),ge(this.g),ge(this.b),he(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:fe,formatHex:fe,formatHex8:function(){return`#${be(this.r)}${be(this.g)}${be(this.b)}${be(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:me,toString:me})),W(xe,(function(e,t,r,n){return 1===arguments.length?ye(e):new xe(e,t,r,null==n?1:n)}),j(V,{brighter(e){return e=null==e?Y:Math.pow(Y,e),new xe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new xe(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 pe(Ce(e>=240?e-240:e+120,o,n),Ce(e,o,n),Ce(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new xe(Se(this.h),Ee(this.s),Ee(this.l),he(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=he(this.opacity);return`${1===e?"hsl(":"hsla("}${Se(this.h)}, ${100*Ee(this.s)}%, ${100*Ee(this.l)}%${1===e?")":`, ${e})`}`}}));const we=Math.PI/180,Re=180/Math.PI,Le=4/29,Ae=6/29,De=3*Ae*Ae;function _e(e){if(e instanceof Ie)return new Ie(e.l,e.a,e.b,e.opacity);if(e instanceof Te)return qe(e);e instanceof pe||(e=ce(e));var t,r,n=ke(e.r),o=ke(e.g),i=ke(e.b),a=Me((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Me((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Me((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ie(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ie(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Me(e){return e>.008856451679035631?Math.pow(e,1/3):e/De+Le}function Pe(e){return e>Ae?e*e*e:De*(e-Le)}function Oe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ke(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Te(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function qe(e){if(isNaN(e.h))return new Ie(e.l,0,0,e.opacity);var t=e.h*we;return new Ie(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}W(Ie,(function(e,t,r,n){return 1===arguments.length?_e(e):new Ie(e,t,r,null==n?1:n)}),j(V,{brighter(e){return new Ie(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ie(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 pe(Oe(3.1338561*(t=.96422*Pe(t))-1.6168667*(e=1*Pe(e))-.4906146*(r=.82521*Pe(r))),Oe(-.9787684*t+1.9161415*e+.033454*r),Oe(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),W(Te,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Te)return new Te(e.h,e.c,e.l,e.opacity);if(e instanceof Ie||(e=_e(e)),0===e.a&&0===e.b)return new Te(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Re;return new Te(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Te(e,t,r,null==n?1:n)}),j(V,{brighter(e){return new Te(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Te(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return qe(this).rgb()}}));var Ne=e=>()=>e;function Fe(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ne(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Fe: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):Ne(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=de(e)).r,(t=de(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Fe(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 ze,Ge=["__proto__","constructor"];function $e(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Ge.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function He(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 Be(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 We(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ve)):void 0===t&&(t=je);for(var r,n,o,i,a,l=new Ke(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Ke(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Ue)}function je(e){return e.children}function Ve(e){return Array.isArray(e)?e[1]:null}function Ye(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ue(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ke(e){this.data=e,this.depth=this.height=0,this.parent=null}Ke.prototype=We.prototype={constructor:Ke,count:function(){return this.eachAfter(Be)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return We(this).eachBefore(Ye)},[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)}},ze=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 n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},He({exports:{}});var Xe=["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"],Ze=["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 Je(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Ze:Xe}function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var et={exports:{}};self,et.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>qe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=b(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){return C="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},C(e)}var D=t().bind(null,!0),R={},L=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function M(e){return void 0===e}function A(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function q(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?i:e[t],e=e[n||t]}})),e}function P(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){P(e[r],t[r])||(n=!1)})),n);if(L(e)&&L(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!P(e[r],t[r]))return!1;return!0}return e===t}R.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?D({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);P(i,a)||A(t,o)||(M(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(R.generate(a,i,l)):L(i)&&L(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(P(t,o))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(R.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!A(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},R.apply=function(e,t){t.forEach((function(t){var n,r,o=q(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(L(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(L(a)&&L(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!A(n,e)&&delete n[e]})),D(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=q(e,t.from);L(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(L(o)?o.splice(+i,1):delete o[i])}))},R.clone=function(e){return D({},e)},R.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},R.updateObject=function(e,t){Object.keys(e).length?R.apply(e,R.generate(e,t)):D(e,t)};const k=R,O=function(e,n,r){if(!e)return Promise.resolve();var o=k.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function _(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===T)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===T)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const H={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=_(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=_(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=_(t,e);return i&&!i.disabled}};return n}};var $="movingAverage";function z(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===$)return n[r]}function j(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===$)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(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(j(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(j(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(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=z(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=z(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(j(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=z(t,e);return i&&!i.disabled}};return n}};var B="timeSeriesDecomposition";function G(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===B)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===B)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=G(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=G(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(B))return!1;var i=G(t,e);return i&&!i.disabled}};return n}};var X="difference";function Z(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(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(J(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(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Z(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.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]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",De="qDef.qAggrFunc",Re="qDef.base.qAggrFunc",Le={initBase:function(e,t){(t||Le.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Le.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,De)&&i(e,Re)&&n(e,De,i(e,Re)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Le;function Me(e){return Me="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},Me(e)}var Ae={accumulation:H,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const qe={modifiers:Ae,apply:ke,applyModifiers:Oe,cleanUpMeasure:Te,destroy:function(e){e&&Pe[e.id]&&Pe[e.id].masterItemSubscriber&&(Pe[e.id].masterItemSubscriber&&Pe[e.id].masterItemSubscriber.unsubscribe(),delete Pe[e.id])},hasActiveModifiers:_e,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=$e(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Pe={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Pe[n.id]=Pe[n.id]||{isFirstTime:!0};var u=Pe[n.id].isFirstTime;if(Pe[n.id].isFirstTime=!1,r&&"object"===Me(r))return Oe({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Pe[n.id].lastReloadTime;if(Pe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),_e({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:$e(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);je(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;He(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Oe({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return He(r).forEach((function(e){return Te(e)})),Ze({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Oe(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),je(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=He(r)),!n.length)return Promise.resolve();if(!_e({measures:n,properties:r}))return n.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(l++,"object"!==Me(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ae[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ae[r.type].updateModifier&&Ae[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ae[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),We(n)):Te(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Ze({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=$e(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,We(e)}function _e(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:$e(e),properties:n,layout:r})}))}function Ne(e){var t=$e(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ae[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||Ae[t.type].enableTotalsFunction(e)}function He(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function $e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function ze(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function je(e){He(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&ze(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function We(e){var t=$e(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!Ae[t.type]&&ze(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,n=e.properties,r=e.layout;return!Be(t)&&Ue({modifiers:$e(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ze(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):O(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=He(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=$e(t);if(Ue({modifiers:r,properties:e})){var i=Be(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Pe[t.id].masterItemSubscriber=Pe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Pe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](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);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}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)}n.d(r,{default:()=>je});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},b=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.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)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.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,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function w(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return E()(!0,{},t,e)}function D(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var R=Math.pow(2,53)-1;function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},A=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},q=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},P=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},k=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},O=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=w(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=w(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=C(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=C(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},_=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=D(a.max,o.dimensions.length,R),s=D(a.min,o.dimensions.length,0);return{maxDimensions:D(i.max,l,R),minDimensions:D(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},H=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},$=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},z=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return L(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 L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},j=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(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 I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},W=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const B={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,v({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),v=i.getValue(r,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=_({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,w=y.minMeasures,C=s.defaultDimension,D=void 0===C?P():C,R=s.defaultMeasure,L=void 0===R?k():R;b.qDimensions.length=0,b.qMeasures.length=0,H({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w})&&$({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w,newHyperCubeDef:b}),O({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:D}),T({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:b,defaultMeasure:L}),z({newProperties:g,dataDefinition:a,hypercubePath:u}),j({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:b}),A("qMaxStackedCells",v,b),A("qNoOfLeftDims",v,b),q("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),q("qMode",v,b,"S"),q("qReductionMode",v,b,"N"),q("qSortbyYValue",v,b),q("qIndentMode",v,b),q("qShowTotalsAbove",v,b),M(g,t,r),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return W({measures:b.qMeasures,modifierTypes:I}),p&&V(h.qProperty,"storedFilters"),"S"===b.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);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 n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Z={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}}},J={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:J,"sn-scatter-plot":J,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,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?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,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.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)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||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)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||Z).colorModeOptions||Z.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,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,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=B.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=B.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:v,properties:d})&&me(d):he(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function we(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=we(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function De(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=we(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Re="qHyperCubeDef.qMeasures",Le="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const Ae={quarantine:function(e){Ce({properties:e,arrayPath:Re,quarantineName:Le,arrayName:Ie,itemPath:Me})},unquarantine:function(e){De({properties:e,arrayPath:Re,itemPath:Me,arrayName:Ie,quarantineName:Le})}};var qe="qHyperCubeDef.qMeasures",Pe="measures",ke="qHyperCubeDef.qDimensions",Oe="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",_e="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",He="qCalcCondition",$e="conditionalShowHide";const ze={quarantine:function(e){Ce({properties:e,arrayPath:qe,quarantineName:$e,arrayName:Pe,itemPath:He}),Ce({properties:e,arrayPath:ke,quarantineName:$e,arrayName:Oe,itemPath:He})},unquarantine:function(e){De({properties:e,arrayPath:qe,quarantineName:$e,arrayName:Pe,itemPath:He}),De({properties:e,arrayPath:ke,quarantineName:$e,arrayName:Oe,itemPath:He})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Te,quarantineName:$e,arrayName:_e,itemPath:He}),Ce({properties:e,arrayPath:Ne,quarantineName:$e,arrayName:Fe,itemPath:He})},unquarantineAlternative:function(e){De({properties:e,arrayPath:Te,quarantineName:$e,arrayName:_e,itemPath:He}),De({properties:e,arrayPath:Ne,quarantineName:$e,arrayName:Fe,itemPath:He})}},je={hypercube:B,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ce,unquarantineArrayProp:De,conditionalColoring:Ae,conditionalShow:ze}})(),r.default})();var tt=Qe(et.exports);function nt(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}const rt="qHyperCubeDef.qDimensions",ot="dimensions",it="qOtherTotalSpec.qTotalMode",at="totalMode",lt={quarantine(e){tt.quarantineArrayProp({properties:e,arrayPath:rt,quarantineName:at,arrayName:ot,itemPath:it})},unquarantine(e){tt.unquarantineArrayProp({properties:e,arrayPath:rt,quarantineName:at,arrayName:ot,itemPath:it})}};function st(e){const t=nt(e);return(e,n,r,o)=>{var i,a,l,s,u,c;const d=tt.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let m,h=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===h.length&&ze(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",h.concat());const v=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;v?(h=v,m=[...v],ze(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",h),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):h.length=0;const b=+(h.indexOf(-1)>-1),y=p+b;if(y>h.length)for(let e=h.length;e<y;e++)h.indexOf(e)<0&&h.push(e-b);for(let e=h.length-1;e>=0;e--)h[e]>=p&&h.splice(e,1);f>1&&h.indexOf(-1)<0?h.push(-1):f<2&&h.indexOf(-1)>-1&&h.splice(h.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&ze(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),m&&h&&m.length===h.length){for(let e=0;e<m.length;e++)if(m[e]!==h[e]){g=!1;break}g&&tt.unquarantineProperty(d.qProperty,"noOfLeftDims")}return tt.conditionalShow.unquarantine(d.qProperty),lt.unquarantine(d.qProperty),d}}function ut(e,t){var n,r,o;const i=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=tt.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;ze(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),tt.quarantineProperty(s.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete s.properties.qHyperCubeDef.qNoOfLeftDims;const f=null==s||null===(o=s.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;f&&(p=f,ze(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),ze(s,"data.0.interColumnSortOrder",p),delete s.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=p.length;e<c+d;e++)p.length<=e&&p.push(e);return tt.conditionalShow.quarantine(s.properties),lt.quarantine(s.properties),s}const ct={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},dt="12px",pt="nebula-table-utils-head-menu-button";var ft;!function(e){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"}(ft||(ft={}));const mt="nebula-table-utils-column-adjuster",ht=`${mt}-border`;var gt,vt,bt,yt;!function(e){e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",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.AutoMin=80]="AutoMin"}(gt||(gt={})),function(e){e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage"}(vt||(vt={})),function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(bt||(bt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(yt||(yt={}));var xt,St,Et,wt,Ct=bt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(xt||(xt={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor"}(St||(St={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Et||(Et={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(wt||(wt={}));const Dt="TOTAL_OFF",Rt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:St.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:St.CellForegroundColor}]};function Lt(e,t,n){if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o}const It={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:vt.Auto,translation:"Common.Auto"},{value:vt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:vt.Pixels,translation:"Object.Table.Column.Pixels"},{value:vt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:vt.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:gt.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===vt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(gt.PixelsMin,Math.min(gt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:gt.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===vt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(gt.PercentageMin,Math.min(gt.PercentageMax,e.qDef.columnWidth.percentage)))}}},Mt=e=>{var t,n;const{translator:r,anything:o}=e;return{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{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},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:Dt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Dt,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&Lt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Dt&&Lt(e,0,n)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Rt,...It}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Rt,...It}}}}},At="12px",qt="Source Sans Pro, sans-serif",Pt="600",kt=15e3,Ot=15e3,Tt=4/3,_t=1;var Nt,Ft;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Nt||(Nt={})),function(e){e.Solid="solid",e.None="none"}(Ft||(Ft={}));const Ht={display:"flex",justifyContent:"center",alignItems:"center"},$t={borderStyle:"solid"},zt={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},jt={lineHeight:"calc(1.3333333333333333)",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},Wt=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",lineBreak:"auto",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-all"}),Vt=(e,t)=>e>0?`${e}px ${Ft.Solid} ${t}`:Ft.None,Bt=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:Vt(o,n),borderBottom:Vt(i,n),borderLeft:Ft.None,borderTop:Ft.None}},Gt=(e,t,n,r,o,i)=>{const a=Bt(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=Vt(2,o)),n||(a.borderLeft=Vt(1,o))),a},Ut=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=Vt(1,n)),t&&(r.borderRight=Vt(1,n)),r},Yt=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:i===Nt.Transparent.toString()?"none":i}}}),Kt={translation:"properties.pivot.grid",component:"panel-section",items:{rowHeightItem:{component:"items",ref:"components",key:"theme",items:{lineClamp:{component:"inline-wrapper",items:{rowHeight:{component:"dropdown",ref:"grid.lineClamp",translation:"ThemeStyleEditor.style.rowHeight",options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}}},border:Yt("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Nt.DividerLight})),divider:Yt("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Nt.DividerDark})),background:Yt("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:Nt.Transparent}))}}}},Xt=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},Zt=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:qt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Xt(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Je(r).filter((e=>!s.includes(e))).map((e=>Xt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Jt=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Qt=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Xt(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Jt.filter((e=>!a.includes(e))).map((e=>Xt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),en=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},tn=({section:e,defaultFontStyle:t,translator:n,flags:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Zt({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=en(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Qt({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=en(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:Yt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=en(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Yt(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=en(t,e,"backgroundColor"))&&void 0!==n?n:Nt.Transparent}))}}}}),nn=({section:e,defaultFontStyle:t,fallbackBackground:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Yt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=en(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Yt(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=en(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:Nt.Transparent}))}}}}),rn=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:tn({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:tn({section:"dimensionValues",translator:e,flags:t}),measureValueSection:tn({section:"measureValues",translator:e,flags:t}),measureLabelSection:nn({section:"measureLabels"}),totalValuesSection:nn({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:nn({section:"nullValues",fallbackBackground:Nt.NullValueBackground}),gridSection:Kt}}]}),on=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[rn(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qDimensions)||void 0===t?void 0:t.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}]}}}),an="auto",ln={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:an,translation:"Object.Table.SortingInSearch",options:[{value:an,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function sn(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:Mt(e),sorting:ln,addons:ct,settings:on(t,n)}}}function un(e){return{support:{cssScaling:!1,snapshot:!1,export:!1,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:sn(e),importProperties:st(e),exportProperties:ut}}function cn(e,t){const[n,r]=v(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var dn={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_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_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 pn=({translator:e})=>(b((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(dn).forEach((t=>{e.add(dn[t])}))}}(e)),[e]),e);function fn(e,r){const o=t((()=>({isLoading:!0})),r),[i,a]=n((async()=>{try{return await e()}finally{o.isLoading=!1}}),r);return[i,o.isLoading,a]}var mn,hn=O;mn=hn.createRoot,hn.hydrateRoot;function gn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function vn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bn(){}var yn=.7,xn=1/yn,Sn="\\s*([+-]?\\d+)\\s*",En="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Cn=/^#([0-9a-f]{3,8})$/,Dn=new RegExp(`^rgb\\(${Sn},${Sn},${Sn}\\)$`),Rn=new RegExp(`^rgb\\(${wn},${wn},${wn}\\)$`),Ln=new RegExp(`^rgba\\(${Sn},${Sn},${Sn},${En}\\)$`),In=new RegExp(`^rgba\\(${wn},${wn},${wn},${En}\\)$`),Mn=new RegExp(`^hsl\\(${En},${wn},${wn}\\)$`),An=new RegExp(`^hsla\\(${En},${wn},${wn},${En}\\)$`),qn={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 Pn(){return this.rgb().formatHex()}function kn(){return this.rgb().formatRgb()}function On(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Cn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Tn(t):3===n?new Hn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?_n(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?_n(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=Dn.exec(e))?new Hn(t[1],t[2],t[3],1):(t=Rn.exec(e))?new Hn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ln.exec(e))?_n(t[1],t[2],t[3],t[4]):(t=In.exec(e))?_n(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Mn.exec(e))?Bn(t[1],t[2]/100,t[3]/100,1):(t=An.exec(e))?Bn(t[1],t[2]/100,t[3]/100,t[4]):qn.hasOwnProperty(e)?Tn(qn[e]):"transparent"===e?new Hn(NaN,NaN,NaN,0):null}function Tn(e){return new Hn(e>>16&255,e>>8&255,255&e,1)}function _n(e,t,n,r){return r<=0&&(e=t=n=NaN),new Hn(e,t,n,r)}function Nn(e){return e instanceof bn||(e=On(e)),e?new Hn((e=e.rgb()).r,e.g,e.b,e.opacity):new Hn}function Fn(e,t,n,r){return 1===arguments.length?Nn(e):new Hn(e,t,n,null==r?1:r)}function Hn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function $n(){return`#${Vn(this.r)}${Vn(this.g)}${Vn(this.b)}`}function zn(){const e=jn(this.opacity);return`${1===e?"rgb(":"rgba("}${Wn(this.r)}, ${Wn(this.g)}, ${Wn(this.b)}${1===e?")":`, ${e})`}`}function jn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vn(e){return((e=Wn(e))<16?"0":"")+e.toString(16)}function Bn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Un(e,t,n,r)}function Gn(e){if(e instanceof Un)return new Un(e.h,e.s,e.l,e.opacity);if(e instanceof bn||(e=On(e)),!e)return new Un;if(e instanceof Un)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Un(a,l,s,e.opacity)}function Un(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Yn(e){return(e=(e||0)%360)<0?e+360:e}function Kn(e){return Math.max(0,Math.min(1,e||0))}function Xn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}gn(bn,On,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pn,formatHex:Pn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Gn(this).formatHsl()},formatRgb:kn,toString:kn}),gn(Hn,Fn,vn(bn,{brighter(e){return e=null==e?xn:Math.pow(xn,e),new Hn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?yn:Math.pow(yn,e),new Hn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Hn(Wn(this.r),Wn(this.g),Wn(this.b),jn(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:$n,formatHex:$n,formatHex8:function(){return`#${Vn(this.r)}${Vn(this.g)}${Vn(this.b)}${Vn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:zn,toString:zn})),gn(Un,(function(e,t,n,r){return 1===arguments.length?Gn(e):new Un(e,t,n,null==r?1:r)}),vn(bn,{brighter(e){return e=null==e?xn:Math.pow(xn,e),new Un(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?yn:Math.pow(yn,e),new Un(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Hn(Xn(e>=240?e-240:e+120,o,r),Xn(e,o,r),Xn(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Un(Yn(this.h),Kn(this.s),Kn(this.l),jn(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=jn(this.opacity);return`${1===e?"hsl(":"hsla("}${Yn(this.h)}, ${100*Kn(this.s)}%, ${100*Kn(this.l)}%${1===e?")":`, ${e})`}`}}));const Zn=e=>{if(e){const t=Fn(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},Jn=(e,t,n,r)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==n?void 0:n(e),u=null==r?void 0:r(e),c=s||i||u,d=(e=>!!e&&0===Fn(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:Zn(d?l:c),isTransparent:d}},Qn=3,er="N";function tr(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function nr({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="",bold:r=!1,maxNbrLinesOfText:o=Qn}){const{estimateWidth:i,measureText:a,estimateLineCount:l}=b((()=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n}${n?" ":""}${r?"600 ":""}${e} ${t}`;const a=je(i.measureText.bind(i)),l=e=>+a(e).width.toFixed(2),s=je((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,i=e;do{r+=1,i=tr(i,t,l)}while(null!==i&&r<o);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(er).width*e,estimateLineCount:s}}),[n,r,e,t,o]);return{estimateWidth:i,measureText:a,estimateLineCount:l}}function rr(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 or="$$material";function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function ar(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function lr(){return lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lr.apply(this,arguments)}function sr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ur=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cr=sr((function(e){return ur.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var dr=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),pr="-ms-",fr="-moz-",mr="-webkit-",hr="comm",gr="rule",vr="decl",br="@keyframes",yr=Math.abs,xr=String.fromCharCode,Sr=Object.assign;function Er(e){return e.trim()}function wr(e,t,n){return e.replace(t,n)}function Cr(e,t){return e.indexOf(t)}function Dr(e,t){return 0|e.charCodeAt(t)}function Rr(e,t,n){return e.slice(t,n)}function Lr(e){return e.length}function Ir(e){return e.length}function Mr(e,t){return t.push(e),e}var Ar=1,qr=1,Pr=0,kr=0,Or=0,Tr="";function _r(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ar,column:qr,length:a,return:""}}function Nr(e,t){return Sr(_r("",null,null,"",null,null,0),e,{length:-e.length},t)}function Fr(){return Or=kr>0?Dr(Tr,--kr):0,qr--,10===Or&&(qr=1,Ar--),Or}function Hr(){return Or=kr<Pr?Dr(Tr,kr++):0,qr++,10===Or&&(qr=1,Ar++),Or}function $r(){return Dr(Tr,kr)}function zr(){return kr}function jr(e,t){return Rr(Tr,e,t)}function Wr(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 Vr(e){return Ar=qr=1,Pr=Lr(Tr=e),kr=0,[]}function Br(e){return Tr="",e}function Gr(e){return Er(jr(kr-1,Kr(91===e?e+2:40===e?e+1:e)))}function Ur(e){for(;(Or=$r())&&Or<33;)Hr();return Wr(e)>2||Wr(Or)>3?"":" "}function Yr(e,t){for(;--t&&Hr()&&!(Or<48||Or>102||Or>57&&Or<65||Or>70&&Or<97););return jr(e,zr()+(t<6&&32==$r()&&32==Hr()))}function Kr(e){for(;Hr();)switch(Or){case e:return kr;case 34:case 39:34!==e&&39!==e&&Kr(Or);break;case 40:41===e&&Kr(e);break;case 92:Hr()}return kr}function Xr(e,t){for(;Hr()&&e+Or!==57&&(e+Or!==84||47!==$r()););return"/*"+jr(t,kr-1)+"*"+xr(47===e?e:Hr())}function Zr(e){for(;!Wr($r());)Hr();return jr(e,kr)}function Jr(e){return Br(Qr("",null,null,null,[""],e=Vr(e),0,[0],e))}function Qr(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,w=y;g;)switch(m=b,b=Hr()){case 40:if(108!=m&&58==Dr(w,d-1)){-1!=Cr(w+=wr(Gr(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:w+=Gr(b);break;case 9:case 10:case 13:case 32:w+=Ur(m);break;case 92:w+=Yr(zr()-1,7);continue;case 47:switch($r()){case 42:case 47:Mr(to(Xr(Hr(),zr()),t,n),s);break;default:w+="/"}break;case 123*h:l[u++]=Lr(w)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(w=wr(w,/\f/g,"")),f>0&&Lr(w)-d&&Mr(f>32?no(w+";",r,n,d-1):no(wr(w," ","")+";",r,n,d-2),s);break;case 59:w+=";";default:if(Mr(E=eo(w,t,n,u,c,o,l,y,x=[],S=[],d),i),123===b)if(0===c)Qr(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===Dr(w,3)?100:p){case 100:case 108:case 109:case 115:Qr(e,E,E,r&&Mr(eo(e,E,E,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:Qr(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=w="",d=a;break;case 58:d=1+Lr(w),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Fr())continue;switch(w+=xr(b),b*h){case 38:v=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(Lr(w)-1)*v,v=1;break;case 64:45===$r()&&(w+=Gr(Hr())),p=$r(),c=d=Lr(y=w+=Zr(zr())),b++;break;case 45:45===m&&2==Lr(w)&&(h=0)}}return i}function eo(e,t,n,r,o,i,a,l,s,u,c){for(var d=o-1,p=0===o?i:[""],f=Ir(p),m=0,h=0,g=0;m<r;++m)for(var v=0,b=Rr(e,d+1,d=yr(h=a[m])),y=e;v<f;++v)(y=Er(h>0?p[v]+" "+b:wr(b,/&\f/g,p[v])))&&(s[g++]=y);return _r(e,t,n,0===o?gr:l,s,u,c)}function to(e,t,n){return _r(e,t,n,hr,xr(Or),Rr(e,2,-2),0)}function no(e,t,n,r){return _r(e,t,n,vr,Rr(e,0,r),Rr(e,r+1,-1),r)}function ro(e,t){for(var n="",r=Ir(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function oo(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case vr:return e.return=e.return||e.value;case hr:return"";case br:return e.return=e.value+"{"+ro(e.children,r)+"}";case gr:e.value=e.props.join(",")}return Lr(n=ro(e.children,r))?e.return=e.value+"{"+n+"}":""}function io(e){var t=Ir(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}var ao=function(e,t,n){for(var r=0,o=0;r=o,o=$r(),38===r&&12===o&&(t[n]=1),!Wr(o);)Hr();return jr(e,kr)},lo=function(e,t){return Br(function(e,t){var n=-1,r=44;do{switch(Wr(r)){case 0:38===r&&12===$r()&&(t[n]=1),e[n]+=ao(kr-1,t,n);break;case 2:e[n]+=Gr(r);break;case 4:if(44===r){e[++n]=58===$r()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=xr(r)}}while(r=Hr());return e}(Vr(e),t))},so=new WeakMap,uo=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||so.get(n))&&!r){so.set(e,!0);for(var o=[],i=lo(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},co=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function po(e,t){switch(function(e,t){return 45^Dr(e,0)?(((t<<2^Dr(e,0))<<2^Dr(e,1))<<2^Dr(e,2))<<2^Dr(e,3):0}(e,t)){case 5103:return mr+"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 mr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mr+e+fr+e+pr+e+e;case 6828:case 4268:return mr+e+pr+e+e;case 6165:return mr+e+pr+"flex-"+e+e;case 5187:return mr+e+wr(e,/(\w+).+(:[^]+)/,mr+"box-$1$2"+pr+"flex-$1$2")+e;case 5443:return mr+e+pr+"flex-item-"+wr(e,/flex-|-self/,"")+e;case 4675:return mr+e+pr+"flex-line-pack"+wr(e,/align-content|flex-|-self/,"")+e;case 5548:return mr+e+pr+wr(e,"shrink","negative")+e;case 5292:return mr+e+pr+wr(e,"basis","preferred-size")+e;case 6060:return mr+"box-"+wr(e,"-grow","")+mr+e+pr+wr(e,"grow","positive")+e;case 4554:return mr+wr(e,/([^-])(transform)/g,"$1"+mr+"$2")+e;case 6187:return wr(wr(wr(e,/(zoom-|grab)/,mr+"$1"),/(image-set)/,mr+"$1"),e,"")+e;case 5495:case 3959:return wr(e,/(image-set\([^]*)/,mr+"$1$`$1");case 4968:return wr(wr(e,/(.+:)(flex-)?(.*)/,mr+"box-pack:$3"+pr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+mr+e+e;case 4095:case 3583:case 4068:case 2532:return wr(e,/(.+)-inline(.+)/,mr+"$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(Lr(e)-1-t>6)switch(Dr(e,t+1)){case 109:if(45!==Dr(e,t+4))break;case 102:return wr(e,/(.+:)(.+)-([^]+)/,"$1"+mr+"$2-$3$1"+fr+(108==Dr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Cr(e,"stretch")?po(wr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Dr(e,t+1))break;case 6444:switch(Dr(e,Lr(e)-3-(~Cr(e,"!important")&&10))){case 107:return wr(e,":",":"+mr)+e;case 101:return wr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mr+(45===Dr(e,14)?"inline-":"")+"box$3$1"+mr+"$2$3$1"+pr+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return mr+e+pr+wr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mr+e+pr+wr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mr+e+pr+wr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return mr+e+pr+e+e}return e}var fo,mo,ho="undefined"!=typeof document,go=ho?void 0:(fo=function(){return sr((function(){var e={};return function(t){return e[t]}}))},mo=new WeakMap,function(e){if(mo.has(e))return mo.get(e);var t=fo(e);return mo.set(e,t),t}),vo=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vr:e.return=po(e.value,e.length);break;case br:return ro([Nr(e,{value:wr(e.value,"@","@"+mr)})],r);case gr:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ro([Nr(e,{props:[wr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ro([Nr(e,{props:[wr(t,/:(plac\w+)/,":"+mr+"input-$1")]}),Nr(e,{props:[wr(t,/:(plac\w+)/,":-moz-$1")]}),Nr(e,{props:[wr(t,/:(plac\w+)/,pr+"input-$1")]})],r)}return""}))}}],bo=function(e){var t=e.key;if(ho&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||vo,a={},l=[];ho&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)})));var s,u=[uo,co];if(ho){var c,d=[oo,(s=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=io(u.concat(i,d));o=function(e,t,n,r){c=n,function(e){ro(Jr(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[oo],m=io(u.concat(i,f)),h=go(i)(t),g=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return ro(Jr(e),m)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),i):r?void(v.inserted[o]=i):i}}var v={key:t,sheet:new dr({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return v.sheet.hydrate(l),v},yo={exports:{}},xo={},So="function"==typeof Symbol&&Symbol.for,Eo=So?Symbol.for("react.element"):60103,wo=So?Symbol.for("react.portal"):60106,Co=So?Symbol.for("react.fragment"):60107,Do=So?Symbol.for("react.strict_mode"):60108,Ro=So?Symbol.for("react.profiler"):60114,Lo=So?Symbol.for("react.provider"):60109,Io=So?Symbol.for("react.context"):60110,Mo=So?Symbol.for("react.async_mode"):60111,Ao=So?Symbol.for("react.concurrent_mode"):60111,qo=So?Symbol.for("react.forward_ref"):60112,Po=So?Symbol.for("react.suspense"):60113,ko=So?Symbol.for("react.suspense_list"):60120,Oo=So?Symbol.for("react.memo"):60115,To=So?Symbol.for("react.lazy"):60116,_o=So?Symbol.for("react.block"):60121,No=So?Symbol.for("react.fundamental"):60117,Fo=So?Symbol.for("react.responder"):60118,Ho=So?Symbol.for("react.scope"):60119;function $o(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Eo:switch(e=e.type){case Mo:case Ao:case Co:case Ro:case Do:case Po:return e;default:switch(e=e&&e.$$typeof){case Io:case qo:case To:case Oo:case Lo:return e;default:return t}}case wo:return t}}}function zo(e){return $o(e)===Ao}xo.AsyncMode=Mo,xo.ConcurrentMode=Ao,xo.ContextConsumer=Io,xo.ContextProvider=Lo,xo.Element=Eo,xo.ForwardRef=qo,xo.Fragment=Co,xo.Lazy=To,xo.Memo=Oo,xo.Portal=wo,xo.Profiler=Ro,xo.StrictMode=Do,xo.Suspense=Po,xo.isAsyncMode=function(e){return zo(e)||$o(e)===Mo},xo.isConcurrentMode=zo,xo.isContextConsumer=function(e){return $o(e)===Io},xo.isContextProvider=function(e){return $o(e)===Lo},xo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Eo},xo.isForwardRef=function(e){return $o(e)===qo},xo.isFragment=function(e){return $o(e)===Co},xo.isLazy=function(e){return $o(e)===To},xo.isMemo=function(e){return $o(e)===Oo},xo.isPortal=function(e){return $o(e)===wo},xo.isProfiler=function(e){return $o(e)===Ro},xo.isStrictMode=function(e){return $o(e)===Do},xo.isSuspense=function(e){return $o(e)===Po},xo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Co||e===Ao||e===Ro||e===Do||e===Po||e===ko||"object"==typeof e&&null!==e&&(e.$$typeof===To||e.$$typeof===Oo||e.$$typeof===Lo||e.$$typeof===Io||e.$$typeof===qo||e.$$typeof===No||e.$$typeof===Fo||e.$$typeof===Ho||e.$$typeof===_o)},xo.typeOf=$o,yo.exports=xo;var jo=yo.exports,Wo={};Wo[jo.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Wo[jo.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Vo="undefined"!=typeof document;var Bo=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Vo&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Go=function(e,t,n){Bo(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);Vo||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Vo&&0!==o.length)return o}};function Uo(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var Yo={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},Ko=/[A-Z]|^ms/g,Xo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zo=function(e){return 45===e.charCodeAt(1)},Jo=function(e){return null!=e&&"boolean"!=typeof e},Qo=sr((function(e){return Zo(e)?e:e.replace(Ko,"-$&").toLowerCase()})),ei=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Xo,(function(e,t,n){return ni={name:t,styles:n,next:ni},t}))}return 1===Yo[e]||Zo(e)||"number"!=typeof t||0===t?t:t+"px"};function ti(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ni={name:n.name,styles:n.styles,next:ni},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ni={name:r.name,styles:r.styles,next:ni},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ti(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Jo(a)&&(r+=Qo(i)+":"+ei(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ti(e,t,a);switch(i){case"animation":case"animationName":r+=Qo(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)Jo(a[s])&&(r+=Qo(i)+":"+ei(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ni,i=n(e);return ni=o,ti(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var ni,ri=/label:\s*([^\s;\n{]+)\s*(;|$)/g,oi=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ni=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ti(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=ti(n,t,e[a]),r&&(o+=i[a]);ri.lastIndex=0;for(var l,s="";null!==(l=ri.exec(o));)s+="-"+l[1];return{name:Uo(o)+s,styles:o,next:ni}},ii="undefined"!=typeof document,ai=function(e){return e()},li=!!y.useInsertionEffect&&y.useInsertionEffect,si=ii&&li||ai,ui=li||y.useLayoutEffect,ci="undefined"!=typeof document,di=y.createContext("undefined"!=typeof HTMLElement?bo({key:"css"}):null);di.Provider;var pi=function(e){return x((function(t,n){var r=S(di);return e(t,r,n)}))};ci||(pi=function(e){return function(t){var n=S(di);return null===n?(n=bo({key:"css"}),y.createElement(di.Provider,{value:n},e(t,n))):e(t,n)}});var fi=y.createContext({}),mi=pi((function(e,t){var n=e.styles,r=oi([n],void 0,y.useContext(fi));if(!ci){for(var o,i=r.name,a=r.styles,l=r.next;void 0!==l;)i+=" "+l.name,a+=l.styles,l=l.next;var s=!0===t.compat,u=t.insert("",{name:i,styles:a},t.sheet,s);return s?null:y.createElement("style",((o={})["data-emotion"]=t.key+"-global "+i,o.dangerouslySetInnerHTML={__html:u},o.nonce=t.sheet.nonce,o))}var c=y.useRef();return ui((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),c.current=[n,o],function(){n.flush()}}),[t]),ui((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Go(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function hi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return oi(t)}var gi=function(){var e=hi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},vi=/[A-Z]|^ms/g,bi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yi=function(e){return 45===e.charCodeAt(1)},xi=function(e){return null!=e&&"boolean"!=typeof e},Si=sr((function(e){return yi(e)?e:e.replace(vi,"-$&").toLowerCase()})),Ei=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(bi,(function(e,t,n){return Ci={name:t,styles:n,next:Ci},t}))}return 1===Yo[e]||yi(e)||"number"!=typeof t||0===t?t:t+"px"};function wi(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ci={name:n.name,styles:n.styles,next:Ci},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ci={name:r.name,styles:r.styles,next:Ci},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=wi(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":xi(a)&&(r+=Si(i)+":"+Ei(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=wi(e,t,a);switch(i){case"animation":case"animationName":r+=Si(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)xi(a[s])&&(r+=Si(i)+":"+Ei(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ci,i=n(e);return Ci=o,wi(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Ci,Di=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ri=cr,Li=function(e){return"theme"!==e},Ii=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ri:Li},Mi=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Ai="undefined"!=typeof document,qi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Bo(t,n,r);var o=si((function(){return Go(t,n,r)}));if(!Ai&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return y.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},Pi=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=Mi(t,n,i),s=l||Ii(a),u=!s("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,f=1;f<p;f++)d.push(c[f],c[0][f])}var m=pi((function(e,t,n){var r,i,c,p,f=u&&e.as||a,m="",h=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=y.useContext(fi)}"string"==typeof e.className?(r=t.registered,i=h,c=e.className,p="",c.split(" ").forEach((function(e){void 0!==r[e]?i.push(r[e]+";"):p+=e+" "})),m=p):null!=e.className&&(m=e.className+" ");var b=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ci=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=wi(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=wi(n,t,e[a]),r&&(o+=i[a]);Di.lastIndex=0;for(var l,s="";null!==(l=Di.exec(o));)s+="-"+l[1];return{name:Uo(o)+s,styles:o,next:Ci}}(d.concat(h),t.registered,g);m+=t.key+"-"+b.name,void 0!==o&&(m+=" "+o);var x=u&&void 0===l?Ii(f):s,S={};for(var E in e)u&&"as"===E||x(E)&&(S[E]=e[E]);return S.className=m,S.ref=n,y.createElement(y.Fragment,null,y.createElement(qi,{cache:t,serialized:b,isStringTag:"string"==typeof f}),y.createElement(f,S))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,lr({},n,r,{shouldForwardProp:Mi(m,r,!0)})).apply(void 0,d)},m}}.bind();["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Pi[e]=Pi(e)}));var ki={exports:{}},Oi={},Ti=E,_i=Symbol.for("react.element"),Ni=Symbol.for("react.fragment"),Fi=Object.prototype.hasOwnProperty,Hi=Ti.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$i={key:!0,ref:!0,__self:!0,__source:!0};function zi(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Fi.call(t,r)&&!$i.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:_i,type:e,key:i,ref:a,props:o,_owner:Hi.current}}Oi.Fragment=Ni,Oi.jsx=zi,Oi.jsxs=zi,ki.exports=Oi;var ji=ki.exports;function Wi(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return ji.jsx(mi,{styles:r})}
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),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))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},ze({exports:{}});var Xe=["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"],Ze=["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 Je(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Ze:Xe}function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var et={exports:{}};self,et.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Me});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function 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,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function 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),L={},A=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function _(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(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]=_(e[r||t])?i:e[t],e=e[r||t]}})),e}function P(e,t){var r=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){P(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!P(e[n],t[n]))return!1;return!0}return e===t}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);P(i,a)||I(t,o)||(_(a)?n.push({op:"add",path:l,value:i}):D(i)&&D(a)?n=n.concat(L.generate(a,i,l)):A(i)&&A(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&_(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(P(t,o))return n;if(!_(t[0])&&_(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){_(t[o])&&!I(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!I(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=M(e,t.from);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const O=L,k=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=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 E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var G="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function H(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)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:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var j="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===j)return r[n]}function Y(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===j)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var U={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(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=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function Z(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 J(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(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(J(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(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Z(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t,r){if(1===e){var n=oe(t,0);t.splice(n,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,r){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t,r){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&r(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ae;function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}var Ie={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Ie,apply:Oe,applyModifiers:ke,cleanUpMeasure:Te,destroy:function(e){e&&Pe[e.id]&&Pe[e.id].masterItemSubscriber&&(Pe[e.id].masterItemSubscriber&&Pe[e.id].masterItemSubscriber.unsubscribe(),delete Pe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[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=Ge(e);Ye({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Je({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Pe={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Pe[r.id]=Pe[r.id]||{isFirstTime:!0};var u=Pe[r.id].isFirstTime;if(Pe[r.id].isFirstTime=!1,n&&"object"===_e(n))return ke({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Pe[r.id].lastReloadTime;if(Pe[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers:Ge(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);He(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(r++,"object"!==_e(Ie[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=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),ke({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===_e(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return Te(e)})),Ze({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function ke(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ye({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;De.isValid(r)||De.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(l++,"object"!==_e(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ie[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[n.type].updateModifier&&Ie[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Ie[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Ze({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=Ge(e);return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&!Ie[e.type]}))}(e)?De.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 Ye({modifiers:Ge(e),properties:r,layout:n})}))}function Ne(e){var t=Ge(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ie[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Ie[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Ge(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=Ge(e);Array.isArray(t)&&t.forEach((function(t){"object"===_e(t)&&(t.disabled||!Ie[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function je(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!je(t)&&Ye({modifiers:Ge(t),properties:r,layout:n})}function Ye(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==_e(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ue(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ze(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):k(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Ge(t);if(Ye({modifiers:n,properties:e})){var i=je(t);i&&r.push(i),o=o||Je({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)?(Pe[t.id].masterItemSubscriber=Pe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Pe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>He});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const _=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},I=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},M=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},P=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.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},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},G=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(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 A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return D(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 D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.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 j={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({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,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?P():w,L=s.defaultMeasure,A=void 0===L?O():L;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&G({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),I("qMaxStackedCells",b,v),I("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),_(g,t,n),h.qProperty=g;var D=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:D}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(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 U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Z={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}}},J={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:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||l,key:r||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)}n||(i.auto=!1,i.mode=a)}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||Z).colorModeOptions||Z.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=j.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=j.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(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")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function 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,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ae="conditionalColoring",De="measures",_e="qDef.conditionalColoring";const Ie={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ae,arrayName:De,itemPath:_e})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:_e,arrayName:De,quarantineName:Ae})}};var Me="qHyperCubeDef.qMeasures",Pe="measures",Oe="qHyperCubeDef.qDimensions",ke="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",Ge="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:Ge,arrayName:Pe,itemPath:ze}),we({properties:e,arrayPath:Oe,quarantineName:Ge,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:Ge,arrayName:Pe,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Ge,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:Ge,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:Ge,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:Ge,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:Ge,arrayName:Fe,itemPath:ze})}},He={hypercube:j,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Ie,conditionalShow:$e}})(),n.default})();var tt=Qe(et.exports);function rt(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o=n&&"rows"===n.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}const nt="qHyperCubeDef.qDimensions",ot="dimensions",it="qOtherTotalSpec.qTotalMode",at="totalMode",lt={quarantine(e){tt.quarantineArrayProp({properties:e,arrayPath:nt,quarantineName:at,arrayName:ot,itemPath:it})},unquarantine(e){tt.unquarantineArrayProp({properties:e,arrayPath:nt,quarantineName:at,arrayName:ot,itemPath:it})}};function st(e){const t=rt(e);return(e,r,n,o)=>{var i,a,l,s,u,c;const d=tt.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let m,h=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===h.length&&$e(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",h.concat());const b=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;b?(h=b,m=[...b],$e(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",h),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):h.length=0;const v=+(h.indexOf(-1)>-1),y=p+v;if(y>h.length)for(let e=h.length;e<y;e++)h.indexOf(e)<0&&h.push(e-v);for(let e=h.length-1;e>=0;e--)h[e]>=p&&h.splice(e,1);f>1&&h.indexOf(-1)<0?h.push(-1):f<2&&h.indexOf(-1)>-1&&h.splice(h.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&$e(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),m&&h&&m.length===h.length){for(let e=0;e<m.length;e++)if(m[e]!==h[e]){g=!1;break}g&&tt.unquarantineProperty(d.qProperty,"noOfLeftDims")}return tt.conditionalShow.unquarantine(d.qProperty),lt.unquarantine(d.qProperty),d}}function ut(e,t){var r,n,o;const i=null!==(r=null==e||null===(n=e.qProperty)||void 0===n||null===(n=n.qHyperCubeDef)||void 0===n?void 0:n.qInterColumnSortOrder)&&void 0!==r?r:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=tt.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;$e(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),tt.quarantineProperty(s.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete s.properties.qHyperCubeDef.qNoOfLeftDims;const f=null==s||null===(o=s.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;f&&(p=f,$e(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),$e(s,"data.0.interColumnSortOrder",p),delete s.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=p.length;e<c+d;e++)p.length<=e&&p.push(e);return tt.conditionalShow.quarantine(s.properties),lt.quarantine(s.properties),s}const ct={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},dt="12px",pt="nebula-table-utils-head-menu-button";let ft=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}({});const mt="nebula-table-utils-column-adjuster",ht=`${mt}-border`;let gt=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",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.AutoMin=80]="AutoMin",e}({}),bt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const vt="CLIENT_IM_5863_PVT_TEXT_ALIGN",yt="CLIENT_IM5847_PIVOT_LIMITATION";var xt,St;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(xt||(xt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(St||(St={}));var Et,Ct,wt,Rt,Lt=xt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Et||(Et={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor"}(Ct||(Ct={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(wt||(wt={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Rt||(Rt={}));const At="TOTAL_OFF",Dt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ct.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ct.CellForegroundColor}]};function _t(e,t,r){if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=r.properties.qHyperCubeDef.qNoOfLeftDims;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o}const It={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:bt.Auto,translation:"Common.Auto"},{value:bt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:bt.Pixels,translation:"Object.Table.Column.Pixels"},{value:bt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:bt.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:gt.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===bt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(gt.PixelsMin,Math.min(gt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:gt.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===bt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(gt.PercentageMin,Math.min(gt.PercentageMax,e.qDef.columnWidth.percentage)))}}},Mt=({key:e,translation:t,flags:r})=>{if(r.isEnabled(vt))return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},[e]:{ref:`qDef.${e}.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:t=>{var r;return void 0!==t.qDef[e]&&!(null!==(r=t.qDef[e])&&void 0!==r&&r.auto)}}}},Pt=e=>{var t,r;const{translator:n,anything:o,flags:i}=e;return{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{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},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:At,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:At,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&_t},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==At&&_t(e,0,r)}},dimensionLimits:i.isEnabled(yt)?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled(yt)?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled(yt)?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Dt,...Mt({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Mt({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...It}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Dt,...Mt({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Mt({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...It}}}}},Ot="12px",kt="Source Sans Pro, sans-serif",Tt="600",qt=15e3,Nt=15e3,Ft=4/3,zt=1;var Gt,$t;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Gt||(Gt={})),function(e){e.Solid="solid",e.None="none"}($t||($t={}));const Ht={display:"flex",justifyContent:"center",alignItems:"center"},Bt={borderStyle:"solid"},Wt={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},jt={lineHeight:"calc(1.3333333333333333)",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},Vt=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",lineBreak:"auto",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-all"}),Yt=(e,t)=>e>0?`${e}px ${$t.Solid} ${t}`:$t.None,Ut=(e,t,r,n)=>{const o=Number(!t||(null==n?void 0:n.right)),i=Number(!e||(null==n?void 0:n.bottom));return{borderRight:Yt(o,r),borderBottom:Yt(i,r),borderLeft:$t.None,borderTop:$t.None}},Kt=(e,t,r,n,o,i)=>{const a=Ut(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=Yt(2,o)),r||(a.borderLeft=Yt(1,o))),a},Xt=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=Yt(1,r)),t&&(n.borderRight=Yt(1,r)),n},Zt=(e,t,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,n){const o=n.theme.current(),i=r(o);return{color:i===Gt.Transparent.toString()?"none":i}}}),Jt={translation:"properties.pivot.grid",component:"panel-section",items:{rowHeightItem:{component:"items",ref:"components",key:"theme",items:{lineClamp:{component:"inline-wrapper",items:{rowHeight:{component:"dropdown",ref:"grid.lineClamp",translation:"ThemeStyleEditor.style.rowHeight",options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}}},border:Zt("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Gt.DividerLight})),divider:Zt("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Gt.DividerDark})),background:Zt("grid.background","properties.background",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.backgroundColor)&&void 0!==t?t:Gt.Transparent}))}}}},Qt=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},er=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:kt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Qt(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Je(n).filter((e=>!s.includes(e))).map((e=>Qt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),tr=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],rr=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Qt(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...tr.filter((e=>!a.includes(e))).map((e=>Qt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),nr=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return null==e||null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[r];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},or=({section:e,defaultFontStyle:t,translator:r,flags:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:er({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=nr(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:rr({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=nr(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Zt(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=nr(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Zt(`${e}.background`,"properties.background",(t=>{var r;return null!==(r=nr(t,e,"backgroundColor"))&&void 0!==r?r:Gt.Transparent}))}}}}),ir=({section:e,defaultFontStyle:t,fallbackBackground:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Zt(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=nr(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Zt(`${e}.background`,"properties.background",(t=>{var n,o;return null!==(n=null!==(o=nr(t,e,"backgroundColor"))&&void 0!==o?o:r)&&void 0!==n?n:Gt.Transparent}))}}}}),ar=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:or({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:or({section:"dimensionValues",translator:e,flags:t}),measureValueSection:or({section:"measureValues",translator:e,flags:t}),measureLabelSection:ir({section:"measureLabels"}),totalValuesSection:ir({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:ir({section:"nullValues",fallbackBackground:Gt.NullValueBackground}),gridSection:Jt}}]}),lr=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[ar(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qDimensions)||void 0===t?void 0:t.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}]}}}),sr="auto",ur={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:sr,translation:"Object.Table.SortingInSearch",options:[{value:sr,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function cr(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:Pt(e),sorting:ur,addons:ct,settings:lr(t,r)}}}function dr(e){return{support:{cssScaling:!1,snapshot:!1,export:!1,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:cr(e),importProperties:st(e),exportProperties:ut}}function pr(e,t){const[r,n]=b(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var fr={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_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_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 mr=({translator:e})=>(v((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(fr).forEach((t=>{e.add(fr[t])}))}}(e)),[e]),e);function hr(e,n){const o=t((()=>({isLoading:!0})),n),[i,a]=r((async()=>{try{return await e()}finally{o.isLoading=!1}}),n);return[i,o.isLoading,a]}var gr,br=k;gr=br.createRoot,br.hydrateRoot;function vr(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function yr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function xr(){}var Sr=.7,Er=1/Sr,Cr="\\s*([+-]?\\d+)\\s*",wr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lr=/^#([0-9a-f]{3,8})$/,Ar=new RegExp(`^rgb\\(${Cr},${Cr},${Cr}\\)$`),Dr=new RegExp(`^rgb\\(${Rr},${Rr},${Rr}\\)$`),_r=new RegExp(`^rgba\\(${Cr},${Cr},${Cr},${wr}\\)$`),Ir=new RegExp(`^rgba\\(${Rr},${Rr},${Rr},${wr}\\)$`),Mr=new RegExp(`^hsl\\(${wr},${Rr},${Rr}\\)$`),Pr=new RegExp(`^hsla\\(${wr},${Rr},${Rr},${wr}\\)$`),Or={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 kr(){return this.rgb().formatHex()}function Tr(){return this.rgb().formatRgb()}function qr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Lr.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Nr(t):3===r?new $r(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Fr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Fr(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=Ar.exec(e))?new $r(t[1],t[2],t[3],1):(t=Dr.exec(e))?new $r(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_r.exec(e))?Fr(t[1],t[2],t[3],t[4]):(t=Ir.exec(e))?Fr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Mr.exec(e))?Yr(t[1],t[2]/100,t[3]/100,1):(t=Pr.exec(e))?Yr(t[1],t[2]/100,t[3]/100,t[4]):Or.hasOwnProperty(e)?Nr(Or[e]):"transparent"===e?new $r(NaN,NaN,NaN,0):null}function Nr(e){return new $r(e>>16&255,e>>8&255,255&e,1)}function Fr(e,t,r,n){return n<=0&&(e=t=r=NaN),new $r(e,t,r,n)}function zr(e){return e instanceof xr||(e=qr(e)),e?new $r((e=e.rgb()).r,e.g,e.b,e.opacity):new $r}function Gr(e,t,r,n){return 1===arguments.length?zr(e):new $r(e,t,r,null==n?1:n)}function $r(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Hr(){return`#${Vr(this.r)}${Vr(this.g)}${Vr(this.b)}`}function Br(){const e=Wr(this.opacity);return`${1===e?"rgb(":"rgba("}${jr(this.r)}, ${jr(this.g)}, ${jr(this.b)}${1===e?")":`, ${e})`}`}function Wr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function jr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vr(e){return((e=jr(e))<16?"0":"")+e.toString(16)}function Yr(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Kr(e,t,r,n)}function Ur(e){if(e instanceof Kr)return new Kr(e.h,e.s,e.l,e.opacity);if(e instanceof xr||(e=qr(e)),!e)return new Kr;if(e instanceof Kr)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Kr(a,l,s,e.opacity)}function Kr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Xr(e){return(e=(e||0)%360)<0?e+360:e}function Zr(e){return Math.max(0,Math.min(1,e||0))}function Jr(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}vr(xr,qr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:kr,formatHex:kr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ur(this).formatHsl()},formatRgb:Tr,toString:Tr}),vr($r,Gr,yr(xr,{brighter(e){return e=null==e?Er:Math.pow(Er,e),new $r(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Sr:Math.pow(Sr,e),new $r(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $r(jr(this.r),jr(this.g),jr(this.b),Wr(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:Hr,formatHex:Hr,formatHex8:function(){return`#${Vr(this.r)}${Vr(this.g)}${Vr(this.b)}${Vr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Br,toString:Br})),vr(Kr,(function(e,t,r,n){return 1===arguments.length?Ur(e):new Kr(e,t,r,null==n?1:n)}),yr(xr,{brighter(e){return e=null==e?Er:Math.pow(Er,e),new Kr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Sr:Math.pow(Sr,e),new Kr(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 $r(Jr(e>=240?e-240:e+120,o,n),Jr(e,o,n),Jr(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Kr(Xr(this.h),Zr(this.s),Zr(this.l),Wr(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=Wr(this.opacity);return`${1===e?"hsl(":"hsla("}${Xr(this.h)}, ${100*Zr(this.s)}%, ${100*Zr(this.l)}%${1===e?")":`, ${e})`}`}}));const Qr=Math.PI/180,en=180/Math.PI,tn=.96422,rn=1,nn=.82521,on=4/29,an=6/29,ln=3*an*an,sn=an*an*an;function un(e){if(e instanceof cn)return new cn(e.l,e.a,e.b,e.opacity);if(e instanceof gn)return bn(e);e instanceof $r||(e=zr(e));var t,r,n=mn(e.r),o=mn(e.g),i=mn(e.b),a=dn((.2225045*n+.7168786*o+.0606169*i)/rn);return n===o&&o===i?t=r=a:(t=dn((.4360747*n+.3850649*o+.1430804*i)/tn),r=dn((.0139322*n+.0971045*o+.7141733*i)/nn)),new cn(116*a-16,500*(t-a),200*(a-r),e.opacity)}function cn(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function dn(e){return e>sn?Math.pow(e,1/3):e/ln+on}function pn(e){return e>an?e*e*e:ln*(e-on)}function fn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hn(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof gn)return new gn(e.h,e.c,e.l,e.opacity);if(e instanceof cn||(e=un(e)),0===e.a&&0===e.b)return new gn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*en;return new gn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new gn(e,t,r,null==n?1:n)}function gn(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function bn(e){if(isNaN(e.h))return new cn(e.l,0,0,e.opacity);var t=e.h*Qr;return new cn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}vr(cn,(function(e,t,r,n){return 1===arguments.length?un(e):new cn(e,t,r,null==n?1:n)}),yr(xr,{brighter(e){return new cn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new cn(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 $r(fn(3.1338561*(t=tn*pn(t))-1.6168667*(e=rn*pn(e))-.4906146*(r=nn*pn(r))),fn(-.9787684*t+1.9161415*e+.033454*r),fn(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),vr(gn,hn,yr(xr,{brighter(e){return new gn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new gn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return bn(this).rgb()}}));const vn=e=>{if(e){const t=Gr(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},yn=(e,t,r,n)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==r?void 0:r(e),u=null==n?void 0:n(e),c=s||i||u,d=(e=>!!e&&0===Gr(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:vn(d?l:c),isTransparent:d}},xn=3,Sn="N";function En(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function Cn({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=xn}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=v((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=He(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=He((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=En(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(Sn).width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}function wn(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 Rn="$$material";function Ln(){return Ln=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},Ln.apply(this,arguments)}function An(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 Dn=function(){return Dn=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},Dn.apply(this,arguments)};function _n(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 In="-ms-",Mn="-moz-",Pn="-webkit-",On="comm",kn="rule",Tn="decl",qn="@import",Nn="@keyframes",Fn="@layer",zn=Math.abs,Gn=String.fromCharCode,$n=Object.assign;function Hn(e){return e.trim()}function Bn(e,t){return(e=t.exec(e))?e[0]:e}function Wn(e,t,r){return e.replace(t,r)}function jn(e,t,r){return e.indexOf(t,r)}function Vn(e,t){return 0|e.charCodeAt(t)}function Yn(e,t,r){return e.slice(t,r)}function Un(e){return e.length}function Kn(e){return e.length}function Xn(e,t){return t.push(e),e}function Zn(e,t){return e.filter((function(e){return!Bn(e,t)}))}var Jn=1,Qn=1,eo=0,to=0,ro=0,no="";function oo(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Jn,column:Qn,length:a,return:"",siblings:l}}function io(e,t){return $n(oo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ao(e){for(;e.root;)e=io(e.root,{children:[e]});Xn(e,e.siblings)}function lo(){return ro=to>0?Vn(no,--to):0,Qn--,10===ro&&(Qn=1,Jn--),ro}function so(){return ro=to<eo?Vn(no,to++):0,Qn++,10===ro&&(Qn=1,Jn++),ro}function uo(){return Vn(no,to)}function co(){return to}function po(e,t){return Yn(no,e,t)}function fo(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 mo(e){return Hn(po(to-1,bo(91===e?e+2:40===e?e+1:e)))}function ho(e){for(;(ro=uo())&&ro<33;)so();return fo(e)>2||fo(ro)>3?"":" "}function go(e,t){for(;--t&&so()&&!(ro<48||ro>102||ro>57&&ro<65||ro>70&&ro<97););return po(e,co()+(t<6&&32==uo()&&32==so()))}function bo(e){for(;so();)switch(ro){case e:return to;case 34:case 39:34!==e&&39!==e&&bo(ro);break;case 40:41===e&&bo(e);break;case 92:so()}return to}function vo(e,t){for(;so()&&e+ro!==57&&(e+ro!==84||47!==uo()););return"/*"+po(t,to-1)+"*"+Gn(47===e?e:so())}function yo(e){for(;!fo(uo());)so();return po(e,to)}function xo(e){return function(e){return no="",e}(So("",null,null,null,[""],e=function(e){return Jn=Qn=1,eo=Un(no=e),to=0,[]}(e),0,[0],e))}function So(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=so()){case 40:if(108!=m&&58==Vn(C,d-1)){-1!=jn(C+=Wn(mo(v),"&","&\f"),"&\f",zn(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=mo(v);break;case 9:case 10:case 13:case 32:C+=ho(m);break;case 92:C+=go(co()-1,7);continue;case 47:switch(uo()){case 42:case 47:Xn(Co(vo(so(),co()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=Un(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Wn(C,/\f/g,"")),f>0&&Un(C)-d&&Xn(f>32?wo(C+";",n,r,d-1,s):wo(Wn(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(Xn(E=Eo(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)So(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Vn(C,3)?100:p){case 100:case 108:case 109:case 115:So(e,E,E,n&&Xn(Eo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:So(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+Un(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==lo())continue;switch(C+=Gn(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Un(C)-1)*b,b=1;break;case 64:45===uo()&&(C+=mo(so())),p=uo(),c=d=Un(y=C+=yo(co())),v++;break;case 45:45===m&&2==Un(C)&&(h=0)}}return i}function Eo(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Kn(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Yn(e,p+1,p=zn(g=a[h])),x=e;v<m;++v)(x=Hn(g>0?f[v]+" "+y:Wn(y,/&\f/g,f[v])))&&(s[b++]=x);return oo(e,t,r,0===o?kn:l,s,u,c,d)}function Co(e,t,r,n){return oo(e,t,r,On,Gn(ro),Yn(e,2,-2),0,n)}function wo(e,t,r,n,o){return oo(e,t,r,Tn,Yn(e,0,n),Yn(e,n+1,-1),n,o)}function Ro(e,t,r){switch(function(e,t){return 45^Vn(e,0)?(((t<<2^Vn(e,0))<<2^Vn(e,1))<<2^Vn(e,2))<<2^Vn(e,3):0}(e,t)){case 5103:return Pn+"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 Pn+e+e;case 4789:return Mn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pn+e+Mn+e+In+e+e;case 5936:switch(Vn(e,t+11)){case 114:return Pn+e+In+Wn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pn+e+In+Wn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pn+e+In+Wn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Pn+e+In+e+e;case 6165:return Pn+e+In+"flex-"+e+e;case 5187:return Pn+e+Wn(e,/(\w+).+(:[^]+)/,Pn+"box-$1$2"+In+"flex-$1$2")+e;case 5443:return Pn+e+In+"flex-item-"+Wn(e,/flex-|-self/g,"")+(Bn(e,/flex-|baseline/)?"":In+"grid-row-"+Wn(e,/flex-|-self/g,""))+e;case 4675:return Pn+e+In+"flex-line-pack"+Wn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Pn+e+In+Wn(e,"shrink","negative")+e;case 5292:return Pn+e+In+Wn(e,"basis","preferred-size")+e;case 6060:return Pn+"box-"+Wn(e,"-grow","")+Pn+e+In+Wn(e,"grow","positive")+e;case 4554:return Pn+Wn(e,/([^-])(transform)/g,"$1"+Pn+"$2")+e;case 6187:return Wn(Wn(Wn(e,/(zoom-|grab)/,Pn+"$1"),/(image-set)/,Pn+"$1"),e,"")+e;case 5495:case 3959:return Wn(e,/(image-set\([^]*)/,Pn+"$1$`$1");case 4968:return Wn(Wn(e,/(.+:)(flex-)?(.*)/,Pn+"box-pack:$3"+In+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pn+e+e;case 4200:if(!Bn(e,/flex-|baseline/))return In+"grid-column-align"+Yn(e,t)+e;break;case 2592:case 3360:return In+Wn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Bn(e.props,/grid-\w+-end/)}))?~jn(e+(r=r[t].value),"span",0)?e:In+Wn(e,"-start","")+e+In+"grid-row-span:"+(~jn(r,"span",0)?Bn(r,/\d+/):+Bn(r,/\d+/)-+Bn(e,/\d+/))+";":In+Wn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Bn(e.props,/grid-\w+-start/)}))?e:In+Wn(Wn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Wn(e,/(.+)-inline(.+)/,Pn+"$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(Un(e)-1-t>6)switch(Vn(e,t+1)){case 109:if(45!==Vn(e,t+4))break;case 102:return Wn(e,/(.+:)(.+)-([^]+)/,"$1"+Pn+"$2-$3$1"+Mn+(108==Vn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~jn(e,"stretch",0)?Ro(Wn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Wn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return In+r+":"+n+l+(o?In+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===Vn(e,t+6))return Wn(e,":",":"+Pn)+e;break;case 6444:switch(Vn(e,45===Vn(e,14)?18:11)){case 120:return Wn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Pn+(45===Vn(e,14)?"inline-":"")+"box$3$1"+Pn+"$2$3$1"+In+"$2box$3")+e;case 100:return Wn(e,":",":"+In)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Wn(e,"scroll-","scroll-snap-")+e}return e}function Lo(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Ao(e,t,r,n){switch(e.type){case Fn:if(e.children.length)break;case qn:case Tn:return e.return=e.return||e.value;case On:return"";case Nn:return e.return=e.value+"{"+Lo(e.children,n)+"}";case kn:if(!Un(e.value=e.props.join(",")))return""}return Un(r=Lo(e.children,n))?e.return=e.value+"{"+r+"}":""}function Do(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Tn:return void(e.return=Ro(e.value,e.length,r));case Nn:return Lo([io(e,{value:Wn(e.value,"@","@"+Pn)})],n);case kn:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Bn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ao(io(e,{props:[Wn(t,/:(read-\w+)/,":"+Mn+"$1")]})),ao(io(e,{props:[t]})),$n(e,{props:Zn(r,n)});break;case"::placeholder":ao(io(e,{props:[Wn(t,/:(plac\w+)/,":"+Pn+"input-$1")]})),ao(io(e,{props:[Wn(t,/:(plac\w+)/,":"+Mn+"$1")]})),ao(io(e,{props:[Wn(t,/:(plac\w+)/,In+"input-$1")]})),ao(io(e,{props:[t]})),$n(e,{props:Zn(r,n)})}return""}))}}var _o={animationIterationCount: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},Io="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Mo="active",Po="data-styled-version",Oo="6.1.6",ko="/*!sc*/\n",To="undefined"!=typeof window&&"HTMLElement"in window,qo=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)),No={},Fo=Object.freeze([]),zo=Object.freeze({});function Go(e,t,r){return void 0===r&&(r=zo),e.theme!==r.theme&&e.theme||t||r.theme}var $o=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"]),Ho=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Bo=/(^-|-$)/g;function Wo(e){return e.replace(Ho,"-").replace(Bo,"")}var jo=/(a)(d)/gi,Vo=52,Yo=function(e){return String.fromCharCode(e+(e>25?39:97))};function Uo(e){var t,r="";for(t=Math.abs(e);t>Vo;t=t/Vo|0)r=Yo(t%Vo)+r;return(Yo(t%Vo)+r).replace(jo,"$1-$2")}var Ko,Xo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Zo=function(e){return Xo(5381,e)};function Jo(e){return Uo(Zo(e)>>>0)}function Qo(e){return"string"==typeof e&&!0}var ei="function"==typeof Symbol&&Symbol.for,ti=ei?Symbol.for("react.memo"):60115,ri=ei?Symbol.for("react.forward_ref"):60112,ni={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ii={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ai=((Ko={})[ri]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ko[ti]=ii,Ko);function li(e){return("type"in(t=e)&&t.type.$$typeof)===ti?ii:"$$typeof"in e?ai[e.$$typeof]:ni;var t}var si=Object.defineProperty,ui=Object.getOwnPropertyNames,ci=Object.getOwnPropertySymbols,di=Object.getOwnPropertyDescriptor,pi=Object.getPrototypeOf,fi=Object.prototype;function mi(e,t,r){if("string"!=typeof t){if(fi){var n=pi(t);n&&n!==fi&&mi(e,n,r)}var o=ui(t);ci&&(o=o.concat(ci(t)));for(var i=li(e),a=li(t),l=0;l<o.length;++l){var s=o[l];if(!(s in oi||r&&r[s]||a&&s in a||i&&s in i)){var u=di(t,s);try{si(e,s,u)}catch(e){}}}}return e}function hi(e){return"function"==typeof e}function gi(e){return"object"==typeof e&&"styledComponentId"in e}function bi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function vi(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function yi(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function xi(e,t,r){if(void 0===r&&(r=!1),!r&&!yi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=xi(e[n],t[n]);else if(yi(t))for(var n in t)e[n]=xi(e[n],t[n]);return e}function Si(e,t){Object.defineProperty(e,"toString",{value:t})}function Ei(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 Ci=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 Ei(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(ko);return t},e}(),wi=new Map,Ri=new Map,Li=1,Ai=function(e){if(wi.has(e))return wi.get(e);for(;Ri.has(Li);)Li++;var t=Li++;return wi.set(e,t),Ri.set(t,e),t},Di=function(e,t){Li=t+1,wi.set(e,t),Ri.set(t,e)},_i="style[".concat(Io,"][").concat(Po,'="').concat(Oo,'"]'),Ii=new RegExp("^".concat(Io,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Mi=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)},Pi=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(ko),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(Ii);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Di(c,u),Mi(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var Oi=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Io,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Io,Mo),n.setAttribute(Po,Oo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},ki=function(){function e(e){this.element=Oi(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw Ei(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}(),Ti=function(){function e(e){this.element=Oi(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),qi=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}(),Ni=To,Fi={isServer:!To,useCSSOMInjection:!qo},zi=function(){function e(e,t,r){void 0===e&&(e=zo),void 0===t&&(t={});var n=this;this.options=Dn(Dn({},Fi),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&To&&Ni&&(Ni=!1,function(e){for(var t=document.querySelectorAll(_i),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Io)!==Mo&&(Pi(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Si(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Ri.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||0===a.length)return"continue";var l="".concat(Io,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(ko)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Ai(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Dn(Dn({},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 qi(r):t?new ki(r):new Ti(r)}(this.options),new Ci(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(Ai(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(Ai(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Ai(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Gi=/&/g,$i=/^\s*\/\/.*$/gm;function Hi(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=Hi(e.children,t)),e}))}var Bi=new zi,Wi=function(e){var t,r,n,o=void 0===e?zo:e,i=o.options,a=void 0===i?zo:i,l=o.plugins,s=void 0===l?Fo:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===kn&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Gi,r).replace(n,u))})),a.prefix&&c.push(Do),c.push(Ao);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace($i,""),u=xo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Hi(u,a.namespace));var d,p=[];return Lo(u,function(e){var t=Kn(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||Ei(15),Xo(e,t.name)}),5381).toString():"",d}(),ji=y.createContext({shouldForwardProp:void 0,styleSheet:Bi,stylis:Wi});function Vi(){return S(ji)}ji.Consumer;var Yi=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Wi);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,Si(this,(function(){throw Ei(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Wi),this.name+e.hash},e}(),Ui=function(e){return e>="A"&&e<="Z"};function Ki(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Ui(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Xi=function(e){return null==e||!1===e||""===e},Zi=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Xi(i)&&(Array.isArray(i)&&i.isCss||hi(i)?n.push("".concat(Ki(o),":"),i,";"):yi(i)?n.push.apply(n,_n(_n(["".concat(o," {")],Zi(i),!1),["}"],!1)):n.push("".concat(Ki(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in _o||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ji(e,t,r,n){return Xi(e)?[]:gi(e)?[".".concat(e.styledComponentId)]:hi(e)?!hi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ji(e(t),t,r,n):e instanceof Yi?r?(e.inject(r,n),[e.getName(n)]):[e]:yi(e)?Zi(e):Array.isArray(e)?Array.prototype.concat.apply(Fo,e.map((function(e){return Ji(e,t,r,n)}))):[e.toString()];var o}function Qi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(hi(r)&&!gi(r))return!1}return!0}var ea=Zo(Oo),ta=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Qi(e),this.componentId=t,this.baseHash=Xo(ea,t),this.baseStyle=r,zi.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=bi(n,this.staticRulesId);else{var o=vi(Ji(this.rules,e,t,r)),i=Uo(Xo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=bi(n,i),this.staticRulesId=i}else{for(var l=Xo(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=vi(Ji(c,e,t,r));l=Xo(l,d+u),s+=d}}if(s){var p=Uo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=bi(n,p)}}return n},e}(),ra=y.createContext(void 0);ra.Consumer;var na={};new Set;function oa(e,t,r){var n=gi(e),o=e,i=!Qo(e),a=t.attrs,l=void 0===a?Fo:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Wo(e);na[r]=(na[r]||0)+1;var n="".concat(r,"-").concat(Jo(Oo+r+na[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Qo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Wo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new ta(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,l=e.styledComponentId,s=e.target,u=y.useContext(ra),c=Vi(),d=e.shouldForwardProp||c.shouldForwardProp,p=Go(t,u,i)||zo,f=function(e,t,r){for(var n,o=Dn(Dn({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=hi(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?bi(o[l],a[l]):"style"===l?Dn(Dn({},o[l]),a[l]):a[l]}return t.className&&(o.className=bi(o.className,t.className)),o}(n,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var r=Vi();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=bi(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[Qo(m)&&!$o.has(m)?"class":"className"]=v,h.ref=r,x(m,h)}(S,e,t)}v.displayName=d;var S=y.forwardRef(v);return S.attrs=f,S.componentStyle=b,S.displayName=d,S.shouldForwardProp=m,S.foldedComponentIds=n?bi(o.foldedComponentIds,o.styledComponentId):"",S.styledComponentId=p,S.target=n?o.target:e,Object.defineProperty(S,"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++)xi(e,o[n],!0);return e}({},o.defaultProps,e):e}}),Si(S,(function(){return".".concat(S.styledComponentId)})),i&&mi(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function ia(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 aa=function(e){return Object.assign(e,{isCss:!0})};function la(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(hi(e)||yi(e))return aa(Ji(ia(Fo,_n([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ji(n):aa(Ji(ia(n,t)))}function sa(e,t,r){if(void 0===r&&(r=zo),!t)throw Ei(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,la.apply(void 0,_n([n],o,!1)))};return n.attrs=function(n){return sa(e,t,Dn(Dn({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return sa(e,t,Dn(Dn({},r),n))},n}var ua=function(e){return sa(oa,e)},ca=ua;$o.forEach((function(e){ca[e]=ua(e)}));var da=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Qi(e),zi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(vi(Ji(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&&zi.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function pa(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=vi(la.apply(void 0,_n([e],t,!1))),o=Jo(n);return new Yi(o,n)}var fa={exports:{}};function ma(){}function ha(){}ha.resetWarningCache=ma;fa.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:ha,resetWarningCache:ma};return r.PropTypes=r,r}();var ga=Qe(fa.exports);const ba=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=la.apply(void 0,_n([e],t,!1)),o="sc-global-".concat(Jo(JSON.stringify(n))),i=new da(n,o),a=function(e){var t=Vi(),r=y.useContext(ra),n=y.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,No,r,o);else{var l=Dn(Dn({},t),{theme:Go(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return y.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}));var va=ba;
10
10
  /**
11
- * @mui/styled-engine v5.15.3
11
+ * @mui/styled-engine-sc v6.0.0-alpha.13
12
12
  *
13
13
  * @license MIT
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
- */function Vi(e,t){return Pi(e,t)}function Bi(){return Bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bi.apply(this,arguments)}function Gi(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ui.apply(this,arguments)}function Yi(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Ki(e){if(!Yi(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Ki(e[n])})),t}function Xi(e,t,n={clone:!0}){const r=n.clone?Ui({},e):e;return Yi(e)&&Yi(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Yi(t[o])&&o in e&&Yi(e[o])?r[o]=Xi(e[o],t[o],n):n.clone?r[o]=Yi(t[o])?Ki(t[o]):t[o]:r[o]=t[o])})),r}function Zi(e){if("string"!=typeof e)throw new Error(rr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ji(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Qi(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function ea(e){return e&&e.ownerDocument||document}function ta(e){return ea(e).defaultView||window}function na(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var ra="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let oa=0;const ia=y["useId".toString()];function aa(e){if(void 0!==ia){const t=ia();return null!=e?e:t}return function(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect((()=>{null==t&&(oa+=1,n(`mui-${oa}`))}),[t]),r}(e)}function la({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function sa(e){const t=y.useRef(e);return ra((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function ua(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{na(e,t)}))}),e)}let ca,da=!0,pa=!1;const fa={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 ma(e){e.metaKey||e.altKey||e.ctrlKey||(da=!0)}function ha(){da=!1}function ga(){"hidden"===this.visibilityState&&pa&&(da=!0)}function va(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return da||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!fa[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ba(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ma,!0),t.addEventListener("mousedown",ha,!0),t.addEventListener("pointerdown",ha,!0),t.addEventListener("touchstart",ha,!0),t.addEventListener("visibilitychange",ga,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!va(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(pa=!0,window.clearTimeout(ca),ca=window.setTimeout((()=>{pa=!1}),100),t.current=!1,!0)},ref:e}}function ya(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function xa(e,t){const n=Ui({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ui({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Ui({},i),Object.keys(o).forEach((e=>{n[r][e]=xa(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Sa(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const Ea=e=>e;var wa=(()=>{let e=Ea;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ea}}})();const Ca={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 Da(e,t,n="Mui"){const r=Ca[t];return r?`${n}-${r}`:`${wa.generate(e)}-${t}`}function Ra(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Da(e,t,n)})),r}const La=["values","unit","step"],Ia=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)=>Bi({},e,{[t.key]:t.val})),{})};var Ma={borderRadius:4};function Aa(e,t){return t?Xi(e,t,{clone:!1}):e}const qa={xs:0,sm:600,md:900,lg:1200,xl:1536},Pa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qa[e]}px)`};function ka(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Pa;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Pa;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||qa).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Oa(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Ta(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Oa(e,n)||r,t&&(o=t(o,r,e)),o}function _a(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Oa(e.theme,r)||{};return ka(e,i,(e=>{let r=Ta(a,o,e);return e===r&&"string"==typeof e&&(r=Ta(a,o,`${t}${"default"===e?"":Zi(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Na={m:"margin",p:"padding"},Fa={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ha={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$a=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Ha[e])return[e];e=Ha[e]}const[t,n]=e.split(""),r=Na[t],o=Fa[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),za=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ja=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Wa(e,t,n,r){var o;const i=null!=(o=Oa(e,t,!1))?o:n;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 Va(e){return Wa(e,"spacing",8)}function Ba(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Ga(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Ba(t,n),e)),{})}($a(n),r);return ka(e,e[n],o)}function Ua(e,t){const n=Va(e.theme);return Object.keys(e).map((r=>Ga(e,t,r,n))).reduce(Aa,{})}function Ya(e){return Ua(e,za)}function Ka(e){return Ua(e,ja)}function Xa(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Aa(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Za(e){return"number"!=typeof e?e:`${e}px solid`}function Ja(e,t){return _a({prop:e,themeKey:"borders",transform:t})}Ya.propTypes={},Ya.filterProps=za,Ka.propTypes={},Ka.filterProps=ja;const Qa=Ja("border",Za),el=Ja("borderTop",Za),tl=Ja("borderRight",Za),nl=Ja("borderBottom",Za),rl=Ja("borderLeft",Za),ol=Ja("borderColor"),il=Ja("borderTopColor"),al=Ja("borderRightColor"),ll=Ja("borderBottomColor"),sl=Ja("borderLeftColor"),ul=Ja("outline",Za),cl=Ja("outlineColor"),dl=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Wa(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Ba(t,e)});return ka(e,e.borderRadius,n)}return null};dl.propTypes={},dl.filterProps=["borderRadius"],Xa(Qa,el,tl,nl,rl,ol,il,al,ll,sl,dl,ul,cl);const pl=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Wa(e.theme,"spacing",8),n=e=>({gap:Ba(t,e)});return ka(e,e.gap,n)}return null};pl.propTypes={},pl.filterProps=["gap"];const fl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Wa(e.theme,"spacing",8),n=e=>({columnGap:Ba(t,e)});return ka(e,e.columnGap,n)}return null};fl.propTypes={},fl.filterProps=["columnGap"];const ml=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Wa(e.theme,"spacing",8),n=e=>({rowGap:Ba(t,e)});return ka(e,e.rowGap,n)}return null};ml.propTypes={},ml.filterProps=["rowGap"];function hl(e,t){return"grey"===t?t:e}Xa(pl,fl,ml,_a({prop:"gridColumn"}),_a({prop:"gridRow"}),_a({prop:"gridAutoFlow"}),_a({prop:"gridAutoColumns"}),_a({prop:"gridAutoRows"}),_a({prop:"gridTemplateColumns"}),_a({prop:"gridTemplateRows"}),_a({prop:"gridTemplateAreas"}),_a({prop:"gridArea"}));function gl(e){return e<=1&&0!==e?100*e+"%":e}Xa(_a({prop:"color",themeKey:"palette",transform:hl}),_a({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:hl}),_a({prop:"backgroundColor",themeKey:"palette",transform:hl}));const vl=_a({prop:"width",transform:gl}),bl=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||qa[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:gl(t)}};return ka(e,e.maxWidth,t)}return null};bl.filterProps=["maxWidth"];const yl=_a({prop:"minWidth",transform:gl}),xl=_a({prop:"height",transform:gl}),Sl=_a({prop:"maxHeight",transform:gl}),El=_a({prop:"minHeight",transform:gl});_a({prop:"size",cssProperty:"width",transform:gl}),_a({prop:"size",cssProperty:"height",transform:gl});Xa(vl,bl,yl,xl,Sl,El,_a({prop:"boxSizing"}));var wl={border:{themeKey:"borders",transform:Za},borderTop:{themeKey:"borders",transform:Za},borderRight:{themeKey:"borders",transform:Za},borderBottom:{themeKey:"borders",transform:Za},borderLeft:{themeKey:"borders",transform:Za},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Za},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dl},color:{themeKey:"palette",transform:hl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:hl},backgroundColor:{themeKey:"palette",transform:hl},p:{style:Ka},pt:{style:Ka},pr:{style:Ka},pb:{style:Ka},pl:{style:Ka},px:{style:Ka},py:{style:Ka},padding:{style:Ka},paddingTop:{style:Ka},paddingRight:{style:Ka},paddingBottom:{style:Ka},paddingLeft:{style:Ka},paddingX:{style:Ka},paddingY:{style:Ka},paddingInline:{style:Ka},paddingInlineStart:{style:Ka},paddingInlineEnd:{style:Ka},paddingBlock:{style:Ka},paddingBlockStart:{style:Ka},paddingBlockEnd:{style:Ka},m:{style:Ya},mt:{style:Ya},mr:{style:Ya},mb:{style:Ya},ml:{style:Ya},mx:{style:Ya},my:{style:Ya},margin:{style:Ya},marginTop:{style:Ya},marginRight:{style:Ya},marginBottom:{style:Ya},marginLeft:{style:Ya},marginX:{style:Ya},marginY:{style:Ya},marginInline:{style:Ya},marginInlineStart:{style:Ya},marginInlineEnd:{style:Ya},marginBlock:{style:Ya},marginBlockStart:{style:Ya},marginBlockEnd:{style:Ya},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:pl},rowGap:{style:ml},columnGap:{style:fl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:gl},maxWidth:{style:bl},minWidth:{transform:gl},height:{transform:gl},maxHeight:{transform:gl},minHeight:{transform:gl},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Cl=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Oa(n,l)||{};if(u)return u(o);return ka(o,t,(t=>{let n=Ta(c,s,t);return t===n&&"string"==typeof t&&(n=Ta(c,s,`${e}${"default"===t?"":Zi(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:wl;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Aa(s,e(n,o,i,a));else{const e=ka({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Aa(s,e):s[n]=t({sx:o,theme:i})}else s=Aa(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Cl.filterProps=["sx"];var Dl=Cl;const Rl=["breakpoints","palette","spacing","shape"];function Ll(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Gi(e,Rl),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Gi(e,La),i=Ia(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Bi({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=Va({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Xi({breakpoints:l,direction:"ltr",components:{},palette:Bi({mode:"light"},r),spacing:s,shape:Bi({},Ma,i)},a);return u=t.reduce(((e,t)=>Xi(e,t)),u),u.unstable_sxConfig=Bi({},wl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Dl({sx:e,theme:this})},u}function Il(e=null){const t=y.useContext(fi);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Ml=Ll();function Al(e=Ml){return Il(e)}function ql({styles:e,themeId:t,defaultTheme:n={}}){const r=Al(n),o="function"==typeof e?e(t&&r[t]||r):e;return ji.jsx(Wi,{styles:o})}const Pl=["sx"],kl=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:wl;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Ol(e){const{sx:t}=e,n=Gi(e,Pl),{systemProps:r,otherProps:o}=kl(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Yi(n)?Bi({},r,n):r}:Bi({},r,t),Bi({},o,{sx:i})}function Tl(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Tl(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function _l(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Tl(e))&&(r&&(r+=" "),r+=t);return r}const Nl=["className","component"];const Fl=["variant"];function Hl(e){return 0===e.length}function $l(e){const{variant:t}=e,n=Gi(e,Fl);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Hl(r)?e[t]:Zi(e[t]):`${Hl(r)?t:Zi(t)}${Zi(e[t].toString())}`})),r}const zl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const jl=e=>{let t=0;const n={};return e&&e.forEach((e=>{let r="";"function"==typeof e.props?(r=`callback${t}`,t+=1):r=$l(e.props),n[r]=e.style})),n},Wl=(e,t,n)=>{const{ownerState:r={}}=e,o=[];let i=0;return n&&n.forEach((n=>{let a=!0;if("function"==typeof n.props){const t=Bi({},e,r);a=n.props(t)}else Object.keys(n.props).forEach((t=>{r[t]!==n.props[t]&&e[t]!==n.props[t]&&(a=!1)}));a&&("function"==typeof n.props?o.push(t[`callback${i}`]):o.push(t[$l(n.props)])),"function"==typeof n.props&&(i+=1)})),o};function Vl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Bl=Ll(),Gl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ul({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Yl(e){return e?(t,n)=>n[e]:null}const Kl=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(Bi({},t,{theme:Ul(Bi({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){return[o,...Wl(t,jl(i),i)]}return o};function Xl({props:e,name:t,defaultTheme:n,themeId:r}){let o=Al(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?xa(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function Zl(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Jl(e){if(e.type)return e;if("#"===e.charAt(0))return Jl(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(rr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(rr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Ql(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function es(e){let t="hsl"===(e=Jl(e)).type||"hsla"===e.type?Jl(function(e){e=Jl(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Ql({type:l,values:s})}(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 ts(e,t){return e=Jl(e),t=Zl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ql(e)}function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ns.apply(this,arguments)}var rs=y.createContext(null);function os(){return y.useContext(rs)}var is="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function as(e){const{children:t,theme:n}=e,r=os(),o=y.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return ns({},e,t)}(r,n);return null!=e&&(e[is]=null!==r),e}),[n,r]);return ji.jsx(rs.Provider,{value:o,children:t})}const ls={};function ss(e,t,n,r=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Bi({},t,{[e]:i}):i;return r?()=>a:a}return Bi({},t,e?{[e]:n}:n)}),[e,t,n,r])}function us(e){const{children:t,theme:n,themeId:r}=e,o=Il(ls),i=os()||ls,a=ss(r,o,n),l=ss(r,i,n,!0);return ji.jsx(as,{theme:l,children:ji.jsx(fi.Provider,{value:a,children:t})})}var cs={black:"#000",white:"#fff"};var ds={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"};var ps={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var fs={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"};var ms={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"};var hs={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"};var gs={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var vs={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"};const bs=["mode","contrastThreshold","tonalOffset"],ys={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:cs.white,default:cs.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}},xs={text:{primary:cs.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:cs.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 Ss(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Jl(e),t=Zl(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ql(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Jl(e),t=Zl(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 n=0;n<3;n+=1)e.values[n]*=1-t;return Ql(e)}(e.main,i)))}function Es(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ar(e,bs),i=e.primary||function(e="light"){return"dark"===e?{main:hs[200],light:hs[50],dark:hs[400]}:{main:hs[700],light:hs[400],dark:hs[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ps[200],light:ps[50],dark:ps[400]}:{main:ps[500],light:ps[300],dark:ps[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:fs[500],light:fs[300],dark:fs[700]}:{main:fs[700],light:fs[400],dark:fs[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:gs[400],light:gs[300],dark:gs[700]}:{main:gs[700],light:gs[500],dark:gs[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:vs[400],light:vs[300],dark:vs[700]}:{main:vs[800],light:vs[500],dark:vs[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:ms[400],light:ms[300],dark:ms[700]}:{main:"#ed6c02",light:ms[500],dark:ms[900]}}(t);function d(e){const t=function(e,t){const n=es(e),r=es(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,xs.text.primary)>=n?xs.text.primary:ys.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ir({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(rr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(rr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ss(e,"light",o,r),Ss(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:xs,light:ys};return Xi(ir({common:ir({},cs),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:ds,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const ws=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Cs={textTransform:"uppercase"},Ds='"Roboto", "Helvetica", "Arial", sans-serif';function Rs(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ds,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=ar(n,ws),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return ir({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Ds?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Cs),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Cs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xi(ir({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Ls(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Is=["none",Ls(0,2,1,-1,0,1,1,0,0,1,3,0),Ls(0,3,1,-2,0,2,2,0,0,1,5,0),Ls(0,3,3,-2,0,3,4,0,0,1,8,0),Ls(0,2,4,-1,0,4,5,0,0,1,10,0),Ls(0,3,5,-1,0,5,8,0,0,1,14,0),Ls(0,3,5,-1,0,6,10,0,0,1,18,0),Ls(0,4,5,-2,0,7,10,1,0,2,16,1),Ls(0,5,5,-3,0,8,10,1,0,3,14,2),Ls(0,5,6,-3,0,9,12,1,0,3,16,2),Ls(0,6,6,-3,0,10,14,1,0,4,18,3),Ls(0,6,7,-4,0,11,15,1,0,4,20,3),Ls(0,7,8,-4,0,12,17,2,0,5,22,4),Ls(0,7,8,-4,0,13,19,2,0,5,24,4),Ls(0,7,9,-4,0,14,21,2,0,5,26,4),Ls(0,8,9,-5,0,15,22,2,0,6,28,5),Ls(0,8,10,-5,0,16,24,2,0,6,30,5),Ls(0,8,11,-5,0,17,26,2,0,6,32,5),Ls(0,9,11,-5,0,18,28,2,0,7,34,6),Ls(0,9,12,-6,0,19,29,2,0,7,36,6),Ls(0,10,13,-6,0,20,31,3,0,8,38,7),Ls(0,10,13,-6,0,21,33,3,0,8,40,7),Ls(0,10,14,-6,0,22,35,3,0,8,42,7),Ls(0,11,14,-7,0,23,36,3,0,9,44,8),Ls(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ms=["duration","easing","delay"],As={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)"},qs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ps(e){return`${Math.round(e)}ms`}function ks(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Os(e){const t=ir({},As,e.easing),n=ir({},qs,e.duration);return ir({getAutoHeightDuration:ks,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return ar(r,Ms),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ps(o)} ${i} ${"string"==typeof a?a:Ps(a)}`)).join(",")}},e,{easing:t,duration:n})}var Ts={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const _s=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ns(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ar(e,_s);if(e.vars)throw new Error(rr(18));const l=Es(r),s=Ll(e);let u=Xi(s,{mixins:(c=s.breakpoints,d=n,ir({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Is.slice(),typography:Rs(l,i),transitions:Os(o),zIndex:ir({},Ts)});var c,d;return u=Xi(u,a),u=t.reduce(((e,t)=>Xi(e,t)),u),u.unstable_sxConfig=ir({},wl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Dl({sx:e,theme:this})},u}var Fs=Ns();function Hs(){const e=Al(Fs);return e[or]||e}function $s({props:e,name:t}){return Xl({props:e,name:t,defaultTheme:Fs,themeId:or})}const zs=e=>Vl(e)&&"classes"!==e,js=Vl,Ws=function(e={}){const{themeId:t,defaultTheme:n=Bl,rootShouldForwardProp:r=Vl,slotShouldForwardProp:o=Vl}=e,i=e=>Dl(Bi({},e,{theme:Ul(Bi({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Yl(Gl(s))}=a,p=Gi(a,zl),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Vl;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Vi(e,Bi({shouldForwardProp:h,label:undefined},p)),v=(r,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return r=>Kl({styledArg:e,props:r,defaultTheme:n,themeId:t});if(Yi(e)){let t,n=e;return e&&e.variants&&(t=e.variants,delete n.variants,n=n=>{let r=e;return Wl(n,jl(t),t).forEach((e=>{r=Xi(r,e)})),r}),n}return e})):[];let s=r;if(Yi(r)){let e;r&&r.variants&&(e=r.variants,delete s.variants,s=t=>{let n=r;return Wl(t,jl(e),e).forEach((e=>{n=Xi(n,e)})),n})}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>Kl({styledArg:r,props:e,defaultTheme:n,themeId:t}));l&&d&&a.push((e=>{const r=Ul(Bi({},e,{defaultTheme:n,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o(Bi({},e,{theme:r})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const r=Ul(Bi({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o;const i=null==n||null==(o=n.components)||null==(o=o[r])?void 0:o.variants;return Wl(e,t,i)})(e,((e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),jl(n)})(l,r),r,l)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}const c=g(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:or,defaultTheme:Fs,rootShouldForwardProp:zs});var Vs=Ws;const Bs=["theme"];function Gs(e){let{theme:t}=e,n=ar(e,Bs);const r=t[or];return ji.jsx(us,ir({},n,{themeId:r?or:void 0,theme:r||t}))}var Us=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ys(){return Ys=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ys.apply(this,arguments)}function Ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xs(e,t,n[t])}))}return e}function Xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zs(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Js(e){return"large"===e?"20px":"small"===e?"12px":"inherit"===e?"null":"16px"}var Qs=function(e){var t=e.d,n=e.size,r=e.style,o=Zs(e,["d","size","style"]);return E.createElement("i",Ys({style:Ks({fontSize:Js(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r)},o),E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},E.createElement("path",{d:t})))};function eu(e){return E.createElement(Qs,Object.assign({d:"M15,4 L1,4 L1,2 L15,2 L15,4 Z M15,14 L1,14 L1,12 L15,12 L15,14 Z M15,9 L1,9 L1,7 L15,7 L15,9 Z"},e))}const tu={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},nu=(e,t)=>e.some((e=>t[e]>0));function ru(e){return Da("MuiSvgIcon",e)}Ra("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ou=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],iu=Vs("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Zi(n.color)}`],t[`fontSize${Zi(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),au=y.forwardRef((function(e,t){const n=$s({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=ar(n,ou),f=y.isValidElement(r)&&"svg"===r.type,m=ir({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sa({root:["root","inherit"!==t&&`color${Zi(t)}`,`fontSize${Zi(n)}`]},ru,r)})(m);return ji.jsxs(iu,ir({as:a,className:_l(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?ji.jsx("title",{children:c}):null]}))}));au.muiName="SvgIcon";var lu=au;var su,uu={},cu=Symbol.for("react.element"),du=Symbol.for("react.portal"),pu=Symbol.for("react.fragment"),fu=Symbol.for("react.strict_mode"),mu=Symbol.for("react.profiler"),hu=Symbol.for("react.provider"),gu=Symbol.for("react.context"),vu=Symbol.for("react.server_context"),bu=Symbol.for("react.forward_ref"),yu=Symbol.for("react.suspense"),xu=Symbol.for("react.suspense_list"),Su=Symbol.for("react.memo"),Eu=Symbol.for("react.lazy"),wu=Symbol.for("react.offscreen");
16
+ */
17
+ function ya(e,t){let r;return r=t?ca(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ca(e),r}ba.propTypes={defaultTheme:ga.object,styles:ga.oneOfType([ga.array,ga.string,ga.object,ga.func])};const xa=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};function Sa(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 Ea(e){if(!Sa(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Ea(e[r])})),t}function Ca(e,t,r={clone:!0}){const n=r.clone?Ln({},e):e;return Sa(e)&&Sa(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Sa(t[o])&&o in e&&Sa(e[o])?n[o]=Ca(e[o],t[o],r):r.clone?n[o]=Sa(t[o])?Ea(t[o]):t[o]:n[o]=t[o])})),n}var wa,Ra={},La=Symbol.for("react.element"),Aa=Symbol.for("react.portal"),Da=Symbol.for("react.fragment"),_a=Symbol.for("react.strict_mode"),Ia=Symbol.for("react.profiler"),Ma=Symbol.for("react.provider"),Pa=Symbol.for("react.context"),Oa=Symbol.for("react.server_context"),ka=Symbol.for("react.forward_ref"),Ta=Symbol.for("react.suspense"),qa=Symbol.for("react.suspense_list"),Na=Symbol.for("react.memo"),Fa=Symbol.for("react.lazy"),za=Symbol.for("react.offscreen");
17
18
  /**
18
19
  * @license React
19
20
  * react-is.production.min.js
@@ -22,7 +23,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
22
23
  *
23
24
  * This source code is licensed under the MIT license found in the
24
25
  * LICENSE file in the root directory of this source tree.
25
- */function Cu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case cu:switch(e=e.type){case pu:case mu:case fu:case yu:case xu:return e;default:switch(e=e&&e.$$typeof){case vu:case gu:case bu:case Eu:case Su:case hu:return e;default:return t}}case du:return t}}}function Du(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ru(e,t){return Ru=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ru(e,t)}function Lu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ru(e,t)}su=Symbol.for("react.module.reference"),uu.ContextConsumer=gu,uu.ContextProvider=hu,uu.Element=cu,uu.ForwardRef=bu,uu.Fragment=pu,uu.Lazy=Eu,uu.Memo=Su,uu.Portal=du,uu.Profiler=mu,uu.StrictMode=fu,uu.Suspense=yu,uu.SuspenseList=xu,uu.isAsyncMode=function(){return!1},uu.isConcurrentMode=function(){return!1},uu.isContextConsumer=function(e){return Cu(e)===gu},uu.isContextProvider=function(e){return Cu(e)===hu},uu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===cu},uu.isForwardRef=function(e){return Cu(e)===bu},uu.isFragment=function(e){return Cu(e)===pu},uu.isLazy=function(e){return Cu(e)===Eu},uu.isMemo=function(e){return Cu(e)===Su},uu.isPortal=function(e){return Cu(e)===du},uu.isProfiler=function(e){return Cu(e)===mu},uu.isStrictMode=function(e){return Cu(e)===fu},uu.isSuspense=function(e){return Cu(e)===yu},uu.isSuspenseList=function(e){return Cu(e)===xu},uu.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===pu||e===mu||e===fu||e===yu||e===xu||e===wu||"object"==typeof e&&null!==e&&(e.$$typeof===Eu||e.$$typeof===Su||e.$$typeof===hu||e.$$typeof===gu||e.$$typeof===bu||e.$$typeof===su||void 0!==e.getModuleId)},uu.typeOf=Cu;var Iu=!1,Mu=E.createContext(null),Au="unmounted",qu="exited",Pu="entering",ku="entered",Ou="exiting",Tu=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=qu,r.appearStatus=Pu):o=ku:o=t.unmountOnExit||t.mountOnEnter?Au:qu,r.state={status:o},r.nextCallback=null,r}Lu(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Au?{status:qu}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Pu&&n!==ku&&(t=Pu):n!==Pu&&n!==ku||(t=Ou)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Pu){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:O.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qu&&this.setState({status:Au})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[O.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Iu?this.safeSetState({status:ku},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Pu},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:ku},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:O.findDOMNode(this);t&&!Iu?(this.props.onExit(r),this.safeSetState({status:Ou},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:qu},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:qu},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:O.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Au)return null;var t=this.props,n=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 r=Du(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return E.createElement(Mu.Provider,{value:null},"function"==typeof n?n(e,r):E.cloneElement(E.Children.only(n),r))},t}(E.Component);function _u(){}Tu.contextType=Mu,Tu.propTypes={},Tu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_u,onEntering:_u,onEntered:_u,onExit:_u,onExiting:_u,onExited:_u},Tu.UNMOUNTED=Au,Tu.EXITED=qu,Tu.ENTERING=Pu,Tu.ENTERED=ku,Tu.EXITING=Ou;var Nu=Tu;function Fu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hu(e,t){var n=Object.create(null);return e&&D.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&R(e)?t(e):e}(e)})),n}function $u(e,t,n){return null!=n[t]?n[t]:e.props[t]}function zu(e,t,n){var r=Hu(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(R(a)){var l=i in t,s=i in r,u=t[i],c=R(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&R(u)&&(o[i]=L(a,{onExited:n.bind(null,a),in:u.props.in,exit:$u(a,"exit",e),enter:$u(a,"enter",e)})):o[i]=L(a,{in:!1}):o[i]=L(a,{onExited:n.bind(null,a),in:!0,exit:$u(a,"exit",e),enter:$u(a,"enter",e)})}})),o}var ju=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Wu=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Fu(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Lu(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Hu(n.children,(function(e){return L(e,{onExited:r.bind(null,e),in:!0,appear:$u(e,"appear",n),enter:$u(e,"enter",n),exit:$u(e,"exit",n)})}))):zu(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Hu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=lr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Du(e,["component","childFactory"]),o=this.state.contextValue,i=ju(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?E.createElement(Mu.Provider,{value:o},i):E.createElement(Mu.Provider,{value:o},E.createElement(t,r,i))},t}(E.Component);Wu.propTypes={},Wu.defaultProps={component:"div",childFactory:function(e){return e}};var Vu=Wu;const Bu=e=>e.scrollTop;function Gu(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Uu(e){return Da("MuiPaper",e)}Ra("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 Yu=["className","component","elevation","square","variant"],Ku=Vs("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return ir({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&ir({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ts("#fff",Us(t.elevation))}, ${ts("#fff",Us(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var Xu=y.forwardRef((function(e,t){const n=$s({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=ar(n,Yu),u=ir({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sa({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Uu,o)})(u);return ji.jsx(Ku,ir({as:o,ownerState:u,className:_l(c.root,r),ref:t},s))}));var Zu=Ra("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Ju=["center","classes","className"];let Qu,ec,tc,nc,rc=e=>e;const oc=gi(Qu||(Qu=rc`
26
+ */function Ga(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case La:switch(e=e.type){case Da:case Ia:case _a:case Ta:case qa:return e;default:switch(e=e&&e.$$typeof){case Oa:case Pa:case ka:case Fa:case Na:case Ma:return e;default:return t}}case Aa:return t}}}function $a(e){if("string"!=typeof e)throw new Error(wn(7));return e.charAt(0).toUpperCase()+e.slice(1)}wa=Symbol.for("react.module.reference"),Ra.ContextConsumer=Pa,Ra.ContextProvider=Ma,Ra.Element=La,Ra.ForwardRef=ka,Ra.Fragment=Da,Ra.Lazy=Fa,Ra.Memo=Na,Ra.Portal=Aa,Ra.Profiler=Ia,Ra.StrictMode=_a,Ra.Suspense=Ta,Ra.SuspenseList=qa,Ra.isAsyncMode=function(){return!1},Ra.isConcurrentMode=function(){return!1},Ra.isContextConsumer=function(e){return Ga(e)===Pa},Ra.isContextProvider=function(e){return Ga(e)===Ma},Ra.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===La},Ra.isForwardRef=function(e){return Ga(e)===ka},Ra.isFragment=function(e){return Ga(e)===Da},Ra.isLazy=function(e){return Ga(e)===Fa},Ra.isMemo=function(e){return Ga(e)===Na},Ra.isPortal=function(e){return Ga(e)===Aa},Ra.isProfiler=function(e){return Ga(e)===Ia},Ra.isStrictMode=function(e){return Ga(e)===_a},Ra.isSuspense=function(e){return Ga(e)===Ta},Ra.isSuspenseList=function(e){return Ga(e)===qa},Ra.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Da||e===Ia||e===_a||e===Ta||e===qa||e===za||"object"==typeof e&&null!==e&&(e.$$typeof===Fa||e.$$typeof===Na||e.$$typeof===Ma||e.$$typeof===Pa||e.$$typeof===ka||e.$$typeof===wa||void 0!==e.getModuleId)},Ra.typeOf=Ga;const Ha=e=>e;var Ba=(()=>{let e=Ha;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ha}}})();const Wa={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};const ja=["values","unit","step"],Va=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)=>Ln({},e,{[t.key]:t.val})),{})};var Ya={borderRadius:4};function Ua(e,t){return t?Ca(e,t,{clone:!1}):e}const Ka={xs:0,sm:600,md:900,lg:1200,xl:1536},Xa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ka[e]}px)`};function Za(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Xa;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Xa;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Ka).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ja(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Qa(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ja(e,r)||n,t&&(o=t(o,n,e)),o}function el(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=Ja(e.theme,n)||{};return Za(e,i,(e=>{let n=Qa(a,o,e);return e===n&&"string"==typeof e&&(n=Qa(a,o,`${t}${"default"===e?"":$a(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const tl={m:"margin",p:"padding"},rl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},nl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ol=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!nl[e])return[e];e=nl[e]}const[t,r]=e.split(""),n=tl[t],o=rl[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),il=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],al=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ll(e,t,r,n){var o;const i=null!=(o=Ja(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 sl(e){return ll(e,"spacing",8)}function ul(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 cl(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=ul(t,r),e)),{})}(ol(r),n);return Za(e,e[r],o)}function dl(e,t){const r=sl(e.theme);return Object.keys(e).map((n=>cl(e,t,n,r))).reduce(Ua,{})}function pl(e){return dl(e,il)}function fl(e){return dl(e,al)}function ml(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Ua(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function hl(e){return"number"!=typeof e?e:`${e}px solid`}function gl(e,t){return el({prop:e,themeKey:"borders",transform:t})}pl.propTypes={},pl.filterProps=il,fl.propTypes={},fl.filterProps=al;const bl=gl("border",hl),vl=gl("borderTop",hl),yl=gl("borderRight",hl),xl=gl("borderBottom",hl),Sl=gl("borderLeft",hl),El=gl("borderColor"),Cl=gl("borderTopColor"),wl=gl("borderRightColor"),Rl=gl("borderBottomColor"),Ll=gl("borderLeftColor"),Al=gl("outline",hl),Dl=gl("outlineColor"),_l=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ll(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:ul(t,e)});return Za(e,e.borderRadius,r)}return null};_l.propTypes={},_l.filterProps=["borderRadius"],ml(bl,vl,yl,xl,Sl,El,Cl,wl,Rl,Ll,_l,Al,Dl);const Il=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ll(e.theme,"spacing",8),r=e=>({gap:ul(t,e)});return Za(e,e.gap,r)}return null};Il.propTypes={},Il.filterProps=["gap"];const Ml=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ll(e.theme,"spacing",8),r=e=>({columnGap:ul(t,e)});return Za(e,e.columnGap,r)}return null};Ml.propTypes={},Ml.filterProps=["columnGap"];const Pl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ll(e.theme,"spacing",8),r=e=>({rowGap:ul(t,e)});return Za(e,e.rowGap,r)}return null};Pl.propTypes={},Pl.filterProps=["rowGap"];function Ol(e,t){return"grey"===t?t:e}ml(Il,Ml,Pl,el({prop:"gridColumn"}),el({prop:"gridRow"}),el({prop:"gridAutoFlow"}),el({prop:"gridAutoColumns"}),el({prop:"gridAutoRows"}),el({prop:"gridTemplateColumns"}),el({prop:"gridTemplateRows"}),el({prop:"gridTemplateAreas"}),el({prop:"gridArea"}));function kl(e){return e<=1&&0!==e?100*e+"%":e}ml(el({prop:"color",themeKey:"palette",transform:Ol}),el({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ol}),el({prop:"backgroundColor",themeKey:"palette",transform:Ol}));const Tl=el({prop:"width",transform:kl}),ql=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])||Ka[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:kl(t)}};return Za(e,e.maxWidth,t)}return null};ql.filterProps=["maxWidth"];const Nl=el({prop:"minWidth",transform:kl}),Fl=el({prop:"height",transform:kl}),zl=el({prop:"maxHeight",transform:kl}),Gl=el({prop:"minHeight",transform:kl});el({prop:"size",cssProperty:"width",transform:kl}),el({prop:"size",cssProperty:"height",transform:kl});ml(Tl,ql,Nl,Fl,zl,Gl,el({prop:"boxSizing"}));var $l={border:{themeKey:"borders",transform:hl},borderTop:{themeKey:"borders",transform:hl},borderRight:{themeKey:"borders",transform:hl},borderBottom:{themeKey:"borders",transform:hl},borderLeft:{themeKey:"borders",transform:hl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:hl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_l},color:{themeKey:"palette",transform:Ol},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ol},backgroundColor:{themeKey:"palette",transform:Ol},p:{style:fl},pt:{style:fl},pr:{style:fl},pb:{style:fl},pl:{style:fl},px:{style:fl},py:{style:fl},padding:{style:fl},paddingTop:{style:fl},paddingRight:{style:fl},paddingBottom:{style:fl},paddingLeft:{style:fl},paddingX:{style:fl},paddingY:{style:fl},paddingInline:{style:fl},paddingInlineStart:{style:fl},paddingInlineEnd:{style:fl},paddingBlock:{style:fl},paddingBlockStart:{style:fl},paddingBlockEnd:{style:fl},m:{style:pl},mt:{style:pl},mr:{style:pl},mb:{style:pl},ml:{style:pl},mx:{style:pl},my:{style:pl},margin:{style:pl},marginTop:{style:pl},marginRight:{style:pl},marginBottom:{style:pl},marginLeft:{style:pl},marginX:{style:pl},marginY:{style:pl},marginInline:{style:pl},marginInlineStart:{style:pl},marginInlineEnd:{style:pl},marginBlock:{style:pl},marginBlockStart:{style:pl},marginBlockEnd:{style:pl},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:Il},rowGap:{style:Pl},columnGap:{style:Ml},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kl},maxWidth:{style:ql},minWidth:{transform:kl},height:{transform:kl},maxHeight:{transform:kl},minHeight:{transform:kl},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Hl=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ja(r,l)||{};if(u)return u(o);return Za(o,t,(t=>{let r=Qa(c,s,t);return t===r&&"string"==typeof t&&(r=Qa(c,s,`${e}${"default"===t?"":$a(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:$l;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=Ua(s,e(r,o,i,a));else{const e=Za({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=Ua(s,e):s[r]=t({sx:o,theme:i})}else s=Ua(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Hl.filterProps=["sx"];var Bl=Hl;const Wl=["breakpoints","palette","spacing","shape"];function jl(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=An(e,Wl),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=An(e,ja),i=Va(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Ln({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),s=function(e=8){if(e.mui)return e;const t=sl({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Ca({breakpoints:l,direction:"ltr",components:{},palette:Ln({mode:"light"},n),spacing:s,shape:Ln({},Ya,i)},a);return u=t.reduce(((e,t)=>Ca(e,t)),u),u.unstable_sxConfig=Ln({},$l,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Bl({sx:e,theme:this})},u}function Vl(e=null){const t=E.useContext(ra);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Yl=jl();var Ul={exports:{}},Kl={},Xl=y,Zl=Symbol.for("react.element"),Jl=Symbol.for("react.fragment"),Ql=Object.prototype.hasOwnProperty,es=Xl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ts={key:!0,ref:!0,__self:!0,__source:!0};function rs(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)Ql.call(t,n)&&!ts.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:Zl,type:e,key:i,ref:a,props:o,_owner:es.current}}Kl.Fragment=Jl,Kl.jsx=rs,Kl.jsxs=rs,Ul.exports=Kl;var ns=Ul.exports;const os=["sx"],is=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:$l;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function as(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=as(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ls(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=as(e))&&(n&&(n+=" "),n+=t);return n}const ss=["className","component"];const us=["variant"];function cs(e){return 0===e.length}function ds(e){const{variant:t}=e,r=An(e,us);let n=t||"";return Object.keys(r).sort().forEach((t=>{n+="color"===t?cs(n)?e[t]:$a(e[t]):`${cs(n)?t:$a(t)}${$a(e[t].toString())}`})),n}const ps=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const fs=e=>{let t=0;const r={};return e&&e.forEach((e=>{let n="";"function"==typeof e.props?(n=`callback${t}`,t+=1):n=ds(e.props),r[n]=e.style})),r},ms=(e,t,r)=>{const{ownerState:n={}}=e,o=[];let i=0;return r&&r.forEach((r=>{let a=!0;if("function"==typeof r.props){const t=Ln({},e,n);a=r.props(t)}else Object.keys(r.props).forEach((t=>{n[t]!==r.props[t]&&e[t]!==r.props[t]&&(a=!1)}));a&&("function"==typeof r.props?o.push(t[`callback${i}`]):o.push(t[ds(r.props)])),"function"==typeof r.props&&(i+=1)})),o};function hs(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const gs=jl(),bs=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function vs({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function ys(e){return e?(t,r)=>r[e]:null}const xs=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const o=e(Ln({},t,{theme:vs(Ln({},t,{defaultTheme:r,themeId:n}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){return[o,...ms(t,fs(i),i)]}return o};function Ss(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function Es(e){if(e.type)return e;if("#"===e.charAt(0))return Es(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(wn(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(wn(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Cs(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 ws(e){let t="hsl"===(e=Es(e)).type||"hsla"===e.type?Es(function(e){e=Es(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Cs({type:l,values:s})}(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 Rs(e,t){return e=Es(e),t=Ss(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Cs(e)}var Ls=E.createContext(null);function As(){return E.useContext(Ls)}var Ds="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function _s(e){const{children:t,theme:r}=e,n=As(),o=E.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Ln({},e,t)}(n,r);return null!=e&&(e[Ds]=null!==n),e}),[r,n]);return ns.jsx(Ls.Provider,{value:o,children:t})}const Is={};function Ms(e,t,r,n=!1){return E.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Ln({},t,{[e]:i}):i;return n?()=>a:a}return Ln({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Ps(e){const{children:t,theme:r,themeId:n}=e,o=Vl(Is),i=As()||Is,a=Ms(n,o,r),l=Ms(n,i,r,!0);return ns.jsx(_s,{theme:l,children:ns.jsx(ra.Provider,{value:a,children:t})})}var Os={black:"#000",white:"#fff"};var ks={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"};var Ts={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var qs={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"};var Ns={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"};var Fs={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"};var zs={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Gs={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"};const $s=["mode","contrastThreshold","tonalOffset"],Hs={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:Os.white,default:Os.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}},Bs={text:{primary:Os.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:Os.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 Ws(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=function(e,t){if(e=Es(e),t=Ss(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 Cs(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Es(e),t=Ss(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 Cs(e)}(e.main,i)))}function js(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=An(e,$s),i=e.primary||function(e="light"){return"dark"===e?{main:Fs[200],light:Fs[50],dark:Fs[400]}:{main:Fs[700],light:Fs[400],dark:Fs[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ts[200],light:Ts[50],dark:Ts[400]}:{main:Ts[500],light:Ts[300],dark:Ts[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:qs[500],light:qs[300],dark:qs[700]}:{main:qs[700],light:qs[400],dark:qs[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:zs[400],light:zs[300],dark:zs[700]}:{main:zs[700],light:zs[500],dark:zs[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Gs[400],light:Gs[300],dark:Gs[700]}:{main:Gs[800],light:Gs[500],dark:Gs[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ns[400],light:Ns[300],dark:Ns[700]}:{main:"#ed6c02",light:Ns[500],dark:Ns[900]}}(t);function d(e){const t=function(e,t){const r=ws(e),n=ws(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Bs.text.primary)>=r?Bs.text.primary:Hs.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ln({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(wn(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(wn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ws(e,"light",o,n),Ws(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Bs,light:Hs};return Ca(Ln({common:Ln({},Os),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:ks,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Vs=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ys={textTransform:"uppercase"},Us='"Roboto", "Helvetica", "Arial", sans-serif';function Ks(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Us,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=An(r,Vs),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return Ln({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Us?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Ys),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ys),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ca(Ln({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Xs(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Zs=["none",Xs(0,2,1,-1,0,1,1,0,0,1,3,0),Xs(0,3,1,-2,0,2,2,0,0,1,5,0),Xs(0,3,3,-2,0,3,4,0,0,1,8,0),Xs(0,2,4,-1,0,4,5,0,0,1,10,0),Xs(0,3,5,-1,0,5,8,0,0,1,14,0),Xs(0,3,5,-1,0,6,10,0,0,1,18,0),Xs(0,4,5,-2,0,7,10,1,0,2,16,1),Xs(0,5,5,-3,0,8,10,1,0,3,14,2),Xs(0,5,6,-3,0,9,12,1,0,3,16,2),Xs(0,6,6,-3,0,10,14,1,0,4,18,3),Xs(0,6,7,-4,0,11,15,1,0,4,20,3),Xs(0,7,8,-4,0,12,17,2,0,5,22,4),Xs(0,7,8,-4,0,13,19,2,0,5,24,4),Xs(0,7,9,-4,0,14,21,2,0,5,26,4),Xs(0,8,9,-5,0,15,22,2,0,6,28,5),Xs(0,8,10,-5,0,16,24,2,0,6,30,5),Xs(0,8,11,-5,0,17,26,2,0,6,32,5),Xs(0,9,11,-5,0,18,28,2,0,7,34,6),Xs(0,9,12,-6,0,19,29,2,0,7,36,6),Xs(0,10,13,-6,0,20,31,3,0,8,38,7),Xs(0,10,13,-6,0,21,33,3,0,8,40,7),Xs(0,10,14,-6,0,22,35,3,0,8,42,7),Xs(0,11,14,-7,0,23,36,3,0,9,44,8),Xs(0,11,15,-7,0,24,38,3,0,9,46,8)];const Js=["duration","easing","delay"],Qs={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)"},eu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tu(e){return`${Math.round(e)}ms`}function ru(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function nu(e){const t=Ln({},Qs,e.easing),r=Ln({},eu,e.duration);return Ln({getAutoHeightDuration:ru,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return An(n,Js),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:tu(o)} ${i} ${"string"==typeof a?a:tu(a)}`)).join(",")}},e,{easing:t,duration:r})}var ou={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const iu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function au(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=An(e,iu);if(e.vars)throw new Error(wn(18));const l=js(n),s=jl(e);let u=Ca(s,{mixins:(c=s.breakpoints,d=r,Ln({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Zs.slice(),typography:Ks(l,i),transitions:nu(o),zIndex:Ln({},ou)});var c,d;return u=Ca(u,a),u=t.reduce(((e,t)=>Ca(e,t)),u),u.unstable_sxConfig=Ln({},$l,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Bl({sx:e,theme:this})},u}const lu=au();const su=function(e={}){const{themeId:t,defaultTheme:r=gs,rootShouldForwardProp:n=hs,slotShouldForwardProp:o=hs}=e,i=e=>Bl(Ln({},e,{theme:vs(Ln({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{xa(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ys(bs(s))}=a,p=An(a,ps),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=hs;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=ya(e,Ln({shouldForwardProp:h,label:undefined},p)),b=(n,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return n=>xs({styledArg:e,props:n,defaultTheme:r,themeId:t});if(Sa(e)){let t,r=e;return e&&e.variants&&(t=e.variants,delete r.variants,r=r=>{let n=e;return ms(r,fs(t),t).forEach((e=>{n=Ca(n,e)})),n}),r}return e})):[];let s=n;if(Sa(n)){let e;n&&n.variants&&(e=n.variants,delete s.variants,s=t=>{let r=n;return ms(t,fs(e),e).forEach((e=>{r=Ca(r,e)})),r})}else"function"==typeof n&&n.__emotion_real!==n&&(s=e=>xs({styledArg:n,props:e,defaultTheme:r,themeId:t}));l&&d&&a.push((e=>{const n=vs(Ln({},e,{defaultTheme:r,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,n);if(o){const t={};return Object.entries(o).forEach((([r,o])=>{t[r]="function"==typeof o?o(Ln({},e,{theme:n})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const n=vs(Ln({},e,{defaultTheme:r,themeId:t}));return((e,t,r,n)=>{var o;const i=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return ms(e,t,i)})(e,((e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),fs(r)})(l,n),n,l)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");s=[...n,...e],s.raw=[...n.raw,...e]}const c=g(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:Rn,defaultTheme:lu,rootShouldForwardProp:e=>hs(e)&&"classes"!==e});var uu=su;const cu=["theme"];function du(e){let{theme:t}=e,r=An(e,cu);const n=t[Rn];return ns.jsx(Ps,Ln({},r,{themeId:n?Rn:void 0,theme:n||t}))}function pu(){return pu=Object.assign||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 fu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){mu(e,t,r[t])}))}return e}function mu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hu(e,t){if(null==e)return{};var r,n,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function gu(e){return"large"===e?"20px":"small"===e?"12px":"inherit"===e?"null":"16px"}var bu=function(e){var t=e.d,r=e.size,n=e.style,o=hu(e,["d","size","style"]);return y.createElement("i",pu({style:fu({fontSize:gu(r),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n)},o),y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},y.createElement("path",{d:t})))};function vu(e){return y.createElement(bu,Object.assign({d:"M15,4 L1,4 L1,2 L15,2 L15,4 Z M15,14 L1,14 L1,12 L15,12 L15,14 Z M15,9 L1,9 L1,7 L15,7 L15,9 Z"},e))}const yu={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},xu=(e,t)=>e.some((e=>t[e]>0));function Su(){return Su=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},Su.apply(this,arguments)}function Eu(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 Cu="$$material";function wu(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 Ru(e){if(!wu(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Ru(e[r])})),t}function Lu(e,t,r={clone:!0}){const n=r.clone?Ln({},e):e;return wu(e)&&wu(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(wu(t[o])&&o in e&&wu(e[o])?n[o]=Lu(e[o],t[o],r):r.clone?n[o]=wu(t[o])?Ru(t[o]):t[o]:n[o]=t[o])})),n}function Au(e){if("string"!=typeof e)throw new Error(Eu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Du(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function _u(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Iu(e){return e&&e.ownerDocument||document}function Mu(e){return Iu(e).defaultView||window}function Pu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ou="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;let ku=0;const Tu=E["useId".toString()];function qu(e){if(void 0!==Tu){const t=Tu();return null!=e?e:t}return function(e){const[t,r]=E.useState(e),n=e||t;return E.useEffect((()=>{null==t&&(ku+=1,r(`mui-${ku}`))}),[t]),n}(e)}function Nu({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=E.useRef(void 0!==e),[i,a]=E.useState(t);return[o?e:i,E.useCallback((e=>{o||a(e)}),[])]}function Fu(e){const t=E.useRef(e);return Ou((()=>{t.current=e})),E.useRef(((...e)=>(0,t.current)(...e))).current}function zu(...e){return E.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Pu(e,t)}))}),e)}let Gu,$u=!0,Hu=!1;const Bu={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 Wu(e){e.metaKey||e.altKey||e.ctrlKey||($u=!0)}function ju(){$u=!1}function Vu(){"hidden"===this.visibilityState&&Hu&&($u=!0)}function Yu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return $u||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Bu[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Uu(){const e=E.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Wu,!0),t.addEventListener("mousedown",ju,!0),t.addEventListener("pointerdown",ju,!0),t.addEventListener("touchstart",ju,!0),t.addEventListener("visibilitychange",Vu,!0))}),[]),t=E.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Yu(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Hu=!0,window.clearTimeout(Gu),Gu=window.setTimeout((()=>{Hu=!1}),100),t.current=!1,!0)},ref:e}}function Ku(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Xu(e,t){const r=Ln({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Ln({},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]=Ln({},i),Object.keys(o).forEach((e=>{r[n][e]=Xu(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function Zu(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const Ju=e=>e;var Qu=(()=>{let e=Ju;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ju}}})();const ec={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 tc(e,t,r="Mui"){const n=ec[t];return n?`${r}-${n}`:`${Qu.generate(e)}-${t}`}function rc(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=tc(e,t,r)})),n}const nc=["values","unit","step"],oc=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)=>Ln({},e,{[t.key]:t.val})),{})};var ic={borderRadius:4};function ac(e,t){return t?Lu(e,t,{clone:!1}):e}const lc={xs:0,sm:600,md:900,lg:1200,xl:1536},sc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${lc[e]}px)`};function uc(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||sc;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||sc;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||lc).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function cc(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function dc(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:cc(e,r)||n,t&&(o=t(o,n,e)),o}function pc(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=cc(e.theme,n)||{};return uc(e,i,(e=>{let n=dc(a,o,e);return e===n&&"string"==typeof e&&(n=dc(a,o,`${t}${"default"===e?"":Au(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const fc={m:"margin",p:"padding"},mc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gc=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!hc[e])return[e];e=hc[e]}const[t,r]=e.split(""),n=fc[t],o=mc[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),bc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function yc(e,t,r,n){var o;const i=null!=(o=cc(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 xc(e){return yc(e,"spacing",8)}function Sc(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 Ec(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Sc(t,r),e)),{})}(gc(r),n);return uc(e,e[r],o)}function Cc(e,t){const r=xc(e.theme);return Object.keys(e).map((n=>Ec(e,t,n,r))).reduce(ac,{})}function wc(e){return Cc(e,bc)}function Rc(e){return Cc(e,vc)}function Lc(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?ac(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Ac(e){return"number"!=typeof e?e:`${e}px solid`}function Dc(e,t){return pc({prop:e,themeKey:"borders",transform:t})}wc.propTypes={},wc.filterProps=bc,Rc.propTypes={},Rc.filterProps=vc;const _c=Dc("border",Ac),Ic=Dc("borderTop",Ac),Mc=Dc("borderRight",Ac),Pc=Dc("borderBottom",Ac),Oc=Dc("borderLeft",Ac),kc=Dc("borderColor"),Tc=Dc("borderTopColor"),qc=Dc("borderRightColor"),Nc=Dc("borderBottomColor"),Fc=Dc("borderLeftColor"),zc=Dc("outline",Ac),Gc=Dc("outlineColor"),$c=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=yc(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Sc(t,e)});return uc(e,e.borderRadius,r)}return null};$c.propTypes={},$c.filterProps=["borderRadius"],Lc(_c,Ic,Mc,Pc,Oc,kc,Tc,qc,Nc,Fc,$c,zc,Gc);const Hc=e=>{if(void 0!==e.gap&&null!==e.gap){const t=yc(e.theme,"spacing",8),r=e=>({gap:Sc(t,e)});return uc(e,e.gap,r)}return null};Hc.propTypes={},Hc.filterProps=["gap"];const Bc=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=yc(e.theme,"spacing",8),r=e=>({columnGap:Sc(t,e)});return uc(e,e.columnGap,r)}return null};Bc.propTypes={},Bc.filterProps=["columnGap"];const Wc=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=yc(e.theme,"spacing",8),r=e=>({rowGap:Sc(t,e)});return uc(e,e.rowGap,r)}return null};Wc.propTypes={},Wc.filterProps=["rowGap"];function jc(e,t){return"grey"===t?t:e}Lc(Hc,Bc,Wc,pc({prop:"gridColumn"}),pc({prop:"gridRow"}),pc({prop:"gridAutoFlow"}),pc({prop:"gridAutoColumns"}),pc({prop:"gridAutoRows"}),pc({prop:"gridTemplateColumns"}),pc({prop:"gridTemplateRows"}),pc({prop:"gridTemplateAreas"}),pc({prop:"gridArea"}));function Vc(e){return e<=1&&0!==e?100*e+"%":e}Lc(pc({prop:"color",themeKey:"palette",transform:jc}),pc({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:jc}),pc({prop:"backgroundColor",themeKey:"palette",transform:jc}));const Yc=pc({prop:"width",transform:Vc}),Uc=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])||lc[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:Vc(t)}};return uc(e,e.maxWidth,t)}return null};Uc.filterProps=["maxWidth"];const Kc=pc({prop:"minWidth",transform:Vc}),Xc=pc({prop:"height",transform:Vc}),Zc=pc({prop:"maxHeight",transform:Vc}),Jc=pc({prop:"minHeight",transform:Vc});pc({prop:"size",cssProperty:"width",transform:Vc}),pc({prop:"size",cssProperty:"height",transform:Vc});Lc(Yc,Uc,Kc,Xc,Zc,Jc,pc({prop:"boxSizing"}));var Qc={border:{themeKey:"borders",transform:Ac},borderTop:{themeKey:"borders",transform:Ac},borderRight:{themeKey:"borders",transform:Ac},borderBottom:{themeKey:"borders",transform:Ac},borderLeft:{themeKey:"borders",transform:Ac},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ac},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$c},color:{themeKey:"palette",transform:jc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:jc},backgroundColor:{themeKey:"palette",transform:jc},p:{style:Rc},pt:{style:Rc},pr:{style:Rc},pb:{style:Rc},pl:{style:Rc},px:{style:Rc},py:{style:Rc},padding:{style:Rc},paddingTop:{style:Rc},paddingRight:{style:Rc},paddingBottom:{style:Rc},paddingLeft:{style:Rc},paddingX:{style:Rc},paddingY:{style:Rc},paddingInline:{style:Rc},paddingInlineStart:{style:Rc},paddingInlineEnd:{style:Rc},paddingBlock:{style:Rc},paddingBlockStart:{style:Rc},paddingBlockEnd:{style:Rc},m:{style:wc},mt:{style:wc},mr:{style:wc},mb:{style:wc},ml:{style:wc},mx:{style:wc},my:{style:wc},margin:{style:wc},marginTop:{style:wc},marginRight:{style:wc},marginBottom:{style:wc},marginLeft:{style:wc},marginX:{style:wc},marginY:{style:wc},marginInline:{style:wc},marginInlineStart:{style:wc},marginInlineEnd:{style:wc},marginBlock:{style:wc},marginBlockStart:{style:wc},marginBlockEnd:{style:wc},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:Hc},rowGap:{style:Wc},columnGap:{style:Bc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vc},maxWidth:{style:Uc},minWidth:{transform:Vc},height:{transform:Vc},maxHeight:{transform:Vc},minHeight:{transform:Vc},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const ed=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=cc(r,l)||{};if(u)return u(o);return uc(o,t,(t=>{let r=dc(c,s,t);return t===r&&"string"==typeof t&&(r=dc(c,s,`${e}${"default"===t?"":Au(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:Qc;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=ac(s,e(r,o,i,a));else{const e=uc({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=ac(s,e):s[r]=t({sx:o,theme:i})}else s=ac(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();ed.filterProps=["sx"];var td=ed;const rd=["breakpoints","palette","spacing","shape"];function nd(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=An(e,rd),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=An(e,nc),i=oc(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Ln({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),s=function(e=8){if(e.mui)return e;const t=xc({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Lu({breakpoints:l,direction:"ltr",components:{},palette:Ln({mode:"light"},n),spacing:s,shape:Ln({},ic,i)},a);return u=t.reduce(((e,t)=>Lu(e,t)),u),u.unstable_sxConfig=Ln({},Qc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return td({sx:e,theme:this})},u}function od(e=null){const t=E.useContext(ra);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const id=nd();function ad(e=id){return od(e)}function ld({styles:e,themeId:t,defaultTheme:r={}}){const n=ad(r),o="function"==typeof e?e(t&&n[t]||n):e;return ns.jsx(va,{styles:o})}const sd=["sx"],ud=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Qc;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function cd(e){const{sx:t}=e,r=An(e,sd),{systemProps:n,otherProps:o}=ud(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return wu(r)?Ln({},n,r):n}:Ln({},n,t),Ln({},o,{sx:i})}const dd=["className","component"];const pd=["variant"];function fd(e){return 0===e.length}function md(e){const{variant:t}=e,r=An(e,pd);let n=t||"";return Object.keys(r).sort().forEach((t=>{n+="color"===t?fd(n)?e[t]:Au(e[t]):`${fd(n)?t:Au(t)}${Au(e[t].toString())}`})),n}const hd=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const gd=e=>{let t=0;const r={};return e&&e.forEach((e=>{let n="";"function"==typeof e.props?(n=`callback${t}`,t+=1):n=md(e.props),r[n]=e.style})),r},bd=(e,t,r)=>{const{ownerState:n={}}=e,o=[];let i=0;return r&&r.forEach((r=>{let a=!0;if("function"==typeof r.props){const t=Ln({},e,n);a=r.props(t)}else Object.keys(r.props).forEach((t=>{n[t]!==r.props[t]&&e[t]!==r.props[t]&&(a=!1)}));a&&("function"==typeof r.props?o.push(t[`callback${i}`]):o.push(t[md(r.props)])),"function"==typeof r.props&&(i+=1)})),o};function vd(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const yd=nd(),xd=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Sd({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Ed(e){return e?(t,r)=>r[e]:null}const Cd=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const o=e(Ln({},t,{theme:Sd(Ln({},t,{defaultTheme:r,themeId:n}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){return[o,...bd(t,gd(i),i)]}return o};function wd({props:e,name:t,defaultTheme:r,themeId:n}){let o=ad(r);n&&(o=o[n]||o);const i=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?Xu(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function Rd(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function Ld(e){if(e.type)return e;if("#"===e.charAt(0))return Ld(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(Eu(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(Eu(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Ad(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 Dd(e){let t="hsl"===(e=Ld(e)).type||"hsla"===e.type?Ld(function(e){e=Ld(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Ad({type:l,values:s})}(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 _d(e,t){return e=Ld(e),t=Rd(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ad(e)}var Id={black:"#000",white:"#fff"};var Md={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"};var Pd={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Od={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"};var kd={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"};var Td={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"};var qd={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Nd={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"};const Fd=["mode","contrastThreshold","tonalOffset"],zd={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:Id.white,default:Id.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}},Gd={text:{primary:Id.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:Id.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 $d(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=function(e,t){if(e=Ld(e),t=Rd(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 Ad(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Ld(e),t=Rd(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 Ad(e)}(e.main,i)))}function Hd(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=An(e,Fd),i=e.primary||function(e="light"){return"dark"===e?{main:Td[200],light:Td[50],dark:Td[400]}:{main:Td[700],light:Td[400],dark:Td[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Pd[200],light:Pd[50],dark:Pd[400]}:{main:Pd[500],light:Pd[300],dark:Pd[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Od[500],light:Od[300],dark:Od[700]}:{main:Od[700],light:Od[400],dark:Od[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:qd[400],light:qd[300],dark:qd[700]}:{main:qd[700],light:qd[500],dark:qd[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Nd[400],light:Nd[300],dark:Nd[700]}:{main:Nd[800],light:Nd[500],dark:Nd[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:kd[400],light:kd[300],dark:kd[700]}:{main:"#ed6c02",light:kd[500],dark:kd[900]}}(t);function d(e){const t=function(e,t){const r=Dd(e),n=Dd(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Gd.text.primary)>=r?Gd.text.primary:zd.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ln({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Eu(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Eu(12,t?` (${t})`:"",JSON.stringify(e.main)));return $d(e,"light",o,n),$d(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Gd,light:zd};return Lu(Ln({common:Ln({},Id),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Md,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Bd=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Wd={textTransform:"uppercase"},jd='"Roboto", "Helvetica", "Arial", sans-serif';function Vd(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=jd,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=An(r,Bd),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return Ln({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===jd?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Wd),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Wd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Lu(Ln({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Yd(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Ud=["none",Yd(0,2,1,-1,0,1,1,0,0,1,3,0),Yd(0,3,1,-2,0,2,2,0,0,1,5,0),Yd(0,3,3,-2,0,3,4,0,0,1,8,0),Yd(0,2,4,-1,0,4,5,0,0,1,10,0),Yd(0,3,5,-1,0,5,8,0,0,1,14,0),Yd(0,3,5,-1,0,6,10,0,0,1,18,0),Yd(0,4,5,-2,0,7,10,1,0,2,16,1),Yd(0,5,5,-3,0,8,10,1,0,3,14,2),Yd(0,5,6,-3,0,9,12,1,0,3,16,2),Yd(0,6,6,-3,0,10,14,1,0,4,18,3),Yd(0,6,7,-4,0,11,15,1,0,4,20,3),Yd(0,7,8,-4,0,12,17,2,0,5,22,4),Yd(0,7,8,-4,0,13,19,2,0,5,24,4),Yd(0,7,9,-4,0,14,21,2,0,5,26,4),Yd(0,8,9,-5,0,15,22,2,0,6,28,5),Yd(0,8,10,-5,0,16,24,2,0,6,30,5),Yd(0,8,11,-5,0,17,26,2,0,6,32,5),Yd(0,9,11,-5,0,18,28,2,0,7,34,6),Yd(0,9,12,-6,0,19,29,2,0,7,36,6),Yd(0,10,13,-6,0,20,31,3,0,8,38,7),Yd(0,10,13,-6,0,21,33,3,0,8,40,7),Yd(0,10,14,-6,0,22,35,3,0,8,42,7),Yd(0,11,14,-7,0,23,36,3,0,9,44,8),Yd(0,11,15,-7,0,24,38,3,0,9,46,8)];const Kd=["duration","easing","delay"],Xd={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)"},Zd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jd(e){return`${Math.round(e)}ms`}function Qd(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ep(e){const t=Ln({},Xd,e.easing),r=Ln({},Zd,e.duration);return Ln({getAutoHeightDuration:Qd,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return An(n,Kd),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Jd(o)} ${i} ${"string"==typeof a?a:Jd(a)}`)).join(",")}},e,{easing:t,duration:r})}var tp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const rp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function np(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=An(e,rp);if(e.vars)throw new Error(Eu(18));const l=Hd(n),s=nd(e);let u=Lu(s,{mixins:(c=s.breakpoints,d=r,Ln({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Ud.slice(),typography:Vd(l,i),transitions:ep(o),zIndex:Ln({},tp),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Lu(u,a),u=t.reduce(((e,t)=>Lu(e,t)),u),u.unstable_sxConfig=Ln({},Qc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return td({sx:e,theme:this})},u}var op=np();function ip(){const e=ad(op);return e[Cu]||e}function ap({props:e,name:t}){return wd({props:e,name:t,defaultTheme:op,themeId:Cu})}const lp=e=>vd(e)&&"classes"!==e,sp=vd,up=function(e={}){const{themeId:t,defaultTheme:r=yd,rootShouldForwardProp:n=vd,slotShouldForwardProp:o=vd}=e,i=e=>td(Ln({},e,{theme:Sd(Ln({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{xa(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Ed(xd(s))}=a,p=An(a,hd),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=vd;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=ya(e,Ln({shouldForwardProp:h,label:undefined},p)),b=(n,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return n=>Cd({styledArg:e,props:n,defaultTheme:r,themeId:t});if(wu(e)){let t,r=e;return e&&e.variants&&(t=e.variants,delete r.variants,r=r=>{let n=e;return bd(r,gd(t),t).forEach((e=>{n=Lu(n,e)})),n}),r}return e})):[];let s=n;if(wu(n)){let e;n&&n.variants&&(e=n.variants,delete s.variants,s=t=>{let r=n;return bd(t,gd(e),e).forEach((e=>{r=Lu(r,e)})),r})}else"function"==typeof n&&n.__emotion_real!==n&&(s=e=>Cd({styledArg:n,props:e,defaultTheme:r,themeId:t}));l&&d&&a.push((e=>{const n=Sd(Ln({},e,{defaultTheme:r,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,n);if(o){const t={};return Object.entries(o).forEach((([r,o])=>{t[r]="function"==typeof o?o(Ln({},e,{theme:n})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const n=Sd(Ln({},e,{defaultTheme:r,themeId:t}));return((e,t,r,n)=>{var o;const i=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return bd(e,t,i)})(e,((e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),gd(r)})(l,n),n,l)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");s=[...n,...e],s.raw=[...n.raw,...e]}const c=g(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:Cu,defaultTheme:op,rootShouldForwardProp:lp});var cp=up;var dp=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function pp(e){return tc("MuiSvgIcon",e)}rc("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fp=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],mp=cp("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Au(r.color)}`],t[`fontSize${Au(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),hp=E.forwardRef((function(e,t){const r=ap({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=An(r,fp),f=E.isValidElement(n)&&"svg"===n.type,m=Ln({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Zu({root:["root","inherit"!==t&&`color${Au(t)}`,`fontSize${Au(r)}`]},pp,n)})(m);return ns.jsxs(mp,Ln({as:a,className:ls(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?ns.jsx("title",{children:c}):null]}))}));hp.muiName="SvgIcon";var gp=hp;function bp(e,t){return bp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bp(e,t)}function vp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bp(e,t)}var yp=!1,xp=y.createContext(null),Sp="unmounted",Ep="exited",Cp="entering",wp="entered",Rp="exiting",Lp=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=Ep,n.appearStatus=Cp):o=wp:o=t.unmountOnExit||t.mountOnEnter?Sp:Ep,n.state={status:o},n.nextCallback=null,n}vp(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Sp?{status:Ep}: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!==Cp&&r!==wp&&(t=Cp):r!==Cp&&r!==wp||(t=Rp)}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===Cp){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:k.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ep&&this.setState({status:Sp})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[k.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||yp?this.safeSetState({status:wp},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Cp},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:wp},(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:k.findDOMNode(this);t&&!yp?(this.props.onExit(n),this.safeSetState({status:Rp},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ep},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ep},(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:k.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===Sp)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=An(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(xp.Provider,{value:null},"function"==typeof r?r(e,n):y.cloneElement(y.Children.only(r),n))},t}(y.Component);function Ap(){}Lp.contextType=xp,Lp.propTypes={},Lp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ap,onEntering:Ap,onEntered:Ap,onExit:Ap,onExiting:Ap,onExited:Ap},Lp.UNMOUNTED=Sp,Lp.EXITED=Ep,Lp.ENTERING=Cp,Lp.ENTERED=wp,Lp.EXITING=Rp;var Dp=Lp;function _p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ip(e,t){var r=Object.create(null);return e&&R.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&L(e)?t(e):e}(e)})),r}function Mp(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Pp(e,t,r){var n=Ip(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(L(a)){var l=i in t,s=i in n,u=t[i],c=L(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&L(u)&&(o[i]=A(a,{onExited:r.bind(null,a),in:u.props.in,exit:Mp(a,"exit",e),enter:Mp(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:r.bind(null,a),in:!0,exit:Mp(a,"exit",e),enter:Mp(a,"enter",e)})}})),o}var Op=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},kp=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(_p(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}vp(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,Ip(r.children,(function(e){return A(e,{onExited:n.bind(null,e),in:!0,appear:Mp(e,"appear",r),enter:Mp(e,"enter",r),exit:Mp(e,"exit",r)})}))):Pp(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Ip(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=Ln({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=An(e,["component","childFactory"]),o=this.state.contextValue,i=Op(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?y.createElement(xp.Provider,{value:o},i):y.createElement(xp.Provider,{value:o},y.createElement(t,n,i))},t}(y.Component);kp.propTypes={},kp.defaultProps={component:"div",childFactory:function(e){return e}};var Tp=kp;const qp=e=>e.scrollTop;function Np(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 Fp(e){return tc("MuiPaper",e)}rc("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 zp=["className","component","elevation","square","variant"],Gp=cp("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return Ln({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Ln({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${_d("#fff",dp(t.elevation))}, ${_d("#fff",dp(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var $p=E.forwardRef((function(e,t){const r=ap({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=An(r,zp),u=Ln({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Zu({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Fp,o)})(u);return ns.jsx(Gp,Ln({as:o,ownerState:u,className:ls(c.root,n),ref:t},s))}));function Hp(e){return"string"==typeof e}function Bp(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Wp(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 jp=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Vp(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=An(e,jp),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=ls(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Ln({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Ln({},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=Bp(Ln({},o,n)),l=Wp(n),s=Wp(o),u=t(a),c=ls(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=Ln({},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=Ln({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Ln({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Hp(e)?t:Ln({},t,{ownerState:Ln({},t.ownerState,r)})}(r,Ln({},s,{ref:zu(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Yp=rc("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Up=["center","classes","className"];let Kp,Xp,Zp,Jp,Qp=e=>e;const ef=pa(Kp||(Kp=Qp`
26
27
  0% {
27
28
  transform: scale(0);
28
29
  opacity: 0.1;
@@ -32,7 +33,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
32
33
  transform: scale(1);
33
34
  opacity: 0.3;
34
35
  }
35
- `)),ic=gi(ec||(ec=rc`
36
+ `)),tf=pa(Xp||(Xp=Qp`
36
37
  0% {
37
38
  opacity: 1;
38
39
  }
@@ -40,7 +41,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
40
41
  100% {
41
42
  opacity: 0;
42
43
  }
43
- `)),ac=gi(tc||(tc=rc`
44
+ `)),rf=pa(Zp||(Zp=Qp`
44
45
  0% {
45
46
  transform: scale(1);
46
47
  }
@@ -52,7 +53,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
52
53
  100% {
53
54
  transform: scale(1);
54
55
  }
55
- `)),lc=Vs("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sc=Vs((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=_l(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=_l(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),ji.jsx("span",{className:p,style:f,children:ji.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(nc||(nc=rc`
56
+ `)),nf=cp("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),of=cp((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=E.useState(!1),p=ls(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=ls(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),E.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),ns.jsx("span",{className:p,style:f,children:ns.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Jp||(Jp=Qp`
56
57
  opacity: 0;
57
58
  position: absolute;
58
59
 
@@ -95,4 +96,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
95
96
  animation-iteration-count: infinite;
96
97
  animation-delay: 200ms;
97
98
  }
98
- `),Zu.rippleVisible,oc,550,(({theme:e})=>e.transitions.easing.easeInOut),Zu.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Zu.child,Zu.childLeaving,ic,550,(({theme:e})=>e.transitions.easing.easeInOut),Zu.childPulsate,ac,(({theme:e})=>e.transitions.easing.easeInOut));var uc=y.forwardRef((function(e,t){const n=$s({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=ar(n,Ju),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),m=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,ji.jsx(sc,{classes:{ripple:_l(o.ripple,Zu.ripple),rippleVisible:_l(o.rippleVisible,Zu.rippleVisible),ripplePulsate:_l(o.ripplePulsate,Zu.ripplePulsate),child:_l(o.child,Zu.child),childLeaving:_l(o.childLeaving,Zu.childLeaving),childPulsate:_l(o.childPulsate,Zu.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),ji.jsx(lc,ir({className:_l(Zu.root,o.root,i),ref:m},a,{children:ji.jsx(Vu,{component:null,exit:!0,children:l})}))}));function cc(e){return Da("MuiButtonBase",e)}var dc=Ra("MuiButtonBase",["root","disabled","focusVisible"]);const pc=["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"],fc=Vs("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"},[`&.${dc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mc=y.forwardRef((function(e,t){const n=$s({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:w,onMouseUp:C,onTouchEnd:D,onTouchMove:R,onTouchStart:L,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:A,type:q}=n,P=ar(n,pc),k=y.useRef(null),O=y.useRef(null),T=ua(O,A),{isFocusVisibleRef:_,onFocus:N,onBlur:F,ref:H}=ba(),[$,z]=y.useState(!1);s&&$&&z(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{z(!0),k.current.focus()}})),[]);const[j,W]=y.useState(!1);y.useEffect((()=>{W(!0)}),[]);const V=j&&!u&&!s;function B(e,t,n=c){return sa((r=>{t&&t(r);return!n&&O.current&&O.current[e](r),!0}))}y.useEffect((()=>{$&&d&&!u&&j&&O.current.pulsate()}),[u,d,$,j]);const G=B("start",E),U=B("stop",h),Y=B("stop",g),K=B("stop",C),X=B("stop",(e=>{$&&e.preventDefault(),w&&w(e)})),Z=B("start",L),J=B("stop",D),Q=B("stop",R),ee=B("stop",(e=>{F(e),!1===_.current&&z(!1),f&&f(e)}),!1),te=sa((e=>{k.current||(k.current=e.currentTarget),N(e),!0===_.current&&(z(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=k.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=sa((e=>{d&&!re.current&&$&&O.current&&" "===e.key&&(re.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=sa((e=>{d&&" "===e.key&&O.current&&$&&!e.defaultPrevented&&(re.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===q?"button":q,le.disabled=s):(P.href||P.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=ua(t,H,k),ue=ir({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:$}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Sa({root:["root",t&&"disabled",n&&"focusVisible"]},cc,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return ji.jsxs(fc,ir({as:ae,className:_l(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Q,onTouchStart:Z,ref:se,tabIndex:s?-1:I,type:q},le,P,{children:[i,V?ji.jsx(uc,ir({ref:T,center:o},M)):null]}))}));var hc=mc;function gc(e){return Da("MuiTypography",e)}Ra("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bc=Vs("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Zi(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>ir({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),yc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sc=y.forwardRef((function(e,t){const n=$s({props:e,name:"MuiTypography"}),r=(e=>xc[e]||e)(n.color),o=Ol(ir({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=yc}=o,f=ar(o,vc),m=ir({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||yc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Sa({root:["root",i,"inherit"!==e.align&&`align${Zi(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},gc,a)})(m);return ji.jsx(bc,ir({as:h,ref:t,ownerState:m,className:_l(g.root,a)},f))}));var Ec=Sc;function wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wc.apply(this,arguments)}function Cc(e){return"string"==typeof e}function Dc(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Rc(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Lc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const Ic=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Mc(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Rc(e,Ic),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=_l(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=wc({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=wc({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Dc(wc({},o,r)),l=Lc(r),s=Lc(o),u=t(a),c=_l(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=wc({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=wc({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(wc({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||Cc(e)?t:wc({},t,{ownerState:wc({},t.ownerState,n)})}(n,wc({},s,{ref:ua(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Ac=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function qc(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ac)).forEach(((e,r)=>{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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Pc(){return!0}function kc(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=qc,isEnabled:a=Pc,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=ua(t.ref,m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=ea(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!m.current)return;const e=ea(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&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 n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ji.jsxs(y.Fragment,{children:[ji.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),ji.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const Oc=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=ua(y.isValidElement(n)?n.ref:null,t);if(ra((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),ra((()=>{if(i&&!o)return na(t,i),()=>{na(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return ji.jsx(y.Fragment,{children:n})}return ji.jsx(y.Fragment,{children:i?T.createPortal(n,i):i})}));function Tc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _c(e){return parseInt(ta(e).getComputedStyle(e).paddingRight,10)||0}function Nc(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Tc(e,o)}))}function Fc(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Hc(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ea(e);return t.body===e?ta(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=ya(ea(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${_c(r)+e}px`;const t=ea(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${_c(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=ea(r).body;else{const t=r.parentElement,n=ta(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const $c=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Tc(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Nc(t,e.mount,e.modalRef,r,!0);const o=Fc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Fc(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Hc(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Fc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Tc(e.modalRef,t),Nc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Tc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function zc(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=$c,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=ua(m,d),[g,v]=y.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},w=sa((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ea(f.current).body;o.add(S(),e),m.current&&E()})),C=y.useCallback((()=>o.isTopModal(S())),[o]),D=sa((e=>{f.current=e,e&&(c&&C()?E():m.current&&Tc(m.current,x))})),R=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{R()}),[R]),y.useEffect((()=>{c?w():b&&i||R()}),[c,R,b,i,w]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Dc(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=wc({},n,t);return wc({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>wc({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Ji((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ji((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:D,isTopModal:C,exited:g,hasTransition:b}}const jc=["onChange","maxRows","minRows","style","value"];function Wc(e){return parseInt(e,10)||0}const Vc={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Bc(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Gc=y.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Rc(e,jc),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=ua(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,n=ta(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=Wc(n.paddingBottom)+Wc(n.paddingTop),s=Wc(n.borderBottomWidth)+Wc(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=y.useCallback((()=>{const e=h();Bc(e)||m((t=>g(t,e)))}),[h]);ra((()=>{const e=()=>{p.current=0,(()=>{const e=h();Bc(e)||T.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=Qi(e),n=u.current,r=ta(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),ra((()=>{v()})),y.useEffect((()=>{p.current=0}),[a]);return ji.jsxs(y.Fragment,{children:[ji.jsx("textarea",wc({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:wc({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),ji.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:wc({},Vc,i,{paddingTop:0,paddingBottom:0})})]})}));function Uc({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var Yc=y.createContext(void 0);function Kc(){return y.useContext(Yc)}function Xc(e){return ji.jsx(ql,ir({},e,{defaultTheme:Fs,themeId:or}))}function Zc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Jc(e,t=!1){return e&&(Zc(e.value)&&""!==e.value||t&&Zc(e.defaultValue)&&""!==e.defaultValue)}function Qc(e){return Da("MuiInputBase",e)}var ed=Ra("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const td=["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"],nd=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Zi(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},rd=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},od=Vs("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nd})((({theme:e,ownerState:t})=>ir({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ed.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&ir({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),id=Vs("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=ir({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return ir({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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ed.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ed.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),ad=ji.jsx(Xc,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ld=y.forwardRef((function(e,t){var n;const r=$s({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:x,minRows:S,multiline:E=!1,name:w,onBlur:C,onChange:D,onClick:R,onFocus:L,onKeyDown:I,onKeyUp:M,placeholder:A,readOnly:q,renderSuffix:P,rows:k,slotProps:O={},slots:T={},startAdornment:_,type:N="text",value:F}=r,H=ar(r,td),$=null!=v.value?v.value:F,{current:z}=y.useRef(null!=$),j=y.useRef(),W=y.useCallback((e=>{}),[]),V=ua(j,b,v.ref,W),[B,G]=y.useState(!1),U=Kc(),Y=Uc({props:r,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:B,y.useEffect((()=>{!U&&d&&B&&(G(!1),C&&C())}),[U,d,B,C]);const K=U&&U.onFilled,X=U&&U.onEmpty,Z=y.useCallback((e=>{Jc(e)?K&&K():X&&X()}),[K,X]);ra((()=>{z&&Z({value:$})}),[$,Z,z]);y.useEffect((()=>{Z(j.current)}),[]);let J=g,Q=v;E&&"input"===J&&(Q=ir(k?{type:void 0,minRows:k,maxRows:k}:{type:void 0,maxRows:x,minRows:S},Q),J=Gc);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(_))}),[U,_]);const ee=ir({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:_,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Sa({root:["root",`color${Zi(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Zi(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Qc,t)})(ee),ne=T.root||s.Root||od,re=O.root||u.root||{},oe=T.input||s.Input||id;return Q=ir({},Q,null!=(n=O.input)?n:u.input),ji.jsxs(y.Fragment,{children:[!p&&ad,ji.jsxs(ne,ir({},re,!Cc(ne)&&{ownerState:ir({},ee,re.ownerState)},{ref:t,onClick:e=>{j.current&&e.currentTarget===e.target&&j.current.focus(),R&&R(e)}},H,{className:_l(te.root,re.className,l,q&&"MuiInputBase-readOnly"),children:[_,ji.jsx(Yc.Provider,{value:null,children:ji.jsx(oe,ir({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{Z("mui-auto-fill-cancel"===e.animationName?j.current:{value:"x"})},name:w,placeholder:A,readOnly:q,required:Y.required,rows:k,value:$,onKeyDown:I,onKeyUp:M,type:N},Q,!Cc(oe)&&{as:J,ownerState:ir({},ee,Q.ownerState)},{ref:V,className:_l(te.input,Q.className,q&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!z){const t=e.target||j.current;if(null==t)throw new Error(rr(1));Z({value:t.value})}v.onChange&&v.onChange(e,...t),D&&D(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,P?P(ir({},Y,{startAdornment:_})):null]}))]})}));var sd=ld;function ud(e){return Da("MuiInput",e)}var cd=ir({},ed,Ra("MuiInput",["root","underline","input"]));function dd(e){return Da("MuiOutlinedInput",e)}var pd=ir({},ed,Ra("MuiOutlinedInput",["root","notchedOutline","input"]));function fd(e){return Da("MuiFilledInput",e)}var md=ir({},ed,Ra("MuiFilledInput",["root","underline","input"])),hd=function(e,t){function n(n,r){return ji.jsx(lu,ir({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=lu.muiName,y.memo(y.forwardRef(n))}(ji.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const gd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],vd={entering:{opacity:1},entered:{opacity:1}},bd=y.forwardRef((function(e,t){const n=Hs(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=Nu}=e,b=ar(e,gd),x=y.useRef(null),S=ua(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(d),C=E(((e,t)=>{Bu(e);const r=Gu({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),D=E(c),R=E(m),L=E((e=>{const t=Gu({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return ji.jsx(v,ir({appear:i,in:s,nodeRef:x,onEnter:C,onEntered:D,onEntering:w,onExit:L,onExited:I,onExiting:R,addEndListener:e=>{o&&o(x.current,e)},timeout:g},b,{children:(e,t)=>y.cloneElement(a,ir({style:ir({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},vd[e],h,a.props.style),ref:S},t))}))}));var yd=bd;function xd(e){return Da("MuiBackdrop",e)}Ra("MuiBackdrop",["root","invisible"]);const Sd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ed=Vs("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>ir({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),wd=y.forwardRef((function(e,t){var n,r,o;const i=$s({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=yd,transitionDuration:g}=i,v=ar(i,Sd),b=ir({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Sa({root:["root",n&&"invisible"]},xd,t)})(b),x=null!=(n=f.root)?n:c.root;return ji.jsx(h,ir({in:p,timeout:g},v,{children:ji.jsx(Ed,ir({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:_l(y.root,l,null==x?void 0:x.className),ownerState:ir({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Cd=wd;var Dd=Ra("MuiBox",["root"]);const Rd=Ns(),Ld=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Vi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Dl);return y.forwardRef((function(e,a){const l=Al(n),s=Ol(e),{className:u,component:c="div"}=s,d=Gi(s,Nl);return ji.jsx(i,Bi({as:c,ref:a,className:_l(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:or,defaultTheme:Rd,defaultClassName:Dd.root,generateClassName:wa.generate});var Id=Ld;function Md(e){return Da("MuiButton",e)}var Ad=Ra("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var qd=y.createContext({});var Pd=y.createContext(void 0);const kd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Od=e=>ir({},"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}}),Td=Vs(hc,{shouldForwardProp:e=>zs(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Zi(n.color)}`],t[`size${Zi(n.size)}`],t[`${n.variant}Size${Zi(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return ir({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":ir({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ts(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ts(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ts(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":ir({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ad.focusVisible}`]:ir({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ad.disabled}`]:ir({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ts(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ad.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ad.disabled}`]:{boxShadow:"none"}})),_d=Vs("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Zi(n.size)}`]]}})((({ownerState:e})=>ir({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Od(e)))),Nd=Vs("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Zi(n.size)}`]]}})((({ownerState:e})=>ir({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Od(e)))),Fd=y.forwardRef((function(e,t){const n=y.useContext(qd),r=y.useContext(Pd),o=$s({props:xa(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,x=ar(o,kd),S=ir({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return ir({},a,Sa({root:["root",i,`${i}${Zi(t)}`,`size${Zi(o)}`,`${i}Size${Zi(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Zi(o)}`],endIcon:["endIcon",`iconSize${Zi(o)}`]},Md,a))})(S),w=g&&ji.jsx(_d,{className:E.startIcon,ownerState:S,children:g}),C=p&&ji.jsx(Nd,{className:E.endIcon,ownerState:S,children:p}),D=r||"";return ji.jsxs(Td,ir({ownerState:S,className:_l(n.className,E.root,s,D),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:_l(E.focusVisible,f),ref:t,type:v},x,{classes:E,children:[w,i,C]}))}));var Hd=Fd;function $d(e){return Da("MuiModal",e)}Ra("MuiModal",["root","hidden","backdrop"]);const zd=["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"],jd=Vs("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>ir({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Wd=Vs(Cd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Vd=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=$s({name:"MuiModal",props:e}),{BackdropComponent:u=Wd,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:D=!1,keepMounted:R=!1,onBackdropClick:L,open:I,slotProps:M,slots:A}=s,q=ar(s,zd),P=ir({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:D,keepMounted:R}),{getRootProps:k,getBackdropProps:O,getTransitionProps:T,portalRef:_,isTopModal:N,exited:F,hasTransition:H}=zc(ir({},P,{rootRef:t})),$=ir({},P,{exited:F}),z=(e=>{const{open:t,exited:n,classes:r}=e;return Sa({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},$d,r)})($),j={};if(void 0===f.props.tabIndex&&(j.tabIndex="-1"),H){const{onEnter:e,onExited:t}=T();j.onEnter=e,j.onExited=t}const W=null!=(n=null!=(r=null==A?void 0:A.root)?r:g.Root)?n:jd,V=null!=(o=null!=(i=null==A?void 0:A.backdrop)?i:g.Backdrop)?o:u,B=null!=(a=null==M?void 0:M.root)?a:v.root,G=null!=(l=null==M?void 0:M.backdrop)?l:v.backdrop,U=Mc({elementType:W,externalSlotProps:B,externalForwardedProps:q,getSlotProps:k,additionalProps:{ref:t,as:h},ownerState:$,className:_l(d,null==B?void 0:B.className,null==z?void 0:z.root,!$.open&&$.exited&&(null==z?void 0:z.hidden))}),Y=Mc({elementType:V,externalSlotProps:G,additionalProps:c,getSlotProps:e=>O(ir({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:_l(null==G?void 0:G.className,null==c?void 0:c.className,null==z?void 0:z.backdrop),ownerState:$});return R||I||H&&!F?ji.jsx(Oc,{ref:_,container:m,disablePortal:E,children:ji.jsxs(W,ir({},U,{children:[!D&&u?ji.jsx(V,ir({},Y)):null,ji.jsx(kc,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:N,open:I,children:y.cloneElement(f,j)})]}))}):null}));var Bd=Vd;function Gd(e){return Da("MuiDivider",e)}var Ud=Ra("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Yd=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Kd=Vs("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>ir({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:ts(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>ir({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>ir({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>ir({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>ir({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Xd=Vs("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>ir({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Zd=y.forwardRef((function(e,t){const n=$s({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=ar(n,Yd),m=ir({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Sa({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Gd,r)})(m);return ji.jsx(Kd,ir({as:a,className:_l(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?ji.jsx(Xd,{className:h.wrapper,ownerState:m,children:o}):null}))}));Zd.muiSkipListHighlight=!0;var Jd=Zd;const Qd=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ep=Vs(od,{shouldForwardProp:e=>zs(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nd(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return ir({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${md.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${md.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${md.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${md.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${md.disabled}, .${md.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${md.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&ir({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),tp=Vs(id,{name:"MuiFilledInput",slot:"Input",overridesResolver:rd})((({theme:e,ownerState:t})=>ir({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),np=y.forwardRef((function(e,t){var n,r,o,i;const a=$s({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=ar(a,Qd),g=ir({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return ir({},t,Sa({root:["root",!n&&"underline"],input:["input"]},fd,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Xi(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:ep,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:tp;return ji.jsx(sd,ir({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));np.muiName="Input";var rp=np;const op=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ip(e){return`scale(${e}, ${e**2})`}const ap={entering:{opacity:1,transform:ip(1)},entered:{opacity:1,transform:"none"}},lp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),sp=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Nu}=e,g=ar(e,op),v=y.useRef(),b=y.useRef(),x=Hs(),S=y.useRef(null),E=ua(S,o.ref,t),w=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},C=w(u),D=w(((e,t)=>{Bu(e);const{duration:n,delay:r,easing:o}=Gu({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:lp?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=w(s),L=w(p),I=w((e=>{const{duration:t,delay:n,easing:r}=Gu({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:lp?o:.666*o,delay:lp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ip(.75),c&&c(e)})),M=w(d);return y.useEffect((()=>()=>{clearTimeout(v.current)}),[]),ji.jsx(h,ir({appear:r,in:a,nodeRef:S,onEnter:D,onEntered:R,onEntering:C,onExit:I,onExited:M,onExiting:L,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,ir({style:ir({opacity:0,transform:ip(.75),visibility:"exited"!==e||a?void 0:"hidden"},ap[e],f,o.props.style),ref:E},t))}))}));sp.muiSupportAuto=!0;var up=sp;const cp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],dp=Vs(od,{shouldForwardProp:e=>zs(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nd(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),ir({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cd.disabled}, .${cd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${cd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),pp=Vs(id,{name:"MuiInput",slot:"Input",overridesResolver:rd})({}),fp=y.forwardRef((function(e,t){var n,r,o,i;const a=$s({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=ar(a,cp),v=(e=>{const{classes:t,disableUnderline:n}=e;return ir({},t,Sa({root:["root",!n&&"underline"],input:["input"]},ud,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Xi(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:dp,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:pp;return ji.jsx(sd,ir({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));fp.muiName="Input";var mp=fp;var hp=y.createContext({});function gp(e){return Da("MuiList",e)}Ra("MuiList",["root","padding","dense","subheader"]);const vp=["children","className","component","dense","disablePadding","subheader"],bp=Vs("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>ir({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var yp=y.forwardRef((function(e,t){const n=$s({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=ar(n,vp),c=y.useMemo((()=>({dense:a})),[a]),d=ir({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sa({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},gp,t)})(d);return ji.jsx(hp.Provider,{value:c,children:ji.jsxs(bp,ir({as:i,className:_l(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function xp(e){return Da("MuiListItemIcon",e)}var Sp=Ra("MuiListItemIcon",["root","alignItemsFlexStart"]);const Ep=["className"],wp=Vs("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>ir({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Cp=y.forwardRef((function(e,t){const n=$s({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=ar(n,Ep),i=ir({},n,{alignItems:y.useContext(hp).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Sa({root:["root","flex-start"===t&&"alignItemsFlexStart"]},xp,n)})(i);return ji.jsx(wp,ir({className:_l(a.root,r),ownerState:i,ref:t},o))}));var Dp=Ra("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Rp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Lp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ip(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Mp(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Ap(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Mp(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var qp=y.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=ar(e,Rp),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ra((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${ya(ea(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=ua(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return ji.jsx(yp,ir({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=ea(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Ap(t,r,s,l,Lp);else if("ArrowUp"===n)e.preventDefault(),Ap(t,r,s,l,Ip);else if("Home"===n)e.preventDefault(),Ap(t,null,s,l,Lp);else if("End"===n)e.preventDefault(),Ap(t,null,s,l,Ip);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Mp(r,o);o.previousKeyMatched&&(s||Ap(t,r,!1,l,Lp,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Pp(e){return Da("MuiPopover",e)}Ra("MuiPopover",["root","paper"]);const kp=["onEntering"],Op=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Tp=["slotProps"];function _p(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Np(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Fp(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Hp(e){return"function"==typeof e?e():e}const $p=Vs(Bd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zp=Vs(Xu,{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});var jp=y.forwardRef((function(e,t){var n,r,o;const i=$s({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=up,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:D=!1}=i,R=ar(i.TransitionProps,kp),L=ar(i,Op),I=null!=(n=null==x?void 0:x.paper)?n:v,M=y.useRef(),A=ua(M,I.ref),q=ir({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:w,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Sa({root:["root"],paper:["paper"]},Pp,t)})(q),k=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=Hp(l),t=(e&&1===e.nodeType?e:ea(M.current).body).getBoundingClientRect();return{top:t.top+_p(t,s.vertical),left:t.left+Np(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),O=y.useCallback((e=>({vertical:_p(e,S.vertical),horizontal:Np(e,S.horizontal)})),[S.horizontal,S.vertical]),T=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=O(t);if("none"===c)return{top:null,left:null,transformOrigin:Fp(n)};const r=k();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=ta(Hp(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Fp(n)}}),[l,c,k,O,h]),[_,N]=y.useState(g),F=y.useCallback((()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);y.useEffect((()=>(D&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,D,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=Qi((()=>{F()})),t=ta(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let H=w;"auto"!==w||E.muiSupportAuto||(H=void 0);const $=f||(l?ea(Hp(l)).body:void 0),z=null!=(r=null==b?void 0:b.root)?r:$p,j=null!=(o=null==b?void 0:b.paper)?o:zp,W=Mc({elementType:j,externalSlotProps:ir({},I,{style:_?I.style:ir({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:A},ownerState:q,className:_l(P.paper,null==I?void 0:I.className)}),V=Mc({elementType:z,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:$,open:g},ownerState:q,className:_l(P.root,p)}),{slotProps:B}=V,G=ar(V,Tp);return ji.jsx(z,ir({},G,!Cc(z)&&{slotProps:B,disableScrollLock:D},{children:ji.jsx(E,ir({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),F()},onExited:()=>{N(!1)},timeout:H},R,{children:ji.jsx(j,ir({},W,{children:d}))}))}))}));function Wp(e){return Da("MuiMenu",e)}Ra("MuiMenu",["root","paper","list"]);const Vp=["onEntering"],Bp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Gp={vertical:"top",horizontal:"right"},Up={vertical:"top",horizontal:"left"},Yp=Vs(jp,{shouldForwardProp:e=>zs(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kp=Vs(zp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Xp=Vs(qp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Zp=y.forwardRef((function(e,t){var n,r;const o=$s({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,x=ar(o.TransitionProps,Vp),S=ar(o,Bp),E=Hs(),w="rtl"===E.direction,C=ir({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),D=(e=>{const{classes:t}=e;return Sa({root:["root"],paper:["paper"],list:["list"]},Wp,t)})(C),R=i&&!s&&d,L=y.useRef(null);let I=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(n=v.paper)?n:Kp,A=null!=(r=b.paper)?r:p,q=Mc({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[D.root,l]}),P=Mc({elementType:M,externalSlotProps:A,ownerState:C,className:D.paper});return ji.jsx(Yp,ir({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Gp:Up,slots:{paper:M,root:v.root},slotProps:{root:q,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:ir({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:C},S,{classes:f,children:ji.jsx(Xp,ir({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===I||s),autoFocusItem:R,variant:g},u,{className:_l(D.list,u.className),children:a}))}))}));function Jp(e){return Da("MuiMenuItem",e)}var Qp=Ra("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const ef=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],tf=Vs(hc,{shouldForwardProp:e=>zs(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>ir({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ts(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ts(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ts(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ts(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ud.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ud.inset}`]:{marginLeft:52},[`& .${Dp.root}`]:{marginTop:0,marginBottom:0},[`& .${Dp.inset}`]:{paddingLeft:36},[`& .${Sp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ir({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Sp.root} svg`]:{fontSize:"1.25rem"}}))));var nf=y.forwardRef((function(e,t){const n=$s({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=ar(n,ef),f=y.useContext(hp),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);ra((()=>{r&&h.current&&h.current.focus()}),[r]);const g=ir({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return ir({},a,Sa({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Jp,a))})(n),b=ua(h,t);let x;return n.disabled||(x=void 0!==c?c:-1),ji.jsx(hp.Provider,{value:m,children:ji.jsx(tf,ir({ref:b,role:u,tabIndex:x,component:o,focusVisibleClassName:_l(v.focusVisible,s),className:_l(v.root,d)},p,{ownerState:g,classes:v}))})}));function rf(e){return Da("MuiNativeSelect",e)}var of=Ra("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const af=["className","disabled","error","IconComponent","inputRef","variant"],lf=({ownerState:e,theme:t})=>ir({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ir({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${of.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),sf=Vs("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:zs,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${of.multiple}`]:t.multiple}]}})(lf),uf=({ownerState:e,theme:t})=>ir({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${of.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),cf=Vs("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Zi(n.variant)}`],n.open&&t.iconOpen]}})(uf);var df,pf=y.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=ar(e,af),u=ir({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Sa({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Zi(n)}`,i&&"iconOpen",r&&"disabled"]},rf,t)})(u);return ji.jsxs(y.Fragment,{children:[ji.jsx(sf,ir({ownerState:u,className:_l(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:ji.jsx(cf,{as:i,ownerState:u,className:c.icon})]})}));const ff=["children","classes","className","label","notched"],mf=Vs("fieldset",{shouldForwardProp:zs})({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%"}),hf=Vs("legend",{shouldForwardProp:zs})((({ownerState:e,theme:t})=>ir({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&ir({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const gf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vf=Vs(od,{shouldForwardProp:e=>zs(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:nd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ir({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${pd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${pd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${pd.focused} .${pd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${pd.error} .${pd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${pd.disabled} .${pd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&ir({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),bf=Vs((function(e){const{className:t,label:n,notched:r}=e,o=ar(e,ff),i=null!=n&&""!==n,a=ir({},e,{notched:r,withLabel:i});return ji.jsx(mf,ir({"aria-hidden":!0,className:t,ownerState:a},o,{children:ji.jsx(hf,{ownerState:a,children:i?ji.jsx("span",{children:n}):df||(df=ji.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),yf=Vs(id,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rd})((({theme:e,ownerState:t})=>ir({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),xf=y.forwardRef((function(e,t){var n,r,o,i,a;const l=$s({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=ar(l,gf),v=(e=>{const{classes:t}=e;return ir({},t,Sa({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},dd,t))})(l),b=Kc(),x=Uc({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=ir({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(n=null!=(r=m.root)?r:s.Root)?n:vf,w=null!=(o=null!=(i=m.input)?i:s.Input)?o:yf;return ji.jsx(sd,ir({slots:{root:E,input:w},renderSuffix:e=>ji.jsx(bf,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=ji.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:ir({},v,{notchedOutline:null})}))}));xf.muiName="Input";var Sf=xf;function Ef(e){return Da("MuiSelect",e)}var wf,Cf=Ra("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Df=["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"],Rf=Vs("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Cf.select}`]:t.select},{[`&.${Cf.select}`]:t[n.variant]},{[`&.${Cf.error}`]:t.error},{[`&.${Cf.multiple}`]:t.multiple}]}})(lf,{[`&.${Cf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Lf=Vs("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Zi(n.variant)}`],n.open&&t.iconOpen]}})(uf),If=Vs("input",{shouldForwardProp:e=>js(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 Mf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Af(e){return null==e||"string"==typeof e&&!e.trim()}const qf=y.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:x,onBlur:S,onChange:E,onClose:w,onFocus:C,onOpen:D,open:R,readOnly:L,renderValue:I,SelectDisplayProps:M={},tabIndex:A,value:q,variant:P="standard"}=e,k=ar(e,Df),[O,T]=la({controlled:q,default:c,name:"Select"}),[_,N]=la({controlled:R,default:u,name:"Select"}),F=y.useRef(null),H=y.useRef(null),[$,z]=y.useState(null),{current:j}=y.useRef(null!=R),[W,V]=y.useState(),B=ua(t,h),G=y.useCallback((e=>{H.current=e,e&&z(e)}),[]),U=null==$?void 0:$.parentNode;y.useImperativeHandle(B,(()=>({focus:()=>{H.current.focus()},node:F.current,value:O})),[O]),y.useEffect((()=>{u&&_&&$&&!j&&(V(a?null:U.clientWidth),H.current.focus())}),[$,a]),y.useEffect((()=>{i&&H.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=ea(H.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&H.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?D&&D(t):w&&w(t),j||(V(a?null:U.clientWidth),N(e))},K=y.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==n&&(T(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),E(o,e)}b||Y(!1,t)}},Z=null!==$&&_;let J,Q;delete k["aria-invalid"];const ee=[];let te=!1;(Jc({value:O})||p)&&(I?J=I(O):te=!0);const ne=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(b){if(!Array.isArray(O))throw new Error(rr(2));t=O.some((t=>Mf(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Mf(O,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&&(J=b?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=W;!a&&j&&$&&(oe=U.clientWidth),re=void 0!==A?A:d?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=ir({},e,{variant:P,value:O,open:Z,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Sa({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Zi(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Ef,t)})(ae),se=ir({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),ue=aa();return ji.jsxs(y.Fragment,{children:[ji.jsx(Rf,ir({ref:G,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||L?null:e=>{0===e.button&&(e.preventDefault(),H.current.focus(),Y(!0,e))},onBlur:e=>{!Z&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:x}}),S(e))},onFocus:C},M,{ownerState:ae,className:_l(M.className,le.select,s),id:ie,children:Af(J)?wf||(wf=ji.jsx("span",{className:"notranslate",children:"​"})):J})),ji.jsx(If,ir({"aria-invalid":f,value:Array.isArray(O)?O.join(","):O,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},k)),ji.jsx(Lf,{as:m,className:le.icon,ownerState:ae}),ji.jsx(Zp,ir({id:`menu-${x||""}`,anchorEl:U,open:Z,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:ir({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:ir({},v.slotProps,{paper:ir({},se,{style:ir({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var Pf=qf;const kf=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Of=["root"],Tf={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>zs(e)&&"variant"!==e,slot:"Root"},_f=Vs(mp,Tf)(""),Nf=Vs(Sf,Tf)(""),Ff=Vs(rp,Tf)(""),Hf=y.forwardRef((function(e,t){const n=$s({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=hd,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:x,open:S,renderValue:E,SelectDisplayProps:w,variant:C="outlined"}=n,D=ar(n,kf),R=v?pf:Pf,L=Uc({props:n,muiFormControl:Kc(),states:["variant","error"]}),I=L.variant||C,M=ir({},n,{variant:I,classes:i}),A=(e=>{const{classes:t}=e;return t})(M),q=ar(A,Of),P=d||{standard:ji.jsx(_f,{ownerState:M}),outlined:ji.jsx(Nf,{label:f,ownerState:M}),filled:ji.jsx(Ff,{ownerState:M})}[I],k=ua(t,P.ref);return ji.jsx(y.Fragment,{children:y.cloneElement(P,ir({inputComponent:R,inputProps:ir({children:o,error:L.error,IconComponent:u,variant:I,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:x,open:S,renderValue:E,SelectDisplayProps:ir({id:c},w)},p,{classes:p?Xi(q,p.classes):q},d?d.props.inputProps:{})},g&&v&&"outlined"===I?{notched:!0}:{},{ref:k,className:_l(P.props.className,a,A.root)},!d&&{variant:I},D))})}));Hf.muiName="Select";var $f=Hf;const zf=Vs(Id,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),jf=Vs(eu,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),Wf=Vs(Zp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Vf=Vs(Jd)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),Bf=Vs(nf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:e.spacing(.25,2),marginBottom:e.spacing(.5)}))),Gf=Vs(nf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative",overflow:"hidden",boxSizing:"border-box",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),Uf=Vs("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),Yf=Vs("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Kf=Vs(Ec)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),Xf=Vs(Cp)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function Zf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jf=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Zf(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("defs",null,E.createElement("path",{id:"arrow_right_svg__luiicons_arrow_right-a",d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})),E.createElement("use",{xlinkHref:"#arrow_right_svg__luiicons_arrow_right-a"})),Qf=x(Jf),em=(e,t)=>e.map((e=>e.map((e=>{var n;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(n=e.items)||void 0===n?void 0:n.map((({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).map((([,e])=>e(!1))),await e(n)}}:{}})))}}))));let tm={};const nm=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=v(!1),p=I(null),f=C((e=>{e.stopPropagation(),d(!1)}),[d]);return E.createElement(E.Fragment,null,E.createElement(Gf,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),tm={}),null!=a&&a.length&&(d(!0),tm[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&E.createElement(Uf,null),E.createElement(Yf,null,E.createElement(Xf,null,E.createElement(o,null)),E.createElement(Kf,{variant:"body2"},r)),null!=a&&a.length?E.createElement(Qf,null):null),(null==a?void 0:a.length)&&E.createElement(om,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:em(a,tm),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}))},rm=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&E.createElement(Bf,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>E.createElement(nm,{key:e.id,...e,isSubMenu:t,handleHeadCellMenuKeyDown:n})))].filter(Boolean)]})),om=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?E.createElement(Wf,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r,...a?{anchorOrigin:a}:{},...i?{transformOrigin:i}:{}},(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[rm({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?E.createElement(Vf,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null;function im(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const am=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){im(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("defs",null,E.createElement("path",{id:"descending_svg__descending-a",d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"})),E.createElement("use",{xlinkHref:"#descending_svg__descending-a"})),lm=x(am);function sm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const um=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("defs",null,E.createElement("path",{id:"ascending_svg__ascending-a",d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"})),E.createElement("use",{xlinkHref:"#ascending_svg__ascending-a"})),cm=x(um);function dm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pm=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116.509.509 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.087a.506.506 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0Z"})),fm=x(pm);function mm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hm=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1V1.5ZM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1h1.5ZM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1v1.5Zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1v1.5ZM6 0h4v1H6V0ZM0 6h1v4H0V6Zm15 0h1v4h-1V6Zm-9 9h4v1H6v-1Z"})),gm=x(hm);function vm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bm=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("defs",null,E.createElement("path",{id:"select_all_svg__select_all-a",d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4h2Zm12-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 0h10Zm0 1H5v10h10V1Zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28l3.497-3.627Z"})),E.createElement("use",{xlinkHref:"#select_all_svg__select_all-a"})),ym=x(bm);function xm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sm=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("defs",null,E.createElement("path",{id:"clear_selections_svg__selections-clear-a",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-.5Zm-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 0Zm0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM9.166 6.166c1.555-1.555 4.113-1.555 5.668 0 1.555 1.555 1.555 4.113 0 5.668-1.555 1.555-4.113 1.555-5.668 0-1.555-1.555-1.555-4.063 0-5.668Zm4.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 0c-.25.201-.25.602 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.304 1.304-1.304Z"})),E.createElement("use",{xlinkHref:"#clear_selections_svg__selections-clear-a"})),Em=x(Sm);function wm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cm=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("defs",null,E.createElement("path",{id:"select_possible_svg__luiicons_select_possible-a",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-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 4v8h8V4H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),E.createElement("use",{xlinkHref:"#select_possible_svg__luiicons_select_possible-a"})),Dm=x(Cm);function Rm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lm=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("defs",null,E.createElement("path",{id:"select_alternative_svg__luiicons_select_alternative-a",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-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 4v8l8-8H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),E.createElement("use",{xlinkHref:"#select_alternative_svg__luiicons_select_alternative-a"})),Im=x(Lm);function Mm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Am=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("defs",null,E.createElement("path",{id:"select_excluded_svg__luiicons_select_excluded-a",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-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),E.createElement("use",{xlinkHref:"#select_excluded_svg__luiicons_select_excluded-a"})),qm=x(Am);function Pm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const km=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("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.707L3.915 8ZM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h14Zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2h2Z"})),Om=x(km);var Tm;!function(e){e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize"}(Tm||(Tm={}));const _m=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnClosetHeaderAdjuster:d})=>{const p=[];if(n[Tm.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:cm,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:lm,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[Tm.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:fm,enabled:!0}]}]),n[Tm.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:gm,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:ym,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:Dm,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:Im,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:qm,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:Em,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[Tm.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:Om,enabled:!0}]}]),p},Nm=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=pn({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=r,{fieldInstance:y,selectionActionsEnabledStatus:x,resetSelectionActionsEnabledStatus:S,updateSelectionActionsEnabledStatus:D}=(({headerData:e,app:t})=>{const[n,r]=v(null),[o,i]=v(tu);return w((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:C((()=>i(tu)),[]),updateSelectionActionsEnabledStatus:C((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:nu(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:nu(["qSelected"],n.qStateCounts),canSelectPossible:nu(["qOption"],n.qStateCounts),canSelectAlternative:nu(["qAlternative"],n.qStateCounts),canSelectExcluded:nu(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),R=C((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);w((()=>{e||(S(),null!=d&&d.model&&d.model.getLayout().then((e=>{D(e)})).catch((e=>console.error(e))))}),[e,S,D,null==d?void 0:d.model]);const L=C((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?E.createElement(zf,{rightAligned:"right"===h,shouldShowMenuIcon:s},s&&E.createElement(jf,{size:"small",className:pt,"data-testid":pt,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},E.createElement(eu,null)),E.createElement(om,{open:e,anchorEl:n.current,onClose:L,menuGroups:_m({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:y,selectionActionsEnabledStatus:x,anchorRef:n,setFocusOnClosetHeaderAdjuster:null==p?void 0:p.setFocusOnClosetHeaderAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},Fm=Vs(Id,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),Hm=Vs($f,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),$m=Vs(Hd,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),zm=Vs(Ec)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})));function jm(e){if(e.type)return e;if("#"===e.charAt(0))return jm(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Wm(e,t){return e=jm(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}const Vm={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"},Bm={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Vm,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Gm=12,Um=14,Ym=16,Km=24,Xm=3,Zm=300,Jm=400,Qm=600,eh=700,th={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Wm(Bm.GREYSCALE_0,.05),Wm(Bm.GREEN_PALE,.5),Wm(Bm.BLUE_PALE,.5),Wm(Bm.GREEN_PALE,.5),Wm(Bm.BLUE_PALE,.5),Wm(Bm.GREEN_PALE,.5),Wm(Bm.BLUE_PALE,.5);var nh,rh;function oh(){return oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oh.apply(this,arguments)}Wm(Bm.GREEN_PALE,.5),Wm(Bm.BLUE_PALE,.5),Wm(Bm.GREEN_PALE,.5),Wm(Bm.BLUE_PALE,.5);var ih,ah,lh=function(e){return y.createElement("svg",oh({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),nh||(nh=y.createElement("defs",null,y.createElement("path",{id:"ArrowDown_svg__a",d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"}))),rh||(rh=y.createElement("use",{xlinkHref:"#ArrowDown_svg__a",fillRule:"evenodd"})))};function sh(){return sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sh.apply(this,arguments)}var uh=function(e){return y.createElement("svg",sh({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),ih||(ih=y.createElement("defs",null,y.createElement("path",{id:"Close_svg__a",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"}))),ah||(ah=y.createElement("use",{xlinkHref:"#Close_svg__a"})))};function ch({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return E.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var dh=(e={})=>E.createElement(ch,{...e},E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},E.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),E.createElement("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"}))),ph=(e={})=>E.createElement(ch,{...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),E.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),fh=(e={})=>E.createElement(ch,{fontSize:"medium",...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},E.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),mh=(e={})=>E.createElement(ch,{fontSize:"medium",...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("defs",null,E.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},E.createElement("use",{href:"#radio-checked-path-1"})),E.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),E.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),hh=({className:e})=>E.createElement(ch,{fontSize:"small",className:e},E.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},E.createElement("g",{transform:"translate(4.324187, 1.300372)"},E.createElement("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"}),E.createElement("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"})))))),gh=(e={})=>E.createElement(ch,{...e},E.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},E.createElement("rect",{stroke:Bm.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const vh={MuiAccordion:{styleOverrides:{root:{backgroundColor:Bm.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Bm.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:E.createElement(lh,{"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 ${Bm.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Bm.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Bm.MISC_FOCUS_BORDER}`,borderRadius:Xm,backgroundColor:Bm.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 ${Bm.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Bm.WHITE,color:Bm.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:Xm},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Bm.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Bm.GREYSCALE_0_15,backgroundColor:Bm.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Bm.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Bm.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Bm.GREEN_PALE},"&:active":{backgroundColor:Bm.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Bm.GREEN_PALE,boxShadow:`0 0 0 3px ${ts(Bm.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Bm.BLUE_PALE},"&:active":{backgroundColor:Bm.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Bm.BLUE_PALE,boxShadow:`0 0 0 3px ${ts(Bm.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:Xm,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Bm.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Bm.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Bm.GREYSCALE_0_15,backgroundColor:Bm.GREYSCALE_100_60,"&:active":{backgroundColor:Bm.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Bm.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Bm.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Bm.PURPLE,"&.Mui-focusVisible":{borderColor:Bm.PURPLE,boxShadow:`0 0 0 3px ${ts(Bm.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Bm.GREEN,"&.Mui-focusVisible":{borderColor:Bm.GREEN,boxShadow:`0 0 0 3px ${ts(Bm.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Bm.BLUE,"&.Mui-focusVisible":{borderColor:Bm.BLUE,boxShadow:`0 0 0 3px ${ts(Bm.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Bm.ORANGE,"&.Mui-focusVisible":{borderColor:Bm.ORANGE,boxShadow:`0 0 0 3px ${ts(Bm.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Bm.RED,"&.Mui-focusVisible":{borderColor:Bm.RED,boxShadow:`0 0 0 3px ${ts(Bm.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Bm.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Bm.PURPLE_PALE},"&:active":{backgroundColor:Bm.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Bm.PURPLE_PALE,boxShadow:`0 0 0 3px ${ts(Bm.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Bm.GREEN_PALE},"&:active":{backgroundColor:Bm.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Bm.GREEN_PALE,boxShadow:`0 0 0 3px ${ts(Bm.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Bm.BLUE_PALE},"&:active":{backgroundColor:Bm.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Bm.BLUE_PALE,boxShadow:`0 0 0 3px ${ts(Bm.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Bm.ORANGE_PALE},"&:active":{backgroundColor:Bm.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Bm.ORANGE_PALE,boxShadow:`0 0 0 3px ${ts(Bm.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Bm.RED_PALE},"&:active":{backgroundColor:Bm.RED_DARK},"&.Mui-focusVisible":{borderColor:Bm.RED_PALE,boxShadow:`0 0 0 3px ${ts(Bm.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:Bm.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Bm.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Xm,boxShadow:`inset 0 0 0 2px ${Bm.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:E.createElement(uh,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Gm,borderRadius:Xm,color:Bm.TEXT_PRIMARY,backgroundColor:Bm.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Bm.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Bm.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Bm.GREYSCALE_0_05,color:Bm.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Bm.GREEN,borderColor:Bm.GREEN},"&.MuiChip-outlinedInfo":{color:Bm.BLUE,borderColor:Bm.BLUE},"&.MuiChip-outlinedWarning":{color:Bm.ORANGE,borderColor:Bm.ORANGE},"&.MuiChip-outlinedError":{color:Bm.RED,borderColor:Bm.RED}},outlined:{border:`solid 1px ${Bm.GREYSCALE_0_15}`,backgroundColor:Bm.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Xm,boxShadow:"none",backgroundColor:Bm.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Bm.GREEN,borderColor:Bm.GREEN},outlinedSecondary:{color:Bm.BLUE,borderColor:Bm.BLUE},label:{fontFamily:th.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:E.createElement(uh,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:E.createElement(lh,{"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:Xm},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:Um,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Bm.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Bm.GREYSCALE_0_10},"&:hover":{backgroundColor:Bm.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Xm,border:`solid 1px ${Bm.GREYSCALE_0_15}`,color:Bm.GREYSCALE_0_60,marginRight:0,width:Km,height:Km},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Bm.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Xm,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Bm.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Um}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Gm,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Bm.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Bm.GREYSCALE_25,fontSize:Gm,fontFamily:th.FONT_FAMILY,fontWeight:Qm,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Bm.TEXT_PRIMARY},"&.Mui-error":{color:Bm.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Bm.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Jm,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Bm.TEXT_SECONDARY,content:"'(required)'",fontWeight:Jm,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Um,lineHeight:"16px",backgroundColor:Bm.WHITE,borderRadius:Xm,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bm.GREYSCALE_0_05}`,borderColor:Bm.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bm.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Bm.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Bm.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bm.RED}`,boxShadow:`0px 0px 0px 1px ${Bm.RED}, inset 0 2px 0 0 ${Bm.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bm.GREYSCALE_0_10}`,borderColor:Bm.GREYSCALE_0_10,backgroundColor:Bm.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Bm.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Bm.GREYSCALE_0_15,borderRadius:Xm,boxShadow:`inset 0 2px 0 0 ${Bm.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>E.createElement(lh,{...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:Bm.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Bm.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Bm.GREYSCALE_0_03},"&:active":{backgroundColor:Bm.GREYSCALE_0_10},"&:focus":{backgroundColor:Bm.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Bm.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Bm.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Bm.GREYSCALE_0_30,"&:hover":{backgroundColor:Bm.GREYSCALE_0_0,borderColor:Bm.GREYSCALE_0_15},"& ~svg":{color:Bm.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Bm.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Xm}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Bm.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Bm.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Bm.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Um,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Gm,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Gm,fontWeight:Qm,color:Bm.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Qm}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Bm.GREYSCALE_0_15}, 0px 0px 0px 1px ${Bm.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:E.createElement(fh,null),checkedIcon:E.createElement(mh,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Bm.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Bm.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Bm.GREEN_PALE,boxShadow:`0 0 0 3px ${ts(Bm.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Bm.BLUE_PALE,boxShadow:`0 0 0 3px ${ts(Bm.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Bm.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Bm.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:E.createElement(gh,null),checkedIcon:E.createElement(dh,null),indeterminateIcon:E.createElement(ph,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Xm,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Bm.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Bm.GREYSCALE_0_55,color:Bm.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:Bm.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Bm.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Bm.GREYSCALE_0_55,"&:hover":{color:Bm.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:Bm.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Bm.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Um,color:Bm.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Qm},secondary:{fontSize:Gm,color:Bm.GREYSCALE_45,fontWeight:Jm,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Um,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Bm.GREYSCALE_0_03},"&:active":{backgroundColor:Bm.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Um,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Bm.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Gm,borderBottom:`solid 1px ${Bm.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Um,color:Bm.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Bm.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Bm.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Bm.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:Bm.RED}}},"&.Mui-focusVisible":{backgroundColor:Bm.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:Bm.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:Bm.GREEN,height:"24px","&.Mui-disabled":{color:Bm.GREYSCALE_0_15}},rail:{backgroundColor:Bm.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Bm.GREYSCALE_0_05}`,borderRadius:Xm,boxShadow:`inset 0px 0px 0px 1px ${Bm.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Bm.GREYSCALE_0_05}`,borderRadius:Xm},thumb:{height:"16px",width:"16px",borderRadius:Xm,backgroundColor:Bm.WHITE,boxShadow:`0px 1px 2px 0px ${Bm.GREYSCALE_0_15}, 0px 0px 0px 1px ${Bm.GREYSCALE_0_05}`,"&:hover":{borderRadius:Xm,boxShadow:`0 2px 4px 0 ${Bm.GREYSCALE_0_30}, 0 0 0 1px ${Bm.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Bm.GREYSCALE_0_15}, 0 0 0 1px ${Bm.GREYSCALE_0_06}, 0 0 0 2px ${Bm.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Bm.GREYSCALE_0_15}, 0 0 0 1px ${Bm.GREYSCALE_0_06}, 0 0 0 2px ${Bm.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Bm.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Bm.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Bm.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Bm.GREYSCALE_0_15},markLabel:{color:Bm.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Bm.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Bm.WHITE,color:Bm.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:Bm.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:Bm.GREEN_PALE,boxShadow:`0 0 0 3px ${ts(Bm.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Bm.BLUE_PALE,boxShadow:`0 0 0 3px ${ts(Bm.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Bm.GREYSCALE_0_15,borderRadius:Xm},thumb:{height:"16px",width:"16px",borderRadius:Xm,backgroundColor:Bm.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:Um,fontWeight:Qm,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Bm.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Bm.MISC_FOCUS_BORDER}`,backgroundColor:Bm.GREYSCALE_0_03,borderRadius:Xm},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Bm.GREYSCALE_25,"&.Mui-selected":{color:Bm.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Um,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Bm.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Bm.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Bm.GREYSCALE_85}`,borderRight:`1px solid ${Bm.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Qm,backgroundColor:Bm.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:Bm.GREYSCALE_98,borderBottom:`1px solid ${Bm.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Bm.GREYSCALE_85}`,borderTop:`1px solid ${Bm.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Bm.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Bm.GREYSCALE_0_05,"&:hover":{backgroundColor:Bm.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Bm.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>E.createElement(hh,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Bm.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:Um,borderRadius:Xm,padding:"7px 16px",border:`1px solid ${Bm.GREYSCALE_0_15}`,backgroundColor:Bm.GREYSCALE_100_60,color:Bm.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Bm.GREYSCALE_0_10,border:`1px solid ${Bm.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Bm.GREYSCALE_0_03,border:`1px solid ${Bm.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Bm.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Bm.MISC_FOCUS_BORDER}`,border:`1px solid ${Bm.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Bm.GREYSCALE_25,backgroundColor:Bm.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Bm.GREYSCALE_0_10,border:`1px solid ${Bm.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Gm,height:24,width:24,padding:7},sizeLarge:{fontSize:Ym,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Um,borderRadius:Xm}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Bm.GREYSCALE_20},tooltip:{backgroundColor:Bm.GREYSCALE_20,fontSize:Gm,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var bh=e=>vh;const yh={mode:"light",primary:{light:Bm.GREEN_PALE,main:Bm.GREEN,dark:Bm.GREEN_DARK,contrastText:Bm.WHITE},secondary:{light:Bm.BLUE_PALE,main:Bm.BLUE,dark:Bm.BLUE_DARK,contrastText:Bm.WHITE},error:{light:Bm.RED_PALE,main:Bm.RED,dark:Bm.RED_DARK,contrastText:Bm.WHITE},warning:{light:Bm.ORANGE_PALE,main:Bm.ORANGE,dark:Bm.ORANGE_DARK,contrastText:Bm.WHITE},success:{light:Bm.GREEN_PALE,main:Bm.GREEN,dark:Bm.GREEN_DARK,contrastText:Bm.WHITE},info:{light:Bm.BLUE_PALE,main:Bm.BLUE,dark:Bm.BLUE_DARK,contrastText:Bm.WHITE},text:{primary:Bm.TEXT_PRIMARY,secondary:Bm.TEXT_SECONDARY,disabled:Bm.GREYSCALE_0_30},action:{hover:Bm.GREYSCALE_0_03,hoverOpacity:.05,selected:Bm.GREYSCALE_0_05},amethyst:{main:Bm.PURPLE,light:Bm.PURPLE_PALE,dark:Bm.PURPLE_DARK,contrastText:Bm.WHITE},background:{paper:Bm.WHITE,default:Bm.GREYSCALE_95},divider:Bm.GREYSCALE_0_15},xh=e=>({components:bh(),palette:yh,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:Um,fontWeightLight:Zm,fontWeightRegular:Jm,fontWeightMedium:Qm,fontWeightBold:eh,htmlFontSize:Um,fontFamily:th.FONT_FAMILY,button:{fontWeight:Qm,fontSize:Um,textTransform:"none"},body1:{fontSize:Ym,lineHeight:"24px"},body2:{fontSize:Um,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Km,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ym,fontWeight:Qm,lineHeight:"16px"},h6:{fontSize:Um,fontWeight:Qm,lineHeight:"16px"},caption:{color:Bm.TEXT_SECONDARY},subtitle1:{fontSize:Um,color:Bm.TEXT_SECONDARY},subtitle2:{fontSize:Gm,color:Bm.TEXT_SECONDARY}},shape:{borderRadius:Xm}}),Sh={...Vm,MISC_FOCUS_BORDER:Bm.MISC_FOCUS_BORDER},Eh=(e="light")=>xh(),wh=Eh().palette,Ch={TEXT:wh.text.primary,DISABLED:wh.text.disabled,HOVER:wh.action.hover,WHITE:Sh.GREYSCALE_100,BORDER_LIGHT:Sh.GREYSCALE_90,BORDER_MEDIUM:Sh.GREYSCALE_85,BORDER_HEAVY:Sh.GREYSCALE_50,DARK_MODE_TEXT:Sh.GREYSCALE_95,DARK_MODE_BORDER:Sh.GREYSCALE_95,DARK_MODE_DISABLED:Sh.GREYSCALE_70,DARK_MODE_BACKGROUND:Sh.GREYSCALE_20},Dh=e=>e.isDark?{background:e.color,borderColor:Ch.DARK_MODE_BORDER,color:Ch.DARK_MODE_TEXT,disabledColor:Ch.DARK_MODE_DISABLED,iconColor:Ch.DARK_MODE_TEXT}:{background:e.color,borderColor:Ch.BORDER_MEDIUM,color:Ch.TEXT,disabledColor:Ch.DISABLED},Rh=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=b((()=>Dh(r.background)),[r]);if(!n.active)return null;const a=o?E.createElement(Fm,{footerStyle:i},e):null;return t?O.createPortal(e,t):a},Lh=M({}),Ih=()=>S(Lh),Mh=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=b((()=>Dh(p.background)),[p]),y=o?o.getBoundingClientRect().width:m.width,x=pn({translator:d}),S=b((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:m,layout:h,footerStyle:v,tabIndex:g,width:y})),[t,n,r,o,i,a,l,s,u,c,x,p,f,m,h,v,g,y]);return E.createElement(Lh.Provider,{value:S},e)};var Ah,qh;!function(e){e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage"}(Ah||(Ah={})),function(e){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"}(qh||(qh={}));const Ph=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=Ih(),{page:o,rowsPerPage:i}=n;if(t<=qh.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return E.createElement(zm,{variant:"caption"},a)},kh=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=Ih(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return E.createElement(E.Fragment,null,E.createElement(zm,{variant:"caption",id:d},u,":"),E.createElement(Hm,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},Oh=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=Ih();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>qh.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=E.createElement(E.Fragment,null,t.rowsPerPageOptions.map((e=>E.createElement("option",{key:e,value:e},e))));return E.createElement(kh,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},Th=1e3,_h="…",Nh=({totalPages:e,page:t})=>{const n=Math.min(e,Th),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-Th):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return E.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(E.createElement("option",{key:"startMoreOptions",value:_h,disabled:!0},_h)),o<e-1&&a.push(E.createElement("option",{key:"endMoreOptions",value:_h,disabled:!0},_h)),E.createElement(E.Fragment,null,a)},Fh=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=Ih(),{page:o}=e;if(t<=qh.SelectPage)return null;const i=E.createElement(Nh,{totalPages:n,page:o});return E.createElement(kh,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};function Hh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $h=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hh(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("defs",null,E.createElement("path",{id:"arrow_left_svg__luiicons_arrow_left-a",d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),E.createElement("use",{xlinkHref:"#arrow_left_svg__luiicons_arrow_left-a",fillRule:"evenodd"})),zh=x($h);function jh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wh=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jh(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("defs",null,E.createElement("path",{id:"arrow_left_stop_svg__arrow-left-stop-a",d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8l6-6ZM4 2v12H2V2h2Z"})),E.createElement("use",{xlinkHref:"#arrow_left_stop_svg__arrow-left-stop-a"})),Vh=x(Wh);function Bh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gh=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Bh(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("defs",null,E.createElement("path",{id:"arrow_right_stop_svg__arrow-right-stop-a",d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5 3.5 2ZM14 2v12h-2V2h2Z"})),E.createElement("use",{xlinkHref:"#arrow_right_stop_svg__arrow-right-stop-a"})),Uh=x(Gh),Yh={FirstPage:Vh,PreviousPage:zh,NextPage:Qf,LastPage:Uh,FirstPageRTL:Uh,PreviousPageRTL:Qf,NextPageRTL:zh,LastPageRTL:Vh},Kh=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=Ih(),u=Yh[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},Xh=()=>{const{pageInfo:e,width:t}=Ih(),n=0===e.page,{IconComponent:r,styledProps:o}=Kh({type:Ah.FirstPage,disabledCondition:n,pageNumber:0});return t<=qh.FirstPage?null:E.createElement($m,{...o},E.createElement(r,{height:dt}))},Zh=()=>{const{pageInfo:e}=Ih(),t=0===e.page,{IconComponent:n,styledProps:r}=Kh({type:Ah.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return E.createElement($m,{...r},E.createElement(n,{height:dt}))},Jh=e=>{e.stopPropagation(),e.preventDefault()},Qh=(e,t,n=!1)=>{n&&e.key===ft.TAB&&!e.shiftKey&&(Jh(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},eg=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=Ih(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Kh({type:Ah.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>qh.FirstPage&&o>qh.LastPage)&&t.enabled?e=>Qh(e,t,r):null;return E.createElement($m,{...l,onKeyDown:s},E.createElement(a,{height:dt}))},tg=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=Ih(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Kh({type:Ah.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>Qh(e,t,r):null;return o<=qh.LastPage?null:E.createElement($m,{...l,onKeyDown:s},E.createElement(a,{height:dt}))};var ng=A((e=>E.createElement(Mh,{...e},E.createElement(Oh,null),E.createElement(Fh,null),E.createElement(Ph,null),E.createElement(Xh,null),E.createElement(Zh,null),E.createElement(eg,null),E.createElement(tg,null))));const rg=e=>E.createElement(Rh,{...e},E.createElement(ng,{...e})),og=Vs(Id,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${ht}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, :active":{outline:"none",[`& .${ht}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),ig=Vs(Id)({position:"absolute",height:"100%",width:"3px"}),ag=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=b((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=r||o?gt.PixelsMin:gt.PixelsMinTable,f=n?0:1,m={left:r&&!c?d.columnWidth-f:"100%"},h=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:vt.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},v=e=>{const t=e.clientX-d.initX;h(t)},y=e=>{Jh(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",y),g()},x=e=>{const t=e.touches[0].clientX-d.initX;h(t)},S=e=>{e.preventDefault(),e.stopPropagation(),document.removeEventListener("touchmove",x),document.removeEventListener("touchend",S),g()},w=!r&&s?e=>{if(e.key===ft.LEFT||e.key===ft.RIGHT){Jh(e);const t=d.columnWidth-d.initWidth,n=5,r=e.key===ft.LEFT?t-n:t+n;h(r)}else e.key===ft.SPACE||e.key===ft.ENTER?(Jh(e),s(e),g()):e.key===ft.ESC&&(Jh(e),s(e),h(d.initWidth))}:void 0;return E.createElement(og,{className:mt,isLastColumn:n,hoverColor:i,style:m,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:vt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",x),document.addEventListener("touchend",S),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:w,onBlur:s,"data-testid":mt},E.createElement(ig,{className:ht}))},lg=M({}),sg=()=>S(lg),ug=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,flags:l})=>{const s=b((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,flags:l})),[n,r,t,o,i,a,l]);return E.createElement(lg.Provider,{value:s},e)},cg=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=sg(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:qt;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:E.createElement("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a}},E.createElement("span",{style:{...jt,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"}},t))},dg=M({}),pg=()=>S(dg),fg=({children:e,styleService:t})=>E.createElement(dg.Provider,{value:t},e),mg=21,hg=20,gg=hg,vg=16+_t+1,bg=.75,yg="/qHyperCubeDef",xg=-1,Sg="PSEUDO-DIM",Eg=(e,t)=>t?{...e,fontStyle:t.fontStyle,bold:"normal"!==t.fontWeight}:{...e,bold:"normal"!==e.fontWeight},wg=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,Cg=e=>wg(e,gt.PixelsDefault),Dg=(e,t)=>wg(e,gt.PercentageDefault)*t/100,Rg=(e,t,n)=>{switch(null==t?void 0:t.type){case vt.Pixels:return Cg(t.pixels);case vt.Percentage:return Dg(t.percentage,e);case vt.FitToContent:case vt.Auto:default:return n}};function Lg({layoutService:e,tableWidth:t,headersData:n}){const r=pg(),{measureText:o}=nr(Eg(r.header)),{estimateWidth:i}=nr(Eg(r.dimensionValues)),{measureText:a}=nr(Eg(r.dimensionValues,r.measureLabels)),l=C(((r,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d}=e,p=(e=0)=>c.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=a(r)+vg;return Math.max(n,Rg(t,o,Math.max(i,e)))}),0),f=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===Sg)return t;const i=(e=>{const{label:t,isLocked:n}=e,r=n?gg:0;return vg+o(t)+hg+r})(r);return Math.max(i,t)}),0);let m=0;const h=n.data.at(-1).map(((e,n)=>{let o=vg;if(r&&void 0!==l&&l===e.colIdx)o=r;else{let r;e.columnWidthLocation===xt.Pivot?r=u:e.columnWidthLocation===xt.Dimension&&({columnWidth:r}=e);let a=0;e.isLeftDimension?a=e.id===Sg?p():Math.max(f(n),((e,t)=>{const{qApprMaxGlyphCount:n,isLeftDimension:r}=e,o=!d&&r&&t<s-1?mg:0;return vg+i(n)+o})(e,n)):e.isLeftDimension||(a=f(n),e.columnWidthLocation===xt.Measures&&(a=p(a))),o=Rg(t,r,a)}return m+=o,o}));return{leftGridWidth:Math.min(t*bg,m),leftGridColumnWidths:h,leftGridFullWidth:m}}),[i,n.data,e,o,a,t]),[s,u]=v(l);cn((()=>{u(l())}),[l]);const c=C(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function Ig({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=pg(),{estimateWidth:c,measureText:d}=nr(Eg(u.measureValues)),{estimateWidth:p}=nr(Eg(u.dimensionValues)),f=t-o-_t,m=n.at(-1),h=m===xg,g=a.length-i>n.length?mg:0,v=b((()=>{const e=h?s:[m],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(gt.PixelsMax,Math.max(gt.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case vt.Pixels:i(t,Cg(o));break;case vt.Percentage:i(t,Dg(a,f));break;case vt.FitToContent:i(t,((e,t)=>vg+(h?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u));break;case vt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(gt.AutoMin,i)}))}return n}),[h,s,m,l.x,f,c,d,p,g]),y=b((()=>{if(h){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[h,v,s]),x=parseFloat((r/e.size.x).toFixed(12)),S=C((t=>h&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-x:y-x),[h,v,e,y,x]),E=l.x*y;return{rightGridFullWidth:E,rightGridWidth:Math.min(E,f),getRightGridColumnWidth:S}}const Mg=e=>{var t,n,r,o;return e===xg?Sg:null!==(t=null!==(n=null!==(r=e.qLibraryId)&&void 0!==r?r:e.cId)&&void 0!==n?n:null===(o=e.qGroupFallbackTitles)||void 0===o?void 0:o.join(""))&&void 0!==t?t:e.qFallbackTitle},Ag=(e,t,n)=>{var r;const o=Mg(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===xg?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:xt.Measures}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isActivelySorted:!1,isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:xt.Dimension}},qg=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===xg?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=Ag(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=Ag(e,t,o)})),l},Pg=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;if(r=0===t.length||t.includes(xg)?qg({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(qg({layoutService:e,lastRow:t,lastCol:n})),r.length)for(const[t,a]of r[r.length-1].entries()){var o,i;a&&(a.canBeResized=!0,a.isActivelySorted=t===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),a.colIdx=a.colIdx||t,a.dimensionInfoIndex===xg?a.columnWidthLocation=xt.Measures:a.isLeftDimension?a.columnWidthLocation=xt.Dimension:n.at(-1)===xg?a.columnWidthLocation=xt.Measures:e.hasPseudoDimOnLeft&&(a.columnWidthLocation=xt.Pivot))}return r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}},kg=Math.PI/180,Og=180/Math.PI,Tg=.96422,_g=1,Ng=.82521,Fg=4/29,Hg=6/29,$g=3*Hg*Hg,zg=Hg*Hg*Hg;function jg(e){if(e instanceof Wg)return new Wg(e.l,e.a,e.b,e.opacity);if(e instanceof Kg)return Xg(e);e instanceof Hn||(e=Nn(e));var t,n,r=Ug(e.r),o=Ug(e.g),i=Ug(e.b),a=Vg((.2225045*r+.7168786*o+.0606169*i)/_g);return r===o&&o===i?t=n=a:(t=Vg((.4360747*r+.3850649*o+.1430804*i)/Tg),n=Vg((.0139322*r+.0971045*o+.7141733*i)/Ng)),new Wg(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Wg(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Vg(e){return e>zg?Math.pow(e,1/3):e/$g+Fg}function Bg(e){return e>Hg?e*e*e:$g*(e-Fg)}function Gg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ug(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Yg(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Kg)return new Kg(e.h,e.c,e.l,e.opacity);if(e instanceof Wg||(e=jg(e)),0===e.a&&0===e.b)return new Kg(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Og;return new Kg(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Kg(e,t,n,null==r?1:r)}function Kg(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Xg(e){if(isNaN(e.h))return new Wg(e.l,0,0,e.opacity);var t=e.h*kg;return new Wg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}gn(Wg,(function(e,t,n,r){return 1===arguments.length?jg(e):new Wg(e,t,n,null==r?1:r)}),vn(bn,{brighter(e){return new Wg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Wg(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Hn(Gg(3.1338561*(t=Tg*Bg(t))-1.6168667*(e=_g*Bg(e))-.4906146*(n=Ng*Bg(n))),Gg(-.9787684*t+1.9161415*e+.033454*n),Gg(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),gn(Kg,Yg,vn(bn,{brighter(e){return new Kg(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Kg(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Xg(this).rgb()}}));const Zg=(e,t)=>{const n=Yg(e),r=n.l<70,o=100===n.l;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):o?Fn(`rgba(0, 0, 0, ${t.opacity})`).toString():r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},Jg=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Qg=e=>{const t=(e=>{const t=Jg.exec(e);if(t){const[,e,n,r,o]=t;return Fn(+n,+r,+o,+e/255)}return Fn(e)})(e);return Number.isNaN(t.r)?null:t.toString()},ev=(e,t)=>{var n,r;const o=t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n||null===(n=n[e.cellForegroundColor])||void 0===n?void 0:n.qText,a=null==o||null===(r=o.qValues)||void 0===r||null===(r=r[e.cellBackgroundColor])||void 0===r?void 0:r.qText,l=a?Qg(a):null,s=i?Qg(i):null,u=((e,t)=>e||!t?null:Zn(t)?Ch.WHITE:Ch.TEXT)(s,l);return{color:null!=u?u:s,background:l}};let tv;const nv=new Uint8Array(16);function rv(){if(!tv&&(tv="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tv))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tv(nv)}const ov=[];for(let e=0;e<256;++e)ov.push((e+256).toString(16).slice(1));var iv={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function av(e,t,n){if(iv.randomUUID&&!t&&!e)return iv.randomUUID();const r=(e=e||{}).random||(e.rng||rv)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return ov[e[t+0]]+ov[e[t+1]]+ov[e[t+2]]+ov[e[t+3]]+"-"+ov[e[t+4]]+ov[e[t+5]]+"-"+ov[e[t+6]]+ov[e[t+7]]+"-"+ov[e[t+8]]+ov[e[t+9]]+"-"+ov[e[t+10]]+ov[e[t+11]]+ov[e[t+12]]+ov[e[t+13]]+ov[e[t+14]]+ov[e[t+15]]}(r)}const lv=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:av()},sv=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:sv(e,t)),e),uv=(e,t,n,r,o,i)=>{if(o)return sv(0,e);const a=i?kt-n:Ot-r;let l=e.qUp+e.qDown;if(i&&0===n){const n=(t+e.qUp)%kt;l=e.qDown+n}return Math.min(a,sv(l,e))},cv=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0})=>{const c={id:lv(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:uv(e,o,i,r,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===Ct.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===Ct.NX_DIM_CELL_EMPTY,isNull:e.qType===Ct.NX_DIM_CELL_NULL,isPseudoDimension:e.qType===Ct.NX_DIM_CELL_PSEUDO,expressionColor:ev(s,e),selectionCellType:u?yt.NX_CELL_LEFT:yt.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u};return t&&(t.children[c.mainAxisPageCoord-t.mainAxisPageCoord]=c),c},dv=(e,t,n,r,o,i,a)=>{if(!t.length)return e;let l=0;return function t(s,u,c,d=0){e[d]||(e[d]={}),c.forEach(((c,p)=>{var f;l+=0===p?0:1;const m=n.qTop-r.page*r.rowsPerPage,h=Math.max(0,m+l-c.qUp),g=n.qTop+l-c.qUp,v=null!==(f=e[d][h])&&void 0!==f?f:cv({node:c,parent:u,root:s,x:d,y:g,pageY:h,layoutService:o,dimensionInfo:i[d],attrExprInfoIndex:a[d],isLeftColumn:!0});e[d][h]=v,c.qSubNodes.length&&t(s||v,v,c.qSubNodes,d+1)}))}(null,null,t,0),e},pv=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},fv=e=>{const t=e[0],n=t?Object.values(t):[],r=null==t?void 0:t[0],o=n.at(-1);return null!=r&&r.isTotal?r.isLeafNode?r.mainAxisPageCoord:r.mainAxisPageCoord+r.leafCount-1:null!=o&&o.isTotal?o.mainAxisPageCoord-1:-1},mv=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i})=>{const{qLeft:a,qArea:l}=t;if(!a.length)return e;const s=dv(e.grid,a,l,n,r,o,i);pv(s,n.rowsOnCurrentPage);const u=fv(s);return{...e,grid:s,columnCount:s.length,totalDividerIndex:u}},hv=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r,attrExprInfoIndexes:o,hasPseudoDimOnLeft:i})=>{const a=o.length,l=[...t];return n.forEach(((t,n)=>{t.forEach(((t,s)=>{var u;const c=e.qTop-r.page*r.rowsPerPage+n,d=e.qLeft+s;Array.isArray(l[c])||(l[c]=[]);const p=t.qType===Ct.NX_DIM_CELL_NULL,f=i?c%a:d%a;l[c][d]=null!==(u=l[c][d])&&void 0!==u?u:{id:lv(),ref:t,isNull:p,expressionColor:ev(o[f],t)}}))})),l},gv=({prevData:e,dataPage:t,pageInfo:n,attrExprInfoIndexes:r,layoutService:o})=>{const{qData:i,qArea:a}=t,{hasPseudoDimOnLeft:l}=o;return i.length?hv({qArea:a,prevData:e,pivotValuePoints:i,pageInfo:n,attrExprInfoIndexes:r,hasPseudoDimOnLeft:l}):e},vv=(e,t,n,r,o,i,a)=>{if(!t.length)return e;let l=0;!function t(a,s,u,c=0){e[c]||(e[c]={}),u.forEach(((u,d)=>{var p;l+=0===d?0:1;const f=n.qLeft+l-u.qUp,m=null!==(p=e[c][f])&&void 0!==p?p:cv({node:u,parent:s,root:a,x:f,y:c,pageY:c,layoutService:r,dimensionInfo:o[c],attrExprInfoIndex:i[c],isLeftColumn:!1});e[c][f]=m,u.qSubNodes.length&&t(a||m,m,u.qSubNodes,c+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},bv=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i})=>{const{qTop:a,qArea:l}=t;if(!a.length)return e;const s=vv(e.grid,a,l,n,r,o,i);pv(s,n.size.x);const u=fv(s);return{...e,grid:s,rowCount:s.length,totalDividerIndex:u}},yv=e=>{if(e===xg)return{cellForegroundColor:-1,cellBackgroundColor:-1};const t=e.qAttrExprInfo;return{cellForegroundColor:t.findIndex((({id:e})=>e===St.CellForegroundColor.toString())),cellBackgroundColor:t.findIndex((({id:e})=>e===St.CellBackgroundColor.toString()))}},xv=(e,t,n,r,o)=>{const[i,a]=v(null),l=((e,t,n)=>b((()=>({left:e.map(yv),top:t.map(yv),measures:n.map(yv)})),[n,e,t]))(r,o,t.visibleMeasureInfo),s=b((()=>Pg(t,o,r)),[t,o,r]),u=C((()=>e.slice(1).reduce(((e,r)=>gv({prevData:e,dataPage:r,pageInfo:n,attrExprInfoIndexes:l.measures,layoutService:t})),((e,t,n,r)=>{const{qData:o,qArea:i}=e,{hasPseudoDimOnLeft:a}=r;return hv({qArea:i,prevData:[],pivotValuePoints:o,pageInfo:t,attrExprInfoIndexes:n,hasPseudoDimOnLeft:a})})(e[0],n,l.measures,t))),[e,n,l,t]),c=C((()=>e.slice(1).reduce(((e,n)=>bv({prevData:e,nextDataPage:n,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y})),((e,t,n,r,o)=>{const{qArea:i,qTop:a}=e,l=vv([],a,i,t,n,r,o);pv(l,t.size.x);const s=fv(l);return{grid:l,rowCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,o,l.top,s.size.y))),[e,t,o,l.top,s.size.y]),d=C((()=>e.slice(1).reduce(((e,o)=>mv({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:l.left})),((e,t,n,r,o)=>{const{qArea:i,qLeft:a}=e,l=dv([],a,i,n,t,r,o);pv(l,n.rowsOnCurrentPage);const s=fv(l);return{grid:l,columnCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,n,r,l.left))),[e,t,n,r,l]),[p,f]=v((()=>u())),[m,h]=v((()=>c())),[g,y]=v((()=>d()));cn((()=>{f(u())}),[u]),cn((()=>{h(c())}),[c]),cn((()=>{y(d())}),[d]),cn((()=>{i&&i.forEach((e=>{f((r=>gv({prevData:r,dataPage:e,pageInfo:n,attrExprInfoIndexes:l.measures,layoutService:t}))),h((n=>bv({prevData:n,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y}))),y((o=>mv({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:l.left})))}))}),[i]);const x=C((e=>{a(e)}),[]);return{headersData:s,measureData:p,topDimensionData:m,leftDimensionData:g,nextPageHandler:x}},Sv=Math.sqrt(1e4),Ev=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/Sv),r=Math.ceil(e.qHeight/Sv);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*Sv,qTop:e.qTop+n*Sv,qWidth:Math.min(Sv,e.qWidth-o*Sv),qHeight:Math.min(Sv,e.qHeight-n*Sv)});return t};function wv({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=I(e);return t.current=e,t})(n.page),i=e,a=C((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,yg,e,t,!1))}),[i]),l=C((async(e,t)=>{await(null==i?void 0:i.collapseTop(yg,e,t,!1))}),[i]),s=C((async(e,t)=>{await(null==i?void 0:i.expandLeft(yg,e,t,!1))}),[i]),u=C((async(e,t)=>{await(null==i?void 0:i.expandTop(yg,e,t,!1))}),[i]),c=C((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(yg,e.reduce(((e,t)=>[...e,...Ev(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=C(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case xt.Dimension:c=[{qPath:`${yg}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case xt.Measures:if(o)c=l.map(((e,t)=>({qPath:`${yg}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${yg}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case xt.Pivot:c=[{qPath:`${yg}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]);return b((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,fetchPages:c})),[a,l,s,u,d,c])}const Cv=(e,t)=>e>t?wt.Forward:e<t?wt.Backward:wt.None,Dv=(e,t,n)=>(r,o)=>{if(r===Ct.NX_DIM_CELL_PSEUDO)return xg;const i=t[n+o];return e[i]},Rv=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},Lv=({width:e,height:t,children:n,isLeftGrid:r})=>E.createElement("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+_t}},n),Iv=e=>`scrollable-container--${e}`,Mv=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=sg();return E.createElement("div",{ref:t,"data-key":Iv(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i},o)};var Av=E.forwardRef(Mv);const qv=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>E.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r}},n);var Pv=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function kv(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Pv(r)&&Pv(o)))return!1;var r,o;return!0}function Ov(e,t){var n;void 0===t&&(t=kv);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var Tv="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function _v(e){cancelAnimationFrame(e.id)}function Nv(e,t){var n=Tv();var r={id:requestAnimationFrame((function o(){Tv()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var Fv=-1;function Hv(e){if(void 0===e&&(e=!1),-1===Fv||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Fv=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Fv}var $v=null;function zv(e){if(void 0===e&&(e=!1),null===$v||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?$v="positive-descending":(t.scrollLeft=1,$v=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),$v}return $v}var jv=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Wv(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,Fu(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Fu(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Ov((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=Ov((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=Ov((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(zv()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&_v(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Nv(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Lu(t,e),t.getDerivedStateFromProps=function(e,t){return Vv(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,v=Hv();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(zv()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&_v(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?jv:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],C=this._getVerticalRangeToRender(),D=C[0],R=C[1],L=[];if(r>0&&g)for(var I=D;I<=R;I++)for(var M=E;M<=w;M++)L.push(P(t,{columnIndex:M,data:d,isScrolling:b?x:void 0,key:f({columnIndex:M,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,M)}));var A=a(this.props,this._instanceProps),q=l(this.props,this._instanceProps);return P(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:lr({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},P(u||c||"div",{children:L,ref:s,style:{height:A,pointerEvents:x?"none":void 0,width:q}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,v=h.scrollLeft,b=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(k),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Vv=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Bv=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},Gv=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},Uv=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},Yv=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?Kv(e,t,n,i,0,r):Xv(e,t,n,Math.max(0,i),r)},Kv=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=Uv(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},Xv=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&Uv(e,t,r,n).offset<o;)r+=a,a*=2;return Kv(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},Zv=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=Uv(e,t,n,i),u="column"===e?Gv(t,i):Bv(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){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}},Jv=Wv({getColumnOffset:function(e,t,n){return Uv("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return Yv("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=Uv("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=Uv("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:Bv,getEstimatedTotalWidth:Gv,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return Zv("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return Zv("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return Uv("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return Yv("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=Uv("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=Uv("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),Qv=function(e,t){return e};function eb(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,Fu(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Fu(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Ov((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Ov((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Ov((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(zv()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&_v(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Nv(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Lu(t,e),t.getDerivedStateFromProps=function(e,t){return tb(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?Hv():0:s.scrollHeight>s.clientHeight?Hv():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(zv()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&_v(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?Qv:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],D=[];if(u>0)for(var R=w;R<=C;R++)D.push(P(t,{data:c,key:p(R,c),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return P(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:lr({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},P(l||s||"div",{children:D,ref:a,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(k),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var tb=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},nb=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},rb=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=nb(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},ob=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&nb(e,n,t).offset<r;)n+=i,i*=2;return rb(e,t,Math.min(n,o-1),Math.floor(n/2),r)},ib=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},ab=eb({getItemOffset:function(e,t,n){return nb(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:ib,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=nb(e,t,o),p=ib(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?rb(e,t,o,0,n):ob(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=nb(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=nb(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function lb(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var sb=["style"],ub=["style"];function cb(e,t){var n=e.style,r=Du(e,sb),o=t.style,i=Du(t,ub);return!lb(n,o)&&!lb(r,i)}const db=(e,t)=>void 0!==e&&(e.isLeafNode?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),pb=10,fb=(e,t)=>e.current===wt.Backward?t:0,mb=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},hb=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,gb=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(mb(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&hb(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},vb=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===wt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return gb({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},bb=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=fb(n,pb),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+pb,l-u),pageTop:o,qHeight:a}})(r,o,n),u=gb({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...vb({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},yb=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},xb=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,Sb=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(yb(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&xb(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},Eb=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=fb(n,pb),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+pb,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=Sb({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===wt.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=Sb({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},wb=async(e,t,n,r,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==wt.None&&(d=Eb({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==wt.None&&(p=bb({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===wt.None&&a.current===wt.None&&(d=Sb({measureData:n,pageInfo:r,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},Cb=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(wb,100),Db=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}(wb,75),Rb=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=pg();return E.createElement("div",{style:{...e,...zt,...Bt(n,r,l,o),...Ut({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},Lb={display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},Ib={alignItems:"center",display:"flex",flexDirection:"row",height:"100%",backgroundClip:"padding-box"},Mb={justifyContent:"center"},Ab=(e,t,n,r)=>t?{...Ib,...e.nullValues}:n?{...Lb,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...Lb,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},qb=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...jt,...!n&&Wt(e.grid.lineClamp),...t&&{color:t},alignSelf:"flex-start",fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?Pt:s,fontStyle:u,textDecoration:c}},Pb=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=pg(),{background:a}=i.measureValues,{grid:l,layoutService:s,showLastBorder:u,shouldShowTotalCellBottomDivider:c,shouldShowTotalCellRightDivider:d,isTotalValue:p,pageInfo:f}=r,m=null===(o=l[t])||void 0===o?void 0:o[e],h=t===f.rowsOnCurrentPage-1,g=e===s.size.x-1;if(!m)return E.createElement(Rb,{style:{...n,background:a},isLastRow:h,isLastColumn:g,showLastBorder:u,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const v=!m.isNull&&p(e,t),b=m.isNull?s.getNullValueText():m.ref.qText,y=!m.isNull||!Number.isNaN(+b),x={...Ab(i,m.isNull,v,m.expressionColor.background),...Bt(h,g,i.grid.border,u),...Ut({bottomDivider:c(t),rightDivider:d(e),borderColor:i.grid.divider}),...zt,display:"flex",justifyContent:y?"flex-end":"center"};return E.createElement("div",{title:b,style:{...n,...Mb},"data-testid":"measure-cell","data-row-index":t,"data-col-index":e},E.createElement("div",{style:x},E.createElement("span",{style:qb(i,m.expressionColor.color,y,v,m.isNull)},b)))};var kb=E.memo(Pb,cb);const Ob=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},Tb=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},_b={...$t,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},Nb=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,showLastBorder:c,getRightGridColumnWidth:d,pageInfo:p,verticalScrollDirection:f,horizontalScrollDirection:m})=>{const{grid:{divider:h},contentCellHeight:g}=pg(),v={..._b,borderColor:h,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},b=(e=>C((t=>{var n;const r=null===(n=e.grid.at(-1))||void 0===n?void 0:n[t];return db(r,e.totalDividerIndex)}),[e]))(s),y=(e=>C((t=>{var n;const r=null===(n=e.grid.at(-1))||void 0===n?void 0:n[t];return db(r,e.totalDividerIndex)}),[e]))(u),x=((e,t)=>C(((n,r)=>{var o,i;return!!(null!==(o=t.grid.at(-1))&&void 0!==o&&null!==(o=o[n])&&void 0!==o&&o.isTotal||null!==(i=e.grid.at(-1))&&void 0!==i&&null!==(i=i[r])&&void 0!==i&&i.isTotal)}),[t,e]))(s,u),S=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>C((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===wt.None?0:pb),m=e.gridHeight+a+(l.current===wt.None?0:pb);let h=Cb;m*f>1500&&(h=Db),await h(t,r,n,o,e,l,s)}),[e,r,t,n,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:p,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:f,horizontalScrollDirection:m});return cn((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),q((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,g]),0===a.size.x?null:E.createElement(Jv,{ref:t,style:v,columnCount:a.size.x,columnWidth:d,height:n,rowCount:p.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:c,isTotalValue:x,shouldShowTotalCellBottomDivider:b,shouldShowTotalCellRightDivider:y,pageInfo:p},onItemsRendered:S,estimatedRowHeight:r(),estimatedColumnWidth:d(),itemKey:Tb},kb)};var Fb=A(Nb);function Hb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $b=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("defs",null,E.createElement("path",{id:"lock_svg__lock-a",d:"M13 7H8h5V4.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-1H3h10Z"})),E.createElement("use",{xlinkHref:"#lock_svg__lock-a",fillRule:"evenodd"})),zb=x($b),jb=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(mt)},Wb=e=>{const[t,n]=v(!1);return cn((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}};function Vb(e,t){const n=e.isActive(),[r,o]=v(new Map),[i,a]=v(null);w((()=>{const n=()=>{a(null),o(new Map)},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const l=C((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===yt.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=C((t=>async n=>{if(jb(n))return;if(e.isActive()||await e.begin([yg]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===yt.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[yg,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=C((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return b((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const Bb=M({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),Gb=()=>S(Bb),Ub=({children:e,selections:t,updatePageInfo:n})=>{const r=Vb(t,n);return E.createElement(Bb.Provider,{value:r},e)};function Yb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kb(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Xb(){}var Zb=.7,Jb=1/Zb,Qb="\\s*([+-]?\\d+)\\s*",ey="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ty="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ny=/^#([0-9a-f]{3,8})$/,ry=new RegExp(`^rgb\\(${Qb},${Qb},${Qb}\\)$`),oy=new RegExp(`^rgb\\(${ty},${ty},${ty}\\)$`),iy=new RegExp(`^rgba\\(${Qb},${Qb},${Qb},${ey}\\)$`),ay=new RegExp(`^rgba\\(${ty},${ty},${ty},${ey}\\)$`),ly=new RegExp(`^hsl\\(${ey},${ty},${ty}\\)$`),sy=new RegExp(`^hsla\\(${ey},${ty},${ty},${ey}\\)$`),uy={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 cy(){return this.rgb().formatHex()}function dy(){return this.rgb().formatRgb()}function py(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ny.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?fy(t):3===n?new hy(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?my(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?my(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=ry.exec(e))?new hy(t[1],t[2],t[3],1):(t=oy.exec(e))?new hy(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=iy.exec(e))?my(t[1],t[2],t[3],t[4]):(t=ay.exec(e))?my(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ly.exec(e))?Sy(t[1],t[2]/100,t[3]/100,1):(t=sy.exec(e))?Sy(t[1],t[2]/100,t[3]/100,t[4]):uy.hasOwnProperty(e)?fy(uy[e]):"transparent"===e?new hy(NaN,NaN,NaN,0):null}function fy(e){return new hy(e>>16&255,e>>8&255,255&e,1)}function my(e,t,n,r){return r<=0&&(e=t=n=NaN),new hy(e,t,n,r)}function hy(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function gy(){return`#${xy(this.r)}${xy(this.g)}${xy(this.b)}`}function vy(){const e=by(this.opacity);return`${1===e?"rgb(":"rgba("}${yy(this.r)}, ${yy(this.g)}, ${yy(this.b)}${1===e?")":`, ${e})`}`}function by(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function yy(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xy(e){return((e=yy(e))<16?"0":"")+e.toString(16)}function Sy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wy(e,t,n,r)}function Ey(e){if(e instanceof wy)return new wy(e.h,e.s,e.l,e.opacity);if(e instanceof Xb||(e=py(e)),!e)return new wy;if(e instanceof wy)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new wy(a,l,s,e.opacity)}function wy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Cy(e){return(e=(e||0)%360)<0?e+360:e}function Dy(e){return Math.max(0,Math.min(1,e||0))}function Ry(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Yb(Xb,py,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:cy,formatHex:cy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ey(this).formatHsl()},formatRgb:dy,toString:dy}),Yb(hy,(function(e,t,n,r){return 1===arguments.length?((o=e)instanceof Xb||(o=py(o)),o?new hy((o=o.rgb()).r,o.g,o.b,o.opacity):new hy):new hy(e,t,n,null==r?1:r);var o}),Kb(Xb,{brighter(e){return e=null==e?Jb:Math.pow(Jb,e),new hy(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Zb:Math.pow(Zb,e),new hy(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new hy(yy(this.r),yy(this.g),yy(this.b),by(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:gy,formatHex:gy,formatHex8:function(){return`#${xy(this.r)}${xy(this.g)}${xy(this.b)}${xy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:vy,toString:vy})),Yb(wy,(function(e,t,n,r){return 1===arguments.length?Ey(e):new wy(e,t,n,null==r?1:r)}),Kb(Xb,{brighter(e){return e=null==e?Jb:Math.pow(Jb,e),new wy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Zb:Math.pow(Zb,e),new wy(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new hy(Ry(e>=240?e-240:e+120,o,r),Ry(e,o,r),Ry(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new wy(Cy(this.h),Dy(this.s),Dy(this.l),by(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=by(this.opacity);return`${1===e?"hsl(":"hsla("}${Cy(this.h)}, ${100*Dy(this.s)}%, ${100*Dy(this.l)}%${1===e?")":`, ${e})`}`}}));const Ly=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=sg(),{isActive:l}=Gb(),s=pg(),[,u]=v({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=function(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Nt.Transparent?Ch.WHITE:l,u=null===(o=py(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=py(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}(s,e);return E.createElement(ag,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==n?void 0:n.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},Iy=Vs(Id,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),My=Vs("div")({position:"absolute",left:0,bottom:0}),Ay=Vs("div")((()=>({...Ht,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),qy=Vs("div")((()=>({...Ht}))),Py=Vs("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o})=>({...jt,alignSelf:"center",flexGrow:1,fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),ky={[Tm.SORTING]:!0,[Tm.SELECTIONS]:!0,[Tm.SEARCHING]:!0},Oy=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d})=>{const p=I(null),f=pg(),{app:m,model:h,interactions:g,embed:b}=sg(),{fontSize:y,fontFamily:x,fontStyle:S,fontWeight:w,textDecoration:C,color:D,background:R,hoverBackground:L,activeBackground:M}=f.header,A=I(null),{shouldShowLockIcon:q,shouldShowMenuIcon:P}=u,{open:k,setOpen:O,handleOpenMenu:T,setIsAdjustingWidth:_}=(({interactions:e,dataModel:t})=>{const[n,r]=v(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=Wb([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!jb(t)&&!o&&r(!0),setIsAdjustingWidth:i}})({interactions:g,dataModel:e}),N={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)},changeActivelySortedHeader:s},F={embed:b,listboxRef:p},H={model:h,app:m};return E.createElement(Iy,{title:t.label,interactions:g,background:k?M:R,hoverBackground:L,shouldShowMenuIcon:P,isDimension:t.isDim,style:{...n,...zt,...Gt(t,i,r,o,f.grid.border),color:D},"data-testid":"title-cell",onClick:T},E.createElement(Ay,null,q&&E.createElement(qy,null,E.createElement(zb,{height:12})),E.createElement(Py,{fontFamily:x,fontSize:y,fontStyle:S,fontWeight:w,textDecoration:C},t.label)),t.isDim&&E.createElement(E.Fragment,null,E.createElement(Nm,{headerData:t,translator:a,anchorRef:A,open:k,setOpen:O,interactions:g,menuAvailabilityFlags:ky,sortRelatedArgs:N,searchRelatedArgs:F,selectionRelatedArgs:H,shouldShowMenuIcon:P}),E.createElement(My,{ref:p}),E.createElement(My,{ref:A})),E.createElement(Ly,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:_}))},Ty=({rowSpan:e,columnSpan:t})=>{const n=pg();return e>0&&t>0?E.createElement("div",{style:{...$t,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null},_y={display:"grid",width:"fit-content"},Ny=({dataModel:e,columnWidths:t,rowHight:n,headersData:r,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u})=>E.createElement("div",{style:{..._y,gridTemplateColumns:t.map((e=>`${e}px`)).join(" "),gridTemplateRows:r.data.map((()=>`${n}px`)).join(" "),height:s}},r.size.y>1&&E.createElement(Ty,{columnSpan:r.size.x-1,rowSpan:r.size.y-1}),r.data.map(((s,c)=>s.reduce(((s,d,p)=>{if(d){const f=l(p,d.isLocked,d.label);s.push(E.createElement(Oy,{dataModel:e,key:d.id,style:{width:t[p],height:n,gridColumn:p+1,gridRow:c+1,zIndex:r.size.x-p},isLastRow:c===r.size.y-1,isFirstColumn:0===p,isLastColumn:p===r.size.x-1,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,cell:d,iconsVisibilityStatus:f,columnWidth:t[p],overrideLeftGridWidth:u}))}return s}),[]))));var Fy=A(Ny);const Hy=(e,t,n,r,o)=>{q((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},$y=(e,t)=>{cn((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])};var zy;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(zy||(zy={}));const jy={brighter:.5,darker:.3,opacity:.03},Wy=(e,{cell:t,styleService:n})=>{if(e===zy.Background||e===zy.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},Vy=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=Wy(zy.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?Wy(zy.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Zg(i=o,jy)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},By=({cell:e,styleService:t,isCellSelected:n})=>n?"white":Wy(zy.Color,{cell:e,styleService:t}),Gy=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=Wy(zy.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?Pt:o},Uy=({cell:e,styleService:t})=>Wy(zy.FontStyle,{cell:e,styleService:t}),Yy=({cell:e,styleService:t})=>Wy(zy.TextDecoration,{cell:e,styleService:t}),Ky=e=>e?"pointer":"default",Xy=()=>{},Zy=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{const d=pg(),{interactions:p}=sg(),{select:f,isLocked:m}=Gb(),{layoutService:h,showLastBorder:g}=o,v=m(r)||r.isLockedByDimension,b=!(v||!p.active||!p.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),y=b?f(r):void 0;return E.createElement("div",{title:p.passive?t:void 0,style:{...n,...Bt(a,l,d.grid.border,g),...Ut({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:d.grid.divider}),...zt,padding:"0px 4px",cursor:Ky(b),background:Vy({styleService:d,isCellSelected:u,cell:r,isCellLocked:v}),zIndex:s?void 0:h.size.x-r.x,justifyContent:s?void 0:"center",display:"flex"},"aria-hidden":"true",onClick:y,onKeyUp:Xy,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType},e)};function Jy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qy=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Jy(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("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 7Zm0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8Zm4-7.5H4v-1h8v1Z"})),ex=x(Qy);function tx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nx=(e,t)=>E.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tx(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),E.createElement("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 7Zm0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8Zm4-7.5H4v-1h8v1ZM8.5 4v8h-1V4h1Z"})),rx=x(nx),ox=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},ix=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=pg(),{interactions:i}=sg(),{isActive:a}=Gb();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=By({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?rx:ex;let p;return p=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,E.createElement(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:n?c-6.5-4:void 0},onClick:l?void 0:ox({cell:e,expandOrCollapse:p})})},ax=({children:e,isLeftColumn:t})=>{const n=t?"flex-start":"center";return E.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:n,width:"fit-content",maxWidth:"100%",position:"sticky",left:4,top:0,right:t?void 0:4,alignSelf:n}},e)},lx=e=>e.contentRowHeight/2-e.contentTextHeight/2,sx=({children:e,cell:t,styleService:n,isCellSelected:r,isLeftColumn:o})=>E.createElement("span",{style:{...jt,...Wt(o?Math.max(n.grid.lineClamp,t.leafCount*n.grid.lineClamp):1),color:By({cell:t,styleService:n,isCellSelected:r}),fontWeight:Gy({cell:t,styleService:n}),fontStyle:Uy({cell:t,styleService:n}),textDecoration:Yy({cell:t,styleService:n}),fontFamily:n.dimensionValues.fontFamily,fontSize:n.dimensionValues.fontSize,marginTop:o?lx(n):void 0,padding:"0px 4px"}},e),ux=({index:e,style:t,data:n})=>{const r=pg(),{isSelected:o}=Gb(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=Wb([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p}=n,f=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),m=s?e===c-1:d,h=s?d:e===c-1,g=db(f,p);if(void 0===f){const{background:n}=r.dimensionValues;return E.createElement(Rb,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:h,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:g})}const v=o(f);return E.createElement(Zy,{text:f.ref.qText,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:h,isCellSelected:v,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:i},E.createElement(ax,{isLeftColumn:s},E.createElement(ix,{isLeftColumn:s,isCellSelected:v,cell:f,dataModel:l}),E.createElement(sx,{isLeftColumn:s,isCellSelected:v,cell:f,styleService:r},f.ref.qText)),E.createElement(Ly,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?xt.Measures:xt.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:h,setIsAdjustingWidth:a}))};var cx=E.memo(ux,cb);const dx=(e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n},px=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},fx=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},mx=(e,t)=>n=>{e.current&&(e.current[t]=n)},hx={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...$t},gx={overflow:"hidden",willChange:"auto",flexShrink:0},vx=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=pg();$y(t,a),Hy(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return E.createElement("div",{style:{...hx,borderColor:p}},a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=Mg(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=fx(n,f,u.rowsOnCurrentPage,m);return E.createElement(ab,{key:h,ref:mx(t,p),style:{...gx,flexGrow:m?1:0},height:o,width:r[p],itemCount:g,itemSize:dx(n,b,d,m,c.qcy),layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:m&&!i.layout.snapshotData,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:Ob,estimatedItemSize:v},cx)})))};var bx=A(vx);const yx={overflow:"hidden",willChange:"auto"},xx={...$t,borderWidth:"0px 0px 0px 1px"},Sx=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=pg(),p={...xx,borderColor:c,height:o};$y(t,a),Hy(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?E.createElement("div",{style:{width:r,height:o,...xx}}):E.createElement("div",{style:p},a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=fx(o,f,i.size.x,d),g=i.getDimensionInfo(u.data[c][u.size.x-1].dimensionInfoIndex),v=g?Mg(g):`empty ${c}`;return E.createElement(ab,{key:v,ref:mx(t,c),style:yx,height:n(),width:r,itemCount:p,itemSize:px({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d&&!i.layout.snapshotData,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:Ob,estimatedItemSize:m},cx)})))};var Ex=A(Sx);const wx=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=pg(),u=((e,t,n)=>b((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return b((()=>{var e,n,a,l;const s=Rv(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=Rv(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Dv(i,o,0)),visibleTopDimensionInfo:u.map(Dv(i,o,r))}}),[i,o,r,t])})(r,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>b((()=>({changeSortOrder:async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o}=t,i=[];("D"===n&&!r||"A"===n&&r)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async n=>{if(!e)throw new Error("No Model provided!");const{colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a}=n,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]))(e,r.layout.qHyperCube),{headersData:m,measureData:h,topDimensionData:g,leftDimensionData:y,nextPageHandler:x}=xv(o,r,i,c,d),S=wv({model:e,nextPageHandler:x,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:D,onVerticalScrollHandler:R,verticalScrollableContainerRef:L,leftGridHorizontalScrollableContainerRef:M,dataGridHorizontalScrollableContainerRef:A,dataGridRef:P,leftGridRef:k,topGridRef:O,verticalScrollbarWidth:T,horizontalScrollbarHeight:_,horizontalScrollbarHeightSetter:N,verticalScrollDirection:F,horizontalScrollDirection:H}=(({layoutService:e,pageInfo:t,tableRect:n,mockedRefs:r})=>{var o,i,a,l,s,u;const{theme:c}=sg(),d=I(null!==(o=null==r?void 0:r.verticalScrollableContainerRef)&&void 0!==o?o:null),p=I(null!==(i=null==r?void 0:r.leftGridHorizontalScrollableContainerRef)&&void 0!==i?i:null),f=I(null!==(a=null==r?void 0:r.dataGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=I(null!==(l=null==r?void 0:r.topGridRef)&&void 0!==l?l:[]),h=I(null!==(s=null==r?void 0:r.leftGridRef)&&void 0!==s?s:[]),g=I(null!==(u=null==r?void 0:r.dataGridRef)&&void 0!==u?u:null),b=I(0),y=I(0),x=I(wt.None),S=I(wt.None),[E,w]=v(0),[D,R]=v(0),L=c.name(),M=e=>{S.current=Cv(e.currentTarget.scrollLeft,b.current),b.current=e.currentTarget.scrollLeft,x.current=Cv(e.currentTarget.scrollTop,y.current),y.current=e.currentTarget.scrollTop};q((()=>{e.triggerdByExpandOrCollapse||(p.current&&(p.current.scrollLeft=0),f.current&&(f.current.scrollLeft=0),d.current&&(d.current.scrollTop=0))}),[e]),q((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=f.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=d.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=h.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=m.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),q((()=>{p.current&&(p.current.scrollLeft=0),f.current&&(f.current.scrollLeft=0),d.current&&(d.current.scrollTop=0)}),[t.page]);const A=C((e=>{if(e)return void R(0);let t=0;if(p.current){const e=p.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(f.current){const e=f.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}R(t)}),[R]);return q((()=>{if(d.current){const e=d.current,t=e.offsetWidth-e.clientWidth;w(t)}A()}),[A,e,n.width,n.height,L]),{onHorizontalScrollHandler:e=>{var t,n;e.target instanceof HTMLDivElement&&e.target.dataset.key===`scrollable-container--${Et.DATA_GRID}`&&(M(e),null===(t=m.current)||void 0===t||t.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(n=g.current)||void 0===n||n.scrollTo({scrollLeft:e.currentTarget.scrollLeft}))},onVerticalScrollHandler:e=>{var t,n;e.target instanceof HTMLDivElement&&(M(e),null===(t=h.current)||void 0===t||t.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(n=g.current)||void 0===n||n.scrollTo({scrollTop:e.currentTarget.scrollTop}))},verticalScrollableContainerRef:d,leftGridHorizontalScrollableContainerRef:p,dataGridHorizontalScrollableContainerRef:f,dataGridRef:g,leftGridRef:h,topGridRef:m,verticalScrollbarWidth:E,horizontalScrollbarHeight:D,horizontalScrollbarHeightSetter:A,verticalScrollDirection:x,horizontalScrollDirection:S}})({layoutService:r,pageInfo:i,tableRect:u}),{containerHeight:$,headerGridHeight:z,topGridHeight:j,leftGridHeight:W,dataGridHeight:V,allRowsVisible:B}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=pg(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-_t,l),dataGridHeight:Math.min(r.height-c-_t,l),allRowsVisible:c+_t+l+o<=r.height}}({pageInfo:i,headersData:m,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:_}),{leftGridWidth:G,leftGridColumnWidths:U,rightGridWidth:Y,totalWidth:K,showLastRightBorder:X,getRightGridColumnWidth:Z,getHeaderCellsIconsVisibilityStatus:J,overrideLeftGridWidth:Q}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=pg(),{measureText:l}=nr(Eg(a.header)),s=Lg({layoutService:e,tableWidth:t,headersData:n}),u=Ig({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+_t,d=c<t,p=C(((e,t,n="")=>{const r=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(n)+vg;return t&&a+gg<=r&&(i=!0,a+=gg),a+hg<=r&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return w((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:r,tableWidth:u.width,headersData:m,visibleTopDimensionInfo:d,verticalScrollbarWidth:T,horizontalScrollbarHeightSetter:N}),{rootWrapper:ee,leftWrapper:te,rightWrapper:ne}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+_t,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,v=e.height-h,b=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-h+f}},rightWrapper:{containers:{scrollable:{width:u+_t-m,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:$,headerGridHeight:z,leftGridHeight:W,topGridHeight:j,dataGridHeight:V,allRowsVisible:B,totalWidth:K,leftGridWidth:G,rightGridWidth:Y,verticalScrollbarWidth:T,horizontalScrollbarHeight:_}),re=C((()=>l),[l]),oe=C((()=>s),[s]);return E.createElement(Av,{ref:L,...ee.scrollable,onScroll:R,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Et.CONTAINER_GRID},E.createElement(Lv,{...ee.fullSize},E.createElement(qv,{...ee.sticky,style:{display:"grid",gridTemplateColumns:G?`${te.containers.scrollable.width}px ${ne.containers.scrollable.width}px`:`${ne.containers.scrollable.width}px`}},Boolean(G)&&E.createElement(Av,{ref:M,...te.containers.scrollable,onScroll:D,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Et.LEFT_GRID},E.createElement(Lv,{isLeftGrid:!0,...te.containers.fullSize},E.createElement(qv,{isLeftGrid:!0,...te.containers.sticky},E.createElement(Fy,{dataModel:S,columnWidths:U,getHeaderCellsIconsVisibilityStatus:J,rowHight:l,height:te.headerGrid.height,headersData:m,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:Q}),E.createElement(bx,{dataModel:S,leftGridRef:k,...te.leftGrid,columnWidths:U,layoutService:r,leftDimensionData:y,showLastBorder:{right:!1,bottom:B},visibleLeftDimensionInfo:c,pageInfo:i})))),E.createElement(Av,{ref:A,...ne.containers.scrollable,onScroll:D,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Et.DATA_GRID},E.createElement(Lv,{...ne.containers.fullSize},E.createElement(qv,{...ne.containers.sticky},E.createElement(Ex,{dataModel:S,topGridRef:O,rowHightCallback:re,...ne.topGrid,layoutService:r,topDimensionData:g,showLastBorder:{right:X,bottom:!1},getRightGridColumnWidth:Z,headersData:m}),E.createElement(Fb,{dataModel:S,dataGridRef:P,rowHightCallback:oe,...ne.dataGrid,viewService:n,layoutService:r,measureData:h,leftDimensionData:y,topDimensionData:g,showLastBorder:{right:X,bottom:B},getRightGridColumnWidth:Z,pageInfo:i,verticalScrollDirection:F,horizontalScrollDirection:H})))))))},Cx=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=sg(),{layout:u,hasData:c}=t;return E.createElement(E.Fragment,null,c&&E.createElement(wx,{...e}),E.createElement(cg,{translator:n,layoutService:t}),E.createElement(rg,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u}))};const Dx=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c}=t,d=function(e){var t;const n=Eh();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),Ns({...n,direction:e})}("ltr");e.render(E.createElement(E.StrictMode,null,E.createElement(Gs,{theme:d},E.createElement(ug,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c},E.createElement(Ub,{selections:n,updatePageInfo:t.updatePageInfo},E.createElement(fg,{styleService:r},E.createElement(Cx,{...t})))))))},Rx={darker:.15,brighter:.3,opacity:.03},Lx={darker:.3,brighter:.5,opacity:.05};var Ix,Mx,Ax,qx;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.Border="border",e.Divider="divider"}(Ix||(Ix={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(Mx||(Mx={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(Ax||(Ax={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.BorderColor="borderColor"}(qx||(qx={}));const Px=e=>e?`${parseInt(e,10)}px`:void 0,kx=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Nt.Transparent:n}},Ox=(e,t)=>+(parseInt(e,10)*Tt*t+8).toFixed(2),Tx=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Pt:"normal",_x=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",Nx=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",Fx=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,Hx=(e,n)=>t((()=>((e,t)=>{var n,r,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!s,m=null!==(n=null==s||null===(r=s.content)||void 0===r||null===(r=r.qPivotDataPages)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.qArea)&&void 0!==n?n:{qWidth:0,qHeight:0},h={x:f?m.qWidth:Math.min(e.qHyperCube.qSize.qcx,Ot),y:f?m.qHeight:Math.min(e.qHyperCube.qSize.qcy,kt)},g=c.slice(0,u),v=e=>g.some((t=>t===e)),b=v(xg),y=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:xg,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(b)return 0;const n=e%x.length;return t?n:d.findIndex((e=>e===x[n]))},getDimensionInfo:e=>{var t;return e===xg?xg:null!==(t=p[c[e]])&&void 0!==t?t:void 0},getDimensionInfoIndex:e=>{var t;return null!==(t=y.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:!(null==t||null===(o=t.qHyperCubeDef)||void 0===o||!o.qShowTotalsAbove),hasPseudoDimOnLeft:b,leftDimensionInfoIndexes:g,isLeftDimension:v,isFullyExpanded:!(null==t||null===(i=t.qHyperCubeDef)||void 0===i||!i.qAlwaysFullyExpanded),triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x}})(e,n)),[e,n]),$x={},zx=e=>{const n=(e=>{const n=t((()=>({current:$x})),[]);return n.current=n.current===$x?e:n.current,n})(e);return n.current=e,n},jx=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=zx((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/gt.PixelsMin)}))(o));return fn((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(Ot,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(yg,Ev(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},Wx=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),Vx=(e,t)=>{const n=kt;return{rowsPerPage:n,totalPages:Math.ceil(e/n),totalRowCount:e,rowsOnCurrentPage:Wx({rowsPerPage:n,totalRowCount:e,page:t})}};var Bx={SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const Gx=()=>{const e=l(),n=e.language();return t((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(Bx).forEach((t=>{e.add(Bx[t])}))}}(e)),[e]),{translator:e,language:n}},Ux=e=>{const{flags:l}=e,v=s(),b=(e=>{const n=t((()=>mn(e)),[e]);return r((()=>()=>n.unmount()),[n]),n})(v),y=u(),x=c(),S=d(),E=p(),w=f(),C=m(),[D,R]=((e,t)=>fn((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(x,y),L=Hx(y,D),I=h(),M=((e,n,r)=>{const i=o();return t((()=>({...i,background:Jn(i,e,n,r)})),[i.name(),e,n,r])})(v),A=M.name(),{translator:q,language:P}=Gx(),{pageInfo:k,updatePageInfo:O}=(e=>{const{size:t,layout:{qHyperCube:{qSize:n}}}=e,[o,a]=i({page:0,shouldShowPagination:n.qcy>t.y,...Vx(n.qcy,0)});return r((()=>{a((t=>({...t,...Vx(e.layout.qHyperCube.qSize.qcy,t.page),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,a]),r((()=>{const{page:e,totalPages:t}=o;if(e+1>t){const e=t-1,n=Wx({...o,page:e});a({...o,page:e,rowsOnCurrentPage:n})}}),[o]),{pageInfo:o,updatePageInfo:e=>a({...o,...e,rowsOnCurrentPage:Wx({...o,...e})})}})(L),T=(e=>t((()=>({gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0})),[e.page]))(k),_=(({layoutService:e,viewService:t,rect:n,model:r})=>{var o;return a((async e=>{if(!e.snapshotData)return e;if(!r)return e;if(!e.snapshotData.content){if(null!=r&&r.getHyperCubePivotData){const n=await r.getHyperCubePivotData(yg,[{qLeft:t.gridColumnStartIndex,qTop:t.gridRowStartIndex,qWidth:t.gridWidth,qHeight:t.gridHeight}]);e.snapshotData.content={qPivotDataPages:n}}return e.snapshotData.object.size.w=n.width,e.snapshotData.object.size.h=n.height,e}return e})),null!==(o=e.layout.snapshotData)&&void 0!==o&&o.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n})({rect:g(),layoutService:L,viewService:T,model:x}),[N,F]=jx({model:x,layoutService:L,viewService:T,pageInfo:k,rect:_}),H=t((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,w,C,D,R,L,I,M,A,q,P,k,O,T,_,N,F,H,$,z,j,W,V,B,G;const U=null===(n=t.layout.components)||void 0===n?void 0:n.find((e=>"theme"===e.key)),Y=null==U?void 0:U.header,K=null==U?void 0:U.dimensionValues,X=null==U?void 0:U.measureValues,Z=null==U?void 0:U.measureLabels,J=null==U?void 0:U.totalValues,Q=null==U?void 0:U.nullValues,ee=null==U?void 0:U.grid,te=(t,n,r)=>e.getStyle(t,n,r),ne=+(null!==(r=null!==(o=null==ee?void 0:ee[Ix.LineClamp])&&void 0!==o?o:te(Mx.Grid,Ax.Grid,qx.LineClamp))&&void 0!==r?r:1),re=null!==(i=null!==(a=kx(e,null==Y?void 0:Y[Ix.Background]))&&void 0!==a?a:te(Mx.Dimension,Ax.LabelName,qx.BackgroundColor))&&void 0!==i?i:Nt.Transparent,oe={header:{fontSize:null!==(l=null!==(s=Px(null==Y?void 0:Y[Ix.FontSize]))&&void 0!==s?s:te(Mx.Dimension,Ax.LabelName,qx.FontSize))&&void 0!==l?l:At,fontFamily:null!==(u=null!==(c=null==Y?void 0:Y[Ix.FontFamily])&&void 0!==c?c:te(Mx.Dimension,Ax.LabelName,qx.FontFamily))&&void 0!==u?u:qt,fontWeight:Tx(null==Y?void 0:Y[Ix.FontStyle],Pt),fontStyle:_x(null==Y?void 0:Y[Ix.FontStyle]),textDecoration:Nx(null==Y?void 0:Y[Ix.FontStyle]),color:null!==(d=null!==(p=kx(e,null==Y?void 0:Y[Ix.FontColor]))&&void 0!==p?p:te(Mx.Dimension,Ax.LabelName,qx.Color))&&void 0!==d?d:Ch.TEXT,background:re,hoverBackground:Zg(re,Rx),activeBackground:Zg(re,Lx)},dimensionValues:{fontSize:null!==(f=null!==(m=Px(null==K?void 0:K[Ix.FontSize]))&&void 0!==m?m:te(Mx.Dimension,Ax.LabelValue,qx.FontSize))&&void 0!==f?f:At,fontFamily:null!==(h=null!==(g=null==K?void 0:K[Ix.FontFamily])&&void 0!==g?g:te(Mx.Dimension,Ax.LabelValue,qx.FontFamily))&&void 0!==h?h:qt,fontWeight:Tx(null==K?void 0:K[Ix.FontStyle],void 0),fontStyle:_x(null==K?void 0:K[Ix.FontStyle]),textDecoration:Nx(null==K?void 0:K[Ix.FontStyle]),color:null!==(v=null!==(b=kx(e,null==K?void 0:K[Ix.FontColor]))&&void 0!==b?b:te(Mx.Dimension,Ax.LabelValue,qx.Color))&&void 0!==v?v:Ch.TEXT,background:null!==(y=null!==(x=kx(e,null==K?void 0:K[Ix.Background]))&&void 0!==x?x:te(Mx.Dimension,Ax.LabelValue,qx.BackgroundColor))&&void 0!==y?y:Nt.Transparent},measureValues:{fontSize:null!==(S=null!==(E=Px(null==X?void 0:X[Ix.FontSize]))&&void 0!==E?E:te(Mx.Measure,Ax.LabelValue,qx.FontSize))&&void 0!==S?S:At,fontFamily:null!==(w=null!==(C=null==X?void 0:X[Ix.FontFamily])&&void 0!==C?C:te(Mx.Measure,Ax.LabelValue,qx.FontFamily))&&void 0!==w?w:qt,fontWeight:Tx(null==X?void 0:X[Ix.FontStyle],"normal"),fontStyle:_x(null==X?void 0:X[Ix.FontStyle]),textDecoration:Nx(null==X?void 0:X[Ix.FontStyle]),color:null!==(D=null!==(R=kx(e,null==X?void 0:X[Ix.FontColor]))&&void 0!==R?R:te(Mx.Measure,Ax.LabelValue,qx.Color))&&void 0!==D?D:Nt.FontSecondary,background:null!==(L=null!==(I=kx(e,null==X?void 0:X[Ix.Background]))&&void 0!==I?I:te(Mx.Measure,Ax.LabelValue,qx.BackgroundColor))&&void 0!==L?L:Nt.Transparent},measureLabels:{fontWeight:Tx(null==Z?void 0:Z[Ix.FontStyle],"normal"),fontStyle:_x(null==Z?void 0:Z[Ix.FontStyle]),textDecoration:Nx(null==Z?void 0:Z[Ix.FontStyle]),color:null!==(M=null!==(A=kx(e,null==Z?void 0:Z[Ix.FontColor]))&&void 0!==A?A:te(Mx.Measure,Ax.LabelName,qx.Color))&&void 0!==M?M:Nt.FontSecondary,background:null!==(q=null!==(P=kx(e,null==Z?void 0:Z[Ix.Background]))&&void 0!==P?P:te(Mx.Measure,Ax.LabelName,qx.BackgroundColor))&&void 0!==q?q:Nt.Transparent},totalValues:{fontWeight:Tx(null==J?void 0:J[Ix.FontStyle],Pt),fontStyle:_x(null==J?void 0:J[Ix.FontStyle]),textDecoration:Nx(null==J?void 0:J[Ix.FontStyle]),color:null!==(k=null!==(O=kx(e,null==J?void 0:J[Ix.FontColor]))&&void 0!==O?O:te(Mx.Total,Ax.LabelValue,qx.Color))&&void 0!==k?k:Ch.TEXT,background:null!==(T=null!==(_=kx(e,null==J?void 0:J[Ix.Background]))&&void 0!==_?_:te(Mx.Total,Ax.LabelValue,qx.BackgroundColor))&&void 0!==T?T:Nt.Transparent},nullValues:{fontWeight:Tx(null==Q?void 0:Q[Ix.FontStyle],"normal"),fontStyle:_x(null==Q?void 0:Q[Ix.FontStyle]),textDecoration:Nx(null==Q?void 0:Q[Ix.FontStyle]),color:null!==(N=null!==(F=kx(e,null==Q?void 0:Q[Ix.FontColor]))&&void 0!==F?F:te(Mx.Null,Ax.LabelValue,qx.Color))&&void 0!==N?N:Ch.TEXT,background:null!==(H=null!==($=kx(e,null==Q?void 0:Q[Ix.Background]))&&void 0!==$?$:te(Mx.Null,Ax.LabelValue,qx.BackgroundColor))&&void 0!==H?H:Nt.NullValueBackground},grid:{lineClamp:ne,border:null!==(z=null!==(j=kx(e,null==ee?void 0:ee[Ix.Border]))&&void 0!==j?j:te(Mx.Grid,Ax.Grid,qx.BorderColor))&&void 0!==z?z:Nt.DividerLight,divider:null!==(W=null!==(V=kx(e,null==ee?void 0:ee[Ix.Divider]))&&void 0!==V?V:te(Mx.Grid,Ax.Divider,qx.BorderColor))&&void 0!==W?W:Nt.DividerDark,background:null!==(B=null!==(G=kx(e,null==ee?void 0:ee[Ix.Background]))&&void 0!==G?G:te(Mx.Grid,Ax.Grid,qx.BackgroundColor))&&void 0!==B?B:Nt.Transparent}};return oe.headerCellHeight=Math.max(Ox(oe.header.fontSize,1),Ox(oe.dimensionValues.fontSize,1),32),oe.contentCellHeight=Math.max(Ox(oe.measureValues.fontSize,ne),Ox(oe.dimensionValues.fontSize,ne),24),oe.contentRowHeight=oe.contentCellHeight/ne,oe.contentTextHeight=oe.contentRowHeight-8,oe})(M,L)),[M.name(),L]),$=(e=>t((()=>[...new Set([Fx(e.header),Fx(e.dimensionValues),Fx({...e.dimensionValues,...e.measureLabels}),Fx({...e.dimensionValues,...e.nullValues}),Fx({...e.dimensionValues,...e.totalValues}),Fx(e.measureValues),Fx({...e.measureValues,...e.nullValues}),Fx({...e.measureValues,...e.totalValues})])]),[e]))(H),z=(e=>{const[t,r]=n((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return r?(console.warn("Failed to load font:",r),!0):!!t})($);r((()=>{!F&&x&&(null==_?void 0:_.width)&&(null==_?void 0:_.height)&&I&&T&&L&&H&&!!N&&!R&&z&&Dx(b,{model:x,app:S,rect:_,selections:I,viewService:T,layoutService:L,qPivotDataPages:N,styleService:H,translator:q,pageInfo:k,updatePageInfo:O,interactions:C,embed:E,keyboard:w,theme:M,flags:l})}),[x,S,_,null==_?void 0:_.width,null==_?void 0:_.height,C,I,T,L,F,N,H,b,z,q,P,k,O,D,R,E,w,M,A,l])},Yx={version:"2.6.1",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]}}}}));
99
+ `),Yp.rippleVisible,ef,550,(({theme:e})=>e.transitions.easing.easeInOut),Yp.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Yp.child,Yp.childLeaving,tf,550,(({theme:e})=>e.transitions.easing.easeInOut),Yp.childPulsate,rf,(({theme:e})=>e.transitions.easing.easeInOut));var af=E.forwardRef((function(e,t){const r=ap({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=An(r,Up),[l,s]=E.useState([]),u=E.useRef(0),c=E.useRef(null);E.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=E.useRef(!1),p=E.useRef(0),f=E.useRef(null),m=E.useRef(null);E.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=E.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,ns.jsx(of,{classes:{ripple:ls(o.ripple,Yp.ripple),rippleVisible:ls(o.rippleVisible,Yp.rippleVisible),ripplePulsate:ls(o.ripplePulsate,Yp.ripplePulsate),child:ls(o.child,Yp.child),childLeaving:ls(o.childLeaving,Yp.childLeaving),childPulsate:ls(o.childPulsate,Yp.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=E.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h]),b=E.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=E.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return E.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),ns.jsx(nf,Ln({className:ls(Yp.root,o.root,i),ref:m},a,{children:ns.jsx(Tp,{component:null,exit:!0,children:l})}))}));function lf(e){return tc("MuiButtonBase",e)}var sf=rc("MuiButtonBase",["root","disabled","focusVisible"]);const uf=["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"],cf=cp("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"},[`&.${sf.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),df=E.forwardRef((function(e,t){const r=ap({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:D=0,TouchRippleProps:_,touchRippleRef:I,type:M}=r,P=An(r,uf),O=E.useRef(null),k=E.useRef(null),T=zu(k,I),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Uu(),[G,$]=E.useState(!1);s&&G&&$(!1),E.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[H,B]=E.useState(!1);E.useEffect((()=>{B(!0)}),[]);const W=H&&!u&&!s;function j(e,t,r=c){return Fu((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}E.useEffect((()=>{G&&d&&!u&&H&&k.current.pulsate()}),[u,d,G,H]);const V=j("start",S),Y=j("stop",h),U=j("stop",g),K=j("stop",w),X=j("stop",(e=>{G&&e.preventDefault(),C&&C(e)})),Z=j("start",A),J=j("stop",R),Q=j("stop",L),ee=j("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Fu((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=E.useRef(!1),oe=Fu((e=>{d&&!ne.current&&G&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Fu((e=>{d&&" "===e.key&&k.current&&G&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(P.href||P.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=zu(t,z,O),ue=Ln({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:G}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Zu({root:["root",t&&"disabled",r&&"focusVisible"]},lf,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ns.jsxs(cf,Ln({as:ae,className:ls(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:J,onTouchMove:Q,onTouchStart:Z,ref:se,tabIndex:s?-1:D,type:M},le,P,{children:[i,W?ns.jsx(af,Ln({ref:T,center:o},_)):null]}))}));var pf=df;function ff(e){return tc("MuiTypography",e)}rc("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const mf=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],hf=cp("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${Au(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Ln({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),gf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},vf=E.forwardRef((function(e,t){const r=ap({props:e,name:"MuiTypography"}),n=(e=>bf[e]||e)(r.color),o=cd(Ln({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=gf}=o,f=An(o,mf),m=Ln({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||gf[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Zu({root:["root",i,"inherit"!==e.align&&`align${Au(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},ff,a)})(m);return ns.jsx(hf,Ln({as:h,ref:t,ownerState:m,className:ls(g.root,a)},f))}));var yf=vf;const xf=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Sf(e){const t=[],r=[];return Array.from(e.querySelectorAll(xf)).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 Ef(){return!0}function Cf(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Sf,isEnabled:a=Ef,open:l}=e,s=E.useRef(!1),u=E.useRef(null),c=E.useRef(null),d=E.useRef(null),p=E.useRef(null),f=E.useRef(!1),m=E.useRef(null),h=zu(t.ref,m),g=E.useRef(null);E.useEffect((()=>{l&&m.current&&(f.current=!r)}),[r,l]),E.useEffect((()=>{if(!l||!m.current)return;const e=Iu(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),E.useEffect((()=>{if(!l||!m.current)return;const e=Iu(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ns.jsxs(E.Fragment,{children:[ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const wf=E.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=E.useState(null),l=zu(E.isValidElement(r)?r.ref:null,t);if(Ou((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Ou((()=>{if(i&&!o)return Pu(t,i),()=>{Pu(t,null)}}),[t,i,o]),o){if(E.isValidElement(r)){const e={ref:l};return E.cloneElement(r,e)}return ns.jsx(E.Fragment,{children:r})}return ns.jsx(E.Fragment,{children:i?T.createPortal(r,i):i})}));function Rf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Lf(e){return parseInt(Mu(e).getComputedStyle(e).paddingRight,10)||0}function Af(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&&Rf(e,o)}))}function Df(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function _f(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Iu(e);return t.body===e?Mu(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Ku(Iu(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Lf(n)+e}px`;const t=Iu(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Lf(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Iu(n).body;else{const t=n.parentElement,r=Mu(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const If=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&&Rf(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);Af(t,e.mount,e.modalRef,n,!0);const o=Df(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=Df(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=_f(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Df(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&&Rf(e.modalRef,t),Af(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&&Rf(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Mf(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=If,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=E.useRef({}),f=E.useRef(null),m=E.useRef(null),h=zu(m,d),[g,b]=E.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=Fu((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Iu(f.current).body;o.add(x(),e),m.current&&S()})),w=E.useCallback((()=>o.isTopModal(x())),[o]),R=Fu((e=>{f.current=e,e&&(c&&w()?S():m.current&&Rf(m.current,y))})),L=E.useCallback((()=>{o.remove(x(),y)}),[y,o]);E.useEffect((()=>()=>{L()}),[L]),E.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=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")))},D=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Bp(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Ln({},r,t);return Ln({role:"presentation"},n,{onKeyDown:A(n),ref:h})},getBackdropProps:(e={})=>Ln({"aria-hidden":!0},e,{onClick:D(e),open:c}),getTransitionProps:()=>({onEnter:Du((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Du((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const Pf=["onChange","maxRows","minRows","style","value"];function Of(e){return parseInt(e,10)||0}const kf={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Tf(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const qf=E.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=An(e,Pf),{current:s}=E.useRef(null!=a),u=E.useRef(null),c=zu(t,u),d=E.useRef(null),p=E.useRef(0),[f,m]=E.useState({outerHeightStyle:0}),h=E.useCallback((()=>{const t=u.current,r=Mu(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=Of(r.paddingBottom)+Of(r.paddingTop),s=Of(r.borderBottomWidth)+Of(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},b=E.useCallback((()=>{const e=h();Tf(e)||m((t=>g(t,e)))}),[h]);Ou((()=>{const e=()=>{p.current=0,(()=>{const e=h();Tf(e)||T.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=_u(e),r=u.current,n=Mu(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),Ou((()=>{b()})),E.useEffect((()=>{p.current=0}),[a]);return ns.jsxs(E.Fragment,{children:[ns.jsx("textarea",Ln({value:a,onChange:e=>{p.current=0,s||b(),r&&r(e)},ref:c,rows:o,style:Ln({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),ns.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Ln({},kf,i,{paddingTop:0,paddingBottom:0})})]})}));function Nf({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}var Ff=E.createContext(void 0);function zf(){return E.useContext(Ff)}function Gf(e){return ns.jsx(ld,Ln({},e,{defaultTheme:op,themeId:Cu}))}function $f(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Hf(e,t=!1){return e&&($f(e.value)&&""!==e.value||t&&$f(e.defaultValue)&&""!==e.defaultValue)}function Bf(e){return tc("MuiInputBase",e)}var Wf=rc("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const jf=["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"],Vf=(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${Au(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Yf=(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]},Uf=cp("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Vf})((({theme:e,ownerState:t})=>Ln({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Wf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ln({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Kf=cp("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Yf})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Ln({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Ln({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Wf.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Wf.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Xf=ns.jsx(Gf,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Zf=E.forwardRef((function(e,t){var r;const n=ap({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:A,onKeyDown:D,onKeyUp:_,placeholder:I,readOnly:M,renderSuffix:P,rows:O,slotProps:k={},slots:T={},startAdornment:q,type:N="text",value:F}=n,z=An(n,jf),G=null!=b.value?b.value:F,{current:$}=E.useRef(null!=G),H=E.useRef(),B=E.useCallback((e=>{}),[]),W=zu(H,v,b.ref,B),[j,V]=E.useState(!1),Y=zf(),U=Nf({props:n,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:j,E.useEffect((()=>{!Y&&d&&j&&(V(!1),w&&w())}),[Y,d,j,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,Z=E.useCallback((e=>{Hf(e)?K&&K():X&&X()}),[K,X]);Ou((()=>{$&&Z({value:G})}),[G,Z,$]);E.useEffect((()=>{Z(H.current)}),[]);let J=g,Q=b;S&&"input"===J&&(Q=Ln(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Q),J=qf);E.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=Ln({},n,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Zu({root:["root",`color${Au(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Au(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Bf,t)})(ee),re=T.root||s.Root||Uf,ne=k.root||u.root||{},oe=T.input||s.Input||Kf;return Q=Ln({},Q,null!=(r=k.input)?r:u.input),ns.jsxs(E.Fragment,{children:[!p&&Xf,ns.jsxs(re,Ln({},ne,!Hp(re)&&{ownerState:Ln({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),L&&L(e)}},z,{className:ls(te.root,ne.className,l,M&&"MuiInputBase-readOnly"),children:[q,ns.jsx(Ff.Provider,{value:null,children:ns.jsx(oe,Ln({ownerState:ee,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{Z("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:I,readOnly:M,required:U.required,rows:O,value:G,onKeyDown:D,onKeyUp:_,type:N},Q,!Hp(oe)&&{as:J,ownerState:Ln({},ee,Q.ownerState)},{ref:W,className:ls(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(Eu(1));Z({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),f,P?P(Ln({},U,{startAdornment:q})):null]}))]})}));var Jf=Zf;function Qf(e){return tc("MuiInput",e)}var em=Ln({},Wf,rc("MuiInput",["root","underline","input"]));function tm(e){return tc("MuiOutlinedInput",e)}var rm=Ln({},Wf,rc("MuiOutlinedInput",["root","notchedOutline","input"]));function nm(e){return tc("MuiFilledInput",e)}var om=Ln({},Wf,rc("MuiFilledInput",["root","underline","input"])),im=function(e,t){function r(r,n){return ns.jsx(gp,Ln({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=gp.muiName,E.memo(E.forwardRef(r))}(ns.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const am=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],lm={entering:{opacity:1},entered:{opacity:1}},sm=E.forwardRef((function(e,t){const r=ip(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=Dp}=e,v=An(e,am),y=E.useRef(null),x=zu(y,a.ref,t),S=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=S(d),w=S(((e,t)=>{qp(e);const n=Np({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=S(c),L=S(m),A=S((e=>{const t=Np({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),D=S(f);return ns.jsx(b,Ln({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:D,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>E.cloneElement(a,Ln({style:Ln({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},lm[e],h,a.props.style),ref:x},t))}))}));var um=sm;function cm(e){return tc("MuiBackdrop",e)}rc("MuiBackdrop",["root","invisible"]);const dm=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],pm=cp("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Ln({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),fm=E.forwardRef((function(e,t){var r,n,o;const i=ap({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=um,transitionDuration:g}=i,b=An(i,dm),v=Ln({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Zu({root:["root",r&&"invisible"]},cm,t)})(v),x=null!=(r=f.root)?r:c.root;return ns.jsx(h,Ln({in:p,timeout:g},b,{children:ns.jsx(pm,Ln({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:ls(y.root,l,null==x?void 0:x.className),ownerState:Ln({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var mm=fm;var hm=rc("MuiBox",["root"]);const gm=np(),bm=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ya("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(td);return E.forwardRef((function(e,a){const l=ad(r),s=cd(e),{className:u,component:c="div"}=s,d=An(s,dd);return ns.jsx(i,Ln({as:c,ref:a,className:ls(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:Cu,defaultTheme:gm,defaultClassName:hm.root,generateClassName:Qu.generate});var vm=bm;function ym(e){return tc("MuiButton",e)}var xm=rc("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Sm=E.createContext({});var Em=E.createContext(void 0);const Cm=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],wm=e=>Ln({},"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}}),Rm=cp(pf,{shouldForwardProp:e=>lp(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Au(r.color)}`],t[`size${Au(r.size)}`],t[`${r.variant}Size${Au(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Ln({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ln({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:_d(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_d(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_d(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ln({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${xm.focusVisible}`]:Ln({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${xm.disabled}`]:Ln({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${_d(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${xm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${xm.disabled}`]:{boxShadow:"none"}})),Lm=cp("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Au(r.size)}`]]}})((({ownerState:e})=>Ln({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},wm(e)))),Am=cp("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Au(r.size)}`]]}})((({ownerState:e})=>Ln({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},wm(e)))),Dm=E.forwardRef((function(e,t){const r=E.useContext(Sm),n=E.useContext(Em),o=ap({props:Xu(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,y=An(o,Cm),x=Ln({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Ln({},a,Zu({root:["root",i,`${i}${Au(t)}`,`size${Au(o)}`,`${i}Size${Au(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Au(o)}`],endIcon:["endIcon",`iconSize${Au(o)}`]},ym,a))})(x),C=g&&ns.jsx(Lm,{className:S.startIcon,ownerState:x,children:g}),w=p&&ns.jsx(Am,{className:S.endIcon,ownerState:x,children:p}),R=n||"";return ns.jsxs(Rm,Ln({ownerState:x,className:ls(r.className,S.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:ls(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[C,i,w]}))}));var _m=Dm;function Im(e){return tc("MuiModal",e)}rc("MuiModal",["root","hidden","backdrop"]);const Mm=["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"],Pm=cp("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Ln({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Om=cp(mm,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),km=E.forwardRef((function(e,t){var r,n,o,i,a,l;const s=ap({name:"MuiModal",props:e}),{BackdropComponent:u=Om,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:D,slotProps:_,slots:I}=s,M=An(s,Mm),P=Ln({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:k,getTransitionProps:T,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=Mf(Ln({},P,{rootRef:t})),G=Ln({},P,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Zu({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Im,n)})(G),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=T();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==I?void 0:I.root)?n:g.Root)?r:Pm,W=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:u,j=null!=(a=null==_?void 0:_.root)?a:b.root,V=null!=(l=null==_?void 0:_.backdrop)?l:b.backdrop,Y=Vp({elementType:B,externalSlotProps:j,externalForwardedProps:M,getSlotProps:O,additionalProps:{ref:t,as:h},ownerState:G,className:ls(d,null==j?void 0:j.className,null==$?void 0:$.root,!G.open&&G.exited&&(null==$?void 0:$.hidden))}),U=Vp({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(Ln({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ls(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:G});return L||D||z&&!F?ns.jsx(wf,{ref:q,container:m,disablePortal:S,children:ns.jsxs(B,Ln({},Y,{children:[!R&&u?ns.jsx(W,Ln({},U)):null,ns.jsx(Cf,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:D,children:E.cloneElement(f,H)})]}))}):null}));var Tm=km;function qm(e){return tc("MuiDivider",e)}var Nm=rc("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Fm=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],zm=cp("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Ln({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:_d(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Ln({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Ln({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Ln({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Ln({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Gm=cp("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Ln({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),$m=E.forwardRef((function(e,t){const r=ap({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=An(r,Fm),m=Ln({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Zu({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},qm,n)})(m);return ns.jsx(zm,Ln({as:a,className:ls(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?ns.jsx(Gm,{className:h.wrapper,ownerState:m,children:o}):null}))}));$m.muiSkipListHighlight=!0;var Hm=$m;const Bm=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Wm=cp(Uf,{shouldForwardProp:e=>lp(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Vf(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ln({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${om.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${om.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${om.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${om.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${om.disabled}, .${om.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${om.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Ln({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),jm=cp(Kf,{name:"MuiFilledInput",slot:"Input",overridesResolver:Yf})((({theme:e,ownerState:t})=>Ln({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Vm=E.forwardRef((function(e,t){var r,n,o,i;const a=ap({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=An(a,Bm),g=Ln({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Ln({},t,Zu({root:["root",!r&&"underline"],input:["input"]},nm,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Lu(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:Wm,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:jm;return ns.jsx(Jf,Ln({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Vm.muiName="Input";var Ym=Vm;const Um=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Km(e){return`scale(${e}, ${e**2})`}const Xm={entering:{opacity:1,transform:Km(1)},entered:{opacity:1,transform:"none"}},Zm="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jm=E.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Dp}=e,g=An(e,Um),b=E.useRef(),v=E.useRef(),y=ip(),x=E.useRef(null),S=zu(x,o.ref,t),C=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{qp(e);const{duration:r,delay:n,easing:o}=Np({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Zm?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),D=C((e=>{const{duration:t,delay:r,easing:n}=Np({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Zm?o:.666*o,delay:Zm?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Km(.75),c&&c(e)})),_=C(d);return E.useEffect((()=>()=>{clearTimeout(b.current)}),[]),ns.jsx(h,Ln({appear:n,in:a,nodeRef:x,onEnter:R,onEntered:L,onEntering:w,onExit:D,onExited:_,onExiting:A,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),r&&r(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>E.cloneElement(o,Ln({style:Ln({opacity:0,transform:Km(.75),visibility:"exited"!==e||a?void 0:"hidden"},Xm[e],f,o.props.style),ref:S},t))}))}));Jm.muiSupportAuto=!0;var Qm=Jm;const eh=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],th=cp(Uf,{shouldForwardProp:e=>lp(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Vf(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Ln({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${em.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${em.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${em.disabled}, .${em.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${em.disabled}:before`]:{borderBottomStyle:"dotted"}})})),rh=cp(Kf,{name:"MuiInput",slot:"Input",overridesResolver:Yf})({}),nh=E.forwardRef((function(e,t){var r,n,o,i;const a=ap({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=An(a,eh),b=(e=>{const{classes:t,disableUnderline:r}=e;return Ln({},t,Zu({root:["root",!r&&"underline"],input:["input"]},Qf,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Lu(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:th,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:rh;return ns.jsx(Jf,Ln({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));nh.muiName="Input";var oh=nh;var ih=E.createContext({});function ah(e){return tc("MuiList",e)}rc("MuiList",["root","padding","dense","subheader"]);const lh=["children","className","component","dense","disablePadding","subheader"],sh=cp("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>Ln({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var uh=E.forwardRef((function(e,t){const r=ap({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=An(r,lh),c=E.useMemo((()=>({dense:a})),[a]),d=Ln({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Zu({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},ah,t)})(d);return ns.jsx(ih.Provider,{value:c,children:ns.jsxs(sh,Ln({as:i,className:ls(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function ch(e){return tc("MuiListItemIcon",e)}var dh=rc("MuiListItemIcon",["root","alignItemsFlexStart"]);const ph=["className"],fh=cp("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Ln({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var mh=E.forwardRef((function(e,t){const r=ap({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=An(r,ph),i=Ln({},r,{alignItems:E.useContext(ih).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Zu({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ch,r)})(i);return ns.jsx(fh,Ln({className:ls(a.root,n),ownerState:i,ref:t},o))}));var hh=rc("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const gh=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function bh(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function vh(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function yh(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 xh(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&yh(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Sh=E.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=An(e,gh),p=E.useRef(null),f=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ou((()=>{n&&p.current.focus()}),[n]),E.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${Ku(Iu(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=zu(p,t);let h=-1;E.Children.forEach(i,((e,t)=>{E.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=E.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),E.cloneElement(e,t)}return e}));return ns.jsx(uh,Ln({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Iu(t).activeElement;if("ArrowDown"===r)e.preventDefault(),xh(t,n,s,l,bh);else if("ArrowUp"===r)e.preventDefault(),xh(t,n,s,l,vh);else if("Home"===r)e.preventDefault(),xh(t,null,s,l,bh);else if("End"===r)e.preventDefault(),xh(t,null,s,l,vh);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&yh(n,o);o.previousKeyMatched&&(s||xh(t,n,!1,l,bh,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Eh(e){return tc("MuiPopover",e)}rc("MuiPopover",["root","paper"]);const Ch=["onEntering"],wh=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Rh=["slotProps"];function Lh(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ah(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Dh(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function _h(e){return"function"==typeof e?e():e}const Ih=cp(Tm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mh=cp($p,{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});var Ph=E.forwardRef((function(e,t){var r,n,o;const i=ap({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Qm,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=An(i.TransitionProps,Ch),A=An(i,wh),D=null!=(r=null==y?void 0:y.paper)?r:b,_=E.useRef(),I=zu(_,D.ref),M=Ln({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:D,transformOrigin:x,TransitionComponent:S,transitionDuration:C,TransitionProps:L}),P=(e=>{const{classes:t}=e;return Zu({root:["root"],paper:["paper"]},Eh,t)})(M),O=E.useCallback((()=>{if("anchorPosition"===c)return u;const e=_h(l),t=(e&&1===e.nodeType?e:Iu(_.current).body).getBoundingClientRect();return{top:t.top+Lh(t,s.vertical),left:t.left+Ah(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=E.useCallback((e=>({vertical:Lh(e,x.vertical),horizontal:Ah(e,x.horizontal)})),[x.horizontal,x.vertical]),T=E.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:Dh(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Mu(_h(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Dh(r)}}),[l,c,O,k,h]),[q,N]=E.useState(g),F=E.useCallback((()=>{const e=_.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);E.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);E.useEffect((()=>{g&&F()})),E.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),E.useEffect((()=>{if(!g)return;const e=_u((()=>{F()})),t=Mu(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||S.muiSupportAuto||(z=void 0);const G=f||(l?Iu(_h(l)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:Ih,H=null!=(o=null==v?void 0:v.paper)?o:Mh,B=Vp({elementType:H,externalSlotProps:Ln({},D,{style:q?D.style:Ln({},D.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:M,className:ls(P.paper,null==D?void 0:D.className)}),W=Vp({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:G,open:g},ownerState:M,className:ls(P.root,p)}),{slotProps:j}=W,V=An(W,Rh);return ns.jsx($,Ln({},V,!Hp($)&&{slotProps:j,disableScrollLock:R},{children:ns.jsx(S,Ln({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:ns.jsx(H,Ln({},B,{children:d}))}))}))}));function Oh(e){return tc("MuiMenu",e)}rc("MuiMenu",["root","paper","list"]);const kh=["onEntering"],Th=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],qh={vertical:"top",horizontal:"right"},Nh={vertical:"top",horizontal:"left"},Fh=cp(Ph,{shouldForwardProp:e=>lp(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zh=cp(Mh,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Gh=cp(Sh,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var $h=E.forwardRef((function(e,t){var r,n;const o=ap({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=An(o.TransitionProps,kh),x=An(o,Th),S=ip(),C="rtl"===S.direction,w=Ln({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return Zu({root:["root"],paper:["paper"],list:["list"]},Oh,t)})(w),L=i&&!s&&d,A=E.useRef(null);let D=-1;E.Children.map(a,((e,t)=>{E.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=t))}));const _=null!=(r=b.paper)?r:zh,I=null!=(n=v.paper)?n:p,M=Vp({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),P=Vp({elementType:_,externalSlotProps:I,ownerState:w,className:R.paper});return ns.jsx(Fh,Ln({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?qh:Nh,slots:{paper:_,root:b.root},slotProps:{root:M,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Ln({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:w},x,{classes:f,children:ns.jsx(Gh,Ln({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===D||s),autoFocusItem:L,variant:g},u,{className:ls(R.list,u.className),children:a}))}))}));function Hh(e){return tc("MuiMenuItem",e)}var Bh=rc("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Wh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],jh=cp(pf,{shouldForwardProp:e=>lp(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Ln({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Bh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_d(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_d(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_d(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_d(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Bh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Nm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Nm.inset}`]:{marginLeft:52},[`& .${hh.root}`]:{marginTop:0,marginBottom:0},[`& .${hh.inset}`]:{paddingLeft:36},[`& .${dh.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ln({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${dh.root} svg`]:{fontSize:"1.25rem"}}))));var Vh=E.forwardRef((function(e,t){const r=ap({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=An(r,Wh),f=E.useContext(ih),m=E.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=E.useRef(null);Ou((()=>{n&&h.current&&h.current.focus()}),[n]);const g=Ln({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Ln({},a,Zu({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Hh,a))})(r),v=zu(h,t);let y;return r.disabled||(y=void 0!==c?c:-1),ns.jsx(ih.Provider,{value:m,children:ns.jsx(jh,Ln({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:ls(b.focusVisible,s),className:ls(b.root,d)},p,{ownerState:g,classes:b}))})}));function Yh(e){return tc("MuiNativeSelect",e)}var Uh=rc("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Kh=["className","disabled","error","IconComponent","inputRef","variant"],Xh=({ownerState:e,theme:t})=>Ln({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ln({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Uh.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Zh=cp("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:lp,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Uh.multiple}`]:t.multiple}]}})(Xh),Jh=({ownerState:e,theme:t})=>Ln({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Uh.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Qh=cp("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Au(r.variant)}`],r.open&&t.iconOpen]}})(Jh);var eg,tg=E.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=An(e,Kh),u=Ln({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Zu({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Au(r)}`,i&&"iconOpen",n&&"disabled"]},Yh,t)})(u);return ns.jsxs(E.Fragment,{children:[ns.jsx(Zh,Ln({ownerState:u,className:ls(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:ns.jsx(Qh,{as:i,ownerState:u,className:c.icon})]})}));const rg=["children","classes","className","label","notched"],ng=cp("fieldset",{shouldForwardProp:lp})({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%"}),og=cp("legend",{shouldForwardProp:lp})((({ownerState:e,theme:t})=>Ln({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Ln({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const ig=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ag=cp(Uf,{shouldForwardProp:e=>lp(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Vf})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ln({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${rm.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rm.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${rm.focused} .${rm.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${rm.error} .${rm.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rm.disabled} .${rm.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Ln({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),lg=cp((function(e){const{className:t,label:r,notched:n}=e,o=An(e,rg),i=null!=r&&""!==r,a=Ln({},e,{notched:n,withLabel:i});return ns.jsx(ng,Ln({"aria-hidden":!0,className:t,ownerState:a},o,{children:ns.jsx(og,{ownerState:a,children:i?ns.jsx("span",{children:r}):eg||(eg=ns.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),sg=cp(Kf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Yf})((({theme:e,ownerState:t})=>Ln({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),ug=E.forwardRef((function(e,t){var r,n,o,i,a;const l=ap({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=An(l,ig),b=(e=>{const{classes:t}=e;return Ln({},t,Zu({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},tm,t))})(l),v=zf(),y=Nf({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Ln({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(r=null!=(n=m.root)?n:s.Root)?r:ag,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:sg;return ns.jsx(Jf,Ln({slots:{root:S,input:C},renderSuffix:e=>ns.jsx(lg,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=ns.jsxs(E.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Ln({},b,{notchedOutline:null})}))}));ug.muiName="Input";var cg=ug;function dg(e){return tc("MuiSelect",e)}var pg,fg=rc("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const mg=["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"],hg=cp("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${fg.select}`]:t.select},{[`&.${fg.select}`]:t[r.variant]},{[`&.${fg.error}`]:t.error},{[`&.${fg.multiple}`]:t.multiple}]}})(Xh,{[`&.${fg.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),gg=cp("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Au(r.variant)}`],r.open&&t.iconOpen]}})(Jh),bg=cp("input",{shouldForwardProp:e=>sp(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 vg(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function yg(e){return null==e||"string"==typeof e&&!e.trim()}const xg=E.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:A,renderValue:D,SelectDisplayProps:_={},tabIndex:I,value:M,variant:P="standard"}=e,O=An(e,mg),[k,T]=Nu({controlled:M,default:c,name:"Select"}),[q,N]=Nu({controlled:L,default:u,name:"Select"}),F=E.useRef(null),z=E.useRef(null),[G,$]=E.useState(null),{current:H}=E.useRef(null!=L),[B,W]=E.useState(),j=zu(t,h),V=E.useCallback((e=>{z.current=e,e&&$(e)}),[]),Y=null==G?void 0:G.parentNode;E.useImperativeHandle(j,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),E.useEffect((()=>{u&&q&&G&&!H&&(W(a?null:Y.clientWidth),z.current.focus())}),[G,a]),E.useEffect((()=>{i&&z.current.focus()}),[i]),E.useEffect((()=>{if(!g)return;const e=Iu(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?R&&R(t):C&&C(t),H||(W(a?null:Y.clientWidth),N(e))},K=E.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==r&&(T(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),S(o,e)}v||U(!1,t)}},Z=null!==G&&q;let J,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Hf({value:k})||p)&&(D?J=D(k):te=!0);const re=K.map((e=>{if(!E.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(Eu(2));t=k.some((t=>vg(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=vg(k,e.props.value),t&&te&&(Q=e.props.children);return E.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(J=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!a&&H&&G&&(oe=Y.clientWidth),ne=void 0!==I?I:d?null:0;const ie=_.id||(y?`mui-component-select-${y}`:void 0),ae=Ln({},e,{variant:P,value:k,open:Z,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Zu({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Au(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},dg,t)})(ae),se=Ln({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=qu();return ns.jsxs(E.Fragment,{children:[ns.jsx(hg,Ln({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),U(!0,e))},onBlur:e=>{!Z&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:y}}),x(e))},onFocus:w},_,{ownerState:ae,className:ls(_.className,le.select,s),id:ie,children:yg(J)?pg||(pg=ns.jsx("span",{className:"notranslate",children:"​"})):J})),ns.jsx(bg,Ln({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),ns.jsx(gg,{as:m,className:le.icon,ownerState:ae}),ns.jsx($h,Ln({id:`menu-${y||""}`,anchorEl:Y,open:Z,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Ln({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Ln({},b.slotProps,{paper:Ln({},se,{style:Ln({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var Sg=xg;const Eg=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Cg=["root"],wg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>lp(e)&&"variant"!==e,slot:"Root"},Rg=cp(oh,wg)(""),Lg=cp(cg,wg)(""),Ag=cp(Ym,wg)(""),Dg=E.forwardRef((function(e,t){const r=ap({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=im,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:C,variant:w="outlined"}=r,R=An(r,Eg),L=b?tg:Sg,A=Nf({props:r,muiFormControl:zf(),states:["variant","error"]}),D=A.variant||w,_=Ln({},r,{variant:D,classes:i}),I=(e=>{const{classes:t}=e;return t})(_),M=An(I,Cg),P=d||{standard:ns.jsx(Rg,{ownerState:_}),outlined:ns.jsx(Lg,{label:f,ownerState:_}),filled:ns.jsx(Ag,{ownerState:_})}[D],O=zu(t,P.ref);return ns.jsx(E.Fragment,{children:E.cloneElement(P,Ln({inputComponent:L,inputProps:Ln({children:o,error:A.error,IconComponent:u,variant:D,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Ln({id:c},C)},p,{classes:p?Lu(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===D?{notched:!0}:{},{ref:O,className:ls(P.props.className,a,I.root)},!d&&{variant:D},R))})}));Dg.muiName="Select";var _g=Dg;const Ig=cp(vm,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),Mg=cp(vu,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),Pg=cp($h)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Og=cp(Hm)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),kg=cp(Vh)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:e.spacing(.25,2),marginBottom:e.spacing(.5)}))),Tg=cp(Vh,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative",overflow:"hidden",boxSizing:"border-box",background:""+(r?"rgba(0, 0, 0, 0.05)":"transparent")}))),qg=cp("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),Ng=cp("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Fg=cp(yf)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),zg=cp(mh)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function Gg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $g=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Gg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("defs",null,y.createElement("path",{id:"arrow_right_svg__luiicons_arrow_right-a",d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})),y.createElement("use",{xlinkHref:"#arrow_right_svg__luiicons_arrow_right-a"})),Hg=D($g);let Bg={};const Wg=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=b(!1),p=_(null),f=w((e=>{e.stopPropagation(),d(!1)}),[d]);return y.createElement(y.Fragment,null,y.createElement(Tg,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),Bg={}),null!=a&&a.length&&(d(!0),Bg[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&y.createElement(qg,null),y.createElement(Ng,null,y.createElement(zg,null,y.createElement(o,null)),y.createElement(Fg,{variant:"body2"},n)),null!=a&&a.length?y.createElement(Hg,null):null),(null==a?void 0:a.length)&&y.createElement(Vg,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=Bg,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},jg=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&y.createElement(kg,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>y.createElement(Wg,Su({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),Vg=({anchorEl:e,open:t,onClose:r,ariaLabel:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?y.createElement(Pg,Su({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,"aria-labelledby":n},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[jg({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?y.createElement(Og,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null;function Yg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ug=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Yg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("defs",null,y.createElement("path",{id:"descending_svg__descending-a",d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"})),y.createElement("use",{xlinkHref:"#descending_svg__descending-a"})),Kg=D(Ug);function Xg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Zg=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Xg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("defs",null,y.createElement("path",{id:"ascending_svg__ascending-a",d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"})),y.createElement("use",{xlinkHref:"#ascending_svg__ascending-a"})),Jg=D(Zg);function Qg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const eb=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Qg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116.509.509 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.087a.506.506 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0Z"})),tb=D(eb);function rb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nb=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rb(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1V1.5ZM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1h1.5ZM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1v1.5Zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1v1.5ZM6 0h4v1H6V0ZM0 6h1v4H0V6Zm15 0h1v4h-1V6Zm-9 9h4v1H6v-1Z"})),ob=D(nb);function ib(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ab=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ib(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("defs",null,y.createElement("path",{id:"select_all_svg__select_all-a",d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4h2Zm12-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 0h10Zm0 1H5v10h10V1Zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28l3.497-3.627Z"})),y.createElement("use",{xlinkHref:"#select_all_svg__select_all-a"})),lb=D(ab);function sb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ub=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){sb(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("defs",null,y.createElement("path",{id:"clear_selections_svg__selections-clear-a",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-.5Zm-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 0Zm0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM9.166 6.166c1.555-1.555 4.113-1.555 5.668 0 1.555 1.555 1.555 4.113 0 5.668-1.555 1.555-4.113 1.555-5.668 0-1.555-1.555-1.555-4.063 0-5.668Zm4.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 0c-.25.201-.25.602 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.304 1.304-1.304Z"})),y.createElement("use",{xlinkHref:"#clear_selections_svg__selections-clear-a"})),cb=D(ub);function db(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pb=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){db(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("defs",null,y.createElement("path",{id:"select_possible_svg__luiicons_select_possible-a",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-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 4v8h8V4H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),y.createElement("use",{xlinkHref:"#select_possible_svg__luiicons_select_possible-a"})),fb=D(pb);function mb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hb=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){mb(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("defs",null,y.createElement("path",{id:"select_alternative_svg__luiicons_select_alternative-a",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-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 4v8l8-8H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),y.createElement("use",{xlinkHref:"#select_alternative_svg__luiicons_select_alternative-a"})),gb=D(hb);function bb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vb=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bb(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("defs",null,y.createElement("path",{id:"select_excluded_svg__luiicons_select_excluded-a",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-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),y.createElement("use",{xlinkHref:"#select_excluded_svg__luiicons_select_excluded-a"})),yb=D(vb);function xb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Sb=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){xb(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("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.707L3.915 8ZM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h14Zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2h2Z"})),Eb=D(Sb);let Cb=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const wb=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(r[Cb.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),n(!1),await(null==i?void 0:i(e))},icon:Jg,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),n(!1),await(null==i?void 0:i(e))},icon:Kg,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];r[Cb.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),l()},icon:tb,enabled:!0}]}]),r[Cb.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:ob,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAll())},icon:lb,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectPossible())},icon:fb,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAlternative())},icon:gb,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectExcluded())},icon:yb,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.clear())},icon:cb,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[Cb.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==d||d(c)},icon:Eb,enabled:!0}]}]),p},Rb=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=mr({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:v}=n,{fieldInstance:x,selectionActionsEnabledStatus:S,resetSelectionActionsEnabledStatus:E,updateSelectionActionsEnabledStatus:R}=(({headerData:e,app:t})=>{const[r,n]=b(null),[o,i]=b(yu);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:w((()=>i(yu)),[]),updateSelectionActionsEnabledStatus:w((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:xu(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:xu(["qSelected"],r.qStateCounts),canSelectPossible:xu(["qOption"],r.qStateCounts),canSelectAlternative:xu(["qAlternative"],r.qStateCounts),canSelectExcluded:xu(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),L=w((()=>{const e=g?{qLibraryId:g,type:"dimension"}:v;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,v,g]);C((()=>{e||(E(),null!=d&&d.model&&d.model.getLayout().then((e=>{R(e)})).catch((e=>console.error(e))))}),[e,E,R,null==d?void 0:d.model]);const A=w((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?y.createElement(Ig,{rightAligned:"right"===h,shouldShowMenuIcon:s},s&&y.createElement(Mg,{size:"small",className:pt,"data-testid":pt,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},y.createElement(vu,null)),y.createElement(Vg,{open:e,anchorEl:r.current,onClose:A,menuGroups:wb({headerData:n,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:L,interactions:i,fieldInstance:x,selectionActionsEnabledStatus:S,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},Lb=cp(vm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),Ab=cp(_g,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),Db=cp(_m,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),_b=cp(yf)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})));function Ib(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."}function Mb(e){if(e.type)return e;if("#"===e.charAt(0))return Mb(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(Ib(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 Pb(e,t){return e=Mb(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)}const Ob={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"},kb={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Ob,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Tb=12,qb=14,Nb=16,Fb=24,zb=3,Gb=300,$b=400,Hb=600,Bb=700,Wb={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Pb(kb.GREYSCALE_0,.05),Pb(kb.GREEN_PALE,.5),Pb(kb.BLUE_PALE,.5),Pb(kb.GREEN_PALE,.5),Pb(kb.BLUE_PALE,.5),Pb(kb.GREEN_PALE,.5),Pb(kb.BLUE_PALE,.5);var jb,Vb;function Yb(){return Yb=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},Yb.apply(this,arguments)}Pb(kb.GREEN_PALE,.5),Pb(kb.BLUE_PALE,.5),Pb(kb.GREEN_PALE,.5),Pb(kb.BLUE_PALE,.5);var Ub,Kb,Xb=function(e){return E.createElement("svg",Yb({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),jb||(jb=E.createElement("defs",null,E.createElement("path",{id:"ArrowDown_svg__a",d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"}))),Vb||(Vb=E.createElement("use",{xlinkHref:"#ArrowDown_svg__a",fillRule:"evenodd"})))};function Zb(){return Zb=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},Zb.apply(this,arguments)}var Jb=function(e){return E.createElement("svg",Zb({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),Ub||(Ub=E.createElement("defs",null,E.createElement("path",{id:"Close_svg__a",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"}))),Kb||(Kb=E.createElement("use",{xlinkHref:"#Close_svg__a"})))};function Qb({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return y.createElement("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},t)}var ev=(e={})=>y.createElement(Qb,{...e},y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},y.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),y.createElement("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"}))),tv=(e={})=>y.createElement(Qb,{...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),y.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),rv=(e={})=>y.createElement(Qb,{fontSize:"medium",...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},y.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),nv=(e={})=>y.createElement(Qb,{fontSize:"medium",...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("defs",null,y.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},y.createElement("use",{href:"#radio-checked-path-1"})),y.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),y.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),ov=({className:e})=>y.createElement(Qb,{fontSize:"small",className:e},y.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},y.createElement("g",{transform:"translate(4.324187, 1.300372)"},y.createElement("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"}),y.createElement("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"})))))),iv=(e={})=>y.createElement(Qb,{...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("rect",{stroke:kb.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const av={MuiAccordion:{styleOverrides:{root:{backgroundColor:kb.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:kb.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:y.createElement(Xb,{"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 ${kb.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:kb.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${kb.MISC_FOCUS_BORDER}`,borderRadius:zb,backgroundColor:kb.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 ${kb.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:kb.WHITE,color:kb.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:zb},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${kb.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:kb.GREYSCALE_0_15,backgroundColor:kb.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:kb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${kb.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:kb.GREEN_PALE},"&:active":{backgroundColor:kb.GREEN_DARK},"&.Mui-focusVisible":{borderColor:kb.GREEN_PALE,boxShadow:`0 0 0 3px ${_d(kb.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:kb.BLUE_PALE},"&:active":{backgroundColor:kb.BLUE_DARK},"&.Mui-focusVisible":{borderColor:kb.BLUE_PALE,boxShadow:`0 0 0 3px ${_d(kb.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:zb,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:kb.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${kb.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:kb.GREYSCALE_0_15,backgroundColor:kb.GREYSCALE_100_60,"&:active":{backgroundColor:kb.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:kb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${kb.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:kb.PURPLE,"&.Mui-focusVisible":{borderColor:kb.PURPLE,boxShadow:`0 0 0 3px ${_d(kb.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:kb.GREEN,"&.Mui-focusVisible":{borderColor:kb.GREEN,boxShadow:`0 0 0 3px ${_d(kb.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:kb.BLUE,"&.Mui-focusVisible":{borderColor:kb.BLUE,boxShadow:`0 0 0 3px ${_d(kb.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:kb.ORANGE,"&.Mui-focusVisible":{borderColor:kb.ORANGE,boxShadow:`0 0 0 3px ${_d(kb.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:kb.RED,"&.Mui-focusVisible":{borderColor:kb.RED,boxShadow:`0 0 0 3px ${_d(kb.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:kb.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:kb.PURPLE_PALE},"&:active":{backgroundColor:kb.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:kb.PURPLE_PALE,boxShadow:`0 0 0 3px ${_d(kb.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:kb.GREEN_PALE},"&:active":{backgroundColor:kb.GREEN_DARK},"&.Mui-focusVisible":{borderColor:kb.GREEN_PALE,boxShadow:`0 0 0 3px ${_d(kb.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:kb.BLUE_PALE},"&:active":{backgroundColor:kb.BLUE_DARK},"&.Mui-focusVisible":{borderColor:kb.BLUE_PALE,boxShadow:`0 0 0 3px ${_d(kb.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:kb.ORANGE_PALE},"&:active":{backgroundColor:kb.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:kb.ORANGE_PALE,boxShadow:`0 0 0 3px ${_d(kb.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:kb.RED_PALE},"&:active":{backgroundColor:kb.RED_DARK},"&.Mui-focusVisible":{borderColor:kb.RED_PALE,boxShadow:`0 0 0 3px ${_d(kb.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:kb.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:kb.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:zb,boxShadow:`inset 0 0 0 2px ${kb.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:y.createElement(Jb,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Tb,borderRadius:zb,color:kb.TEXT_PRIMARY,backgroundColor:kb.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:kb.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${kb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:kb.GREYSCALE_0_05,color:kb.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:kb.GREEN,borderColor:kb.GREEN},"&.MuiChip-outlinedInfo":{color:kb.BLUE,borderColor:kb.BLUE},"&.MuiChip-outlinedWarning":{color:kb.ORANGE,borderColor:kb.ORANGE},"&.MuiChip-outlinedError":{color:kb.RED,borderColor:kb.RED}},outlined:{border:`solid 1px ${kb.GREYSCALE_0_15}`,backgroundColor:kb.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:zb,boxShadow:"none",backgroundColor:kb.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:kb.GREEN,borderColor:kb.GREEN},outlinedSecondary:{color:kb.BLUE,borderColor:kb.BLUE},label:{fontFamily:Wb.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:y.createElement(Jb,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:y.createElement(Xb,{"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:zb},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:qb,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:kb.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:kb.GREYSCALE_0_10},"&:hover":{backgroundColor:kb.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:zb,border:`solid 1px ${kb.GREYSCALE_0_15}`,color:kb.GREYSCALE_0_60,marginRight:0,width:Fb,height:Fb},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${kb.GREYSCALE_0_15}`},clearIndicator:{borderRadius:zb,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:kb.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:qb}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Tb,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:kb.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:kb.GREYSCALE_25,fontSize:Tb,fontFamily:Wb.FONT_FAMILY,fontWeight:Hb,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:kb.TEXT_PRIMARY},"&.Mui-error":{color:kb.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:kb.TEXT_SECONDARY,content:"'(optional)'",fontWeight:$b,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:kb.TEXT_SECONDARY,content:"'(required)'",fontWeight:$b,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:qb,lineHeight:"16px",backgroundColor:kb.WHITE,borderRadius:zb,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kb.GREYSCALE_0_05}`,borderColor:kb.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kb.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${kb.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${kb.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kb.RED}`,boxShadow:`0px 0px 0px 1px ${kb.RED}, inset 0 2px 0 0 ${kb.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kb.GREYSCALE_0_10}`,borderColor:kb.GREYSCALE_0_10,backgroundColor:kb.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:kb.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:kb.GREYSCALE_0_15,borderRadius:zb,boxShadow:`inset 0 2px 0 0 ${kb.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>y.createElement(Xb,{...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:kb.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:kb.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:kb.GREYSCALE_0_03},"&:active":{backgroundColor:kb.GREYSCALE_0_10},"&:focus":{backgroundColor:kb.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${kb.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${kb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:kb.GREYSCALE_0_30,"&:hover":{backgroundColor:kb.GREYSCALE_0_0,borderColor:kb.GREYSCALE_0_15},"& ~svg":{color:kb.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${kb.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:zb}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:kb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${kb.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:kb.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:qb,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Tb,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Tb,fontWeight:Hb,color:kb.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Hb}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${kb.GREYSCALE_0_15}, 0px 0px 0px 1px ${kb.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:y.createElement(rv,null),checkedIcon:y.createElement(nv,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:kb.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${kb.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:kb.GREEN_PALE,boxShadow:`0 0 0 3px ${_d(kb.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:kb.BLUE_PALE,boxShadow:`0 0 0 3px ${_d(kb.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:kb.GREYSCALE_0_20}},"&.Mui-disabled":{fill:kb.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:y.createElement(iv,null),checkedIcon:y.createElement(ev,null),indeterminateIcon:y.createElement(tv,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:zb,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:kb.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:kb.GREYSCALE_0_55,color:kb.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:kb.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:kb.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:kb.GREYSCALE_0_55,"&:hover":{color:kb.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:kb.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:kb.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:qb,color:kb.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Hb},secondary:{fontSize:Tb,color:kb.GREYSCALE_45,fontWeight:$b,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:qb,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:kb.GREYSCALE_0_03},"&:active":{backgroundColor:kb.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:qb,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:kb.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Tb,borderBottom:`solid 1px ${kb.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:qb,color:kb.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:kb.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:kb.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:kb.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:kb.RED}}},"&.Mui-focusVisible":{backgroundColor:kb.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:kb.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:kb.GREEN,height:"24px","&.Mui-disabled":{color:kb.GREYSCALE_0_15}},rail:{backgroundColor:kb.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${kb.GREYSCALE_0_05}`,borderRadius:zb,boxShadow:`inset 0px 0px 0px 1px ${kb.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${kb.GREYSCALE_0_05}`,borderRadius:zb},thumb:{height:"16px",width:"16px",borderRadius:zb,backgroundColor:kb.WHITE,boxShadow:`0px 1px 2px 0px ${kb.GREYSCALE_0_15}, 0px 0px 0px 1px ${kb.GREYSCALE_0_05}`,"&:hover":{borderRadius:zb,boxShadow:`0 2px 4px 0 ${kb.GREYSCALE_0_30}, 0 0 0 1px ${kb.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${kb.GREYSCALE_0_15}, 0 0 0 1px ${kb.GREYSCALE_0_06}, 0 0 0 2px ${kb.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${kb.GREYSCALE_0_15}, 0 0 0 1px ${kb.GREYSCALE_0_06}, 0 0 0 2px ${kb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:kb.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:kb.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:kb.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:kb.GREYSCALE_0_15},markLabel:{color:kb.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:kb.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:kb.WHITE,color:kb.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:kb.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:kb.GREEN_PALE,boxShadow:`0 0 0 3px ${_d(kb.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:kb.BLUE_PALE,boxShadow:`0 0 0 3px ${_d(kb.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:kb.GREYSCALE_0_15,borderRadius:zb},thumb:{height:"16px",width:"16px",borderRadius:zb,backgroundColor:kb.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:qb,fontWeight:Hb,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${kb.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${kb.MISC_FOCUS_BORDER}`,backgroundColor:kb.GREYSCALE_0_03,borderRadius:zb},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:kb.GREYSCALE_25,"&.Mui-selected":{color:kb.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:qb,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${kb.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${kb.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${kb.GREYSCALE_85}`,borderRight:`1px solid ${kb.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Hb,backgroundColor:kb.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:kb.GREYSCALE_98,borderBottom:`1px solid ${kb.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${kb.GREYSCALE_85}`,borderTop:`1px solid ${kb.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:kb.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:kb.GREYSCALE_0_05,"&:hover":{backgroundColor:kb.GREYSCALE_0_03}},"&&:hover":{backgroundColor:kb.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>y.createElement(ov,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${kb.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:qb,borderRadius:zb,padding:"7px 16px",border:`1px solid ${kb.GREYSCALE_0_15}`,backgroundColor:kb.GREYSCALE_100_60,color:kb.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:kb.GREYSCALE_0_10,border:`1px solid ${kb.GREYSCALE_0_30}`},"&:hover":{backgroundColor:kb.GREYSCALE_0_03,border:`1px solid ${kb.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:kb.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${kb.MISC_FOCUS_BORDER}`,border:`1px solid ${kb.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:kb.GREYSCALE_25,backgroundColor:kb.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:kb.GREYSCALE_0_10,border:`1px solid ${kb.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Tb,height:24,width:24,padding:7},sizeLarge:{fontSize:Nb,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:qb,borderRadius:zb}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:kb.GREYSCALE_20},tooltip:{backgroundColor:kb.GREYSCALE_20,fontSize:Tb,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const lv={mode:"light",primary:{light:kb.GREEN_PALE,main:kb.GREEN,dark:kb.GREEN_DARK,contrastText:kb.WHITE},secondary:{light:kb.BLUE_PALE,main:kb.BLUE,dark:kb.BLUE_DARK,contrastText:kb.WHITE},error:{light:kb.RED_PALE,main:kb.RED,dark:kb.RED_DARK,contrastText:kb.WHITE},warning:{light:kb.ORANGE_PALE,main:kb.ORANGE,dark:kb.ORANGE_DARK,contrastText:kb.WHITE},success:{light:kb.GREEN_PALE,main:kb.GREEN,dark:kb.GREEN_DARK,contrastText:kb.WHITE},info:{light:kb.BLUE_PALE,main:kb.BLUE,dark:kb.BLUE_DARK,contrastText:kb.WHITE},text:{primary:kb.TEXT_PRIMARY,secondary:kb.TEXT_SECONDARY,disabled:kb.GREYSCALE_0_30},action:{hover:kb.GREYSCALE_0_03,hoverOpacity:.05,selected:kb.GREYSCALE_0_05},amethyst:{main:kb.PURPLE,light:kb.PURPLE_PALE,dark:kb.PURPLE_DARK,contrastText:kb.WHITE},background:{paper:kb.WHITE,default:kb.GREYSCALE_95},divider:kb.GREYSCALE_0_15},sv=e=>({components:av,palette:lv,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:qb,fontWeightLight:Gb,fontWeightRegular:$b,fontWeightMedium:Hb,fontWeightBold:Bb,htmlFontSize:qb,fontFamily:Wb.FONT_FAMILY,button:{fontWeight:Hb,fontSize:qb,textTransform:"none"},body1:{fontSize:Nb,lineHeight:"24px"},body2:{fontSize:qb,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Fb,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Nb,fontWeight:Hb,lineHeight:"16px"},h6:{fontSize:qb,fontWeight:Hb,lineHeight:"16px"},caption:{color:kb.TEXT_SECONDARY},subtitle1:{fontSize:qb,color:kb.TEXT_SECONDARY},subtitle2:{fontSize:Tb,color:kb.TEXT_SECONDARY}},shape:{borderRadius:zb}}),uv={...Ob,MISC_FOCUS_BORDER:kb.MISC_FOCUS_BORDER},cv=sv().palette,dv={TEXT:cv.text.primary,DISABLED:cv.text.disabled,HOVER:cv.action.hover,WHITE:uv.GREYSCALE_100,BORDER_LIGHT:uv.GREYSCALE_90,BORDER_MEDIUM:uv.GREYSCALE_85,BORDER_HEAVY:uv.GREYSCALE_50,DARK_MODE_TEXT:uv.GREYSCALE_95,DARK_MODE_BORDER:uv.GREYSCALE_95,DARK_MODE_DISABLED:uv.GREYSCALE_70,DARK_MODE_BACKGROUND:uv.GREYSCALE_20},pv=(e,t)=>{const r=hn(e),n=r.l<70,o=100===r.l;return 0===r.opacity?(r.opacity=t.opacity,r.toString()):o?Gr(`rgba(0, 0, 0, ${t.opacity})`).toString():n?r.brighter(t.brighter).toString():r.darker(t.darker).toString()},fv=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,mv=e=>{const t=(e=>{const t=fv.exec(e);if(t){const[,e,r,n,o]=t;return Gr(+r,+n,+o,+e/255)}return Gr(e)})(e);return Number.isNaN(t.r)?null:t.toString()},hv=e=>e.isDark?{background:e.color,borderColor:dv.DARK_MODE_BORDER,color:dv.DARK_MODE_TEXT,disabledColor:dv.DARK_MODE_DISABLED,iconColor:dv.DARK_MODE_TEXT}:{background:e.color,borderColor:dv.BORDER_MEDIUM,color:dv.TEXT,disabledColor:dv.DISABLED},gv=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=v((()=>hv(n.background)),[n]);if(!r.active)return null;const a=o?y.createElement(Lb,{footerStyle:i},e):null;return t?k.createPortal(e,t):a},bv=I({}),vv=()=>S(bv),yv=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=v((()=>hv(p.background)),[p]),x=o?o.getBoundingClientRect().width:m.width,S=mr({translator:d}),E=v((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:x})),[t,r,n,o,i,a,l,s,u,c,S,p,f,m,h,b,g,x]);return y.createElement(bv.Provider,{value:E},e)};let xv=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Sv=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 Ev=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=vv(),{page:o,rowsPerPage:i}=r;if(t<=Sv.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return y.createElement(_b,{variant:"caption"},a)},Cv=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=vv(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return y.createElement(y.Fragment,null,y.createElement(_b,{variant:"caption",id:d},u,":"),y.createElement(Ab,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},wv=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=vv();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>Sv.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=y.createElement(y.Fragment,null,t.rowsPerPageOptions.map((e=>y.createElement("option",{key:e,value:e},e))));return y.createElement(Cv,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},Rv=1e3,Lv="…",Av=({totalPages:e,page:t})=>{const r=Math.min(e,Rv),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-Rv):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return y.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(y.createElement("option",{key:"startMoreOptions",value:Lv,disabled:!0},Lv)),o<e-1&&a.push(y.createElement("option",{key:"endMoreOptions",value:Lv,disabled:!0},Lv)),y.createElement(y.Fragment,null,a)},Dv=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=vv(),{page:o}=e;if(t<=Sv.SelectPage)return null;const i=y.createElement(Av,{totalPages:r,page:o});return y.createElement(Cv,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};function _v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Iv=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){_v(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("defs",null,y.createElement("path",{id:"arrow_left_svg__luiicons_arrow_left-a",d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),y.createElement("use",{xlinkHref:"#arrow_left_svg__luiicons_arrow_left-a",fillRule:"evenodd"})),Mv=D(Iv);function Pv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ov=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Pv(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("defs",null,y.createElement("path",{id:"arrow_left_stop_svg__arrow-left-stop-a",d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8l6-6ZM4 2v12H2V2h2Z"})),y.createElement("use",{xlinkHref:"#arrow_left_stop_svg__arrow-left-stop-a"})),kv=D(Ov);function Tv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qv=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Tv(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("defs",null,y.createElement("path",{id:"arrow_right_stop_svg__arrow-right-stop-a",d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5 3.5 2ZM14 2v12h-2V2h2Z"})),y.createElement("use",{xlinkHref:"#arrow_right_stop_svg__arrow-right-stop-a"})),Nv=D(qv),Fv={FirstPage:kv,PreviousPage:Mv,NextPage:Hg,LastPage:Nv,FirstPageRTL:Nv,PreviousPageRTL:Hg,NextPageRTL:Mv,LastPageRTL:kv},zv=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=vv(),u=Fv[`${r}${"rtl"===n?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},Gv=()=>{const{pageInfo:e,width:t}=vv(),r=0===e.page,{IconComponent:n,styledProps:o}=zv({type:xv.FirstPage,disabledCondition:r,pageNumber:0});return t<=Sv.FirstPage?null:y.createElement(Db,o,y.createElement(n,{height:dt}))},$v=()=>{const{pageInfo:e}=vv(),t=0===e.page,{IconComponent:r,styledProps:n}=zv({type:xv.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return y.createElement(Db,n,y.createElement(r,{height:dt}))},Hv=e=>{e.stopPropagation(),e.preventDefault()},Bv=(e,t,r=!1)=>{r&&e.key===ft.TAB&&!e.shiftKey&&(Hv(e),((e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)})(e.target,t,!1))},Wv=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=vv(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=zv({type:xv.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>Sv.FirstPage&&o>Sv.LastPage)&&t.enabled?e=>Bv(e,t,n):null;return y.createElement(Db,Su({},l,{onKeyDown:s}),y.createElement(a,{height:dt}))},jv=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=vv(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=zv({type:xv.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>Bv(e,t,n):null;return o<=Sv.LastPage?null:y.createElement(Db,Su({},l,{onKeyDown:s}),y.createElement(a,{height:dt}))};var Vv=M((e=>y.createElement(yv,e,y.createElement(wv,null),y.createElement(Dv,null),y.createElement(Ev,null),y.createElement(Gv,null),y.createElement($v,null),y.createElement(Wv,null),y.createElement(jv,null))));const Yv=e=>y.createElement(gv,e,y.createElement(Vv,e)),Uv=cp(vm,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${ht}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${ht}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),Kv=cp(vm)({position:"absolute",height:"100%",width:"3px"}),Xv=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=v((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=n||o?gt.PixelsMin:gt.PixelsMinTable,f=r?0:1,m={left:n&&!c?d.columnWidth-f:"100%"},h=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:bt.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},b=e=>{const t=e.clientX-d.initX;h(t)},x=e=>{Hv(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",x),g()},S=e=>{const t=e.touches[0].clientX-d.initX;h(t)},E=e=>{Hv(e),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E),g()},C=!n&&s?e=>{if(e.key===ft.LEFT||e.key===ft.RIGHT){Hv(e);const t=d.columnWidth-d.initWidth,r=5,n=e.key===ft.LEFT?t-r:t+r;h(n)}else e.key===ft.SPACE||e.key===ft.ENTER?(Hv(e),s(e),g()):e.key===ft.ESC&&(Hv(e),s(e),h(d.initWidth))}:void 0;return y.createElement(Uv,{className:mt,isLastColumn:r,hoverColor:i,style:m,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",x),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:bt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",S),document.addEventListener("touchend",E),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:C,onBlur:s,"data-testid":mt},y.createElement(Kv,{className:ht}))},Zv=I({}),Jv=()=>S(Zv),Qv=({children:e,model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,flags:l})=>{const s=v((()=>({model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,flags:l})),[r,n,t,o,i,a,l]);return y.createElement(Zv.Provider,{value:s},e)},ey=e=>{const{text:t,fontFamily:r,fontSize:n,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var r;const{theme:n}=Jv(),o=null!==(r=n.getStyle("","","fontFamily"))&&void 0!==r?r:kt;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:y.createElement("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a}},y.createElement("span",{style:{...jt,fontFamily:r,fontSize:n,fontStyle:"italic",color:"#7b7a78"}},t))},ty=I({}),ry=()=>S(ty),ny=({children:e,styleService:t})=>y.createElement(ty.Provider,{value:t},e),oy=21,iy=20,ay=iy,ly=16+zt+1,sy=.75,uy="/qHyperCubeDef",cy=-1,dy="PSEUDO-DIM",py=e=>void 0===e?Tt:e,fy=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,my=e=>fy(e,gt.PixelsDefault),hy=(e,t)=>fy(e,gt.PercentageDefault)*t/100,gy=(e,t,r)=>{switch(null==t?void 0:t.type){case bt.Pixels:return my(t.pixels);case bt.Percentage:return hy(t.percentage,e);case bt.FitToContent:case bt.Auto:default:return r}};function by({layoutService:e,tableWidth:t,headersData:r}){const n=ry(),{measureText:o}=Cn(n.header),{estimateWidth:i}=Cn({...n.dimensionValues,fontWeight:py(n.dimensionValues.fontWeight)}),{measureText:a}=Cn({...n.dimensionValues,...n.measureLabels}),l=w(((n,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d}=e,p=(e=0)=>c.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=a(n)+ly;return Math.max(r,gy(t,o,Math.max(i,e)))}),0),f=e=>r.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===dy)return t;const i=(e=>{const{label:t,isLocked:r}=e,n=r?ay:0;return ly+o(t)+iy+n})(n);return Math.max(i,t)}),0);let m=0;const h=r.data.at(-1).map(((e,r)=>{let o=ly;if(n&&void 0!==l&&l===e.colIdx)o=n;else{let n;e.columnWidthLocation===Et.Pivot?n=u:e.columnWidthLocation===Et.Dimension&&({columnWidth:n}=e);let a=0;e.isLeftDimension?a=e.id===dy?p():Math.max(f(r),((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:n}=e,o=!d&&n&&t<s-1?oy:0;return ly+i(r)+o})(e,r)):e.isLeftDimension||(a=f(r),e.columnWidthLocation===Et.Measures&&(a=p(a))),o=gy(t,n,a)}return m+=o,o}));return{leftGridWidth:Math.min(t*sy,m),leftGridColumnWidths:h,leftGridFullWidth:m}}),[i,r.data,e,o,a,t]),[s,u]=b(l);pr((()=>{u(l())}),[l]);const c=w(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function vy({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:n,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=ry(),{estimateWidth:c,measureText:d}=Cn(u.measureValues),{estimateWidth:p}=Cn({...u.dimensionValues,fontWeight:py(u.dimensionValues.fontWeight)}),f=t-o-zt,m=r.at(-1),h=m===cy,g=a.length-i>r.length?oy:0,b=v((()=>{const e=h?s:[m],t=l.x/e.length,r=[],n=[];let o=f;const i=(e,n)=>{r[e]=Math.min(gt.PixelsMax,Math.max(gt.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(r){case bt.Pixels:i(t,my(o));break;case bt.Percentage:i(t,hy(a,f));break;case bt.FitToContent:i(t,((e,t)=>ly+(h?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u));break;case bt.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(gt.AutoMin,i)}))}return r}),[h,s,m,l.x,f,c,d,p,g]),y=v((()=>{if(h){return s.reduce(((e,t,r)=>e+b[r]),0)/s.length}return b[0]}),[h,b,s]),x=parseFloat((n/e.size.x).toFixed(12)),S=w((t=>h&&void 0!==t?b[e.getMeasureInfoIndexFromCellIndex(t,!0)]-x:y-x),[h,b,e,y,x]),E=l.x*y;return{rightGridFullWidth:E,rightGridWidth:Math.min(E,f),getRightGridColumnWidth:S}}const yy=e=>{var t,r,n,o;return e===cy?dy:null!==(t=null!==(r=null!==(n=e.qLibraryId)&&void 0!==n?n:e.cId)&&void 0!==r?r:null===(o=e.qGroupFallbackTitles)||void 0===o?void 0:o.join(""))&&void 0!==t?t:e.qFallbackTitle},xy=(e,t,r)=>{var n;const o=yy(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===cy?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:Et.Measures}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isActivelySorted:!1,isLocked:null!==(n=t.qLocked)&&void 0!==n&&n,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:Et.Dimension}},Sy=({layoutService:e,lastRow:t,lastCol:r})=>{let n=r;var o;t.length>0&&(n=(o=r).at(-1)===cy?o.slice(0,-1):o);const i=n.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,r,n)=>{const o=r===n.length-1;l[i-1][r]=xy(e,t,o)})),n.forEach(((t,r,n)=>{const o=r===n.length-1;l[r][a-1]=xy(e,t,o)})),l},Ey=(e,t,r)=>{var n,o;const i=((e,t,r)=>{let n;if(n=0===t.length||t.includes(cy)?Sy({layoutService:e,lastRow:r,lastCol:t}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(Sy({layoutService:e,lastRow:t,lastCol:r})),n.length)for(const[t,a]of n[n.length-1].entries()){var o,i;a&&(a.canBeResized=!0,a.isActivelySorted=t===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),a.colIdx=a.colIdx||t,a.dimensionInfoIndex===cy?a.columnWidthLocation=Et.Measures:a.isLeftDimension?a.columnWidthLocation=Et.Dimension:r.at(-1)===cy?a.columnWidthLocation=Et.Measures:e.hasPseudoDimOnLeft&&(a.columnWidthLocation=Et.Pivot))}return n})(e,t,r);return{data:i,size:{x:null!==(n=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==n?n:0,y:i.length}}},Cy=(e,t)=>{var r,n;const o=t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r||null===(r=r[null==e?void 0:e.cellForegroundColor])||void 0===r?void 0:r.qText,a=null==o||null===(n=o.qValues)||void 0===n||null===(n=n[null==e?void 0:e.cellBackgroundColor])||void 0===n?void 0:n.qText,l=a?mv(a):null,s=i?mv(i):null,u=((e,t)=>e||!t?null:vn(t)?dv.WHITE:dv.TEXT)(s,l);return{color:null!=u?u:s,background:l}};let wy;const Ry=new Uint8Array(16);function Ly(){if(!wy&&(wy="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!wy))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return wy(Ry)}const Ay=[];for(let e=0;e<256;++e)Ay.push((e+256).toString(16).slice(1));var Dy={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _y(e,t,r){if(Dy.randomUUID&&!t&&!e)return Dy.randomUUID();const n=(e=e||{}).random||(e.rng||Ly)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return Ay[e[t+0]]+Ay[e[t+1]]+Ay[e[t+2]]+Ay[e[t+3]]+"-"+Ay[e[t+4]]+Ay[e[t+5]]+"-"+Ay[e[t+6]]+Ay[e[t+7]]+"-"+Ay[e[t+8]]+Ay[e[t+9]]+"-"+Ay[e[t+10]]+Ay[e[t+11]]+Ay[e[t+12]]+Ay[e[t+13]]+Ay[e[t+14]]+Ay[e[t+15]]}(n)}const Iy=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:_y()},My=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:My(e,t)),e),Py=(e,t,r,n,o,i)=>{if(o)return My(0,e);const a=i?qt-r:Nt-n;let l=e.qUp+e.qDown;if(i&&0===r){const r=(t+e.qUp)%qt;l=e.qDown+r}return Math.min(a,My(l,e))},Oy=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0})=>{const c=e.qType===Lt.NX_DIM_CELL_PSEUDO,d={id:Iy(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Py(e,o,i,n,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===Lt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===Lt.NX_DIM_CELL_EMPTY,isNull:e.qType===Lt.NX_DIM_CELL_NULL,isPseudoDimension:c,expressionColor:Cy(s,e),selectionCellType:u?St.NX_CELL_LEFT:St.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:c?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex};return t&&(t.children[d.mainAxisPageCoord-t.mainAxisPageCoord]=d),d},ky=(e,t,r,n,o,i,a)=>{if(!t.length)return e;let l=0;return function t(s,u,c,d=0){e[d]||(e[d]={}),c.forEach(((c,p)=>{var f;l+=0===p?0:1;const m=r.qTop-n.page*n.rowsPerPage,h=Math.max(0,m+l-c.qUp),g=r.qTop+l-c.qUp,b=null!==(f=e[d][h])&&void 0!==f?f:Oy({node:c,parent:u,root:s,x:d,y:g,pageY:h,layoutService:o,dimensionInfo:i[d],attrExprInfoIndex:a[d],isLeftColumn:!0});e[d][h]=b,c.qSubNodes.length&&t(s||b,b,c.qSubNodes,d+1)}))}(null,null,t,0),e},Ty=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n[r+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},qy=e=>{const t=e[0],r=t?Object.values(t):[],n=null==t?void 0:t[0],o=r.at(-1);return null!=n&&n.isTotal?n.isLeafNode?n.mainAxisPageCoord:n.mainAxisPageCoord+n.leafCount-1:null!=o&&o.isTotal?o.mainAxisPageCoord-1:-1},Ny=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i})=>{const{qLeft:a,qArea:l}=t;if(!a.length)return e;const s=ky(e.grid,a,l,r,n,o,i);Ty(s,r.rowsOnCurrentPage);const u=qy(s);return{...e,grid:s,columnCount:s.length,totalDividerIndex:u}},Fy=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===Lt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:Iy(),ref:t,isNull:u}}))})),o},zy=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n.length?Fy({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},Gy=(e,t,r,n,o,i,a)=>{if(!t.length)return e;let l=0;!function t(a,s,u,c=0){e[c]||(e[c]={}),u.forEach(((u,d)=>{var p;l+=0===d?0:1;const f=r.qLeft+l-u.qUp,m=null!==(p=e[c][f])&&void 0!==p?p:Oy({node:u,parent:s,root:a,x:f,y:c,pageY:c,layoutService:n,dimensionInfo:o[c],attrExprInfoIndex:i[c],isLeftColumn:!1});e[c][f]=m,u.qSubNodes.length&&t(a||m,m,u.qSubNodes,c+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},$y=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i})=>{const{qTop:a,qArea:l}=t;if(!a.length)return e;const s=Gy(e.grid,a,l,r,n,o,i);Ty(s,r.size.x);const u=qy(s);return{...e,grid:s,rowCount:s.length,totalDividerIndex:u}},Hy=e=>{if(e===cy)return{cellForegroundColor:-1,cellBackgroundColor:-1};const t=e.qAttrExprInfo;return{cellForegroundColor:t.findIndex((({id:e})=>e===Ct.CellForegroundColor.toString())),cellBackgroundColor:t.findIndex((({id:e})=>e===Ct.CellBackgroundColor.toString()))}},By=(e,t,r,n,o)=>{const[i,a]=b(null),l=((e,t,r)=>v((()=>({left:e.map(Hy),top:t.map(Hy),measures:r.map(Hy)})),[r,e,t]))(n,o,t.visibleMeasureInfo),s=v((()=>Ey(t,o,n)),[t,o,n]),u=w((()=>e.slice(1).reduce(((e,t)=>zy({prevData:e,dataPage:t,pageInfo:r})),((e,t)=>{const{qData:r,qArea:n}=e;return Fy({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(e[0],r))),[e,r]),c=w((()=>e.slice(1).reduce(((e,r)=>$y({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y})),((e,t,r,n,o)=>{const{qArea:i,qTop:a}=e,l=Gy([],a,i,t,r,n,o);Ty(l,t.size.x);const s=qy(l);return{grid:l,rowCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,o,l.top,s.size.y))),[e,t,o,l.top,s.size.y]),d=w((()=>e.slice(1).reduce(((e,o)=>Ny({prevData:e,nextDataPage:o,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:l.left})),((e,t,r,n,o)=>{const{qArea:i,qLeft:a}=e,l=ky([],a,i,r,t,n,o);Ty(l,r.rowsOnCurrentPage);const s=qy(l);return{grid:l,columnCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,r,n,l.left))),[e,t,r,n,l]),[p,f]=b((()=>u())),[m,h]=b((()=>c())),[g,y]=b((()=>d()));pr((()=>{f(u())}),[u]),pr((()=>{h(c())}),[c]),pr((()=>{y(d())}),[d]),pr((()=>{i&&i.forEach((e=>{f((t=>zy({prevData:t,dataPage:e,pageInfo:r}))),h((r=>$y({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y}))),y((o=>Ny({prevData:o,nextDataPage:e,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:l.left})))}))}),[i]);const x=w((e=>{a(e)}),[]);return{headersData:s,measureData:p,topDimensionData:m,leftDimensionData:g,attrExprInfoIndexes:l,nextPageHandler:x}},Wy=Math.sqrt(1e4),jy=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/Wy),n=Math.ceil(e.qHeight/Wy);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*Wy,qTop:e.qTop+r*Wy,qWidth:Math.min(Wy,e.qWidth-o*Wy),qHeight:Math.min(Wy,e.qHeight-r*Wy)});return t};function Vy({model:e,nextPageHandler:t,pageInfo:r,layoutService:n}){const o=(e=>{const t=_(e);return t.current=e,t})(r.page),i=e,a=w((async(e,t)=>{var r;await(null==i||null===(r=i.collapseLeft)||void 0===r?void 0:r.call(i,uy,e,t,!1))}),[i]),l=w((async(e,t)=>{await(null==i?void 0:i.collapseTop(uy,e,t,!1))}),[i]),s=w((async(e,t)=>{await(null==i?void 0:i.expandLeft(uy,e,t,!1))}),[i]),u=w((async(e,t)=>{await(null==i?void 0:i.expandTop(uy,e,t,!1))}),[i]),c=w((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const n=await i.getHyperCubePivotData(uy,e.reduce(((e,t)=>[...e,...jy(t)]),[]));o.current===r.page&&t(n)}catch(e){console.error(e)}}),[i,t,r,o]),d=w(((t,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case Et.Dimension:c=[{qPath:`${uy}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case Et.Measures:if(o)c=l.map(((e,t)=>({qPath:`${uy}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${uy}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Et.Pivot:c=[{qPath:`${uy}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:r,oldValue:n}=e;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...t})}}));null==e||e.applyPatches(d,!0)}),[e,n]);return v((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,fetchPages:c})),[a,l,s,u,d,c])}const Yy=(e,t)=>e>t?Rt.Forward:e<t?Rt.Backward:Rt.None,Uy=(e,t,r)=>(n,o)=>{if(n===Lt.NX_DIM_CELL_PSEUDO)return cy;const i=t[r+o];return e[i]},Ky=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},Xy=({width:e,height:t,children:r,isLeftGrid:n})=>y.createElement("div",{"data-testid":"full-size-container",style:{display:"block",width:n?"fit-content":e,height:t+zt}},r),Zy=e=>`scrollable-container--${e}`,Jy=(e,t)=>{const{width:r,height:n,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=Jv();return y.createElement("div",{ref:t,"data-key":Zy(u),style:{width:r,height:n,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i},o)};var Qy=y.forwardRef(Jy);const ex=({width:e,height:t,children:r,style:n,isLeftGrid:o})=>y.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...n}},r);var tx=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function rx(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||tx(n)&&tx(o)))return!1;var n,o;return!0}function nx(e,t){var r;void 0===t&&(t=rx);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var ox="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ix(e){cancelAnimationFrame(e.id)}function ax(e,t){var r=ox();var n={id:requestAnimationFrame((function o(){ox()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var lx=-1;function sx(e){if(void 0===e&&(e=!1),-1===lx||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),lx=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return lx}var ux=null;function cx(e){if(void 0===e&&(e=!1),null===ux||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?ux="positive-descending":(t.scrollLeft=1,ux=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ux}return ux}var dx=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function px(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,_p(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:_p(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=nx((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=nx((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=nx((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(cx()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&ix(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=ax(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}vp(t,e),t.getDerivedStateFromProps=function(e,t){return fx(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=sx();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=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},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(cx()){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&&ix(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?dx:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,S=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],R=this._getVerticalRangeToRender(),L=R[0],A=R[1],D=[];if(n>0&&g)for(var _=L;_<=A;_++)for(var I=C;I<=w;I++)D.push(x(t,{columnIndex:I,data:d,isScrolling:v?S:void 0,key:f({columnIndex:I,data:d,rowIndex:_}),rowIndex:_,style:this._getItemStyle(_,I)}));var M=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return x(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:Ln({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},x(u||c||"div",{children:D,ref:s,style:{height:M,pointerEvents:S?"none":void 0,width:P}}))},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],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},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,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(O),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var fx=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},mx=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},hx=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},gx=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},bx=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?vx(e,t,r,i,0,n):yx(e,t,r,Math.max(0,i),n)},vx=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=gx(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},yx=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&gx(e,t,n,r).offset<o;)n+=a,a*=2;return vx(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},xx=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=gx(e,t,r,i),u="column"===e?hx(t,i):mx(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},Sx=px({getColumnOffset:function(e,t,r){return gx("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return bx("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=gx("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=gx("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:mx,getEstimatedTotalWidth:hx,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return xx("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return xx("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return gx("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return bx("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=gx("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=gx("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}}),Ex=function(e,t){return e};function Cx(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,_p(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:_p(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=nx((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=nx((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=nx((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(cx()){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&&ix(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=ax(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}vp(t,e),t.getDerivedStateFromProps=function(e,t){return wx(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?sx():0:s.scrollHeight>s.clientHeight?sx():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(cx()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ix(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?Ex:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,S="horizontal"===o||"horizontal"===f,E=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],R=C[1],L=[];if(u>0)for(var A=w;A<=R;A++)L.push(x(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var D=n(this.props,this._instanceProps);return x(m||h||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:Ln({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},x(l||s||"div",{children:L,ref:a,style:{height:S?"100%":D,pointerEvents:y?"none":void 0,width:S?D:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(O),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var wx=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Rx=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},Lx=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=Rx(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},Ax=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&Rx(e,r,t).offset<n;)r+=i,i*=2;return Lx(e,t,Math.min(r,o-1),Math.floor(r/2),n)},Dx=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},_x=Cx({getItemOffset:function(e,t,r){return Rx(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Dx,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=Rx(e,t,o),p=Dx(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?Lx(e,t,o,0,r):Ax(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=Rx(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=Rx(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 Ix(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 Mx=["style"],Px=["style"];function Ox(e,t){var r=e.style,n=An(e,Mx),o=t.style,i=An(t,Px);return!Ix(r,o)&&!Ix(n,i)}const kx=(e,t)=>void 0!==e&&(e.isLeafNode?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),Tx=10,qx=(e,t)=>e.current===Rt.Backward?t:0,Nx=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e[o];if(void 0===r||void 0===r[t])return!0}return!1},Fx=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,zx=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(Nx(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&Fx(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},Gx=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===Rt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return zx({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},$x=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=qx(r,Tx),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+Tx,l-u),pageTop:o,qHeight:a}})(n,o,r),u=zx({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...Gx({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},Hx=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},Bx=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,Wx=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(Hx(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&Bx(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},jx=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=qx(r,Tx),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+Tx,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=Wx({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===Rt.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=Wx({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},Vx=async(e,t,r,n,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==Rt.None&&(d=jx({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==Rt.None&&(p=$x({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===Rt.None&&a.current===Rt.None&&(d=Wx({measureData:r,pageInfo:n,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},Yx=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];r=l;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(Vx,100),Ux=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)}}(Vx,75),Kx=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=ry();return y.createElement("div",{style:{...e,...Wt,...Ut(r,n,l,o),...Xt({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},Xx=(e,t,r)=>{if(!r.isEnabled(vt)||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},Zx={display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},Jx={alignItems:"center",display:"flex",flexDirection:"row",height:"100%",backgroundClip:"padding-box"},Qx=(e,t,r,n)=>t?{...Jx,...e.nullValues}:r?{...Zx,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...Zx,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},eS=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...jt,...!r&&Vt(e.grid.lineClamp),...t&&{color:t},alignSelf:"flex-start",fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?Tt:s,fontStyle:u,textDecoration:c}},tS=(e,t,r)=>{const{textAlign:n}=e;return Xx(n,t?"flex-end":"center",r)},rS=(e,t)=>{var r,n;return null!==(r=null==e||null===(n=e[t])||void 0===n?void 0:n.visibleMeasureInfoIndex)&&void 0!==r?r:0},nS=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const i=ry(),{flags:a}=Jv(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:m,lastRow:h,lastColumn:g,attrExprInfoIndexes:b}=n,v=null===(o=s[t])||void 0===o?void 0:o[e],x=t===m.rowsOnCurrentPage-1,S=e===u.size.x-1;if(!v)return y.createElement(Kx,{style:{...r,background:l},isLastRow:x,isLastColumn:S,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const E=!v.isNull&&f(e,t),C=v.isNull?u.getNullValueText():v.ref.qText,w=!v.isNull||!Number.isNaN(+C),R=u.hasPseudoDimOnLeft?rS(g,t):rS(h,e),L=Cy(b[R],v.ref),A={...Qx(i,v.isNull,E,L.background),...Ut(x,S,i.grid.border,c),...Xt({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...Wt,display:"flex",justifyContent:tS(u.visibleMeasureInfo[R],w,a)};return y.createElement("div",{title:C,style:r,"data-testid":"measure-cell","data-row-index":t,"data-col-index":e},y.createElement("div",{style:A},y.createElement("span",{style:eS(i,L.color,w,E,v.isNull)},C)))};var oS=y.memo(nS,Ox);const iS=(e,t)=>{var r,n;return null!==(r=null===(n=t.list[e])||void 0===n?void 0:n.id)&&void 0!==r?r:e.toString()},aS=({columnIndex:e,rowIndex:t,data:r})=>{var n,o;return null!==(n=null===(o=r.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==n?n:`${t}-${e}`},lS={...Bt,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},sS=({dataModel:e,dataGridRef:t,height:r,rowHightCallback:n,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:m,pageInfo:h,verticalScrollDirection:g,horizontalScrollDirection:b})=>{const{grid:{divider:v},contentCellHeight:x}=ry(),S={...lS,borderColor:v,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},E=(e=>w((t=>{var r;const n=null===(r=e.grid.at(-1))||void 0===r?void 0:r[t];return kx(n,e.totalDividerIndex)}),[e]))(s),C=(e=>w((t=>{var r;const n=null===(r=e.grid.at(-1))||void 0===r?void 0:r[t];return kx(n,e.totalDividerIndex)}),[e]))(u),R=((e,t)=>w(((r,n)=>{var o,i;return!!(null!==(o=t.grid.at(-1))&&void 0!==o&&null!==(o=o[r])&&void 0!==o&&o.isTotal||null!==(i=e.grid.at(-1))&&void 0!==i&&null!==(i=i[n])&&void 0!==i&&i.isTotal)}),[t,e]))(s,u),L=(({viewService:e,dataModel:t,measureData:r,layoutService:n,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>w((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===Rt.None?0:Tx),m=e.gridHeight+a+(l.current===Rt.None?0:Tx);let h=Yx;m*f>1500&&(h=Ux),await h(t,n,r,o,e,l,s)}),[e,n,t,r,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:h,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:b});return pr((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),P((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,r,t,x]),0===a.size.x?null:y.createElement(Sx,{ref:t,style:S,columnCount:a.size.x,columnWidth:m,height:r,rowCount:h.rowsOnCurrentPage,rowHeight:n,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:R,shouldShowTotalCellBottomDivider:E,shouldShowTotalCellRightDivider:C,pageInfo:h,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:L,estimatedRowHeight:n(),estimatedColumnWidth:m(),itemKey:aS},oS)};var uS=M(sS);function cS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dS=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){cS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("defs",null,y.createElement("path",{id:"lock_svg__lock-a",d:"M13 7H8h5V4.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-1H3h10Z"})),y.createElement("use",{xlinkHref:"#lock_svg__lock-a",fillRule:"evenodd"})),pS=D(dS),fS=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(mt)},mS=e=>{const[t,r]=b(!1);return pr((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}};function hS(e,t){const r=e.isActive(),[n,o]=b(new Map),[i,a]=b(null);C((()=>{const r=()=>{a(null),o(new Map)},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}}),[e,t]);const l=w((e=>0!==n.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===St.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[n,i]),s=w((t=>async r=>{if(fS(r))return;if(e.isActive()||await e.begin([uy]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,r)=>{const n=new Map(t);return n.has(e.ref.qElemNo)?(n.delete(e.ref.qElemNo),{nextSelectedPivotCells:n,nextSelectedField:0===n.size?null:r}):(n.set(e.ref.qElemNo,e),{nextSelectedPivotCells:n,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===St.NX_CELL_LEFT?e.x:e.y}})})(t,n,i);try{await e.select({method:"selectPivotCells",params:[uy,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,n,i]),u=w((e=>r&&!l(e)&&n.has(e.ref.qElemNo)),[n,l,r]);return v((()=>({select:s,isSelected:u,isActive:r,isLocked:l})),[s,u,r,l])}const gS=I({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),bS=()=>S(gS),vS=({children:e,selections:t,updatePageInfo:r})=>{const n=hS(t,r);return y.createElement(gS.Provider,{value:n},e)};const yS=({cellInfo:e,columnWidth:t,dataModel:r,isLastColumn:n,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=Jv(),{isActive:l}=bS(),s=ry(),[,u]=b({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=function(e,t){var r,n,o,i;const a=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Gt.Transparent?dv.WHITE:l,u=null===(o=qr(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=qr(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}(s,e);return y.createElement(Xv,{isPivot:!0,columnWidth:t,isLastColumn:n,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==r?void 0:r.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};var xS=function(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=function(e,t,r="Mui"){const n=Wa[t];return n?`${r}-${n}`:`${Ba.generate(e)}-${t}`}(e,t,r)})),n}("MuiBox",["root"]);const SS=au(),ES=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ya("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Bl),a=E.forwardRef((function(e,a){const l=function(e=Yl){return Vl(e)}(r),s=function(e){const{sx:t}=e,r=An(e,os),{systemProps:n,otherProps:o}=is(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Sa(r)?Ln({},n,r):n}:Ln({},n,t),Ln({},o,{sx:i})}(e),{className:u,component:c="div"}=s,d=An(s,ss);return ns.jsx(i,Ln({as:c,ref:a,className:ls(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:Rn,defaultTheme:SS,defaultClassName:xS.root,generateClassName:Ba.generate});const CS=uu(ES,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),wS=uu("div")({position:"absolute",left:0,bottom:0}),RS=uu("div")({...Ht,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),LS=uu("div")((()=>({...Ht}))),AS=uu("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),DS={[Cb.SORTING]:!0,[Cb.SELECTIONS]:!0,[Cb.SEARCHING]:!0},_S=({dataModel:e,cell:t,style:r,isFirstColumn:n,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d,layoutService:p})=>{var f;const m=_(null),h=ry(),{app:g,model:v,interactions:x,embed:S,flags:E}=Jv(),{fontSize:C,fontFamily:w,fontStyle:R,fontWeight:L,textDecoration:A,color:D,background:I,hoverBackground:M,activeBackground:P}=h.header,O=_(null),{shouldShowLockIcon:k,shouldShowMenuIcon:T}=u,{open:q,setOpen:N,handleOpenMenu:F,setIsAdjustingWidth:z}=(({interactions:e,dataModel:t})=>{const[r,n]=b(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=mS([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e.active&&!fS(t)&&!o&&n(!0),setIsAdjustingWidth:i}})({interactions:x,dataModel:e}),G={sortFromMenu:async(e,r)=>{e.stopPropagation(),await l(t,r)},changeActivelySortedHeader:s},$={embed:S,listboxRef:m},H={model:v,app:g},{labelTextAlign:B}=null!==(f=p.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},W=Xx(B,"flex-start",E);return y.createElement(CS,{title:t.label,interactions:x,background:q?P:I,hoverBackground:M,shouldShowMenuIcon:T,isDimension:t.isDim,style:{...r,...Wt,...Kt(t,i,n,o,h.grid.border),color:D},"data-testid":"title-cell",onClick:F},y.createElement(RS,null,k&&y.createElement(LS,null,y.createElement(pS,{height:12})),y.createElement(AS,{fontFamily:w,fontSize:C,fontStyle:R,fontWeight:L,textDecoration:A,justifyContent:W},y.createElement("span",{style:jt},t.label))),t.isDim&&y.createElement(y.Fragment,null,y.createElement(Rb,{headerData:t,translator:a,anchorRef:O,open:q,setOpen:N,interactions:x,menuAvailabilityFlags:DS,sortRelatedArgs:G,searchRelatedArgs:$,selectionRelatedArgs:H,shouldShowMenuIcon:T}),y.createElement(wS,{ref:m}),y.createElement(wS,{ref:O})),y.createElement(yS,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:z}))},IS=({rowSpan:e,columnSpan:t})=>{const r=ry();return e>0&&t>0?y.createElement("div",{style:{...Bt,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null},MS={display:"grid",width:"fit-content"},PS=({dataModel:e,columnWidths:t,rowHight:r,headersData:n,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u,layoutService:c})=>y.createElement("div",{style:{...MS,gridTemplateColumns:t.map((e=>`${e}px`)).join(" "),gridTemplateRows:n.data.map((()=>`${r}px`)).join(" "),height:s}},n.size.y>1&&y.createElement(IS,{columnSpan:n.size.x-1,rowSpan:n.size.y-1}),n.data.map(((s,d)=>s.reduce(((s,p,f)=>{if(p){const m=l(f,p.isLocked,p.label);s.push(y.createElement(_S,{dataModel:e,key:p.id,style:{width:t[f],height:r,gridColumn:f+1,gridRow:d+1,zIndex:n.size.x-f},isLastRow:d===n.size.y-1,isFirstColumn:0===f,isLastColumn:f===n.size.x-1,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,cell:p,iconsVisibilityStatus:m,columnWidth:t[f],overrideLeftGridWidth:u,layoutService:c}))}return s}),[]))));var OS=M(PS);const kS=(e,t,r,n,o)=>{P((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},TS=(e,t)=>{pr((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},qS=(e,t,r,n)=>{var o;const i=r?"flex-start":"center";if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var a;const{labelTextAlign:r}=null!==(a=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==a?a:{};return Xx(r,i,n)}const{textAlign:l}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return Xx(l,i,n)};var NS;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(NS||(NS={}));const FS={brighter:.5,darker:.3,opacity:.03},zS=(e,{cell:t,styleService:r})=>{if(e===NS.Background||e===NS.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},GS=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return"#0aaf54";const o=zS(NS.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?zS(NS.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${pv(i=o,FS)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},$S=({cell:e,styleService:t,isCellSelected:r})=>r?"white":zS(NS.Color,{cell:e,styleService:t}),HS=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=zS(NS.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?Tt:o},BS=({cell:e,styleService:t})=>zS(NS.FontStyle,{cell:e,styleService:t}),WS=({cell:e,styleService:t})=>zS(NS.TextDecoration,{cell:e,styleService:t}),jS=e=>e?"pointer":"default",VS=()=>{},YS=({children:e,text:t,reactWindowStyle:r,cell:n,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{const d=ry(),{interactions:p,flags:f}=Jv(),{select:m,isLocked:h}=bS(),{layoutService:g,showLastBorder:b}=o,v=h(n)||n.isLockedByDimension,x=!(v||!p.active||!p.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),S=x?m(n):void 0;return y.createElement("div",{title:p.passive?t:void 0,style:{...r,...Ut(a,l,d.grid.border,b),...Xt({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:d.grid.divider}),...Wt,padding:"0px 4px",cursor:jS(x),background:GS({styleService:d,isCellSelected:u,cell:n,isCellLocked:v}),zIndex:s?void 0:g.size.x-n.x,justifyContent:qS(n,g,s,f),display:"flex"},"aria-hidden":"true",onClick:S,onKeyUp:VS,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType},e)};function US(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KS=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){US(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("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 7Zm0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8Zm4-7.5H4v-1h8v1Z"})),XS=D(KS);function ZS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const JS=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ZS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("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 7Zm0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8Zm4-7.5H4v-1h8v1ZM8.5 4v8h-1V4h1Z"})),QS=D(JS),eE=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},tE=({cell:e,dataModel:t,isLeftColumn:r,isCellSelected:n})=>{const o=ry(),{interactions:i}=Jv(),{isActive:a}=bS();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=$S({cell:e,styleService:o,isCellSelected:n}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?QS:XS;let p;return p=e.ref.qCanExpand?r?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:r?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,y.createElement(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:r?c-6.5-4:void 0},onClick:l?void 0:eE({cell:e,expandOrCollapse:p})})},rE=({children:e,isLeftColumn:t})=>{const r=t?"flex-start":"center";return y.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:r,width:"fit-content",maxWidth:"100%",position:"sticky",left:4,top:0,right:t?void 0:4,alignSelf:r}},e)},nE=e=>e.contentRowHeight/2-e.contentTextHeight/2,oE=({children:e,cell:t,styleService:r,isCellSelected:n,isLeftColumn:o})=>y.createElement("span",{style:{...jt,...Vt(o?Math.max(r.grid.lineClamp,t.leafCount*r.grid.lineClamp):1),color:$S({cell:t,styleService:r,isCellSelected:n}),fontWeight:HS({cell:t,styleService:r}),fontStyle:BS({cell:t,styleService:r}),textDecoration:WS({cell:t,styleService:r}),fontFamily:r.dimensionValues.fontFamily,fontSize:r.dimensionValues.fontSize,marginTop:o?nE(r):void 0,padding:"0px 4px"}},e),iE=({index:e,style:t,data:r})=>{const n=ry(),{isSelected:o}=bS(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=mS([r]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p}=r,f=((e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]})(e,r),m=s?e===c-1:d,h=s?d:e===c-1,g=kx(f,p);if(void 0===f){const{background:r}=n.dimensionValues;return y.createElement(Kx,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:h,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:g})}const b=o(f);return y.createElement(YS,{text:f.ref.qText,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:i},y.createElement(rE,{isLeftColumn:s},y.createElement(tE,{isLeftColumn:s,isCellSelected:b,cell:f,dataModel:l}),y.createElement(oE,{isLeftColumn:s,isCellSelected:b,cell:f,styleService:n},f.ref.qText)),y.createElement(yS,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Et.Measures:Et.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:h,setIsAdjustingWidth:a}))};var aE=y.memo(iE,Ox);const lE=(e,t,r,n,o)=>i=>{const a=n?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r},sE=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*n():r||void 0===a?n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*n()},uE=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},cE=(e,t)=>r=>{e.current&&(e.current[t]=r)},dE={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Bt},pE={overflow:"hidden",willChange:"auto",flexShrink:0},fE=({dataModel:e,leftGridRef:t,width:r,columnWidths:n,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=ry();TS(t,a),kS(t,r,o,d,i);const f=u.rowsOnCurrentPage*d;return y.createElement("div",{style:{...dE,borderColor:p}},a.grid.map(((r,p)=>{const m=p===a.columnCount-1,h=yy(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=uE(r,f,u.rowsOnCurrentPage,m);return y.createElement(_x,{key:h,ref:cE(t,p),style:{...pE,flexGrow:m?1:0},height:o,width:n[p],itemCount:g,itemSize:lE(r,v,d,m,c.qcy),layout:"vertical",itemData:{layoutService:i,dataModel:e,list:r,isLeftColumn:!0,isLast:m&&!i.layout.snapshotData,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:iS,estimatedItemSize:b},aE)})))};var mE=M(fE);const hE={overflow:"hidden",willChange:"auto"},gE={...Bt,borderWidth:"0px 0px 0px 1px"},bE=({dataModel:e,topGridRef:t,rowHightCallback:r,width:n,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=ry(),p={...gE,borderColor:c,height:o};TS(t,a),kS(t,n,o,d,i);const f=i.size.x*s();return 0===a.rowCount?y.createElement("div",{style:{width:n,height:o,...gE}}):y.createElement("div",{style:p},a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=uE(o,f,i.size.x,d),g=i.getDimensionInfo(u.data[c][u.size.x-1].dimensionInfoIndex),b=g?yy(g):`empty ${c}`;return y.createElement(_x,{key:b,ref:cE(t,c),style:hE,height:r(),width:n,itemCount:p,itemSize:sE({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d&&!i.layout.snapshotData,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:iS,estimatedItemSize:m},aE)})))};var vE=M(bE);const yE=({model:e,rect:t,viewService:r,layoutService:n,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=ry(),u=((e,t,r)=>v((()=>{let{height:n}=e;return t.hasLimitedData&&(n-=22),r&&(n-=41),{...e,height:n}}),[e,t,r]))(t,n,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:r}=e.layout,{qNoOfLeftDims:n,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=r;return v((()=>{var e,r,a,l;const s=Ky(null!==(e=null===(r=t[0])||void 0===r?void 0:r.qLeft)&&void 0!==e?e:[]),u=Ky(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Uy(i,o,0)),visibleTopDimensionInfo:u.map(Uy(i,o,n))}}),[i,o,n,t])})(n,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>v((()=>({changeSortOrder:async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o}=t,i=[];("D"===r&&!n||"A"===r&&n)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async r=>{if(!e)throw new Error("No Model provided!");const{colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a}=r,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]))(e,n.layout.qHyperCube),{headersData:m,measureData:h,topDimensionData:g,leftDimensionData:x,attrExprInfoIndexes:S,nextPageHandler:E}=By(o,n,i,c,d),R=Vy({model:e,nextPageHandler:E,pageInfo:i,layoutService:n}),{onHorizontalScrollHandler:L,onVerticalScrollHandler:A,verticalScrollableContainerRef:D,leftGridHorizontalScrollableContainerRef:I,dataGridHorizontalScrollableContainerRef:M,dataGridRef:O,leftGridRef:k,topGridRef:T,verticalScrollbarWidth:q,horizontalScrollbarHeight:N,horizontalScrollbarHeightSetter:F,verticalScrollDirection:z,horizontalScrollDirection:G}=(({layoutService:e,pageInfo:t,tableRect:r,mockedRefs:n})=>{var o,i,a,l,s,u;const{theme:c}=Jv(),d=_(null!==(o=null==n?void 0:n.verticalScrollableContainerRef)&&void 0!==o?o:null),p=_(null!==(i=null==n?void 0:n.leftGridHorizontalScrollableContainerRef)&&void 0!==i?i:null),f=_(null!==(a=null==n?void 0:n.dataGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=_(null!==(l=null==n?void 0:n.topGridRef)&&void 0!==l?l:[]),h=_(null!==(s=null==n?void 0:n.leftGridRef)&&void 0!==s?s:[]),g=_(null!==(u=null==n?void 0:n.dataGridRef)&&void 0!==u?u:null),v=_(0),y=_(0),x=_(Rt.None),S=_(Rt.None),[E,C]=b(0),[R,L]=b(0),A=c.name(),D=e=>{S.current=Yy(e.currentTarget.scrollLeft,v.current),v.current=e.currentTarget.scrollLeft,x.current=Yy(e.currentTarget.scrollTop,y.current),y.current=e.currentTarget.scrollTop};P((()=>{e.triggerdByExpandOrCollapse||(p.current&&(p.current.scrollLeft=0),f.current&&(f.current.scrollLeft=0),d.current&&(d.current.scrollTop=0))}),[e]),P((()=>{if(e.triggerdByExpandOrCollapse){var t,r,n,o,i,a;const e=null!==(t=null===(r=f.current)||void 0===r?void 0:r.scrollLeft)&&void 0!==t?t:0,l=null!==(n=null===(o=d.current)||void 0===o?void 0:o.scrollTop)&&void 0!==n?n:0;null===(i=h.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=m.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),P((()=>{p.current&&(p.current.scrollLeft=0),f.current&&(f.current.scrollLeft=0),d.current&&(d.current.scrollTop=0)}),[t.page]);const I=w((e=>{if(e)return void L(0);let t=0;if(p.current){const e=p.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(f.current){const e=f.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return P((()=>{if(d.current){const e=d.current,t=e.offsetWidth-e.clientWidth;C(t)}I()}),[I,e,r.width,r.height,A]),{onHorizontalScrollHandler:e=>{var t,r;e.target instanceof HTMLDivElement&&e.target.dataset.key===`scrollable-container--${wt.DATA_GRID}`&&(D(e),null===(t=m.current)||void 0===t||t.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=g.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}))},onVerticalScrollHandler:e=>{var t,r;e.target instanceof HTMLDivElement&&(D(e),null===(t=h.current)||void 0===t||t.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=g.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}))},verticalScrollableContainerRef:d,leftGridHorizontalScrollableContainerRef:p,dataGridHorizontalScrollableContainerRef:f,dataGridRef:g,leftGridRef:h,topGridRef:m,verticalScrollbarWidth:E,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:I,verticalScrollDirection:x,horizontalScrollDirection:S}})({layoutService:n,pageInfo:i,tableRect:u}),{containerHeight:$,headerGridHeight:H,topGridHeight:B,leftGridHeight:W,dataGridHeight:j,allRowsVisible:V}=function({pageInfo:e,headersData:t,topDimensionData:r,tableRect:n,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=ry(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,r.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(n.height-s-zt,l),dataGridHeight:Math.min(n.height-c-zt,l),allRowsVisible:c+zt+l+o<=n.height}}({pageInfo:i,headersData:m,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:N}),{leftGridWidth:Y,leftGridColumnWidths:U,rightGridWidth:K,totalWidth:X,showLastRightBorder:Z,getRightGridColumnWidth:J,getHeaderCellsIconsVisibilityStatus:Q,overrideLeftGridWidth:ee}=function({layoutService:e,tableWidth:t,headersData:r,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=ry(),{measureText:l}=Cn(a.header),s=by({layoutService:e,tableWidth:t,headersData:r}),u=vy({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+zt,d=c<t,p=w(((e,t,r="")=>{const n=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(r)+ly;return t&&a+ay<=n&&(i=!0,a+=ay),a+iy<=n&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return C((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:n,tableWidth:u.width,headersData:m,visibleTopDimensionInfo:d,verticalScrollbarWidth:q,horizontalScrollbarHeightSetter:F}),{rootWrapper:te,leftWrapper:re,rightWrapper:ne}=(({tableRect:e,containerHeight:t,headerGridHeight:r,leftGridHeight:n,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+zt,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,b=e.height-h,v=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:b}},headerGrid:{width:-1,height:r},leftGrid:{width:s,height:n-h+f}},rightWrapper:{containers:{scrollable:{width:u+zt-m,height:g},fullSize:{width:v,height:t},sticky:{width:v<y?v:y,height:b}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:$,headerGridHeight:H,leftGridHeight:W,topGridHeight:B,dataGridHeight:j,allRowsVisible:V,totalWidth:X,leftGridWidth:Y,rightGridWidth:K,verticalScrollbarWidth:q,horizontalScrollbarHeight:N}),oe=w((()=>l),[l]),ie=w((()=>s),[s]);return y.createElement(Qy,{ref:D,...te.scrollable,onScroll:A,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:wt.CONTAINER_GRID},y.createElement(Xy,{...te.fullSize},y.createElement(ex,{...te.sticky,style:{display:"grid",gridTemplateColumns:Y?`${re.containers.scrollable.width}px ${ne.containers.scrollable.width}px`:`${ne.containers.scrollable.width}px`}},Boolean(Y)&&y.createElement(Qy,{ref:I,...re.containers.scrollable,onScroll:L,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:wt.LEFT_GRID},y.createElement(Xy,{isLeftGrid:!0,...re.containers.fullSize},y.createElement(ex,{isLeftGrid:!0,...re.containers.sticky},y.createElement(OS,{dataModel:R,columnWidths:U,getHeaderCellsIconsVisibilityStatus:Q,rowHight:l,height:re.headerGrid.height,headersData:m,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:ee,layoutService:n}),y.createElement(mE,{dataModel:R,leftGridRef:k,...re.leftGrid,columnWidths:U,layoutService:n,leftDimensionData:x,showLastBorder:{right:!1,bottom:V},visibleLeftDimensionInfo:c,pageInfo:i})))),y.createElement(Qy,{ref:M,...ne.containers.scrollable,onScroll:L,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:wt.DATA_GRID},y.createElement(Xy,{...ne.containers.fullSize},y.createElement(ex,{...ne.containers.sticky},y.createElement(vE,{dataModel:R,topGridRef:T,rowHightCallback:oe,...ne.topGrid,layoutService:n,topDimensionData:g,showLastBorder:{right:Z,bottom:!1},getRightGridColumnWidth:J,headersData:m}),y.createElement(uS,{dataModel:R,dataGridRef:O,rowHightCallback:ie,...ne.dataGrid,viewService:r,layoutService:n,measureData:h,leftDimensionData:x,topDimensionData:g,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:S.measures,showLastBorder:{right:Z,bottom:V},getRightGridColumnWidth:J,pageInfo:i,verticalScrollDirection:z,horizontalScrollDirection:G})))))))},xE=e=>{const{layoutService:t,translator:r,pageInfo:n,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=Jv(),{layout:u,hasData:c}=t;return y.createElement(y.Fragment,null,c&&y.createElement(yE,{...e}),y.createElement(ey,{translator:r,layoutService:t}),y.createElement(Yv,{paginationNeeded:n.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:n,totalRowCount:n.totalRowCount,totalColumnCount:0,totalPages:n.totalPages,keyboard:a,translator:r,theme:l,interactions:s,rect:i,layout:u}))};function SE(e){if(e.type)return e;if("#"===e.charAt(0))return SE(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(Ib(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 EE(e,t){return e=SE(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)}const CE={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},wE=12,RE=14,LE=16,AE=24,DE=3,_E=300,IE=400,ME=600,PE=700,OE={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};EE(CE.GREYSCALE_0,.05),EE(CE.GREEN_PALE,.5),EE(CE.BLUE_PALE,.5),EE(CE.GREEN_PALE,.5),EE(CE.BLUE_PALE,.5),EE(CE.GREEN_PALE,.5),EE(CE.BLUE_PALE,.5);var kE,TE;function qE(){return qE=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},qE.apply(this,arguments)}EE(CE.GREEN_PALE,.5),EE(CE.BLUE_PALE,.5),EE(CE.GREEN_PALE,.5),EE(CE.BLUE_PALE,.5);var NE,FE,zE=function(e){return E.createElement("svg",qE({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),kE||(kE=E.createElement("defs",null,E.createElement("path",{id:"ArrowDown_svg__a",d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"}))),TE||(TE=E.createElement("use",{xlinkHref:"#ArrowDown_svg__a",fillRule:"evenodd"})))};function GE(){return GE=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},GE.apply(this,arguments)}var $E=function(e){return E.createElement("svg",GE({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),NE||(NE=E.createElement("defs",null,E.createElement("path",{id:"Close_svg__a",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"}))),FE||(FE=E.createElement("use",{xlinkHref:"#Close_svg__a"})))};function HE({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return y.createElement("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},t)}var BE=(e={})=>y.createElement(HE,{...e},y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},y.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),y.createElement("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"}))),WE=(e={})=>y.createElement(HE,{...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),y.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),jE=(e={})=>y.createElement(HE,{fontSize:"medium",...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},y.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),VE=(e={})=>y.createElement(HE,{fontSize:"medium",...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("defs",null,y.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},y.createElement("use",{href:"#radio-checked-path-1"})),y.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),y.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),YE=({className:e})=>y.createElement(HE,{fontSize:"small",className:e},y.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},y.createElement("g",{transform:"translate(4.324187, 1.300372)"},y.createElement("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"}),y.createElement("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"})))))),UE=(e={})=>y.createElement(HE,{...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("rect",{stroke:CE.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const KE={MuiAccordion:{styleOverrides:{root:{backgroundColor:CE.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:CE.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:y.createElement(zE,{"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 ${CE.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:CE.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${CE.MISC_FOCUS_BORDER}`,borderRadius:DE,backgroundColor:CE.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 ${CE.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:CE.WHITE,color:CE.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:DE},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${CE.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:CE.GREYSCALE_0_15,backgroundColor:CE.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:CE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${CE.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:CE.GREEN_PALE},"&:active":{backgroundColor:CE.GREEN_DARK},"&.Mui-focusVisible":{borderColor:CE.GREEN_PALE,boxShadow:`0 0 0 3px ${Rs(CE.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:CE.BLUE_PALE},"&:active":{backgroundColor:CE.BLUE_DARK},"&.Mui-focusVisible":{borderColor:CE.BLUE_PALE,boxShadow:`0 0 0 3px ${Rs(CE.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:DE,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:CE.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${CE.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:CE.GREYSCALE_0_15,backgroundColor:CE.GREYSCALE_100_60,"&:active":{backgroundColor:CE.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:CE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${CE.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:CE.PURPLE,"&.Mui-focusVisible":{borderColor:CE.PURPLE,boxShadow:`0 0 0 3px ${Rs(CE.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:CE.GREEN,"&.Mui-focusVisible":{borderColor:CE.GREEN,boxShadow:`0 0 0 3px ${Rs(CE.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:CE.BLUE,"&.Mui-focusVisible":{borderColor:CE.BLUE,boxShadow:`0 0 0 3px ${Rs(CE.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:CE.ORANGE,"&.Mui-focusVisible":{borderColor:CE.ORANGE,boxShadow:`0 0 0 3px ${Rs(CE.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:CE.RED,"&.Mui-focusVisible":{borderColor:CE.RED,boxShadow:`0 0 0 3px ${Rs(CE.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:CE.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:CE.PURPLE_PALE},"&:active":{backgroundColor:CE.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:CE.PURPLE_PALE,boxShadow:`0 0 0 3px ${Rs(CE.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:CE.GREEN_PALE},"&:active":{backgroundColor:CE.GREEN_DARK},"&.Mui-focusVisible":{borderColor:CE.GREEN_PALE,boxShadow:`0 0 0 3px ${Rs(CE.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:CE.BLUE_PALE},"&:active":{backgroundColor:CE.BLUE_DARK},"&.Mui-focusVisible":{borderColor:CE.BLUE_PALE,boxShadow:`0 0 0 3px ${Rs(CE.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:CE.ORANGE_PALE},"&:active":{backgroundColor:CE.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:CE.ORANGE_PALE,boxShadow:`0 0 0 3px ${Rs(CE.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:CE.RED_PALE},"&:active":{backgroundColor:CE.RED_DARK},"&.Mui-focusVisible":{borderColor:CE.RED_PALE,boxShadow:`0 0 0 3px ${Rs(CE.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:CE.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:CE.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:DE,boxShadow:`inset 0 0 0 2px ${CE.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:y.createElement($E,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:wE,borderRadius:DE,color:CE.TEXT_PRIMARY,backgroundColor:CE.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:CE.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${CE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:CE.GREYSCALE_0_05,color:CE.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:CE.GREEN,borderColor:CE.GREEN},"&.MuiChip-outlinedInfo":{color:CE.BLUE,borderColor:CE.BLUE},"&.MuiChip-outlinedWarning":{color:CE.ORANGE,borderColor:CE.ORANGE},"&.MuiChip-outlinedError":{color:CE.RED,borderColor:CE.RED}},outlined:{border:`solid 1px ${CE.GREYSCALE_0_15}`,backgroundColor:CE.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:DE,boxShadow:"none",backgroundColor:CE.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:CE.GREEN,borderColor:CE.GREEN},outlinedSecondary:{color:CE.BLUE,borderColor:CE.BLUE},label:{fontFamily:OE.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:y.createElement($E,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:y.createElement(zE,{"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:DE},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:RE,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:CE.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:CE.GREYSCALE_0_10},"&:hover":{backgroundColor:CE.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:DE,border:`solid 1px ${CE.GREYSCALE_0_15}`,color:CE.GREYSCALE_0_60,marginRight:0,width:AE,height:AE},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${CE.GREYSCALE_0_15}`},clearIndicator:{borderRadius:DE,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:CE.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:RE}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:wE,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:CE.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:CE.GREYSCALE_25,fontSize:wE,fontFamily:OE.FONT_FAMILY,fontWeight:ME,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:CE.TEXT_PRIMARY},"&.Mui-error":{color:CE.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:CE.TEXT_SECONDARY,content:"'(optional)'",fontWeight:IE,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:CE.TEXT_SECONDARY,content:"'(required)'",fontWeight:IE,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:RE,lineHeight:"16px",backgroundColor:CE.WHITE,borderRadius:DE,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${CE.GREYSCALE_0_05}`,borderColor:CE.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${CE.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${CE.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${CE.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${CE.RED}`,boxShadow:`0px 0px 0px 1px ${CE.RED}, inset 0 2px 0 0 ${CE.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${CE.GREYSCALE_0_10}`,borderColor:CE.GREYSCALE_0_10,backgroundColor:CE.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:CE.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:CE.GREYSCALE_0_15,borderRadius:DE,boxShadow:`inset 0 2px 0 0 ${CE.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>y.createElement(zE,{...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:CE.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:CE.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:CE.GREYSCALE_0_03},"&:active":{backgroundColor:CE.GREYSCALE_0_10},"&:focus":{backgroundColor:CE.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${CE.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${CE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:CE.GREYSCALE_0_30,"&:hover":{backgroundColor:CE.GREYSCALE_0_0,borderColor:CE.GREYSCALE_0_15},"& ~svg":{color:CE.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${CE.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:DE}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:CE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${CE.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:CE.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:RE,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:wE,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:wE,fontWeight:ME,color:CE.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:ME}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${CE.GREYSCALE_0_15}, 0px 0px 0px 1px ${CE.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:y.createElement(jE,null),checkedIcon:y.createElement(VE,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:CE.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${CE.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:CE.GREEN_PALE,boxShadow:`0 0 0 3px ${Rs(CE.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:CE.BLUE_PALE,boxShadow:`0 0 0 3px ${Rs(CE.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:CE.GREYSCALE_0_20}},"&.Mui-disabled":{fill:CE.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:y.createElement(UE,null),checkedIcon:y.createElement(BE,null),indeterminateIcon:y.createElement(WE,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:DE,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:CE.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:CE.GREYSCALE_0_55,color:CE.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:CE.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:CE.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:CE.GREYSCALE_0_55,"&:hover":{color:CE.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:CE.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:CE.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:RE,color:CE.TEXT_PRIMARY,lineHeight:"16px",fontWeight:ME},secondary:{fontSize:wE,color:CE.GREYSCALE_45,fontWeight:IE,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:RE,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:CE.GREYSCALE_0_03},"&:active":{backgroundColor:CE.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:RE,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:CE.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:wE,borderBottom:`solid 1px ${CE.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:RE,color:CE.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:CE.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:CE.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:CE.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:CE.RED}}},"&.Mui-focusVisible":{backgroundColor:CE.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:CE.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:CE.GREEN,height:"24px","&.Mui-disabled":{color:CE.GREYSCALE_0_15}},rail:{backgroundColor:CE.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${CE.GREYSCALE_0_05}`,borderRadius:DE,boxShadow:`inset 0px 0px 0px 1px ${CE.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${CE.GREYSCALE_0_05}`,borderRadius:DE},thumb:{height:"16px",width:"16px",borderRadius:DE,backgroundColor:CE.WHITE,boxShadow:`0px 1px 2px 0px ${CE.GREYSCALE_0_15}, 0px 0px 0px 1px ${CE.GREYSCALE_0_05}`,"&:hover":{borderRadius:DE,boxShadow:`0 2px 4px 0 ${CE.GREYSCALE_0_30}, 0 0 0 1px ${CE.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${CE.GREYSCALE_0_15}, 0 0 0 1px ${CE.GREYSCALE_0_06}, 0 0 0 2px ${CE.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${CE.GREYSCALE_0_15}, 0 0 0 1px ${CE.GREYSCALE_0_06}, 0 0 0 2px ${CE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:CE.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:CE.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:CE.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:CE.GREYSCALE_0_15},markLabel:{color:CE.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:CE.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:CE.WHITE,color:CE.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:CE.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:CE.GREEN_PALE,boxShadow:`0 0 0 3px ${Rs(CE.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:CE.BLUE_PALE,boxShadow:`0 0 0 3px ${Rs(CE.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:CE.GREYSCALE_0_15,borderRadius:DE},thumb:{height:"16px",width:"16px",borderRadius:DE,backgroundColor:CE.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:RE,fontWeight:ME,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${CE.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${CE.MISC_FOCUS_BORDER}`,backgroundColor:CE.GREYSCALE_0_03,borderRadius:DE},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:CE.GREYSCALE_25,"&.Mui-selected":{color:CE.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:RE,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${CE.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${CE.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${CE.GREYSCALE_85}`,borderRight:`1px solid ${CE.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ME,backgroundColor:CE.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:CE.GREYSCALE_98,borderBottom:`1px solid ${CE.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${CE.GREYSCALE_85}`,borderTop:`1px solid ${CE.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:CE.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:CE.GREYSCALE_0_05,"&:hover":{backgroundColor:CE.GREYSCALE_0_03}},"&&:hover":{backgroundColor:CE.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>y.createElement(YE,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${CE.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:RE,borderRadius:DE,padding:"7px 16px",border:`1px solid ${CE.GREYSCALE_0_15}`,backgroundColor:CE.GREYSCALE_100_60,color:CE.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:CE.GREYSCALE_0_10,border:`1px solid ${CE.GREYSCALE_0_30}`},"&:hover":{backgroundColor:CE.GREYSCALE_0_03,border:`1px solid ${CE.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:CE.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${CE.MISC_FOCUS_BORDER}`,border:`1px solid ${CE.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:CE.GREYSCALE_25,backgroundColor:CE.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:CE.GREYSCALE_0_10,border:`1px solid ${CE.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:wE,height:24,width:24,padding:7},sizeLarge:{fontSize:LE,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:RE,borderRadius:DE}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:CE.GREYSCALE_20},tooltip:{backgroundColor:CE.GREYSCALE_20,fontSize:wE,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var XE=e=>KE;const ZE={mode:"light",primary:{light:CE.GREEN_PALE,main:CE.GREEN,dark:CE.GREEN_DARK,contrastText:CE.WHITE},secondary:{light:CE.BLUE_PALE,main:CE.BLUE,dark:CE.BLUE_DARK,contrastText:CE.WHITE},error:{light:CE.RED_PALE,main:CE.RED,dark:CE.RED_DARK,contrastText:CE.WHITE},warning:{light:CE.ORANGE_PALE,main:CE.ORANGE,dark:CE.ORANGE_DARK,contrastText:CE.WHITE},success:{light:CE.GREEN_PALE,main:CE.GREEN,dark:CE.GREEN_DARK,contrastText:CE.WHITE},info:{light:CE.BLUE_PALE,main:CE.BLUE,dark:CE.BLUE_DARK,contrastText:CE.WHITE},text:{primary:CE.TEXT_PRIMARY,secondary:CE.TEXT_SECONDARY,disabled:CE.GREYSCALE_0_30},action:{hover:CE.GREYSCALE_0_03,hoverOpacity:.05,selected:CE.GREYSCALE_0_05},amethyst:{main:CE.PURPLE,light:CE.PURPLE_PALE,dark:CE.PURPLE_DARK,contrastText:CE.WHITE},background:{paper:CE.WHITE,default:CE.GREYSCALE_95},divider:CE.GREYSCALE_0_15},JE=e=>ZE,QE=(e="light")=>({components:XE(),palette:JE(),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:RE,fontWeightLight:_E,fontWeightRegular:IE,fontWeightMedium:ME,fontWeightBold:PE,htmlFontSize:RE,fontFamily:OE.FONT_FAMILY,button:{fontWeight:ME,fontSize:RE,textTransform:"none"},body1:{fontSize:LE,lineHeight:"24px"},body2:{fontSize:RE,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:AE,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:LE,fontWeight:ME,lineHeight:"16px"},h6:{fontSize:RE,fontWeight:ME,lineHeight:"16px"},caption:{color:CE.TEXT_SECONDARY},subtitle1:{fontSize:RE,color:CE.TEXT_SECONDARY},subtitle2:{fontSize:wE,color:CE.TEXT_SECONDARY}},shape:{borderRadius:DE}});const eC=(e,t)=>{const{selections:r,styleService:n,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c}=t,d=function(e){var t;const r=QE();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),au({...r,direction:e})}("ltr");e.render(y.createElement(y.StrictMode,null,y.createElement(du,{theme:d},y.createElement(Qv,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c},y.createElement(vS,{selections:r,updatePageInfo:t.updatePageInfo},y.createElement(ny,{styleService:n},y.createElement(xE,{...t})))))))},tC={darker:.15,brighter:.3,opacity:.03},rC={darker:.3,brighter:.5,opacity:.05};var nC,oC,iC,aC;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.Border="border",e.Divider="divider"}(nC||(nC={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(oC||(oC={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(iC||(iC={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.BorderColor="borderColor"}(aC||(aC={}));const lC=e=>e?`${parseInt(e,10)}px`:void 0,sC=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?Gt.Transparent:r}},uC=(e,t)=>+(parseInt(e,10)*Ft*t+8).toFixed(2),cC=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Tt:"normal",dC=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",pC=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",fC=({fontStyle:e,fontWeight:t,fontSize:r,fontFamily:n})=>t?`${e} ${t} ${r} ${n}`:`${e} ${r} ${n}`,mC=(e,r)=>t((()=>((e,t)=>{var r,n,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!s,m=null!==(r=null==s||null===(n=s.content)||void 0===n||null===(n=n.qPivotDataPages)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.qArea)&&void 0!==r?r:{qWidth:0,qHeight:0},h={x:f?m.qWidth:Math.min(e.qHyperCube.qSize.qcx,Nt),y:f?m.qHeight:Math.min(e.qHyperCube.qSize.qcy,qt)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),v=b(cy),y=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:cy,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(v)return 0;const r=e%x.length;return t?r:d.findIndex((e=>e===x[r]))},getDimensionInfo:e=>{var t;return e===cy?cy:null!==(t=p[c[e]])&&void 0!==t?t:void 0},getDimensionInfoIndex:e=>{var t;return null!==(t=y.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:!(null==t||null===(o=t.qHyperCubeDef)||void 0===o||!o.qShowTotalsAbove),hasPseudoDimOnLeft:v,leftDimensionInfoIndexes:g,isLeftDimension:b,isFullyExpanded:!(null==t||null===(i=t.qHyperCubeDef)||void 0===i||!i.qAlwaysFullyExpanded),triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x}})(e,r)),[e,r]),hC={},gC=e=>{const r=(e=>{const r=t((()=>({current:hC})),[]);return r.current=r.current===hC?e:r.current,r})(e);return r.current=e,r},bC=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=gC((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/gt.PixelsMin)}))(o));return hr((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,u,c)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,u,c))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(Nt,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,u,c);return t?e.getHyperCubePivotData(uy,jy(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},vC=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),yC=(e,t)=>{const r=qt;return{rowsPerPage:r,totalPages:Math.ceil(e/r),totalRowCount:e,rowsOnCurrentPage:vC({rowsPerPage:r,totalRowCount:e,page:t})}};var xC={SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const SC=()=>{const e=l(),r=e.language();return t((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(xC).forEach((t=>{e.add(xC[t])}))}}(e)),[e]),{translator:e,language:r}},EC=e=>{const{flags:l}=e,b=s(),v=(e=>{const r=t((()=>gr(e)),[e]);return n((()=>()=>r.unmount()),[r]),r})(b),y=u(),x=c(),S=d(),E=p(),C=f(),w=m(),[R,L]=((e,t)=>hr((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(x,y),A=mC(y,R),D=h(),_=((e,r,n)=>{const i=o();return t((()=>({...i,background:yn(i,e,r,n)})),[i.name(),e,r,n])})(b),I=_.name(),{translator:M,language:P}=SC(),{pageInfo:O,updatePageInfo:k}=(e=>{const{size:t,layout:{qHyperCube:{qSize:r}}}=e,[o,a]=i({page:0,shouldShowPagination:r.qcy>t.y,...yC(r.qcy,0)});return n((()=>{a((t=>({...t,...yC(e.layout.qHyperCube.qSize.qcy,t.page),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,a]),n((()=>{const{page:e,totalPages:t}=o;if(e+1>t){const e=t-1,r=vC({...o,page:e});a({...o,page:e,rowsOnCurrentPage:r})}}),[o]),{pageInfo:o,updatePageInfo:e=>a({...o,...e,rowsOnCurrentPage:vC({...o,...e})})}})(A),T=(e=>t((()=>({gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0})),[e.page]))(O),q=(({layoutService:e,viewService:t,rect:r,model:n})=>{var o;return a((async e=>e.snapshotData&&n&&!e.snapshotData.content?(null!=n&&n.getHyperCubePivotData&&(e.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(uy,[{qLeft:t.gridColumnStartIndex,qTop:t.gridRowStartIndex,qWidth:t.gridWidth,qHeight:t.gridHeight}])},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height),e):e)),null!==(o=e.layout.snapshotData)&&void 0!==o&&o.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r})({rect:g(),layoutService:A,viewService:T,model:x}),[N,F]=bC({model:x,layoutService:A,viewService:T,pageInfo:O,rect:q}),z=t((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,L,A,D,_,I,M,P,O,k,T,q,N,F,z,G,$,H,B,W,j,V;const Y=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),U=null==Y?void 0:Y.header,K=null==Y?void 0:Y.dimensionValues,X=null==Y?void 0:Y.measureValues,Z=null==Y?void 0:Y.measureLabels,J=null==Y?void 0:Y.totalValues,Q=null==Y?void 0:Y.nullValues,ee=null==Y?void 0:Y.grid,te=(t,r,n)=>e.getStyle(t,r,n),re=+(null!==(n=null!==(o=null==ee?void 0:ee[nC.LineClamp])&&void 0!==o?o:te(oC.Grid,iC.Grid,aC.LineClamp))&&void 0!==n?n:1),ne=null!==(i=null!==(a=sC(e,null==U?void 0:U[nC.Background]))&&void 0!==a?a:te(oC.Dimension,iC.LabelName,aC.BackgroundColor))&&void 0!==i?i:Gt.Transparent,oe={header:{fontSize:null!==(l=null!==(s=lC(null==U?void 0:U[nC.FontSize]))&&void 0!==s?s:te(oC.Dimension,iC.LabelName,aC.FontSize))&&void 0!==l?l:Ot,fontFamily:null!==(u=null!==(c=null==U?void 0:U[nC.FontFamily])&&void 0!==c?c:te(oC.Dimension,iC.LabelName,aC.FontFamily))&&void 0!==u?u:kt,fontWeight:cC(null==U?void 0:U[nC.FontStyle],Tt),fontStyle:dC(null==U?void 0:U[nC.FontStyle]),textDecoration:pC(null==U?void 0:U[nC.FontStyle]),color:null!==(d=null!==(p=sC(e,null==U?void 0:U[nC.FontColor]))&&void 0!==p?p:te(oC.Dimension,iC.LabelName,aC.Color))&&void 0!==d?d:dv.TEXT,background:ne,hoverBackground:pv(ne,tC),activeBackground:pv(ne,rC)},dimensionValues:{fontSize:null!==(f=null!==(m=lC(null==K?void 0:K[nC.FontSize]))&&void 0!==m?m:te(oC.Dimension,iC.LabelValue,aC.FontSize))&&void 0!==f?f:Ot,fontFamily:null!==(h=null!==(g=null==K?void 0:K[nC.FontFamily])&&void 0!==g?g:te(oC.Dimension,iC.LabelValue,aC.FontFamily))&&void 0!==h?h:kt,fontWeight:cC(null==K?void 0:K[nC.FontStyle],void 0),fontStyle:dC(null==K?void 0:K[nC.FontStyle]),textDecoration:pC(null==K?void 0:K[nC.FontStyle]),color:null!==(b=null!==(v=sC(e,null==K?void 0:K[nC.FontColor]))&&void 0!==v?v:te(oC.Dimension,iC.LabelValue,aC.Color))&&void 0!==b?b:dv.TEXT,background:null!==(y=null!==(x=sC(e,null==K?void 0:K[nC.Background]))&&void 0!==x?x:te(oC.Dimension,iC.LabelValue,aC.BackgroundColor))&&void 0!==y?y:Gt.Transparent},measureValues:{fontSize:null!==(S=null!==(E=lC(null==X?void 0:X[nC.FontSize]))&&void 0!==E?E:te(oC.Measure,iC.LabelValue,aC.FontSize))&&void 0!==S?S:Ot,fontFamily:null!==(C=null!==(w=null==X?void 0:X[nC.FontFamily])&&void 0!==w?w:te(oC.Measure,iC.LabelValue,aC.FontFamily))&&void 0!==C?C:kt,fontWeight:cC(null==X?void 0:X[nC.FontStyle],"normal"),fontStyle:dC(null==X?void 0:X[nC.FontStyle]),textDecoration:pC(null==X?void 0:X[nC.FontStyle]),color:null!==(R=null!==(L=sC(e,null==X?void 0:X[nC.FontColor]))&&void 0!==L?L:te(oC.Measure,iC.LabelValue,aC.Color))&&void 0!==R?R:Gt.FontSecondary,background:null!==(A=null!==(D=sC(e,null==X?void 0:X[nC.Background]))&&void 0!==D?D:te(oC.Measure,iC.LabelValue,aC.BackgroundColor))&&void 0!==A?A:Gt.Transparent},measureLabels:{fontWeight:cC(null==Z?void 0:Z[nC.FontStyle],"normal"),fontStyle:dC(null==Z?void 0:Z[nC.FontStyle]),textDecoration:pC(null==Z?void 0:Z[nC.FontStyle]),color:null!==(_=null!==(I=sC(e,null==Z?void 0:Z[nC.FontColor]))&&void 0!==I?I:te(oC.Measure,iC.LabelName,aC.Color))&&void 0!==_?_:Gt.FontSecondary,background:null!==(M=null!==(P=sC(e,null==Z?void 0:Z[nC.Background]))&&void 0!==P?P:te(oC.Measure,iC.LabelName,aC.BackgroundColor))&&void 0!==M?M:Gt.Transparent},totalValues:{fontWeight:cC(null==J?void 0:J[nC.FontStyle],Tt),fontStyle:dC(null==J?void 0:J[nC.FontStyle]),textDecoration:pC(null==J?void 0:J[nC.FontStyle]),color:null!==(O=null!==(k=sC(e,null==J?void 0:J[nC.FontColor]))&&void 0!==k?k:te(oC.Total,iC.LabelValue,aC.Color))&&void 0!==O?O:dv.TEXT,background:null!==(T=null!==(q=sC(e,null==J?void 0:J[nC.Background]))&&void 0!==q?q:te(oC.Total,iC.LabelValue,aC.BackgroundColor))&&void 0!==T?T:Gt.Transparent},nullValues:{fontWeight:cC(null==Q?void 0:Q[nC.FontStyle],"normal"),fontStyle:dC(null==Q?void 0:Q[nC.FontStyle]),textDecoration:pC(null==Q?void 0:Q[nC.FontStyle]),color:null!==(N=null!==(F=sC(e,null==Q?void 0:Q[nC.FontColor]))&&void 0!==F?F:te(oC.Null,iC.LabelValue,aC.Color))&&void 0!==N?N:dv.TEXT,background:null!==(z=null!==(G=sC(e,null==Q?void 0:Q[nC.Background]))&&void 0!==G?G:te(oC.Null,iC.LabelValue,aC.BackgroundColor))&&void 0!==z?z:Gt.NullValueBackground},grid:{lineClamp:re,border:null!==($=null!==(H=sC(e,null==ee?void 0:ee[nC.Border]))&&void 0!==H?H:te(oC.Grid,iC.Grid,aC.BorderColor))&&void 0!==$?$:Gt.DividerLight,divider:null!==(B=null!==(W=sC(e,null==ee?void 0:ee[nC.Divider]))&&void 0!==W?W:te(oC.Grid,iC.Divider,aC.BorderColor))&&void 0!==B?B:Gt.DividerDark,background:null!==(j=null!==(V=sC(e,null==ee?void 0:ee[nC.Background]))&&void 0!==V?V:te(oC.Grid,iC.Grid,aC.BackgroundColor))&&void 0!==j?j:Gt.Transparent}};return oe.headerCellHeight=Math.max(uC(oe.header.fontSize,1),uC(oe.dimensionValues.fontSize,1),32),oe.contentCellHeight=Math.max(uC(oe.measureValues.fontSize,re),uC(oe.dimensionValues.fontSize,re),24),oe.contentRowHeight=oe.contentCellHeight/re,oe.contentTextHeight=oe.contentRowHeight-8,oe})(_,A)),[_.name(),A]),G=(e=>t((()=>[...new Set([fC(e.header),fC(e.dimensionValues),fC({...e.dimensionValues,...e.measureLabels}),fC({...e.dimensionValues,...e.nullValues}),fC({...e.dimensionValues,...e.totalValues}),fC(e.measureValues),fC({...e.measureValues,...e.nullValues}),fC({...e.measureValues,...e.totalValues})])]),[e]))(z),$=(e=>{const[t,n]=r((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return n?(console.warn("Failed to load font:",n),!0):!!t})(G);n((()=>{!F&&x&&(null==q?void 0:q.width)&&(null==q?void 0:q.height)&&D&&T&&A&&z&&!!N&&!L&&$&&eC(v,{model:x,app:S,rect:q,selections:D,viewService:T,layoutService:A,qPivotDataPages:N,styleService:z,translator:M,pageInfo:O,updatePageInfo:k,interactions:w,embed:E,keyboard:C,theme:_,flags:l})}),[x,S,q,null==q?void 0:q.width,null==q?void 0:q.height,w,D,T,A,F,N,z,v,$,M,P,O,k,R,L,E,C,_,I,l])},CC={version:"3.0.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]}}}}));